本文整理汇总了PHP中main_tabs函数的典型用法代码示例。如果您正苦于以下问题:PHP main_tabs函数的具体用法?PHP main_tabs怎么用?PHP main_tabs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了main_tabs函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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} »'></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} »'></td>\n\t\t\t<td> </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} »»'></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", " ", $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} »'></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} »'></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} »' 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} " .($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> ";}
$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> </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
示例16: popup_index
function popup_index()
{
$html = main_tabs();
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:6,代码来源:fileshares.index.php
示例17: main_license
function main_license()
{
$sock = new sockets();
$license_data = $sock->getfile('kav4proxy_license');
$license_data = htmlentities($license_data);
$license_data = nl2br($license_data);
$license_data = str_replace("<br />\n<br />", "<br />", $license_data);
$license_data = str_replace("License info:", "<strong style='font-size:12px'>License info:</strong>", $license_data);
$license_data = str_replace("Active key info:", "<strong style='font-size:12px'>Active key info:</strong>", $license_data);
$license_data = str_replace("Expiration date", "<strong style='color:red'>Expiration date</strong>", $license_data);
$license_data = str_replace("Kaspersky license manager for Linux", "<H6 style='margin-top:0px'>Kaspersky license manager for Linux</H6>", $license_data);
$license_data = RoundedLightGreen($license_data);
$add_key = $html = main_tabs() . "<br>\n\t<form name='ffm1'>\n\t<H5>{licenseproxy}</H5>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>\n\t<div id='license_data'>\t\n\t{$license_data}\n\t</div>\n\t</td>\n\t<td valign='top'>\n\t" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td>" . Paragraphe('add-key-64.png', '{add_a_license}', '{add_a_license_text}', "javascript:kav4proxy_add_key()") . "</td>\n\t</tr>\n\t</table>") . "<br>\n\t\n\t" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td>" . Paragraphe('shopping-cart-64.png', '{by_a_license}', '{by_a_license_text}', "javascript:MyHref(\"http://www.kaspersky.com/buy_kaspersky_security_internet_gateway\")") . "</td>\n\t</tr>\n\t</table>") . "<br>\n\t\n\t</td>\n\t</tr>\n\t</table>\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, 'milter.index.php');
}
开发者ID:brucewu16899,项目名称:artica,代码行数:16,代码来源:kav4proxy.index.php
示例18: usersMenus
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.artica.inc';
include_once 'ressources/class.ini.inc';
include_once 'ressources/class.mimedefang.inc';
$user = new usersMenus();
if ($user->AsPostfixAdministrator == false) {
header('location:users.index.php');
exit;
}
if (isset($_GET["main"])) {
main_switch();
exit;
}
if (isset($_GET["popup"])) {
echo main_tabs();
exit;
}
js();
function js()
{
$page = CurrentPageName();
$tpl = new templates();
$title = $tpl->_ENGINE_parse_body("{APP_KAS3} ({statistics})");
$html = "\n\t\tfunction APP_KAS3_STATS_SHOW(){\n\t\t\tYahooWin(780,'{$page}?popup=yes','{$title}');\n\t\t}\n\t\n\t\n\tAPP_KAS3_STATS_SHOW();";
echo $html;
}
function main_page()
{
$html = "\n<script language=\"JavaScript\"> \nvar timerID = null;\nvar timerID1 = null;\nvar tant=0;\nvar reste=0;\n\nfunction demarre(){\n tant = tant+1;\n reste=10-tant;\n\tif (tant < 10 ) { \n timerID = setTimeout(\"demarre()\",5000);\n } else {\n tant = 0;\n //document.getElementById('wait').innerHTML='<img src=img/wait.gif>';\n ChargeLogs();\n demarre(); //la boucle demarre !\n }\n}\n\n\nfunction ChargeLogs(){\n\tvar selected=document.getElementById('selected').value;\n\tLoadAjax('main_config','{$page}?main='+selected);\n\t}\n</script>\t\n<div id='main_config'></div>\n\n<script>demarre();LoadAjax('main_config','{$page}?main=hourly');</script>\n\t\n\t";
$cfg["JS"][] = 'js/mimedefang.js';
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:index.kas3-stats.php
示例19: main_update
function main_update(){
$sock=new sockets();
$datas=trim($sock->getFrameWork('cmd.php?aptcheck=yes'));
$html=main_tabs()."<table style='width:100%'>
<tr>
<td valign='top'>
<H5>{system_update}</H5>";
if(preg_match('#nb:([0-9]+)\s+#is',$datas,$re)){
$html=$html . RoundedLightYellow("
<table style='width:100%'>
<tr>
<td valign='top' width=1%><img src='img/48-infos.png'></td>
<td valign='top'>
<p style='font-size:12px;font-weight:bold'>{$re[1]} {packages_to_upgrade}</p>
</td>
</tr>
</table>");
$datas=str_replace($re[0],'',$datas);
}
$html=$html."</td>
<td valign='top'>".update_Apply_install()."</td>
</tr>
</table>";
$tbl=explode("\n",$datas);
$t="<table style='width:100%'>";
while (list ($num, $ligne) = each ($tbl) ){
if(trim($ligne)<>null){
$uri="<a href='#' OnClick=\"javascript:PackageInfos('$ligne')\">";
$t=$t."
<tr ". CellRollOver_jaune().">
<td width=1%><img src='img/fw_bold.gif'></td>
<td width=99% nowrap>$uri$ligne</a></td>
</tr>";
}
}
$t=$t . "</table>";
$t="<div style='width:100%;height:200px;overflow:auto'>$t</div>";
$t=RoundedLightWhite($t);
$tpl=new templates();
return $tpl->_ENGINE_parse_body("$html$t");
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:50,代码来源:artica.repositories.php
示例20: main_configfile
function main_configfile(){
$users=new usersMenus();
if($_GET["hostname"]==null){$hostname=$users->hostname;}else{$hostname=$_GET["hostname"];}
$squid=new squid($hostname);
$squid->BuildConfig();
$squid->SaveToLdap();
$conf=$squid->squid_conf;
$table=explode("\n",$conf);
$html=
main_tabs() . "
<br>
<div style='padding:5px;margin:5px'>
<table style='width:100%'>
";
while (list ($num, $val) = each ($table) ){
$linenum=$num+1;
$html=$html . "<tr><td width=1% style='background-color:#CCCCCCC'><strong>$linenum</strong></td><td width=99%'><code>$val</code></td></tr>";
}
$html=$html . "</table>
</div>";
$tpl=new templates();
echo $tpl->_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:32,代码来源:squid.simple.php
注:本文中的main_tabs函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论