本文整理汇总了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);
}
示例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));
}
示例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 > </th>
<th ><strong>{domain}</strong></th>
<th ><strong> </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'> </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);
}
示例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 > </td>\n\t\t<th ><strong>{domain}</strong></td>\n\t\t<th ><strong> </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'> </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);
}