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


PHP main_tabs函数代码示例

本文整理汇总了PHP中main_tabs函数的典型用法代码示例。如果您正苦于以下问题:PHP main_tabs函数的具体用法?PHP main_tabs怎么用?PHP main_tabs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: popup

function popup()
{
    echo main_tabs();
    exit;
    $html = "\n\t\n\n\t<p class=caption>{ntp_about}</p>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>" . Paragraphe('connection-add-64.png', '{add_title_server}', '{add_text_server}', "javascript:ntpdAdd();", 'add_title_server') . "</td>\n\t<td valign='top'><div id='ntpd_services_status'></div><br></td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 valign='top'><br>\n\t\t\t<div id='ntpd_main_config'></div>\n\t\t</td>\n\t</tr>\n\t</table>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:artica,代码行数:8,代码来源:ntpd.index.php

示例2: main_switch

function main_switch()
{
    $md = md5(date('Ymdhis'));
    $mime = new mimedefang();
    $html = main_tabs() . "\n\t<input type='hidden' name='selected' id='selected' value='{$_GET["main"]}'>\n\t<br><H5>{{$_GET["main"]}} {statistics}";
    while (list($num, $ligne) = each($mime->graph_array)) {
        if (preg_match("#{$_GET["main"]}#", $ligne)) {
            $html = $html . "\n\t\t\t<div style='border:1px dotted #CCCCCC;margin:4px'><img src='images.listener.php?uri=graphdefang/{$ligne}&md={$md}'></div>\n\t\t\t\n\t\t\t";
        }
    }
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:13,代码来源:index.graphdefang.php

示例3: popup

function popup(){
	
	$html="
	<input type='hidden' id='filterby' value='{$_GET["filterby"]}'>
	<div id='myfilter' style='width:370px;padding:3px;border:0px dotted #CCCCCC;text-align:right;margin-left:350px'>".filter(true)."</div>

	
	
</td>
</tr>
</table>	
	". main_tabs()."
	<br>
	<div id=events></div>";
	
	$tpl=new templates();
	echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:18,代码来源:admin.index.services.status.php

示例4: folders_list

function folders_list()
{
    $hard = new harddrive();
    $hard->BuildSizes();
    $html = "<table style='width:100%'>";
    if (is_array($hard->main_array["folders_list"])) {
        reset($hard->main_array["folders_list"]);
        while (list($num, $ligne) = each($hard->main_array["folders_list"])) {
            $id = md5($ligne);
            $html = $html . "<tr>\n\t\t\t<td width=1%><img src='img/fw_bold.gif'></td>\n\t\t\t<td>" . Field_text($id, $ligne) . "</td>\n\t\t\t<td><input type='button' OnClick=\"javascript:SaveFolderList({$num},'{$id}');\" value='{apply}&nbsp;&raquo;'></td>\n\t\t\t<td>" . imgtootltip('x.gif', '{delete}', "DeleteFolderList({$num})") . "</td>\n\t\t\t</tr>\n\t\t\t\n\t\t\t";
        }
    }
    $html = $html . "<tr>\n\t\t\t<td width=1%><img src='img/fw_bold.gif'></td>\n\t\t\t<td>" . Field_text('addfodler') . "</td>\n\t\t\t<td><input type='button' OnClick=\"javascript:AddFolderList();\" value='{add}&nbsp;&raquo;'></td>\n\t\t\t<td>&nbsp;</td>\n\t\t\t</tr>";
    $html = $html . "</table>";
    $html = main_tabs() . "<br><h5>{parameters}</h5><br><p class=caption>{parameters_text}</p>" . RoundedLightGrey($html);
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:18,代码来源:system.harddisk.php

示例5: main_script

function main_script()
{
    $page = CurrentPageName();
    $mailfromd = new mailfromd();
    $html = main_tabs() . "\n\t<form name='ffm1'>\n\t<input type='hidden' name='UserUpdated' value='1'>\n\t<H5>{script}</H5>\n\t<br>\n\t<textarea style='margin:10px;font-size:12px;padding:10px;border:1px dotted #CCCCCC;width:100%;height:440px;background-image:none' name='MailFromdUserScript'>{$mailfromd->MailFromdUserScript}</textarea>\n\t<br>\n\t<div style='text-align:right;width:100%'><input type='button' OnClick=\"javascript:ParseForm('ffm1','{$page}',true);\" value='{edit}&nbsp;&raquo;&raquo;'></div>\n\t</form>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:artica,代码行数:8,代码来源:mailfromd.index.php

示例6: popup

function popup()
{
    echo main_tabs();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:4,代码来源:ntpd.index.php

示例7: main_logs

function main_logs()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $html = main_tabs() . "\n\t<H5>{events}</H5>\n\t<iframe src='miltergreylist.events.php' style='width:100%;height:500px;border:0px'></iframe>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:7,代码来源:domains.postfix.multi.milter-greylist.php

示例8: popup_index

function popup_index()
{
    echo main_tabs();
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:4,代码来源:cyrus.index.php

示例9: popup_index

function popup_index()
{
    if (GET_CACHED(__FILE__, __FUNCTION__, null)) {
        return;
    }
    $page = CurrentPageName();
    $html = main_tabs();
    $tpl = new templates();
    $html = $tpl->_ENGINE_parse_body($html);
    SET_CACHED(__FILE__, __FUNCTION__, null, $html);
    echo $html;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:12,代码来源:postfix.index.php

示例10: main_config

function main_config()
{
    $bind = new bind9();
    $datas = $bind->NamedConf;
    $datas = htmlentities($datas);
    $datas = explode("\n", $datas);
    while (list($num, $ligne) = each($datas)) {
        if (trim($ligne) != null) {
            $ligne = str_replace("\t", "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", $ligne);
            $conf = $conf . "<div><code style='font-size:10px'>{$ligne}</div>\n";
        }
    }
    $tab = main_tabs();
    $html = "{$tab}<H3>{config_file}</H3>{$conf}";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:artica,代码行数:17,代码来源:index.bind9.php

示例11: main_share_retranslation

function main_share_retranslation()
{
    $page = CurrentPageName();
    $html = main_tabs() . "\n\n<H5>{share_retranslation}</h5>\n<table style='width:100%'>\n<tr>\n<td valign='top' width=70%>\n<p class=caption>{share_retranslation_text}</p>\n<div style='text-align:right'><input type='button' OnCLick=\"javascript:Loadjs('{$page}?jsscript=addshare')\" value='{add_share_folder}&nbsp;&raquo;'></div>\n<br>\n" . RoundedLightGrey("<H3>{shares_list}</H3><hr><div id='share_list'>" . main_share_retranslation_list() . "</div>") . "\n</td>\n<td valign='top' width=30%>\n<div id='dar_status'>" . dar_status() . "</div>" . main_share_retranslation_issmbmount() . "<br>\n<div id='networks_shares'>" . main_share_retranslation_list_shares() . "</div>\n\n</td>\n</table>\n<table style='width:100%'>\n</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:artica.backup.index.php

示例12: blacklist

function blacklist(){
	$ldap=new clladp();
	
	$domain=$ldap->hash_get_all_domains();
	if(!is_array($domain)){return null;}
	
	while (list ($num, $line) = each ($domain)){
		$html=$html . blacklistdom($num);
		
		
	}
	$page=main_tabs () . "<br>" . RoundedLightGreen("
		<table style='width:99%'>
			<tr>
			<td><strong>{from}:</td>
			<td>" . Field_text('wlfrom',$_GET["whitelist"],'width:120px',
			null,null,null,false,"AddblwformCheck(1,event)") ."</td>
			<td><strong>{recipient}:</td>
			<td>" . Field_text('wlto',$_GET["recipient"],'width:120px',
			null,null,null,false,"AddblwformCheck(1,event)") ."</td>
			<td align='right'><input type='button' OnClick=\"javascript:Addblwform(1);\" value='{add}&nbsp;&raquo;'></td>
			</tr>
		</table>")."
	<br>	
	
	
	$html";
	
	$tpl=new templates();
	return $tpl->_ENGINE_parse_body($page);
	
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:32,代码来源:whitelists.admin.php

示例13: main_conf

function main_conf(){
	
	$master=new master_cf();
	$datas=$master->Build();
	
$html="<H1>master.cf</h1>".main_tabs()."
	<div style='text-align:right'><input type='button' value='{rebuild_configuration}&nbsp;&raquo;' OnClick=\"javascript:RebuildMaster();\"></div>
	<textarea style='width:100%;height:350px'>$datas</textarea>
	";
	
$tpl=new templates();
return $tpl->_ENGINE_parse_body($html);	
	
	
	
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:16,代码来源:postfix.master.cf.php

示例14: usersMenus

	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.postfix-multi.inc');
	include_once('ressources/class.kas-filter.inc');
	
	
	
	
$users=new usersMenus();
$tpl=new templates();
if(!$users->AsOrgPostfixAdministrator){
		echo $tpl->javascript_parse_text("alert('{ERROR_NO_PRIVS}');");
		die();
	}
	
	if(isset($_GET["main"])){main_switch();exit;}
	if(isset($_GET["popup"])){main_tabs();exit;}
	if(isset($_GET["ACTION_SPAM_MODE"])){SAVE();exit;}
	if(isset($_GET["OPT_FILTRATION_ON"])){SAVE();exit;}
	if(isset($_GET["OPT_SPAM_RATE_LIMIT"])){SAVE();exit;}
	if(isset($_GET["apply-config"])){APPLY();exit;}
	
	
js();

function js(){
		
	$ou=base64_decode($_GET["ou"]);
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body('{APP_KAS3}:: => '.$ou,"user.kas.php");
	
开发者ID:rsd,项目名称:artica-1.5,代码行数:30,代码来源:domains.edit.kas.php

示例15: main_today

function main_today(){
	$today=date('Y-m-d');
	$yesterday=date("Y-m-d",mktime(0,0,0,date("m") ,date("d")-1,date("Y")));
	$mysql=new mysql();
	$query_aliases=query_aliases();
	$search_pattern=$_GET["search"];
	if(!isset($_GET["section"])){$_GET["section"]='today';}
	if(!isset($_GET["page"])){$_GET["page"]=0;}
	$limit_start=$_GET["page"]*50;
	
	
	if(strlen($search_pattern)>0){
		$search_patternq="AND MATCH (MessageBody) AGAINST ('".addslashes($search_pattern)."') >0";
		}

	
	
	
	$sql="SELECT count(*) as tcount FROM quarantine,storage_recipients WHERE 
		`quarantine`.MessageID=storage_recipients.MessageID 
		 $todate 
		 AND (".query_aliases().")
		 $search_patternq";
	
	$ligne=mysql_fetch_array($mysql->QUERY_SQL($sql,'artica_backup'));
	$messages_number=$ligne["tcount"];
	$pagenumber=round($messages_number/50);
	
	for($i=0;$i<=$pagenumber;$i++){
		$array[$i]="{page}&nbsp;" .($i+1);
	}
	
	
	$sql="SELECT 
		`quarantine`.MessageID,
		`quarantine`.subject,
		mailfrom,
		DATE_FORMAT(`quarantine`.zDate,'%H:%I:%S') AS time 
		$date_plus
		FROM `quarantine`,storage_recipients WHERE 
		`quarantine`.MessageID=storage_recipients.MessageID 
		$todate
		$search_patternq
		AND (".query_aliases().") 
		ORDER BY zDate DESC LIMIT $limit_start,50";
	
	
	
	$html=$html ."<br>
	<input type='hidden' id='search_intro' value='{search_intro}'>
	<input type='hidden' id='section' value='{$_GET["section"]}'>
	<input type='hidden' id='Search' value='{$_GET["search"]}'>
	<input type='hidden' id='main' value='{$_GET["main"]}'>
	<table style='width:100%'>
	<tr><td><strong style='font-size:12px'>$messages_number emails</td>
	<td align='right'><strong>{go_to_page}:</strong></td>
	<td width=1%>" . Field_array_Hash($array,'page',$_GET["page"],"quarantine_showpage()",null,0,'width:90px')."</td>
	</table>
	<table style='width:100%'>";
	
	
		$results=$mysql->QUERY_SQL($sql,'artica_backup');
		while($ligne=@mysql_fetch_array($results,MYSQL_ASSOC)){
			if(isset($ligne["WeekDay"])){$weekday="<i>{$ligne["WeekDay"]}</i>&nbsp;";}
			$html=$html  . "
				<tr " . CellRollOver("ShowMessage('{$ligne["MessageID"]}')","{view_message}").">
					<td width=1%><img src='img/fw_bold.gif'></td>
					<td>$weekday{$ligne["time"]}</td>
					<td>{$ligne["mailfrom"]}</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td colspan=2 style='margin-bottom:3px;border-bottom:1px dotted #CCCCCC;padding-bottom:3px'>
						<strong>{$ligne["subject"]}</strong>
					</td>
				</tr>";
					
			}
			
		$html=$html . "</table>";
		
		$page=main_tabs().$html;
		$tpl=new templates();
		echo $tpl->_ENGINE_parse_body($page);
	
}	
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:86,代码来源:users.quarantine.php


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