当前位置: 首页>>代码示例>>PHP>>正文


PHP clladp::COUNT_DE_USERS方法代码示例

本文整理汇总了PHP中clladp::COUNT_DE_USERS方法的典型用法代码示例。如果您正苦于以下问题:PHP clladp::COUNT_DE_USERS方法的具体用法?PHP clladp::COUNT_DE_USERS怎么用?PHP clladp::COUNT_DE_USERS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在clladp的用法示例。


在下文中一共展示了clladp::COUNT_DE_USERS方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: popup

function popup(){
	
//if(GET_CACHED(__FILE__,__FUNCTION__,__FUNCTION__)){return;}

	$ldap=new clladp();
	$usersnumber=$ldap->COUNT_DE_USERS();
	$ldap->ldap_close();
	$tpl=new templates();
	$users=$tpl->_ENGINE_parse_body("<i>{this_server_store}:&nbsp;<strong>$usersnumber</strong>&nbsp;{users}</i>");

$page=CurrentPageName();	
$html="<div style='background-image:url(/img/home-bg-256.png);background-repeat:no-repeat;background-position:top right'><div style='font-size:18px'>{my_organizations}</div>
<input type='hidden' name='add_new_organisation_text' id='add_new_organisation_text' value='{add_new_organisation_text}'>
<div class=explain>
{about_organization}
<div style='font-size:14px;text-align:right;padding-top:5px;padding-right:40px'><span id='countdeusers'>$users</span></div>
</div>

<div id='orgs' style='width:720px;height:350px;overflow:auto'></div>
</div>
";	

$tpl=new templates();
$html=$tpl->_ENGINE_parse_body($html);
SET_CACHED(__FILE__,__FUNCTION__,__FUNCTION__,$html);
echo $html;
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:27,代码来源:domains.index.php

示例2: popup

function popup()
{
    if (GET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__)) {
        return;
    }
    $ldap = new clladp();
    $usersnumber = $ldap->COUNT_DE_USERS();
    $ldap->ldap_close();
    $tpl = new templates();
    $users = $tpl->_ENGINE_parse_body("<i>{this_server_store}:&nbsp;<strong>{$usersnumber}</strong>&nbsp;{users}</i>");
    $page = CurrentPageName();
    $html = "<H1>{organizations}</H1>\n<input type='hidden' name='add_new_organisation_text' id='add_new_organisation_text' value='{add_new_organisation_text}'>\n<div style='font-size:16px;text-align:left;padding-bottom:5px;border-bottom:1px solid #CCCCCC'>{about_organization}</div>\n<div style='font-size:11px;text-align:right;padding-top:5px;'><span id='countdeusers'>{$users}</span></div>\n<div id='orgs' style='width:720px;height:350px;overflow:auto'></div>\n\n";
    $tpl = new templates();
    $html = $tpl->_ENGINE_parse_body($html);
    SET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__, $html);
    echo $html;
}
开发者ID:brucewu16899,项目名称:artica,代码行数:17,代码来源:domains.index.php

示例3: popup

