<?php
//include_once ('global-header.php');
 $sql = "select varadmincomment from ".DB_PREFIX."comments where int_glcode = ".$_REQUEST['id'];
$rs = mysql_query($sql);
$row = mysql_fetch_array($rs);


?>
<form name="frmadmincomment" id="frmadmincomment" action="" method="post">
       
<div class="add-new-form-bg" style="padding:10px; background-color: #FFFFFF;">
    <div class="pop-up-bg">
        <table width="100%" border="0" cellspacing="3" cellpadding="3">
            <tr>
                <td width="100%" class="dragme">
                    <a href="javascript:;">
                        <img src="<?php echo GLOBAL_ADMIN_IMAGES_PATH; ?>close.png" onclick="return styledPopupClose_CM();" alt="close" width="21" height="23" hspace="3" vspace="3" border="0" align="right" />
                    </a>
                    <span class="dragme" style="color:#1876AA;font-family:Arial,Helvetica,sans-serif;font-size:16px;font-weight:bold;">View / Edit Comment</span><br />
                    <br />
                </td>
            </tr>
        </table>
        <table width="87%" border="0" align="center" cellpadding="3" cellspacing="3">
            <tr>
                <td align="left" valign="top"><strong>Comment :</strong></td>
            </tr>
            <tr>
                <td colspan="3" align="left" valign="top">
                    <textarea id="varadmincomment<?=$_REQUEST['id']?>" name="varadmincomment<?=$_REQUEST['id']?>" class="pop-up-textarea"  style="width:300px; height:200px;"><?=$row['varadmincomment']?></textarea>
                </td>
            </tr>
            <tr>
                <td align="center" valign="top">
                    <input type="button" name="savebtn" id="savebtn" value="Save" class="blue-button" onclick="saveadmincomment('varadmincomment<?=$_REQUEST['id']?>','<?=$_REQUEST['id']?>')" />
                    
                </td>
            </tr>
        </table>    
    </div>
</div>
</form>