예제 #1
0
function center_panel(){
	
	$users=new usersMenus();
	$tpl=new templates();
	$u=new user($_SESSION["uid"]);
	$mydn=base64_encode($u->dn);
	$info_right[]="	<table style='width:98%' class=form>
	<tr>
		<td valign='top' width=1%><img src='img/webservices-128.png'></td>
		<td valign='top'><H3 style='font-weight:bold'>{myWebServices}</H3>
			<ul>
			<li><a href=\"javascript:blur()\" 
				OnClick=\"javascript:Loadjs('miniadm.www.services.php');\" 
				style='font-size:13px;font-weight:normal'>{myWebServices_text}</a>
			</li>
			</ul>	
			
		
		</td>
	</tr>
	</table>";
	
	$info_left[]="	<table style='width:98%' class=form>
	<tr>
		<td valign='top' width=1%><img src='img/identity-128.png'></td>
		<td valign='top'><H3 style='font-weight:bold'>{myaccount}</H3>
			<ul>
			<li><a href=\"javascript:blur()\" 
				OnClick=\"javascript:LoadAjax('BodyContent','domains.edit.user.php?userid={$_SESSION["uid"]}&ajaxmode=yes&dn=$mydn');\" 
				style='font-size:13px;font-weight:normal'>{myaccount_text}</a>
			</li>
			</ul>	
			
		
		</td>
	</tr>
	</table>";	
	
	if($users->AllowAddUsers){
		$info_left[]=info_organization();
	}
	if($users->AllowChangeDomains){
		$info_right[]=info_messaging();
	}
	
	
	
	
	//www-128.png
	
	$html="
	<table style='width:100%'>
	<tr>
		<td valign='top' width=50%>".@implode("<br>",$info_left)."</td>
		<td valign='top' width=50%>".@implode("<br>",$info_right)."</td>
	</tr>
	</table>
	<script>
	LoadAjax('tool-map','miniadm.toolbox.php?script=center-panel');
	</script>
	
	";
	echo $tpl->_ENGINE_parse_body($html);
}
예제 #2
0
function right()
{
    if (is_admin()) {
        tabs_graphs();
        return;
    }
    if (!$GLOBALS["VERBOSE"]) {
        if (isset($_SESSION[__FILE__][__FUNCTION__])) {
            echo $_SESSION[__FILE__][__FUNCTION__];
            return;
        }
    }
    $page = CurrentPageName();
    $users = new usersMenus();
    $tpl = new templates();
    $u = new user($_SESSION["uid"]);
    $mydn = base64_encode($u->dn);
    $p1 = Paragraphe32("myaccount", "myaccount_text", "MyHref('miniadm.profile.php')", "identity-32.png");
    $p2 = Paragraphe32("logoff", "logoff_text", "MyHref('miniadm.logoff.php')", "shutdown-computer-32.png");
    if ($users->AsOrgAdmin) {
        $tt[] = SIMPLE_PARAGRAPHE_BLUE_ARROWTR("new_member", "new_member_explain_in_ou", "javascript:Loadjs('create-user.php')", "plus-24.png");
    }
    $tt[] = SIMPLE_PARAGRAPHE_BLUE_ARROWTR("myaccount", "myaccount_text", "miniadm.profile.php");
    $tt[] = SIMPLE_PARAGRAPHE_BLUE_ARROWTR("logoff", "logoff_text", "miniadm.logoff.php", "shutdown-computer-24.png");
    $html = "\n\t<H1>{what_to_do}</H1>\n\t<table style='width:100%'>\n\t" . @implode("", $tt) . "\n\t</table>\n\t<script>LoadAjax('left-content-id','{$page}?left-content-id=yes');</script>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
    return;
    $info_right[] = "\t\n\t<table style='width:98%' class=form>\n\t<tr>\n\t\t<td valign='top' width=1%><img src='img/webservices-128.png'></td>\n\t\t<td valign='top'><H3 style='font-weight:bold'>{myWebServices}</H3>\n\t\t\t<ul>\n\t\t\t<li><a href=\"javascript:blur()\" \n\t\t\t\tOnClick=\"javascript:Loadjs('miniadm.www.services.php');\" \n\t\t\t\tstyle='font-size:13px;font-weight:normal'>{myWebServices_text}</a>\n\t\t\t</li>\n\t\t\t</ul>\t\n\t\t\t\n\t\t\n\t\t</td>\n\t</tr>\n\t</table>";
    $info_left[] = "\t<table style='width:98%' class=form>\n\t<tr>\n\t\t<td valign='top' width=1%><img src='img/identity-128.png'></td>\n\t\t<td valign='top'><H3 style='font-weight:bold'>{myaccount}</H3>\n\t\t\t<ul>\n\t\t\t<li><a href=\"javascript:blur()\" \n\t\t\t\tOnClick=\"javascript:LoadAjax('BodyContent','domains.edit.user.php?userid={$_SESSION["uid"]}&ajaxmode=yes&dn={$mydn}');\" \n\t\t\t\tstyle='font-size:13px;font-weight:normal'>{myaccount_text}</a>\n\t\t\t</li>\n\t\t\t</ul>\t\n\t\t\t\n\t\t\n\t\t</td>\n\t</tr>\n\t</table>";
    if ($users->AllowAddUsers) {
        $info_left[] = info_organization();
    }
    if ($users->AllowChangeDomains) {
        $info_right[] = info_messaging();
    }
    if ($users->AsDansGuardianAdministrator or $users->AsWebFilterRepository) {
        $info_left[] = info_Dansguardian();
    }
    //www-128.png
    $html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=50%>" . @implode("<br>", $info_left) . "</td>\n\t\t<td valign='top' width=50%>" . @implode("<br>", $info_right) . "</td>\n\t</tr>\n\t</table>\n\t<script>\n\tLoadAjax('tool-map','miniadm.toolbox.php?script=center-panel');\n\t\n\t</script>\n\t\n\t";
    $html = $tpl->_ENGINE_parse_body($html);
    $_SESSION[__FILE__][__FUNCTION__] = $html;
    echo $html;
}