<div class="web-booking-main" id="gridbody">
    <?php if ($_REQUEST['action'] != '') $action = ucwords($_REQUEST['action']); ?>
    <div class="breadcrumbs"><a href="index.php">&nbsp;&nbsp;Home </a>&nbsp;>&nbsp; <span class="current">Manage Contact Us Page Details  </span>  </div>
    <div class="clear"></div>
    <?= $messagebox; ?>
    <?php echo $headerpanel; ?>
    <br class="clear" />
    <div class="grid-list-subtitle-bg" style="margin-top:10px;margin-right:3px;">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="2%" align="left" valign="top" class="grid-td-top">&nbsp;</td>
                <td width="15%" align="left" valign="top" class="grid-td-top">Title</td>
                <td width="15%" align="left" valign="top" class="grid-td-top">Telephone</td>
                <td width="15%" align="left" valign="top" class="grid-td-top">Fax</td>
                <td width="15%" align="left" valign="top" class="grid-td-top">Email</td>
                <td width="5%" align="center" valign="top" class="grid-td-top">Edit</td>
            </tr>
        </table>
    </div>
    <div class="information-white-bg" id="dvpersonalinformation" style="margin-right:3px;" >
        <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)) {   // print_r($row);
                        $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_status'] == 'C') {
                            $type = 'Contact Us';
                        }
                        ?>     
                        <tr id="gtr-<?= $row['int_glcode'] ?>"  style="background-color: transparent;"  class="<?= $clsname ?>" onmouseover="this.style.backgroundColor='#f6f6f6'" onmouseout="this.style.backgroundColor='transparent'" >

                            <td width="2%" align="left" valign="top" class="grid-td-top">&nbsp;</td>
                            <td width="15%" align="left" valign="middle" class="grid-td-top"> 
                                <a href="<?= $contactuspageObj->urlwithpara; ?>&amp;action=edit&amp;eid=<?php echo $row['int_glcode']; ?>">
                                    <span><?php echo $row['var_title']; ?></span></a>
                            </td>
                            <?php if ($row['var_phone'] != '') { ?>
                                <td width="15%" align="left" valign="middle" class="grid-td-top"> <?= $row['var_phone']; ?></td>
                                
                            <? } else { ?>
                                <td width="10%" align="left" valign="middle" class="grid-td-top">---</td>
                            <?php } ?>
                            <?php if ($row['var_fax'] != '') { ?>
                                <td width="15%" align="left" valign="middle" class="grid-td-top"> <?= $row['var_fax']; ?></td>
                                
                            <? } else { ?>
                                <td width="10%" align="left" valign="middle" class="grid-td-top">---</td>
                            <?php } ?>
                            <td width="15%" align="left" valign="middle" class="grid-td-top"> <?= $row['var_email']; ?></td>

                            <td width="5%" align="center" valign="middle" class="grid-td-top">
                                <a href="index.php?module=contactuspage&action=edit&eid=<?= $row['int_glcode'] ?>" >
                                    <img src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>edit.png" />
                                </a>
                            </td>

                        </tr>
                        <?php
                        $rowcount++;
                    }
                } else {
                    ?>
                    <tr style="background-color: transparent;"  class="<?= $clsname ?>" onmouseover="this.style.backgroundColor='#f6f6f6'" onmouseout="this.style.backgroundColor='transparent'">
                        <td height="25" align="center" valign="middle" colspan="6" class="form_titles">No records are available.</td>
                    </tr>
                    <?
                }
                ?>
                <input type="hidden" name="ptrecords" id="ptrecords" value="<?= $rowcount ?>">
            </table>
        </div>
    </div>
    <div class="clear"></div>
</div>