<script type="text/ecmascript">    function verify()    {    SendGridBindRequest('<?= $accesscontrolObj->urlwithpara ?>','gridbody','D','chkgrow');    }</script><div class="web-booking-main" id="gridbody">    <div class="breadcrumbs"><a href="index.php">&nbsp;Home</a>&nbsp;>&nbsp;<span class="current">Manage Staff </span>  </div>    <div class="clear"></div>    <?= $messagebox; ?>		    <?php echo $headerpanel; ?>            <?php echo $pagingTop; ?>            <?php echo $notemessagebox; ?>    <div class="grid-list-subtitle-bg" style="margin-top:10px;">        <table width="100%" border="0" cellspacing="0" cellpadding="0">            <tr>                <td width="2%" align="left" valign="top" class="grid-td-left">                    <?php if ($paramMain['Delete'] == 'Y') { ?>                        <input name="chkall" id="chkall" type="checkbox" onclick="checkall('chkgrow')"  />                    <?php } ?>                </td>                <?php if ($configObj->glSessionObj->value('admin_id') == '1') { ?>                    <td width="2%" align="center" valign="middle" class="grid-left1"></td>                <?php } ?>                <td width="30%" align="left" valign="top" class="grid-td-top"><a href="javascript:;" onclick="SendGridBindRequest('<?= $accesscontrolObj->urlwithoutsort ?>&orderby=var_fname&sorting=Y','gridbody','ST')">Name<?= $setsortimgvar_fname ?></a></td>                <td width="10%" align="left" valign="top" class="grid-td-top"><a href="javascript:;" onclick="SendGridBindRequest('<?= $accesscontrolObj->urlwithoutsort ?>&orderby=chr_gender&sorting=Y','gridbody','ST')">Gender<?= $setsortimgchr_gender ?></a></td>                                <td width="10%" align="left" valign="top" class="grid-td-top"><a href="javascript:;" onclick="SendGridBindRequest('<?= $accesscontrolObj->urlwithoutsort ?>&orderby=var_address1&sorting=Y','gridbody','ST')">Address<?= $setsortimgvar_address1 ?></a></td>                                <td width="10%" align="left" valign="top" class="grid-td-top"><a href="javascript:;" onclick="SendGridBindRequest('<?= $accesscontrolObj->urlwithoutsort ?>&orderby=var_city&sorting=Y','gridbody','ST')">City<?= $setsortimgvar_city ?></a></td>                                                <td width="18%" align="left" valign="top" class="grid-td-top"><a href="javascript:;" onclick="SendGridBindRequest('<?= $accesscontrolObj->urlwithoutsort ?>&orderby=var_emailid&sorting=Y','gridbody','ST')">Email Id<?= $setsortimgvar_emailid ?></a></td>                <td width="13%" align="left" valign="top" class="grid-td-top"><a href="javascript:;" onclick="SendGridBindRequest('<?= $accesscontrolObj->urlwithoutsort ?>&orderby=var_name&sorting=Y','gridbody','ST')">Group<?= $setsortimgvar_name ?></a></td>                <!--<td width="13%" align="left" valign="top" class="grid-td-top">Group</td>-->            </tr>        </table>    </div>    <div class="information-white-bg" id="dvpersonalinformation" >        <div class="clear"></div>        <div class="grid-list-inner-table-text">            <table width="100%" border="0" cellspacing="0" cellpadding="0">            </table>            <table width="100%" border="0" cellspacing="0" cellpadding="0">                <?php if ($numofrows > 0) {
    $rowcount = 0;
    while ($row = $configObj->glDbObj->fetch_array($result)) {
        $sql = "select cg.var_name,cug.fk_groups from " . DB_PREFIX . "groups cg join " . DB_PREFIX . "users_groups cug on cug.fk_groups = cg.int_glcode where cug.fk_users = " . $row['int_glcode'] . "";
        $gres = $configObj->glDbObj->query($sql);
        $grow = $configObj->glDbObj->fetch_array($gres); //                        $clsname = ($row['chr_read'] == 'N') ? "grid-list-inner-table-text-active" : "grid-list-inner-table-text"; // For read unread class                        $starimg = ($row['chr_star'] == 'Y') ? "gstar.png" : "gstar-disable.png"; // Displaying the stat and unstart image                        $tool = ($row['chr_star'] == 'Y') ? "Starred" : "Not Starred";                        $tickimg = ($row['chr_publish'] == 'Y') ? "tick.png" : "tick_cross.png"; // Displaying the stat and unstart image                        if ($row['chr_publish'] == 'Y') {                            $title = "Hide me";                        } else {                            $title = "Display me";                        }                         ?>                        <tr id="gtr-<?= $row['int_glcode'] ?>"  style="background-color: transparent;"  onmouseover="this.style.backgroundColor='#f6f6f6'" onmouseout="this.style.backgroundColor='transparent'" >                            <td width="4%" align="left" valign="middle" class="grid-td-left">                        <?php if ($paramMain['Delete'] == 'Y') { ?>                                    <input name="chkgrow" id="chkgrow" width="4%"  type="checkbox" value="<?php echo $row['int_glcode'] ?>" />        <?php } ?>                            </td>                                <?php if ($configObj->glSessionObj->value('admin_id') == '1') { ?>                                <!--<td width="2%" align="center" valign="middle" class="grid-left1"><img id="star-<?= $row['int_glcode'] ?>" height="16" width="16" alt="remember me" title="<?php echo $tool; ?>" src="<?= GLOBAL_ADMIN_IMAGES_PATH ?><?= $starimg ?>" style="vertical-align:middle;cursor:pointer;"onclick="UpdateStar('<?= DB_PREFIX ?>users','chr_star','<?= $row['int_glcode'] ?>');"></td>-->                                <? } ?>                            <td width="30%" align="left" valign="middle" class="grid-td-top">                            <?php if ($paramMain['Edit'] == 'Y') { ?>                                    <a href="<?= $accesscontrolObj->urlwithpara; ?>&amp;action=edit&amp;eid=<?php echo $row['int_glcode']; ?>">&nbsp;<span><?php echo $row['var_fname'] . " " . $row['var_lname'] ?></span></a>                                <?php } else {
            echo $row['var_fname'] . " " . $row['var_lname'];
        } ?>                            </td>                            <?php if ($row['chr_gender'] == 'M') {
            $temp = "Male";
        } if ($row['chr_gender'] == 'F') {
            $temp = "Female";
        } ?>                                                        <td width="10%" align="left" valign="middle" class="grid-td-top">&nbsp;<?php echo $temp; ?></td>                            <td width="10%" align="left" valign="middle" class="grid-td-top"><?php echo $row['var_city']; ?></td>                                                        <td width="10%" align="left" valign="middle" class="grid-td-top"><?php echo $row['var_address1']; ?></td>                                                        <td width="18%" align="left" valign="middle" class="grid-td-top"><?php echo $row['var_emailid']; ?></td>                            <td width="13%" align="left" valign="middle" class="grid-td-top">        <?php echo $grow['var_name']; ?>                            </td>                        </tr>        <?php $rowcount++;
    }
} else { ?>                    <tr style="background-color: transparent;"   onmouseover="this.style.backgroundColor='#f6f6f6'" onmouseout="this.style.backgroundColor='transparent'">                        <td height="25" align="center" valign="middle" colspan="6" class="form_titles">No Records Available</td>                    </tr>    <?php } ?>                <input type="hidden" name="ptrecords" id="ptrecords" value="<?= $rowcount ?>">            </table>        </div>    </div>    <div class="clear"></div><?php echo $pagingBottom; ?><?php if ($numofrows > 0) { ?>        <?php if ($paramMain['Delete'] == 'Y') { ?>            <div class="add-new-user-button" <?= $paramMain['Delete'] ?>><a href="javascript:" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image47','','<?= GLOBAL_ADMIN_IMAGES_PATH ?>delete-button-hover.jpg',0)"><img src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>delete-button.jpg" alt="Delete" name="Image47" width="80" height="25" border="0" id="Image47" onclick="return verify();" /></a></div>        <?php } ?>    <?php } ?></div>