

<form id="frmshareoption" name="frmshareoption" enctype="multipart/form-data">
    <input type="hidden" id="action" name="action" value="sharedata">
    <input type="hidden" id="h_save" name="h_save" value="T">
    <input type="hidden" id="eid" name="eid" value="<?= $_REQUEST['eid'] ?>">
    <input type="hidden" id="albumid" name="albumid" value="<?= $_REQUEST['albumid'] ?>">
    <div class="grid-list-inner-table-text">
        <table>
            <tr>
                <td align="left" valign="top" class="add-new-user-text">Title: <span>(required)</span></td><td><input type="text" class="add-new-user-textarea"  name="var_title" id="var_title"  style="width: 346px;" value="<?= $photogallerydata['varphotocaption'] ?>" /></td>
            </tr>
            
            <tr>
                <td align="left" valign="top" class="add-new-user-text">Description: <span>(required)</span></td><td><textarea id="var_short_description" class="textarea2" maxlength="500" style="width:350px;" name="var_short_description" ><?= $photogallerydata['varphotocaption'] ?></textarea></td>
            </tr>
            
            <tr>
                <td valign="top">
                    <table >
                        <tr>
                            <td colspan="3">
                                <img id="facebookimage" class="social-icon-box" src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>/facebook-icon.jpg">
                            </td>
                        </tr>
                        <?php
                        while ($row = $configObj->glDbObj->fetch_array($result)) {
                            ?>
                            <tr>
                                <td>
                                    <?php
                                    //echo $row['int_glcode'];
                                    if (count(explode(",", $_REQUEST['eid'])) == 1) {
                                        $display_output = "";
                                        $logresult = $photogalleryObj->getlogdetail($row['int_glcode'], $_REQUEST['eid']);
                                        if ($configObj->glDbObj->num_rows($logresult) > 0) {
                                            while ($logrow = $configObj->glDbObj->fetch_array($logresult)) {
                                                //print_r($logrow);
                                                $display_output.=$logrow['dt_createdate'] . "<br/>";
                                            }
                                        }

                                        if (!empty($display_output)) {
                                            ?>


                                            <span border="0" style="cursor: pointer" onmouseout="hidediv('dvhlpvarwebsite<?= $rowcount ?>');" onmouseover="showDiv(event,'dvhlpvarwebsite<?= $rowcount ?>')" alt="not delete" id="<?php echo $row['int_glcode'] ?>">
                                                <img border="0" src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>/tick.png" width="16" height="16">
                                            </span>
                                            <div style="z-index: 99999; position: absolute; background-color: rgb(213, 236, 250);padding: 10px; color: rgb(11, 51, 106); border: 2px solid rgb(149, 208, 242); font-family: Tahoma,Arial,Verdana; font-size: 13px; font-weight: bold; display: none;" id="dvhlpvarwebsite<?= $rowcount ?>">
                                                <?= $display_output ?>
                                            </div>
                                            <?
                                        }
                                    }
                                    ?>

                                </td>
                                <td><input type="checkbox" id="fb-<?= $row['int_glcode'] ?>" name="fb[]" value="<?= $row['int_glcode'] ?>"/></td>
                                <td><?= $row['var_pagename'] ?></td>

                            </tr>
                            <?php
                        }
                        ?>





                    </table>

                </td>
                <td valign="top">
                    <table>
                        <tr>
                            <td colspan="3">
                                <img id="twitter" class="social-icon-box" src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>/twitter-icon.png">
                            </td>
                        </tr>
                        <?php
                        while ($row = $configObj->glDbObj->fetch_array($twitterresult)) {
                            ?>
                            <tr>
                                <td>
                                    <?php
                                    //echo $row['int_glcode'];
                                    //echo explode(",", $_REQUEST['eid']);
                                    if (count(explode(",", $_REQUEST['eid'])) == 1) {
                                        $display_output = "";
                                        //echo $newsObj->getlogdetail($row['int_glcode'], $_REQUEST['eid'], "T");
                                        $logresult = $photogalleryObj->getlogdetail($row['int_glcode'], $_REQUEST['eid'], "T");
                                        if ($configObj->glDbObj->num_rows($logresult) > 0) {
                                            while ($logrow = $configObj->glDbObj->fetch_array($logresult)) {

                                                $display_output.=$logrow['dt_createdate'] . "<br/>";
                                            }
                                        }

                                        if (!empty($display_output)) {
                                            ?>


                                            <span border="0" style="cursor: pointer" onmouseout="hidediv('dvhlpvarwebsite<?= $rowcount ?>');" onmouseover="showDiv(event,'dvhlpvarwebsite<?= $rowcount ?>')" alt="not delete" id="<?php echo $row['int_glcode'] ?>">
                                                <img border="0" src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>/tick.png" width="16" height="16">
                                            </span>
                                            <div style="z-index: 99999; position: absolute; background-color: rgb(213, 236, 250);padding: 10px; color: rgb(11, 51, 106); border: 2px solid rgb(149, 208, 242); font-family: Tahoma,Arial,Verdana; font-size: 13px; font-weight: bold; display: none;" id="dvhlpvarwebsite<?= $rowcount ?>">
                                                <?= $display_output ?>
                                            </div>
                                            <?
                                        }
                                    }
                                    ?>

                                </td>
                                <td><input type="checkbox" id="tw-<?= $row['int_glcode'] ?>" name="tw[]" value="<?= $row['int_glcode'] ?>"/></td>
                                <td><?= $row['var_accountname'] ?></td>

                            </tr>
                            <?php
                        }
                        ?>    
                    </table>
                </td>
            </tr>
        </table>
    </div>

</form>