<script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/ui/minified/jquery.ui.mouse.min.js"></script>
<script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/ui/minified/jquery.ui.draggable.min.js"></script>
<script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/ui/minified/jquery.ui.resizable.min.js"></script>
<script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/ui/minified/jquery.ui.dialog.min.js"></script>
<script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>highslide/highslide-full.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo GLOBAL_ADMIN_JS_PATH; ?>highslide/highslide.css" />
<link type="text/css" href="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/themes/base/jquery.ui.dialog.css" rel="stylesheet" />
<link type="text/css" href="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/themes/base/jquery.ui.resizable.css" rel="stylesheet" />
<script type="text/javascript">
    hs.graphicsDir = '<?php echo GLOBAL_ADMIN_JS_PATH; ?>highslide/graphics/';
    hs.outlineType = 'rounded-white';
    hs.showCredits = false;
    hs.align = 'center';
    hs.wrapperClassName = 'draggable-header';
    
    
</script>
<script type="text/javascript">
    function verify()
    { 
        SendGridBindRequest('<?= $preObj->urlwithpara ?>','gridbody','D','chkgrow');
    }
    
   
  
    function updateread(id)
    {
        //alert(id);
        var p='';
        $.ajax({
            type: "GET",
            url:"index.php" ,
            data: "module=user&action=updatereaddata&ajax=Y&id="+id,
            async: false,
            success: function(data){
                p=data;
                //alert(p);
                document.getElementById('gtr-'+p).className = 'grid-list-inner-table-text';
                if(document.getElementById('star1-'+p).style.display='inline')
                {
                    document.getElementById('star1-'+p).style.display='none';
                }
            }
        });
    }
    
    
  
      
