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


PHP clladp::hash_get_local_domains方法代码示例

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


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

示例1: list_domains

function list_domains()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $ldap = new clladp();
    $hash = $ldap->hash_get_local_domains();
    $t = $_GET["t"];
    $hash[null] = "{select}";
    $domainsf = Field_array_Hash($hash, "mailbox_domain_query{$t}", $mailbox_domain_query, "ChangeDomain{$t}('{$page}?MailBoxesDomainList=yes');", null, 0, "padding:5px;font-size:18px");
    $form = "\n\t\t<table style='width:99%' class=form>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:18px'>{domain}:</td>\n\t\t\t<td>{$domainsf}</td>\n\t\t</tr>\n\t\t</table>\n\t\t\n\t\t\n\t\t<script>\n\t\t\tfunction ChangeDomain{$t}(){\n\t\t\t\tvar dom=document.getElementById('mailbox_domain_query{$t}').value;\n\t\t\t\tdocument.getElementById('title-{$t}').innerHTML=dom;\n\t\t\t\t\$('#flexRT{$t}').flexOptions({url: '{$page}?items-list=yes&t={$t}&domain='+dom}).flexReload(); \n\t\t\t\n\t\t\t}\n\t\t\n\t\t</script>\n\t\t";
    echo $tpl->_ENGINE_parse_body($form);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:12,代码来源:cyrus.mailboxes.php

示例2: main_mailboxes

