?> <table class="table_admin2"> <tr> <th>Group</th> <th>Menu</th> <th>Function</th> <th>Parameter</th> <th>Number</th> <th>Main</th> <th>Hide</th> <th>Secure</th> <th>Delete</th> </tr> <form name="formedit" action="<?php b_urlact() . "&cpage=" . $_REQUEST['cpage']; ?> " method="POST"> <?php $csql = "select a.nid, a.nid_groupfrontmenus, a.cmenu, a.cfunction, a.cparam, a.nurut, a.is_main, a.bhide, a.bsecure \n\t\t\tfrom " . PREFIX . "frontmenus as a\n\t\t\tinner join " . PREFIX . "groupfrontmenus as b on a.nid_groupfrontmenus=b.nid\n\t\t\torder by b.nurut, b.cgroup, a.nurut, a.cmenu"; $nresult = gcms_query($csql); $nindex = 0; while ($ogroup = gcms_fetch_object($nresult)) { ?> <tr> <td><select name="cgroup[<?php echo $nindex; ?> ]" style="width:105px"> <option style="width:200px"></option>
<tr> <td>You can't edit anyone!</td> </tr> <?php } ?> </table> <?php } ?> <?php if ($bedit) { ?> <br><form action="<?php echo b_urlact(); ?> " method="POST" name="myform" id="formedit"> <table class="table_admin2"> <input type="hidden" name="nid" value="<?php echo $_POST['nid']; ?> "> <?php $csql = "select * from " . PREFIX . "users where nid='" . $_POST['nid'] . "'"; $nresult = gcms_query($csql); $ouser = gcms_fetch_object($nresult); ?> <tr> <td width="20%">User ID</td>
<li><a id="<?php if ($_REQUEST['cpage'] == "menu") { echo "current"; } ?> " href="<?php echo b_urlact() . "&cpage=menu"; ?> ">Menu</a></li> <li><a id="<?php if ($_REQUEST['cpage'] == "granter" or $_REQUEST['cpage'] == "") { echo "current"; } ?> " href="<?php echo b_urlact() . "&cpage=granter"; ?> ">Menu Granter</a></li> </ul> </div> <?php switch ($_REQUEST['cpage']) { case "group": b_pathinclude("menu_group.php"); break; case "menu": b_pathinclude("menu_menu.php"); break; case "granter": b_pathinclude("menu_granter.php"); break;