[제나플러스] 회원등급을 숫자대신에 글로 표현해 보기
본문
function get_member_level_select($name, $start_id=0, $end_id=10, $selected='', $event='')
{
global $g4;
$str = "<select name='$name' $event>";
$arr = array("ゲストLv0","ゲストLv1","会員Lv2","会員Lv3","会員Lv4","会員Lv5","会員Lv6","会員Lv7","会員Lv8","会員Lv9","最高管理者");
for ($i=$start_id; $i<=$end_id; $i++)
{
if (trim($arr[$i]))
$str .= "<option value='$i'";
if ($i == $selected) $str .= " selected='selected'";
$str .= ">{$arr[$i]}</option>";
}
$str .= "</select>";
return $str;
}
{
global $g4;
$str = "<select name='$name' $event>";
$arr = array("ゲストLv0","ゲストLv1","会員Lv2","会員Lv3","会員Lv4","会員Lv5","会員Lv6","会員Lv7","会員Lv8","会員Lv9","最高管理者");
for ($i=$start_id; $i<=$end_id; $i++)
{
if (trim($arr[$i]))
$str .= "<option value='$i'";
if ($i == $selected) $str .= " selected='selected'";
$str .= ">{$arr[$i]}</option>";
}
$str .= "</select>";
return $str;
}
추천0
댓글목록 0
등록된 댓글이 없습니다.