</script>
<div class="web-booking-main" id="gridbody">
    <input type="hidden" name="autosearchurl" id="autosearchurl" value="<?php echo $configObj->AutoSearchUrl ?>"  /><input type="hidden" name="autosearchurl" id="autosearchurl" value="<?php echo $configObj->AutoSearchUrl ?>"  /><input type="hidden" name="autosearchurl" id="autosearchurl" value="<?php echo $configObj->AutoSearchUrl ?>"  />
    <div class="breadcrumbs"><a href="index.php">&nbsp;Home</a>&nbsp;>&nbsp;<span class="current">Manage Our Team</span>  </div>
    <div class="clear"></div>
    <?php echo $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>
                <?php if ($paramMain['Delete'] == 'Y') { ?>
                    <td width="3%" align="left" valign="middle" class="grid-td-left">            
                        <input name="chkall" id="chkall" type="checkbox" onclick="checkall('chkgrow')"  />
                    </td>
                <?php } ?>
                <?php if ($configObj->glSessionObj->value('admin_id') == '1') { ?>
                    <td width="2%" align="center" valign="middle" class="grid-left1"></td>
                <?php } ?>
                <td width="20%" align="left" valign="middle" class="grid-td-top">
                    <a href="javascript:;" onclick="SendGridBindRequest('<?= $preObj->urlwithoutsort ?>&orderby=var_name&sorting=Y','gridbody','ST')">
                        Name
                        <?= $setsortimgvar_name ?></a>
                </td>
                <td width="15%" align="left" valign="middle" class="grid-td-top" >
                    <a href="javascript:;" onclick="SendGridBindRequest('<?= $preObj->urlwithoutsort ?>&orderby=var_nationality&sorting=Y','gridbody','ST')">
                        Nationality
                        <?= $setsortimgvar_nationality ?></a>
                </td>
                <td width="15%" align="left" valign="middle" class="grid-td-top" >
                    <a href="javascript:;" onclick="SendGridBindRequest('<?= $preObj->urlwithoutsort ?>&orderby=var_email&sorting=Y','gridbody','ST')">
                        Email Id
                        <?= $setsortimgvar_email ?></a>
                </td>
                <td width="10%" align="center" valign="middle" class="grid-td-top">Image</td>
                <td width="10%" align="center" valign="middle" class="grid-td-top">Other Information</td>
                <td width="7%" align="center" valign="middle" class="grid-td-top">
                    <a href="javascript:;" onclick="SendGridBindRequest('<?= $preObj->urlwithoutsort ?>&orderby=int_hits&sorting=Y','gridbody','ST')">
                        Hits<?= $setsortimgint_hits ?></a>
                </td>
                <td width="10%" align="center" valign="middle" class="grid-td-top">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="80%" nowrap><a href="javascript:;" onclick="SendGridBindRequest('<?= $preObj->urlwithoutsort ?>&orderby=int_displayorder&sorting=Y','gridbody','ST')">Display Order <?= $setsortimgint_displayorder ?></a></td>
                            <td width="20%">
                                <?php if ($paramMain['Edit'] == 'Y') { ?>
                                    <a href="javascript:;" onclick="javascript:SendGridBindRequest('<?= $preObj->urlwithoutsort ?>','gridbody','DO');">&nbsp;<img src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>save.png" width="16" height="16" alt="save" title="Click here to save the display order/rank" border="0" /></a>
                                <?php } else { ?>
                                    &nbsp;
                                <?php } ?>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="10%" align="center" valign="middle" class="grid-td-top"><a href="javascript:;" onclick="SendGridBindRequest('<?= $preObj->urlwithoutsort ?>&orderby=chr_publish&sorting=Y','gridbody','ST')">Display<?= $setsortimgchr_publish ?></a></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" cellpadding="0" cellspacing="0">
                <?php
                if ($numofrows > 0) {
                    $rowcount = 0;
                    while ($row = $configObj->glDbObj->fetch_array($result)) {   //echo "<pre>";print_r($row);
                        $trackimage = "histry-icon.png";
//                        $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
                        $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";
                        }
                        if ($row['chr_read'] == 'N') {
                            $style = 'display:inline;';
                        } else {
                            $style = 'display:none;';
                        }
                        $starclass = "<span id='star1-" . $row['int_glcode'] . "' style='" . $style . "'><img width='10px' style='padding-bottom:5px;' height='10px' title='' alt='*' src='html/images/star_red.png'></span>";
                        if ($row['chr_history_read'] == 'Y') {
                            $trackimage = "histry-icon.png";
                        } else {
                            $trackimage = "histry-unread-icon.png";
                        }
                        ?>
                        <tr id="gtr-<?= $row['int_glcode'] ?>"  style="background-color: transparent;"  onmouseover="this.style.backgroundColor='#f6f6f6'" onmouseout="this.style.backgroundColor='transparent'" >
                            <td width="3%" align="left" valign="middle" class="grid-td-left">
                                <?php if ($paramMain['Delete'] == 'Y') { ?>
                                    <input name="chkgrow" id="chkgrow" 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-td-top">
                                    <!--<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 ?>ourteam','chr_star','<?= $row['int_glcode'] ?>');">-->
                                </td>
                            <?php } ?>
                            <td width="20%" align="left" valign="middle" class="grid-td-top">
                                <?php
                                if ($paramMain['Edit'] == 'Y') {
                                    ?>
                                    <a href="<?= $preObj->urlwithpara; ?>&amp;action=edit&amp;eid=<?php echo $row['int_glcode']; ?>">
                                        <span><?php echo htmlspecialchars_decode($row['var_name']); ?></span>
                                    </a>
                                    <?php
                                } else {
                                    echo $row['var_name'];
                                }
                                ?>
                            </td>
                            <td width="15%" align="left" valign="middle" class="grid-td-top"> <?= htmlspecialchars_decode($row["var_nationality"]) ?></td>
                            <td width="15%" align="left" valign="middle" class="grid-td-top">
                                <?php
                                if ($row['var_email'] != '') {
                                    echo htmlspecialchars_decode($row['var_email']);
                                } else {
                                    echo 'N/A';
                                }
                                ?></td>
                            <td width="10%" align="center" valign="middle" class="grid-td-top">
                                <?php
                                $imagename = $row['var_image'];
                                $imagepath = '../upimages/ourteam/images/thumb_';
                                $image = $imagepath . "" . $imagename;
//                                        echo $image;
                                if ($imagename != "") {
                                    ?>
                                    <a onClick="return hs.expand(this);" href="<?php echo $image; ?>"><img border="0" src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>/photo-gallery-icon.png" title="<?= $row['var_image']; ?>"></a>
                                    <?php
                                } else {
                                    echo 'N/A';
                                }
                                ?>
                            </td>
                            <td width="10%" align="center" valign="middle" class="grid-td-top">
                                <a href="index.php?module=brand" onClick="return hs.htmlExpand(this,{headingText:'Other Information'})">
                                    <span onclick="javascript:return updateread('<?= $row['int_glcode']; ?>')">View</span></a>
                                <div class="highslide-maincontent">
                                    <table align="center" width="98%">
                                        <tbody>
                                            <tr>
                                                <td style="width:25%">
                                                    Specialize in
                                                </td>
                                                <td>
                                                    :
                                                </td>
                                                <td>
                                                    <?= $row["var_specialize"] ?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width:25%">
                                                    Expertise in
                                                </td>
                                                <td>
                                                    :
                                                </td>
                                                <td>
                                                    <?= $row["var_expertise"] ?>
                                                </td>
                                            </tr>
                                            <?php
                                            if ($row["var_phone"] != '') {
                                                ?>
                                                <tr>
                                                    <td style="width:25%">
                                                        Phone
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                        <?= $row["var_phone"] ?>
                                                    </td>
                                                </tr>
                                            <? } ?>
                                            <tr>
                                                <td style="width:40%">
                                                    Years Experience
                                                </td>
                                                <td>
                                                    :
                                                </td>
                                                <td>
                                                    <?= $row["var_experience"] ?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width:25%">
                                                    Trained Studied at
                                                </td>
                                                <td>
                                                    :
                                                </td>
                                                <td>
                                                    <?= $row["var_study"] ?>
                                                </td>
                                            </tr>
                                            <?php
                                            if ($row["var_history"] != '') {
                                                ?>
                                                <tr>
                                                    <td style="width:25%">
                                                        History
                                                    </td>
                                                    <td>
                                                        :
                                                    </td>
                                                    <td>
                                                        <?= $row["var_history"] ?>
                                                    </td>
                                                </tr>
                                            <? } ?>
                                            <tr>
                                                <td style="width:25%">
                                                    Been Cayman since
                                                </td>
                                                <td>
                                                    :
                                                </td>
                                                <td>
                                                    <?= $row["var_cayman_since"] ?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width:25%">
                                                    Been Eclipze since
                                                </td>
                                                <td>
                                                    :
                                                </td>
                                                <td>
                                                    <?= $row["var_eclipze_since"] ?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width:25%">
                                                    Objective
                                                </td>
                                                <td>
                                                    :
                                                </td>
                                                <td>
                                                    <?= $row["var_objective"] ?>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>                         
                            </td>
                            <td width="7%" align="center" valign="middle" class="grid-td-top">
                                <?php
                                echo $row['int_hits'];
                                ?>
                            </td>
                            <?php if ($configObj->glSessionObj->value('admin_id') == '1' || DISPLAY_DISPORDER_FLAG == 'Y') { ?>
                            <?php } ?>
                            <td width="10%" align="center" valign="middle" class="grid-td-top" style="padding-left:30px; ">
                                <table cellspacing="0" cellpadding="0" border="0">
                                    <tbody><tr>
                                            <td width="41%" nowrap="" colspan="2">
                                                <input type="text" class="order" name="displayorder<?= $rowcount ?>" id="displayorder<?= $rowcount ?>"  onkeypress="return KeycheckOnlyNumeric(event);" value="<?= $row['int_displayorder'] ?>" maxlength="3" />
                                                <input type="hidden" name="hdndisplayorder<?= $rowcount ?>" id="hdndisplayorder<?= $rowcount ?>" value="<?= $row['int_displayorder'] ?>" />
                                                <input type="hidden" name="hdnintglcode<?= $rowcount ?>" id="hdnintglcode<?= $rowcount ?>"  value="<?= $row['int_glcode'] ?>" />
                                            </td>         
                                    </tbody></table>
                            </td>
                            <td width="10%" align="center" valign="middle" class="grid-td-top" >
                                <?php if ($paramMain['Publish'] == 'Y') { ?>
                                    <a href="javascript:;">
                                        <img id="tick-<?= $row['int_glcode'] ?>" height="16" width="16" alt="<?= $title ?>" title="<?= $title ?>" src="<?= GLOBAL_ADMIN_IMAGES_PATH ?><?= $tickimg ?>" style="vertical-align:middle;cursor:pointer;" onclick="UpdatePublish_modulewise('ecl_ourteam','chr_publish','<?= $row['int_glcode'] ?>','','ourteam');">
                                    </a>
                                <?php } else { ?>
                                    <img id="tick-<?= $row['int_glcode'] ?>" height="16" width="16" alt="<?= $title ?>"  src="<?= GLOBAL_ADMIN_IMAGES_PATH ?><?= $tickimg ?>" style="vertical-align:middle;" >
                                <?php } ?>
                            </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>
                    <?
                }
                ?>
                <input type="hidden" name="ptrecords" id="ptrecords" value="<?php echo $rowcount ?>">
            </table>
        </div>
    </div>
    <div class="clear"></div>
    <?php echo $pagingBottom; ?>
    <?php 
    if($numofrows > 0) {
    if ($paramMain['Delete'] == 'Y') { ?>
        <div class="spacer5"></div>
        <div class="add-new-user-button" style="width:90px; float: left;"  <?php echo $paramMain['Delete'] ?>>      
            <a href="javascript:;" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image47','','<?php echo GLOBAL_ADMIN_IMAGES_PATH ?>delete-button-hover.jpg',0)">
                <img src="<?php echo 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 } }?>
</div>