function main_mailboxes()
{
    $t = time();
    echo "<div id='{$t}'></div>\n\t<script>LoadAjax('{$t}','cyrus.mailboxes.php');</script>";
    return;
    include_once "ressources/class.cyrus-admin.inc";
    $sock = new sockets();
    $page = CurrentPageName();
    $tpl = new templates();
    $mailbox_domain_query = null;
    if (isset($_GET["mailbox_domain_query"])) {
        $mailbox_domain_query = $_GET["mailbox_domain_query"];
    }
    if ($sock->GET_INFO("EnableVirtualDomainsInMailBoxes") == 1) {
        $ldap = new clladp();
        $hash = $ldap->hash_get_local_domains();
        $hash[null] = "{select}";
        $domainsf = Field_array_Hash($hash, "mailbox_domain_query", $mailbox_domain_query, "Loadjs('{$page}?MailBoxesDomainList=yes');", null, 0, "padding:5px;font-size:18px");
        $form = "\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td class=legend>{domain}:</td>\n\t\t\t<td>{$domainsf}</td>\n\t\t</tr>\n\t\t</table>\n\t\t<div id='maindomainlistcyrus'></div>\n\t\t";
    }
    if ($mailbox_domain_query != null) {
        $datas = unserialize(base64_decode($sock->getFrameWork("cmd.php?mailboxlist-domain={$mailbox_domain_query}")));
        $form = null;
    } else {
        $datas = unserialize(base64_decode($sock->getFrameWork("cmd.php?mailboxlist=yes")));
    }
    if (isset($_GET["mailbox_domain_query"])) {
        $form = null;
    }
    $html = "\n\t{$form}\n\t<input type='hidden' id='deletemailbox_infos' value='{deletemailbox_infos}'>\n\t<div style='width:100%;height:300px;overflow:auto'>\n\t";
    while (list($num, $ligne) = each($datas)) {
        if ($ligne != null) {
            if (preg_match("#user/(.+)#", $ligne, $re)) {
                $mailbox_name = $re[1];
                if ($mailbox_domain_query != null) {
                    $mailbox_name = "{$mailbox_name}@{$mailbox_domain_query}";
                }
                $html = $html . "<div style='float:left;width:150px;border:1px dotted #CCCCCC;margin:2px;padding:3px' " . CellRollOver() . " id='" . md5($ligne) . "'>\n\t\t\t\t<table style='width:100%'>\n\t\t\t\t<tr>\n\t\t\t\t<td width=1% valign='top'><img src='img/identity-24.png'></td>\n\t\t\t\t<td><strong>{$re['1']}</strong></td>\n\t\t\t\t<td width=1%>" . imgtootltip('ed_delete.gif', '{delete}', "DeleteRealMailBox('{$mailbox_name}','" . md5($ligne) . "');") . "</td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t";
            }
        }
    }
    $html = $html . "</div>";
    echo RoundedLightWhite($tpl->_ENGINE_parse_body($html));
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:44,代码来源:cyrus.index.php

示例3: LocalTable

function LocalTable($echo=0){
$page=CurrentPageName();	
$ldap=new clladp();
$h=$ldap->hash_get_local_domains();
if(!is_array($h)){return null;}

$html="

	<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:100%'>
		<thead class='thead'>
			<tr>
				<th >&nbsp;</th>
				<th ><strong>{domain}</strong></th>
				<th ><strong>&nbsp;</strong></th>
				<th align='center' ><strong>-</strong></th>
				<th ><strong>-</strong></th>
				<th ><strong>-</strong></th>
				<th ><strong-</strong></th>
				<th style='font-size:12px'>&nbsp;</th>
			</tr>
		</thead>
		<tbody class='tbody'>";

while (list ($domain, $ligne) = each ($h) ){
		if($classtr=="oddRow"){$classtr=null;}else{$classtr="oddRow";}
		
		$html=$html . "<tr class=$classtr>
		<td style='font-size:14px' width=1%><img src='img/internet.png'></td>
		<td style='font-size:14px'><code>$domain</a></strong></code></td>
		<td style='font-size:14px' width=1%><img src='img/fw_bold.gif'></td>
		<td style='font-size:14px' align='center'>local</td>
		<td ><code></td>
		<td align='center' style='font-size:14px'><code></code></td>
		<td align='center' style='font-size:14px'><code></code></td>
		<td align='center' style='font-size:14px' width=1%></td>
		</tr>";
	}
$html=$html . "</tbody></table>";
$html=RoundedLightWhite("<div style='width:99%;height:350px;overflow:auto' id='routing-table'>$html</div>");
$tpl=new templates();
if($echo==1){echo $tpl->_ENGINE_parse_body($html);exit;}
return $tpl->_ENGINE_parse_body($html);		
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:43,代码来源:postfix.routing.table.php

示例4: LocalTable

function LocalTable($echo = 0)
{
    $page = CurrentPageName();
    $ldap = new clladp();
    $h = $ldap->hash_get_local_domains();
    if (!is_array($h)) {
        return null;
    }
    $html = "\n\n<table style='width:99%;padding:5px;border:1px dotted #8E8785;' align='center' class=table_form>\n\t<tr style='background-color:#CCCCCC'>\n\t\t<th >&nbsp;</td>\n\t\t<th ><strong>{domain}</strong></td>\n\t\t<th ><strong>&nbsp;</strong></td>\n\t\t<th align='center' ><strong>-</strong></td>\n\t\t<th ><strong>-</strong></td>\n\t\t<th ><strong>-</strong></td>\n\t\t<th ><strong-</strong></td>\n\t\t<th style='font-size:12px'>&nbsp;</td>\n\t</tr>";
    while (list($domain, $ligne) = each($h)) {
        $html = $html . "<tr>\n\t\t<td width=1%><img src='img/icon_mini_read.gif'></td>\n\t\t<td style='font-size:12px'><code>{$domain}</a></strong></code></td>\n\t\t<td width=1%><img src='img/fw_bold.gif'></td>\n\t\t<td align='center' style='font-size:12px'>local</td>\n\t\t<td ><code></td>\n\t\t<td align='center' style='font-size:12px'><code></code></td>\n\t\t<td align='center' style='font-size:12px'><code></code></td>\n\t\t<td align='center' style='font-size:12px' width=1%></td>\n\t\t</tr>";
    }
    $html = $html . "</table>";
    $html = RoundedLightWhite("<div style='width:99%;height:350px;overflow:auto' id='routing-table'>{$html}</div>");
    $tpl = new templates();
    if ($echo == 1) {
        echo $tpl->_ENGINE_parse_body($html);
        exit;
    }
    return $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:artica,代码行数:21,代码来源:postfix.routing.table.php


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