Example #1
0
function xlevel_list()
{
    return xlevel("id >= '" . $_SESSION['xlevel'] . "'", "id");
}
Example #2
0
                            
                            </option><?php 
    }
}
?>
                
                </select>
            </td>
		</tr>
		<tr>
			<td class="key">Level Akses</td>
			<td><?php 
if ($slevel == "DEV") {
    $olevel = xlevel("kode, name", "", "ordering");
} else {
    $olevel = xlevel("kode, name", "kode NOT LIKE '1'", "ordering");
}
$nlevel = mysql_num_rows($olevel);
if ($nlevel > 0) {
    while ($xlevel = mysql_fetch_array($olevel)) {
        ?>
					
						<input type="radio" name="level" value="<?php 
        echo $xlevel['kode'];
        ?>
" <?php 
        if (in_array($xlevel['kode'], $levelname)) {
            echo "checked=\"checked\"";
        }
        ?>
 /><?php 
Example #3
0
<form action="index.php?p=<?php 
echo $p;
?>
" method="post" name="form">
	<table class="admintable" cellspacing="1">
		<tr>
			<td class="key">Username</td>
			<td><input type="text" name="username" size="40" value="<?php 
echo $value['username'];
?>
" /></td>
		</tr>
		<tr>
			<td class="key">Level Akses</td>
			<td><?php 
$rs = xlevel("id > " . $xlevel_session, "id");
while ($xlevel = mysql_fetch_object($rs)) {
    ?>
					<input name="level<?php 
    echo $xlevel->id;
    ?>
" type="checkbox" value="<?php 
    echo $xlevel->id;
    ?>
" <?php 
    if (strpos($value['level'], $xlevel->id) !== false) {
        echo "checked=\"checked\"";
    }
    ?>
 /><?php 
    echo $xlevel->name;
Example #4
0
/>Ya&nbsp;
				<input type="radio" name="<?php 
echo $field[5];
?>
" value="0" <?php 
if ($value[5] == 0) {
    echo "checked=\"checked\"";
}
?>
/>Tidak
			</td>
		</tr>
		<tr>
			<td class="key">Level Akses</td>
			<td><?php 
$rs = xlevel("id >= '" . $xlevel_session . "'", "id");
while ($xlevel = mysql_fetch_object($rs)) {
    ?>
					<input name="level<?php 
    echo $xlevel->id;
    ?>
" type="checkbox" value="<?php 
    echo $xlevel->id;
    ?>
" <?php 
    if (strpos($value[6], $xlevel->id) !== false) {
        echo "checked=\"checked\"";
    }
    ?>
 /><?php 
    echo $xlevel->name;
Example #5
0
                            
                            </option><?php 
    }
}
?>
                
                </select>
            </td>
		</tr>
		<tr>
			<td class="key">Level Akses</td>
			<td><?php 
if ($slevel == "DEV") {
    $olevel = xlevel("kode, name", "", "ordering");
} else {
    $olevel = xlevel("kode, name", "kode NOT LIKE 'DEV' AND kode NOT LIKE 'ADM' AND kode NOT LIKE 'MEN' AND kode NOT LIKE 'WAMEN' AND kode \r\n\t\t\t\tNOT LIKE 'DITJEN'", "ordering");
}
$nlevel = mysql_num_rows($olevel);
if ($nlevel > 0) {
    while ($xlevel = mysql_fetch_array($olevel)) {
        ?>
					
						<input type="radio" name="level" value="<?php 
        echo $xlevel['kode'];
        ?>
" <?php 
        if ($levelname == $xlevel['kode']) {
            echo "checked=\"checked\"";
        }
        ?>
 /><?php 
Example #6
0
    echo "checked=\"checked\"";
}
?>
/>Ya&nbsp;
				<input type="radio" name="published" value="0" <?php 
if ($published == 0) {
    echo "checked=\"checked\"";
}
?>
/>Tidak
			</td>
		</tr>
		<tr>
			<td class="key">Level Akses</td>
			<td><?php 
$olevel = xlevel("kode, name", "", "ordering");
$nlevel = mysql_num_rows($olevel);
if ($nlevel > 0) {
    while ($xlevel = mysql_fetch_array($olevel)) {
        ?>
					
						<input type="checkbox" name="level_<?php 
        echo $xlevel['kode'];
        ?>
" value="<?php 
        echo $xlevel['kode'];
        ?>
" <?php 
        if (in_array($xlevel['kode'], $levelname)) {
            echo "checked=\"checked\"";
        }
Example #7
0
}
?>

<form action="index.php?p=<?php 
echo $p;
?>
" method="post" name="form">
	<table class="admintable" cellspacing="1">
		<tr>
			<td class="key">id</td>
			<td>
				<select name="<?php 
echo $field[0];
?>
"><?php 
$rs = xlevel("", "id");
while ($xlevel = mysql_fetch_object($rs)) {
    $r[] = $xlevel->id;
}
for ($i = $xlevel_sess; $i <= 9; $i++) {
    if (!isset($_GET['q'])) {
        if (!in_array($i, $r)) {
            ?>
								<option value="<?php 
            echo $i;
            ?>
" <?php 
            if ($i == $value[0]) {
                echo "selected";
            }
            ?>