Exemple #1
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.main_cf.inc');
	include_once('ressources/class.mysql.inc');
	
	
	

	if(isset($_GET["ShowOrganizations"])){echo ShowOrganizations();exit;}
	if(isset($_GET["ajaxmenu"])){echo "<div id='orgs'>".ShowOrganizations()."</div>";exit;}
	if(isset($_GET["butadm"])){echo butadm();exit;}
	if(isset($_GET["LoadOrgPopup"])){echo LoadOrgPopup();exit;}
	if(isset($_GET["js"])){js();exit;}
	if(isset($_GET["js-pop"])){popup();exit;}
	if(isset($_GET["countdeusers"])){COUNT_DE_USERS();exit;}
	
function js(){
	if(GET_CACHED(__FILE__,__FUNCTION__,"js")){return;}
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{organizations}");
	$page=CurrentPageName();
	$html="
	var timeout=0;
	
	function LoadOrg(){
			
		$('#BodyContent').load('$page?js-pop=yes', function() {Orgfillpage();});
		//LoadWinORG('760','$page?js-pop=yes','$title');
		//setTimeout('Orgfillpage()',900);
Exemple #2
0
include_once 'ressources/class.mysql.inc';
include_once 'ressources/class.active.directory.inc';
if (isset($_GET["ShowOrganizations"])) {
    ShowOrganizations();
    exit;
}
if (isset($_GET["ajaxmenu"])) {
    echo "<div id='orgs'>" . ShowOrganizations() . "</div>";
    exit;
}
if (isset($_GET["butadm"])) {
    echo butadm();
    exit;
}
if (isset($_GET["LoadOrgPopup"])) {
    echo LoadOrgPopup();
    exit;
}
if (isset($_GET["js"])) {
    js();
    exit;
}
if (isset($_GET["js-pop"])) {
    popup();
    exit;
}
if (isset($_GET["countdeusers"])) {
    COUNT_DE_USERS();
    exit;
}
if (isset($_GET["inside-tab"])) {