<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Content-Type" content="image/gif" />
        <title>Netclues PowerPanel</title>
        <link href="<?= GLOBAL_ADMIN_CSS_PATH ?>style.css" rel="stylesheet" type="text/css" />
        <link href="<?= GLOBAL_ADMIN_CSS_PATH ?>general.css" rel="stylesheet" type="text/css" />
        <link href="<?= GLOBAL_ADMIN_CSS_PATH ?>comment-popup.css" rel="stylesheet" type="text/css" />
        <link rel="shortcut icon" href="<?= GLOBAL_ADMIN_IMAGES_PATH ?>favicon.ico" type="image/x-icon" />
        <link href="<?php echo GLOBAL_ADMIN_CSS_PATH; ?>css/font-awesome-ie7.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/jquery-1.4.4.min.js"></script>
    <!--<script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>popup/popup.js"></script>
    <script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>js/popup/dragme.js"></script>-->
        <script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/jquery-1.8-ui.min.js"></script>
         <!--<script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>js/commonalert.js"></script>-->
        <link rel="stylesheet" href="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/themes/base/jquery.ui.all.css" />
        <link type="text/css" href="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/themes/base/jquery.ui.autocomplete.css" rel="stylesheet" />
        <script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>ajaxfunctions.js"></script>
        <link rel="stylesheet" type="text/css" href="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/themes/base/jquery.ui.tabs.css" />
        <script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/ui/minified/jquery.ui.core.min.js"></script>
        <script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/ui/minified/jquery.ui.widget.min.js"></script>
        <script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/ui/minified/jquery.ui.position.min.js"></script>
        <script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/ui/minified/jquery.ui.autocomplete.min.js"></script>
        <!--<link type="text/css" href="<?php echo GLOBAL_ADMIN_JS_PATH; ?>__jquery/demos.css" rel="stylesheet" />-->
        <!--<script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>jquery/jquery.livequery.js"></script>-->
        <!--av-->
        <!--POPUP-->
        <link rel="stylesheet" type="text/css" href="<?= GLOBAL_ADMIN_CSS_PATH ?>ddlevelsmenu-base.css" />
        
        
        
        <script type="text/javascript" src="<?php echo GLOBAL_ADMIN_JS_PATH; ?>ddlevelsmenu.js"></script>
        <link rel="stylesheet" type="text/css" href="<?= GLOBAL_ADMIN_CSS_PATH ?>ddlevelsmenu-sidebar.css" />
    </head>
    <!--POPUP-->
    <script type="text/javascript">
        //<![CDATA[
        $(document).ready(function(){		
            $('.chat-popup-bg-main .chead').click(function(){
                $('.chat-popup-bg-main .white-bg').toggleClass('disb');
                $('.chat-popup-bg-main .popup-footer').toggleClass('disb');
                $('.coment-bbl').toggleClass('disn');
            });
            $('.coment-bbl').click(function(){
                $('.chat-popup-bg-main .white-bg').toggleClass('disb');
                $('.chat-popup-bg-main .popup-footer').toggleClass('disb');
                $('.coment-bbl').toggleClass('disn');		
            });		
        });
        //]]>
            
        var BASE = '<?php echo SITE_PATH; ?>';
            
    </script>
    <script type="text/javascript">
    
        function postcomment()
        {
            if($('#varcomment').val()=='')
            {
                alert('Please enter comment/suggestion.');
                $('#varcomment').focus();
                return false;
            }
            var postdata = $("#frmcomment").serialize();
            $.ajax({
                type: 'GET',
                url: '<?php echo SITE_PATH; ?>powerpanel/index.php?',
                data: 'module=comments&action=insert_comments&ajax=Y&'+postdata,
                async: false,
                dataType: "html",
                start : ProcessLoader(),
                success: function(data){
                    $('#varcomment').val('');
                    if(trim(data)=='1') {
                        alert('Your comment/suggestion has been sucessfully posted.')
                    }
                    else
                    {
                        alert('Unable to post comment/suggestion, please try again.') 
                    }
                    $('.chat-popup-bg-main .white-bg').toggleClass('disb');
                    $('.chat-popup-bg-main .popup-footer').toggleClass('disb');
                    $('.coment-bbl').toggleClass('disn');	
                    document.getElementById('dimmer').style.width=0;
                    document.getElementById('dimmer').style.height=0;
                    document.getElementById('dimmer').style.visibility="";
                    document.getElementById('dvprocessing').style.display = 'none';
                }
            });
            return false;
        }
    </script>
</head>
<body onload="focus();"> 
    <div id="dvregisterfrm" class="select-freenew"  style="width:373;height:450;display:none;position:absolute;z-index:9999999;"> </div>
    <div class="comment-popup">
        <div class="coment-bbl pdt5">
            <div class="mgl10">
                <h2>Comment</h2>
                <span>Click here to post your Comment</span>
            </div>
        </div>
        <div class="chat-popup-bg w350px">
            <div id="btm-pop" class="chat-popup-bg-main">
                <div class="chead fl"><span class="pdl10"> <span class="coment-ico fl mgr10"></span> Comment</span><a href="#" class="close fr mgt4 mgr2"></a></div>
                <div class="white-bg pdl10 pdt10 pdr10 pdb10">
                    <form name="frmcomment" id="frmcomment" action="" method="post">
                        <input type="hidden" name="varurl" id="varurl" value="<?= $_SERVER['REQUEST_URI'] ?>" />
                        <div class="w330px mauto">
                            <div class="spacer5"></div>
                            <div style="float:left; word-wrap:break-word;width: 325px;">
                                <a href="javascript:;" class="mgl3">http://<?= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ?></a>
                            </div>
                            <div class="spacer5"></div>
                            <div class="text-name fl mgl3 fs13 fwb">Comment or Suggestion: </div>
                            <div class="spacer10"></div>
                            <textarea style="width:275px; height:92px" name="varcomment" id="varcomment" cols=""  class="add-new-user-textarea13 w200px" rows=""></textarea>
                            <div class="spacer10"></div>
                            <div class="fl mgl5"><input name="" type="button" class="post-btn" onclick="javascript: return postcomment();" value="" /></div>
                            <div class="editable-button fr">
                                <a href="<?php echo SITE_PATH; ?>powerpanel/index.php?module=comments">
                                    <span style="margin-top: 0;">Read All Comments</span>
                                </a>
                            </div>
                            <div class="spacer10"></div>
                        </div>
                    </form>
                </div>
                <div class="popup-footer pdr10">
                    <div class="spacer5"></div>
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>
    <div id="dvprocessing" style="display:none;">
        <div class="UpdateProgress123" id="loadertext"> 
            <img src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>powerpanel-loader.gif" />
        </div>
    </div>
    <div id="dimmer" class="dimmer" style="z-index:999999"> </div>
    <div id="page-container">
        <?php echo $configObj->adminHeaderPanel; ?>
        <div class="middle-main">    	
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="1%" align="left" valign="top">&nbsp;</td>
                    <td align="left" valign="top" width="93%" style="padding-bottom:50px;">
                        <?php echo $configObj->adminContentPanel; ?>
                    </td>
                </tr>
                <input type="hidden" name="autosearchurl" id="autosearchurl" value="<?php echo $configObj->AutoSearchUrl ?>"  />
            </table>
        </div>
        <?php echo $configObj->adminFooterPanel; ?>
    </div>
</body>