function popup()
{
    $users = new usersMenus();
    $userClasse = new usersMenus();
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $ERROR_NO_PRIVS = $tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
    $t = time();
    $ldap = new clladp();
    if ($ldap->IsKerbAuth()) {
        popup_activedirectory();
        return;
    }
    if (GET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__)) {
        return;
    }
    $ZarafaField = "{display: '&nbsp;', name : 'Zarafa', width :31, sortable : false, align: 'center'},";
    $online_help = $tpl->_ENGINE_parse_body("{online_help}");
    $EnableWebProxyStatsAppliance = $sock->GET_INFO("EnableWebProxyStatsAppliance");
    if (!is_numeric($EnableWebProxyStatsAppliance)) {
        $EnableWebProxyStatsAppliance = 0;
    }
    if ($EnableWebProxyStatsAppliance == 1) {
        $userClasse->WEBSTATS_APPLIANCE = true;
    }
    if ($userClasse->WEBSTATS_APPLIANCE) {
        $userClasse->SQUID_INSTALLED = true;
    }
    if ($users->ZARAFA_INSTALLED) {
        $ZarafaEnableServer = $sock->GET_INFO("ZarafaEnableServer");
        if (!is_numeric($ZarafaEnableServer)) {
            $ZarafaEnableServer = 1;
        }
        if ($ZarafaEnableServer == 1) {
            if ($users->AsMailBoxAdministrator) {
                $ZarafaField = "{display: '<span style=font-size:20px>Zarafa</span>', name : 'Zarafa', width :98, sortable : false, align: 'center'},";
                $ZarafaUri = "&zarafaF=1";
                $help = "{name: '{$online_help}', bclass: 'Help', onpress : Zhelp{$t}},";
            }
        }
    }
    $EnableManageUsersTroughActiveDirectory = $sock->GET_INFO("EnableManageUsersTroughActiveDirectory");
    if (!is_numeric($EnableManageUsersTroughActiveDirectory)) {
        $EnableManageUsersTroughActiveDirectory = 0;
    }
    $users = new usersMenus();
    if ($EnableManageUsersTroughActiveDirectory == 1) {
        $ldap = new ldapAD();
        $usersnumber = $ldap->COUNT_DE_USERS();
    } else {
        $ldap = new clladp();
        $usersnumber = $ldap->COUNT_DE_USERS();
        $ldap->ldap_close();
    }
    $Totalusers = $tpl->_ENGINE_parse_body("{my_organizations}::<i>{this_server_store}:&nbsp;<strong>{$usersnumber}</strong>&nbsp;{users}</i>");
    $organizations_parameters = $tpl->_ENGINE_parse_body("{organizations_parameters}");
    $add_new_organisation = $tpl->_ENGINE_parse_body("{add_new_organisation}");
    $organizations = $tpl->_ENGINE_parse_body("{organizations}");
    $users = $tpl->_ENGINE_parse_body("{users}");
    $groupsF = $tpl->_ENGINE_parse_body("{groupsF}");
    $domains = $tpl->_ENGINE_parse_body("{domains}");
    $actions = $tpl->_ENGINE_parse_body("{actions}");
    $add_new_organisation_text = $tpl->javascript_parse_text("{add_new_organisation_text}");
    $update = $tpl->_ENGINE_parse_body("{update2}");
    if ($users->AsArticaAdministrator) {
        $parametersBT = "{name: '<strong style=font-size:18px>{$organizations_parameters}</strong>', bclass: 'Reconf', onpress : organizations_parameters},";
    }
    if (butadm() != null) {
        $jsadd = "TreeAddNewOrganisation{$t}";
    } else {
        $jsadd = "nothingtodo";
    }
    $bb = "<input type='hidden' name='add_new_organisation_text' id='add_new_organisation_text' value='" . $tpl->javascript_parse_text("{add_new_organisation_text}") . "'>";
    if (isset($_GET["ajaxmenu"])) {
        $bc = "&ajaxmenu=yes";
    }
    $bt_add_new = "{name: '<strong style=font-size:18px>{$add_new_organisation}</strong>', bclass: 'add', onpress : {$jsadd}},";
    $ldap = new clladp();
    if ($ldap->IsKerbAuth()) {
        $bt_add_new = null;
        $Totalusers = $tpl->_ENGINE_parse_body("{my_organizations}");
    } else {
        $TEXT_TO_CSV = $tpl->_ENGINE_parse_body("{TEXT_TO_CSV}");
        $CsvToLdap = "{name: '<strong style=font-size:18px>{$TEXT_TO_CSV}</strong>', bclass: 'Copy', onpress : TEXT_TO_CSV},";
    }
    $buttons = "\n\tbuttons : [\n\t{$bt_add_new}{$parametersBT}{$CsvToLdap}\n\t\t],";
    $html = "\n\t{$bb}\n\t<input type='hidden' name='MAIN_PAGE_ORGANIZATION_LIST' id='MAIN_PAGE_ORGANIZATION_LIST' value='{$t}'>\n\t<table class='table-{$t}' style='display: none' id='table-{$t}' style='width:100%;margin:-10px'></table>\n<script>\nOUIDMEM='';\n\$(document).ready(function(){\n\$('#table-{$t}').flexigrid({\n\turl: '{$page}?ShowOrganizations=yes&t={$t}{$ZarafaUri}{$bc}',\n\tdataType: 'json',\n\tcolModel : [\n\t\t\n\t\t{display: '<span style=font-size:20px>{$organizations}</span>', name : 'ou', width :237, sortable : false, align: 'left'},\n\t\t{$ZarafaField}\n\t\t{display: '<span style=font-size:20px>{$users}</span>', name : 'users', width :153, sortable : false, align: 'center'},\n\t\t{display: '<span style=font-size:20px>&nbsp;</span>', name : 'nonex1', width : 50, sortable : false, align: 'center'},\n\t\t{display: '<span style=font-size:20px>{$groupsF}</span>', name : 'groups', width : 153, sortable : false, align: 'center'},\n\t\t{display: '<span style=font-size:20px>&nbsp;</span>', name : 'nonex2', width : 50, sortable : false, align: 'center'},\n\t\t{display: '<span style=font-size:20px>{$domains}</span>', name : 'domains', width : 153, sortable : false, align: 'center'},\n\t\t{display: '<span style=font-size:20px>&nbsp;</span>', name : 'nonex3', width : 50, sortable : false, align: 'center'},\t\t\n\t\t{display: '<span style=font-size:20px>&nbsp;</span>', name : 'nonex4', width : 50, sortable : false, align: 'center'},\n\t\t{display: '<span style=font-size:20px>&nbsp;</span>', name : 'nonex5', width : 50, sortable : false, align: 'center'},\n\t\t\n\t\t{display: '&nbsp;', name : 'none1', width : 31, sortable : false, align: 'left'},\n\t],\n\t{$buttons}\n\n\tsearchitems : [\n\t\t{display: '{$organizations}', name : 'ou'},\n\t\t],\n\tsortname: 'ou',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '<span style=font-size:30px>{$Totalusers}</span>',\n\tuseRp: false,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: '99%',\n\theight: 320,\n\tsingleSelect: true\n\t\n\t});   \n});\n\nfunction Zhelp{$t}(){\n\ts_PopUpFull('http://www.mail-appliance.org/index.php?cID=202','1024','900');\n}\n\nfunction ActiveDirectorySquid{$t}(){\n\tLoadjs('squid.adker.php',true);\n}\n\nfunction TEXT_TO_CSV(){\n\tLoadjs('csvToLdap.php',true);\n}\n\n\tvar x_TreeAddNewOrganisation{$t}= function (obj) {\n\t\tvar response=obj.responseText;\n\t\tif(response){alert(response);}\n\t\t\$('#table-{$t}').flexReload();\n\t}\n\t\n\tfunction TreeAddNewOrganisation{$t}(){\n\t\tvar texte='{$add_new_organisation_text}'\n\t\tvar org=prompt(texte,'');\n\t\tif(org){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('TreeAddNewOrganisation',org);\n\t\t\tXHR.sendAndLoad('domains.php', 'GET',x_TreeAddNewOrganisation{$t});\n\t\t\t}\n\t}\n\n\t\tfunction organizations_parameters(){\n\t\t\tLoadjs('domains.organizations.parameters.php');\n\t\t\t\n\t\t}\n\t\t\n\t\tfunction ActiveDirectoryUpdate{$t}(){\n\t\t\tLoadjs('domains.activedirectory.update.php?flexigrid=table-{$t}');\n\t\t}\n\t\t\n\t\tfunction  nothingtodo(){\n\t\t\talert('{$ERROR_NO_PRIVS}');\n\t\t}\n\n</script>\n" . $tpl->_ENGINE_parse_body("<div class=explain>{about_organization}</div>");
    $tpl = new templates();
    $html = $tpl->_ENGINE_parse_body($html);
    SET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__, $html);
    echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:93,代码来源:domains.index.php


注:本文中的clladp::COUNT_DE_USERS方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。