<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" />
<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>
<div class="web-booking-main">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <?php if ($configObj->AllmoduleAccess['pages']['View'] == 'Y' || $configObj->glSessionObj->value('admin_id') == '1') { ?>
                <td width="49%" align="left" valign="top">
                    <div class="add-new-user-subtitle-bg" style="margin-top:0px;" onclick="javascript:expandcollapsepanel('dvreservation');" >
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="91%">Page Hits </td>
                                <td width="4%"><a href="#"></a></td>
                                <td width="5%"><a href="#"><img src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>/down-arrow.png" alt="Down Arrow" width="11" height="5" hspace="3" border="0" /></a></td>
                            </tr>
                        </table>
                    </div>
                    <div class="information-white-bg" id="dvreservation"  style="height:<?= $height ?>">
                        <div class="clear"></div>
                        <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr onmouseover="this.style.backgroundColor='#f6f6f6'" onmouseout="this.style.backgroundColor='#f6f6f6'" style="background-color: rgb(246, 246, 246); ">
                                <td width="60%" align="left" valign="top" class="dashboard-bg" ><strong>Name</strong></td>
                                <td width="40%" align="left" valign="top" class="dashboard-bg" ><strong>Page Hits</strong></td>
                            </tr>
                            <?php
                            if ($pagehitsdata > 0) {

                                while ($row = $configObj->glDbObj->fetch_array($pagehitsdata)) {
                                    ?>
                                    <tr onMouseOver="this.style.backgroundColor='#f6f6f6'" onMouseOut="this.style.backgroundColor='transparent'">
                                        <td width="60%" align="left" valign="top" class="dashboard-bg" ><?php echo $row['var_pagename']; ?></td>
                                        <td width="40%" align="left" valign="top" class="dashboard-bg" ><?php echo $row['int_pagehits']; ?></td>
                                    </tr>
                                <?php } ?>

                                <tr>
                                    <td valign="top" align="right" class="dashboard-link" colspan="3"><a href="index.php?module=pages">View More</a></td>
                                </tr>
                            <?php } else { ?>
                                <tr onMouseOver="this.style.backgroundColor='#f6f6f6'" onMouseOut="this.style.backgroundColor='transparent'">
                                    <td colspan="2" width="100%" align="center" valign="top" class="dashboard-bg" >
                                        Sorry! No records are available.
                                         <!--No new contact us leads, Please <a target="_blank" href="http://www.netclues.ky/seo-search-engine-optimization-cayman-islands.php" style="font-size:13px;">Click Here </a> to find out how to get more contact us leads.-->
                                    </td>
                                </tr>
                            <?php } ?>
                        </table>
                    </div>
                </td>
            <?php } else { ?>
                <td width="49%" align="center" valign="top" >
                    Sorry! You have not access right of Page Hits.
                </td>
            <?php } ?>  
            <td width="1%" align="left" valign="top">&nbsp;</td>

            <?php if ($configObj->AllmoduleAccess['newsletter']['View'] == 'Y' || $configObj->glSessionObj->value('admin_id') == '1') { ?>
               <td width="49%" align="left" valign="top" >
                    <div class="add-new-user-subtitle-bg" style="margin:0;" onclick="javascript:expandcollapsepanel('dvlatestnews1');" >
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="91%">Newsletter Leads</td>
                                <td width="4%"><a href="#"></a></td>
                                <td width="5%"><a href="#"><img src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>/down-arrow.png" alt="Down Arrow" width="11" height="5" hspace="3" border="0" /></a></td>
                            </tr>
                        </table>
                    </div>
                    <div class="information-white-bg" id="dvlatestnews1" style="height:<?= $height ?>">
                        <div class="clear"></div>
                        <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr onmouseover="this.style.backgroundColor='#f6f6f6'" onmouseout="this.style.backgroundColor='#f6f6f6'" style="background-color: rgb(246, 246, 246); ">
                                <td width="70%" align="left" valign="top" class="dashboard-bg" ><strong>Email ID</strong></td>
                                <td width="30%" align="left" valign="top" class="dashboard-bg" ><strong>Date</strong></td>
                            </tr>
                            <?php
                            if ($count_newzletterdata > 0) {
                                while ($row = $configObj->glDbObj->fetch_array($newzletterdata)) {
                                    
                                     if ($configObj->glSessionObj->value('admin_id') == '1') {
                                     $clsname = ($row['chr_read'] == 'N') ? "grid-list-inner-table-text-active" : "";
                                    }
                                    
                                    if ($row['chr_read'] == 'N') {
                                    $style = 'display:inline;';
                                } else {
                                    $style = 'display:none;';
                                }
                                      $starClass = "<span id='star1-contactusmsg&view=newslatter" . $row['int_glcode'] . "' style='" . $style . "'><img width='10px' id='imgStar-" . $row['int_glcode'] . "' style='padding-bottom:5px;' height='10px' title='New Inquiry Added'  src='html/images/star_red.png'></span>";
                      
                                    ?>
                                    <tr onMouseOver="this.style.backgroundColor='#f6f6f6'" onMouseOut="this.style.backgroundColor='transparent'">
                                        <td width="70%" align="left" valign="top" class="dashboard-bg" ><?php echo $row['var_email']; ?><?php // echo $starClass; ?></td>
                                        <td width="30%" align="left" valign="top" class="dashboard-bg" ><?php echo $row['Date']; ?></td>
                                       
                                    </tr>
        <?php } ?> 
                                <tr>
                                    <td valign="top" align="right" class="dashboard-link" colspan="3"><a href="index.php?module=newsletter" >View More</a></td>
                                </tr>
    <?php } else { ?>
                                <tr onMouseOver="this.style.backgroundColor='#f6f6f6'" onMouseOut="this.style.backgroundColor='transparent'">
                                    <td valign="top" align="center" widht="100%" class="dashboard-link" colspan="3">
                                        No new Newsletter Leads, Please <a target="_blank" href="http://www.netclues.ky/seo-search-engine-optimization-cayman-islands.php" style="font-size:13px;">Click Here </a> to find out how to get more Newsletter Leads.
                                    </td>
                                </tr>
    <?php } ?>

                        </table>
                        <div class="clear">
                        </div>
                    </div>
                </td>
<?php } else { ?>
                <td width="49%" align="center" valign="top" >                
                    Sorry! You have not access right of Leads.
                </td>
            
            <?php } ?> 
            <td width="1%" align="left" valign="top">&nbsp;</td>


          
        </tr>
    </table> 
    <br>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            

            <?php if ($configObj->AllmoduleAccess['appointment']['View'] == 'Y' || $configObj->glSessionObj->value('admin_id') == '1') { ?>
               <td width="49%" align="left" valign="top" >
                    <div class="add-new-user-subtitle-bg" style="margin:0;" onclick="javascript:expandcollapsepanel('dvlatestnews13');" >
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="91%">Book an Appointment Leads</td>
                                <td width="4%"><a href="#"></a></td>
                                <td width="5%"><a href="#"><img src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>/down-arrow.png" alt="Down Arrow" width="11" height="5" hspace="3" border="0" /></a></td>
                            </tr>
                        </table>
                    </div>
                    <div class="information-white-bg" id="dvlatestnews13" style="height:<?= $height ?>">
                        <div class="clear"></div>
                        <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr onmouseover="this.style.backgroundColor='#f6f6f6'" onmouseout="this.style.backgroundColor='#f6f6f6'" style="background-color: rgb(246, 246, 246); ">
                                <td width="10%" align="left" valign="top" class="dashboard-bg" ><strong>Name</strong></td>
                                <td width="20%" align="left" valign="top" class="dashboard-bg" ><strong>Email ID</strong></td>
                                  <td width="10%" align="left" valign="top" class="dashboard-bg" ><strong>Phone#</strong></td>
                                   <td width="10%" align="left" valign="top" class="dashboard-bg" ><strong>Date & Time of Appointment</strong></td>
                                <td width="10%" align="left" valign="top" class="dashboard-bg" ><strong>Services</strong></td>
                                 <td width="10%" align="left" valign="top" class="dashboard-bg" ><strong>Description</strong></td>
                                 <td width="10%" align="left" valign="top" class="dashboard-bg" ><strong>Date/Time</strong></td>
                            </tr>
                            <?php
                            if ($countbookdata > 0) {
                                while ($row = $configObj->glDbObj->fetch_array($bookdata)) {
                                    
                                     if ($configObj->glSessionObj->value('admin_id') == '1') {
                                     $clsname = ($row['chr_read'] == 'N') ? "grid-list-inner-table-text-active" : "";
                                    }
                                    
                                    if ($row['chr_read'] == 'N') {
                                    $style = 'display:inline;';
                                } else {
                                    $style = 'display:none;';
                                }
                                      $starClass = "<span id='star1-contactusmsg&view=newslatter" . $row['int_glcode'] . "' style='" . $style . "'><img width='10px' id='imgStar-" . $row['int_glcode'] . "' style='padding-bottom:5px;' height='10px' title='New Inquiry Added'  src='html/images/star_red.png'></span>";
                      
                                    ?>
                                    <tr onMouseOver="this.style.backgroundColor='#f6f6f6'" onMouseOut="this.style.backgroundColor='transparent'">
                                       <td width="10%" align="left" valign="top" class="dashboard-bg" ><?php if($row['var_name'] != ''){?><?php echo $row['var_name']; ?><?php }else{ echo "N/A";} ?></td>
                                       <td width="10%" align="left" valign="top" class="dashboard-bg" ><?php if($row['var_email'] != ''){?><?php echo $row['var_email']; ?><?php }else { echo "N/A";}?></td>
                                       <td width="10%" align="left" valign="top" class="dashboard-bg" ><?php if($row['var_email'] != ''){?><?php echo $row['var_phone']; ?><?php } else {echo "N/A"; } ?></td>
                                        <td width="10%" align="left" valign="top" class="dashboard-bg" >
                                               <?
                                $date_appointment = DEFAULT_DATEFORMAT;

                                if ($date_appointment == "%d/%m/%Y") {
                                    $date_appointment1 = "d/m/Y H:i:s";
                                }
                                if ($date_appointment == "%m/%d/%Y") {
                                    $date_appointment1 = "m/d/Y H:i:s";
                                }
                                if ($date_appointment == "%Y/%m/%d") {
                                    $date_appointment1 = "Y/m/d H:i:s";
                                }
                                if ($date_appointment == "%Y/%d/%m") {
                                    $date_appointment1 = "Y/d/m H:i:s";
                                }
//                                  $date = date($date_news1, strtotime($row['dt_createdate'])); 
                           $date1 = date($date_appointment1, strtotime($row['dt_appointment'])); 
                           
                                ?>
                                    <?php echo $date1; ?><?php // echo $starClass; ?></td>
                                        <td width="10%" align="left" valign="top" class="dashboard-bg" ><?php if($row['var_service'] != ''){?><?php echo $row['var_service']; ?><?php } else {echo "N/A";}?></td>
                                     <td width="10%" align="left" valign="top" class="dashboard-bg">
 <?php if($row['var_description'] != ''){?>
                                <a href="index.php?module=appointment" onClick="return hs.htmlExpand(this,{headingText:'Description'})">
                                    <span onclick="javascript:return updateread('<?= $row['int_glcode']; ?>')">View</span></a>

                                <div class="highslide-maincontent">
                                    <table align="center" width="10%">
                                        <tbody> 
                                            <tr>
                                                <td>
                                                    <?= nl2br($row["var_description"]); ?>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>    
                                <?php } else { echo "N/A";}?>
                            </td>   
                            <td width="15%" align="left" valign="top" class="dashboard-bg" >

                                <?
                                $date_news = DEFAULT_DATEFORMAT;

                                if ($date_news == "%d/%m/%Y") {
                                    $date_news1 = "d/m/Y H:i:s";
                                }
                                if ($date_news == "%m/%d/%Y") {
                                    $date_news1 = "m/d/Y H:i:s";
                                }
                                if ($date_news == "%Y/%m/%d") {
                                    $date_news1 = "Y/m/d H:i:s";
                                }
                                if ($date_news == "%Y/%d/%m") {
                                    $date_news1 = "Y/d/m H:i:s";
                                }
                           $date = date($date_news1, strtotime($row['dt_createdate'])); 
                                ?>


                                <?php echo $date;  ?>
                            </td>
                                    </tr>
        <?php } ?> 
                                <tr>
                                    <td valign="top" align="right" class="dashboard-link" colspan="7"><a href="index.php?module=appointment" >View More</a></td>
                                </tr>
    <?php } else { ?>
                                <tr onMouseOver="this.style.backgroundColor='#f6f6f6'" onMouseOut="this.style.backgroundColor='transparent'">
                                    <td valign="top" align="center" widht="100%" class="dashboard-link" colspan="7">
                                        No new Appointments Leads, Please <a target="_blank" href="http://www.netclues.ky/seo-search-engine-optimization-cayman-islands.php" style="font-size:13px;">Click Here </a> to find out how to get more Newsletter Leads.
                                    </td>
                                </tr>
    <?php } ?>

                        </table>
                        <div class="clear">
                        </div>
                    </div>
                </td>
<?php } else { ?>
                <td width="49%" align="center" valign="top" >                
                    Sorry! You have not access right of Leads.
                </td>
            
            <?php } ?> 
            <td width="1%" align="left" valign="top">&nbsp;</td>


          
        </tr>
    </table> 
</div>




