예제 #1
0
<!--start of middle section-->
<div class="middle">
	<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 zero-padding">
    	<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12 zero-padding grey">
       	<?php 
print LeftPanel();
?>
        </div>   
		<!--main page content area-->
        <div class="col-lg-10 col-md-10 col-sm-12 col-xs-12 zero-padding">
        	<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 zero-padding dark-yellow-box">
            	<div class="col-lg-5 col-md-5 col-sm-12 col-xs-12 zero-padding text-size">
                <span class="files-number"><img src="<?php 
echo base_url();
?>
images/frontend/no of files.png" /></span>
				<?php 
echo $totalfiles;
?>
 Files
                </div>
                
    <form  name="searchform" id="searchform" action="<?php 
echo base_url();
?>
users/listfiles" method="post">
                <div class="col-lg-7 col-md-7 col-sm-12 col-xs-12 zero-padding">
                	<input type='text' name="searchfile" placeholder='Search...' id='search-text-input' />
                    <div id='button-holder'>
                        <img src='<?php 
echo base_url();
예제 #2
0
<?php

include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.artica.inc';
include_once 'ressources/class.ini.inc';
include_once 'ressources/class.user.inc';
include_once 'ressources/class.dansguardian.inc';
if (isset($_GET["panel-left"])) {
    LeftPanel();
    exit;
}
if (isset($_GET["panel-right"])) {
    RightPanelTabs();
    exit;
}
if (isset($_GET["main-rules"])) {
    main_switch();
    exit;
}
$page = CurrentPageName();
$html = "\n<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=250px>\n\t\t<div id='panel_rules'></div>\n\t\t</td>\n\t\t<td valign='top' width=100%>\n\t\t<div id='panel_icons'></div>\n\t\t</td>\n\t</tr>\n</table>\n<script>\n\tfunction RefreshPanelLeft(){\n\t\tLoadAjax('panel_rules','{$page}?panel-left=yes');\n\t}\n\t\n\tvar X_RefreshRightPanel= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tdocument.getElementById('panel_icons').innerHTML=results;\n\t\tActivateRightPanel();\n\t}\n\t\t\n\tfunction RefreshRightPanel(ID){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('panel-right',ID);\n\t\tdocument.getElementById('panel_icons').innerHTML='<center><img src=img/wait_verybig.gif></center>';\n\t\tXHR.sendAndLoad('{$page}', 'GET',X_RefreshRightPanel);\n\t\t}\t\t\n\n\tfunction ActivateRightPanel(){\n\t\t\t\n\t\t\t\t\$('#main_config_dansguardian_panel').tabs({\n\t\t\t\t    load: function(event, ui) {\n\t\t\t\t        \$('a', ui.panel).click(function() {\n\t\t\t\t            \$(ui.panel).load(this.href);\n\t\t\t\t            return false;\n\t\t\t\t\t        });\n\t\t\t\t\t    }\n\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\$('#main_config_dansguardian_panel').tabs('option', 'fx', { opacity: 'toggle' });\n\t\t\t\t\n\t\n\t}\n\t\n\t\n\t\nRefreshPanelLeft();\nRefreshRightPanel(0);\n</script>\n\n";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
function LoadRules()
{
    $user = new user($_SESSION["uid"]);
    if (isset($_SESSION["DANSGUARDIAN_RULES"])) {
        return $_SESSION["DANSGUARDIAN_RULES"];
    }