本文整理汇总了PHP中Templates::_parse_body方法的典型用法代码示例。如果您正苦于以下问题:PHP Templates::_parse_body方法的具体用法?PHP Templates::_parse_body怎么用?PHP Templates::_parse_body使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Templates
的用法示例。
在下文中一共展示了Templates::_parse_body方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: main_page
function main_page()
{
$mailbox = new MailBoxes();
$mailbox->Cyrus_load();
$mailbox_infos = $mailbox->MailBoxes_get_infos($_GET["edit_mailbox"]);
$server = $mailbox->global_config["_GLOBAL"]["mailboxes_server"];
$_field_date = "\n\t\t<tr>\n\t<td><strong>{mailbox_created}</strong></td>\n\t<td>{$mailbox_infos->created}</td>\n\t</tr>";
$_field_maildir = "\n\t\t<tr>\n\t<td><strong>{mailbox_path}</strong></td>\n\t<td>{$mailbox_infos->maildir}</td>\n\t</tr>\n\t";
if ($mailbox->Cyrus_Exists($_GET["edit_mailbox"])) {
$tblq = explode('/', $mailbox->Cyrus_hash[$_GET["edit_mailbox"]]["QUOTA"]);
if ($tblq[0] > 0) {
$max_quota = $tblq[0] / 1000;
} else {
$max_quota = 0;
}
if ($tblq[1] > 0) {
$used_quota = round($tblq[1] / 1000);
} else {
$used_quota = 0;
}
$field_quota = "<tr>\n\t<td><strong>{quota} {used}: {$used_quota} mb</strong>\n\t</td>\n\t<td><input type='text' id='max_quota' value='{$max_quota}' style='width:30px'> (mb) <i><span style='font-size:9px'>({quota_0})</span><i></td>\n\t</tr>";
}
$rowspan = 4;
if ($server == 'cyrus') {
$_field_date = null;
$_field_maildir = null;
$rowspan = 4;
$button_set_quotas = "\n <input type='button' value='{bt_set_quota}' OnClick=\"javascript:set_quota('{$_GET["edit_mailbox"]}');\">";
}
$html = "\n\t<input type='hidden' id='no_password' value='{ERR_NO_PASS}'>\n\t<input type='hidden' id='password_no_match' value='{ERR_NO_PASS_MATCH}'>\t\n\t<input type='hidden' id='ERR_SET_QUOTA_SUCCESS' value='{ERR_SET_QUOTA_SUCCESS}'>\n\t<FIELDSET style='width:550px'><LEGEND>\n\t{mailbox_title} {$_GET["edit_mailbox"]}</LEGEND>\n\t<table>\n\t<td style='padding:4px' width=1% valign='top'><img src='img/user-maibox.png'></td>\n\t<td valing='top'>\n\t\t<table>\n\t\t<tr>\n\t\t{$field_date}\t\n\t\t{$_field_maildir}\n\t\t<tr>\n\t\t<td><strong>{mailbox_username}</strong></td>\n\t\t<td>{$_GET["edit_mailbox"]}</td>\n\t\t</tr>\t\n\t\t{$field_quota}\n\t\t<tr>\n\t\t<td><strong>{mailbox_password}</strong></td>\n\t\t<td><input type=password id='password' value=''></td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td><strong>{mailbox_confirm_password}</strong></td>\n\t\t<td><input type=password id='password2' value=''></td>\n\t\t</tr>\t\n\t\t\n\t\t</table>\n\t\t<br>\n\t\t<table>\n\t\t<td>\n\t\t<table style='border:0px;width:100px;text-align:center;clear:all' align='center'>\n\t\t\t<tr>\n\t\t\t\t<td style='padding:0px;margin:0px;clear:both'>\n\t\t\t\t\t<input type='button' value='{bt_mailbox_edit}' OnClick=\"javascript:edit_mailbox_settings('{$_GET["edit_mailbox"]}');\"></td>\n\t\t\t\t\t<td style='padding:0px;margin:0px;clear:both'{$button_set_quotas}</td>\n\t\t\t\t</tr>\n\t\t</table>\n\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t</td>\n\t</tr>\n\t</table>\n\t\n\t</FIELDSET>\n\t\n\t";
$tpl = new Templates();
echo DIV_SHADOW($tpl->_parse_body($html), 'windows');
}
示例2: List_domains
function List_domains($ou = null)
{
if ($ou == null) {
return null;
}
$ldap = new clladp();
$hash = $ldap->hash_get_domains_ou($ou);
$kav4mailservers = new kav4mailservers();
if (!is_array($hash)) {
return null;
}
$html = "\n\t<fieldset>\n\t<legend>{ARRAY_TITLE}</legend>\n\t<table style='width:95%' align='center'>\n\t<tr class=rowT>\n\t\t\n\t\t<td colspan=2> </TD>\n\t\t<td nowrap>{ARRAY_TITLE_TRANSPORT}</TD>\n\t\t<td nowrap>{ARRAY_TITLE_USERS}</TD>\n\t\t<td nowrap>{ARRAY_TITLE_AV}</TD>\n\t\t<td> </TD>\n\t\n\t</TR>\n\t";
while (list($num, $ligne) = each($hash)) {
if ($class = 'rowA') {
$class = 'rowB';
} else {
$class = "rowA";
}
$users_numbers = 0;
$users_numbers = $ldap->HashGetUsersAccounts($ou, $ligne);
$redirect = $ldap->GetTransportTable($ligne);
if ($redirect == null) {
$redirect = "local/dns";
}
if ($kav4mailservers->IsDomainLicenced($ligne) == true) {
$kav = "<img src='img/status_ok.jpg'>";
} else {
$kav = "<img src='img/status_permission.gif'>";
}
$html = $html . "<tr class={$class}>\n\t\t<td align='center' valign='top' width=1%>\n\t\t\t<img src='img/upload.gif'>\n\t\t</td>\n\t\t<td valign='top' style='font-size:13px;letter-spacing:3px'>\n\t\t\t<a href='domains.edit.php?domain={$ligne}&ou={$ou}' style='font-size:13px;' onMouseOver=\"javascript:AffBulle('{js_expand_domain}');\" OnMouseOut=\"javascript:HideBulle();\" >{$ligne}</a>\n\t\t</td>\n\t\t<td width=1% align='center'>{$redirect}</td>\n\t\t<td width=1% align='center'>" . count($users_numbers) . "</td>\n\t\t<td width=1% align='center'>{$kav}</td>\n\t\t<td width=1% valign='top'><a href=\"javascript:DelDomain('{$ligne["domain"]}','');\"><img src='img/deluser.gif' onMouseOver=\"javascript:AffBulle('{js_del_domain}');\" OnMouseOut=\"javascript:HideBulle();\"></a></td>\t\t\n\t\t</tr>";
}
$tpl = new Templates();
$html = $tpl->_parse_body($html);
return $html . "</table></fieldset>";
}
示例3: ExtensionsList
function ExtensionsList()
{
$main = new main_filter_extensions();
$hash = $main->array_extension;
if (!is_array($hash)) {
return null;
}
$html = "<p>\n\t\t<table><tr class='rowT'>\n\t\t<td colspan=3>{extension_list_title}</td>";
while (list($num, $ligne) = each($hash)) {
$num2 = $num + 1;
if ($class == 'rowA') {
$class = 'rowB';
} else {
$class = 'rowA';
}
$html = $html . "<tr class={$class}>\n\t\t\t<td style='width:1%'><img src='img/cadenas.jpg'></td>\n\t\t\t<td ><strong> *.{$ligne} </strong></td>\n\t\t\t<td style='width:1%'><a href=\"javascript:delete_extension({$num});\"onMouseOver=\"javascript:AffBulle('{js_del_extension}');\" OnMouseOut=\"javascript:HideBulle();\"><img src='img/x.gif'></a></td>\n\t\t\t</tr>";
}
$html = $html . "</table></p>";
$tpl = new Templates();
$html = $tpl->_parse_body($html);
return $html;
}
示例4: xdelete_domain_text
function xdelete_domain_text()
{
$html = "{xdelete_domain_text}";
$tpl = new Templates();
echo trim($tpl->_parse_body($html));
}