本文整理汇总了PHP中UI::content_header方法的典型用法代码示例。如果您正苦于以下问题:PHP UI::content_header方法的具体用法?PHP UI::content_header怎么用?PHP UI::content_header使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI::content_header方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
require_once 'inc/auth.php';
echo UI::content_header('fa-bar-chart-o', DMsg::UIStr('menu_rtstats'));
$label_reqprocessing = DMsg::UIStr('service_reqprocessing');
$label_reqpersec = DMsg::UIStr('service_reqpersec');
$label_maxconn = DMsg::UIStr('service_maxconn');
$label_sslconn = DMsg::UIStr('service_sslconn');
$label_plainconn = DMsg::UIStr('service_plainconn');
$label_totalreq = DMsg::UIStr('service_totalreq');
$label_eapcount = DMsg::UIStr('service_eapcount');
$label_eapinuse = DMsg::UIStr('service_eapinuse');
$label_eapidle = DMsg::UIStr('service_eapidle');
$label_eapwaitq = DMsg::UIStr('service_eapwaitq');
$label_eapreqpersec = DMsg::UIStr('service_eapreqpersec');
$label_name = DMsg::UIStr('l_name');
$th = '</th><th>';
$servstatbottom = array(array(array(RealTimeStats::FLD_UPTIME, DMsg::UIStr('service_uptime'), 'success', ''), array(RealTimeStats::FLD_S_TOT_REQS, $label_totalreq, 'muted', ''), array(RealTimeStats::FLD_BLOCKEDIP_COUNT, DMsg::UIStr('service_blockedipcnt'), '', 'pinkDark')), array(array(RealTimeStats::FLD_AVAILCONN, DMsg::UIStr('service_availconn'), 'success', ''), array(RealTimeStats::FLD_PLAINCONN, $label_plainconn, 'orange', 'pinkDark'), array(RealTimeStats::FLD_MAXCONN, $label_maxconn, 'muted', '')), array(array(RealTimeStats::FLD_AVAILSSL, DMsg::UIStr('service_availssl'), 'success', ''), array(RealTimeStats::FLD_SSLCONN, $label_sslconn, 'orange', 'pinkDark'), array(RealTimeStats::FLD_MAXSSL_CONN, DMsg::UIStr('service_maxsslconn'), 'muted', '')), array(array(RealTimeStats::FLD_S_REQ_PROCESSING, $label_reqprocessing, 'success', 'pinkDark'), array(RealTimeStats::FLD_S_REQ_PER_SEC, $label_reqpersec, 'success', 'green')));
$servstatplot = array(array(RealTimeStats::FLD_BPS_IN, DMsg::UIStr('service_bpsin'), true), array(RealTimeStats::FLD_BPS_OUT, DMsg::UIStr('service_bpsout'), true), array(RealTimeStats::FLD_SSL_BPS_IN, DMsg::UIStr('service_sslbpsin'), false), array(RealTimeStats::FLD_SSL_BPS_OUT, DMsg::UIStr('service_sslbpsout'), false), array(RealTimeStats::FLD_PLAINCONN, $label_plainconn, true), array(RealTimeStats::FLD_IDLECONN, DMsg::UIStr('service_idleconn'), false), array(RealTimeStats::FLD_SSLCONN, $label_sslconn, true), array(RealTimeStats::FLD_S_REQ_PROCESSING, $label_reqprocessing, false), array(RealTimeStats::FLD_S_REQ_PER_SEC, $label_reqpersec, true));
$vhstatbottom = array(array(array(RealTimeStats::FLD_VH_TOT_REQS, $label_totalreq, 'muted', ''), array(RealTimeStats::FLD_VH_EAP_COUNT, $label_eapcount, '', 'pinkDark')), array(array(RealTimeStats::FLD_VH_EAP_IDLE, $label_eapidle, 'success', ''), array(RealTimeStats::FLD_VH_EAP_INUSE, $label_eapinuse, 'orange', 'pinkDark')), array(array(RealTimeStats::FLD_VH_EAP_WAITQUE, $label_eapwaitq, 'orange', 'red'), array(RealTimeStats::FLD_VH_EAP_REQ_PER_SEC, $label_eapreqpersec, 'success', 'green')), array(array(RealTimeStats::FLD_VH_REQ_PROCESSING, $label_reqprocessing, 'success', 'pinkDark'), array(RealTimeStats::FLD_VH_REQ_PER_SEC, $label_reqpersec, 'success', 'green')));
$vhstatplot = array(array(RealTimeStats::FLD_VH_EAP_INUSE, $label_eapinuse, true), array(RealTimeStats::FLD_VH_EAP_WAITQUE, $label_eapwaitq, true), array(RealTimeStats::FLD_VH_EAP_IDLE, $label_eapidle, true), array(RealTimeStats::FLD_VH_EAP_REQ_PER_SEC, $label_eapreqpersec, true), array(RealTimeStats::FLD_VH_REQ_PROCESSING, $label_reqprocessing, true), array(RealTimeStats::FLD_VH_REQ_PER_SEC, $label_reqpersec, true));
$label_sec = DMsg::UIStr('service_seconds');
$label_min = DMsg::UIStr('service_minutes');
$refreshOptions = array(0 => DMsg::UIStr('service_stop'), 10 => "10 {$label_sec}", 15 => "15 {$label_sec}", 30 => "30 {$label_sec}", 60 => "60 {$label_sec}", 120 => "2 {$label_min}", 300 => "5 {$label_min}");
$topOptions = array(10 => 'Top 10', 20 => 'Top 20', 50 => 'Top 50', 100 => 'Top 100', 200 => 'Top 200');
$vhSortOptions = array(RealTimeStats::FLD_VH_REQ_PER_SEC => $label_reqpersec, RealTimeStats::FLD_VH_REQ_PROCESSING => $label_reqprocessing, RealTimeStats::FLD_VH_TOT_REQS => $label_totalreq, RealTimeStats::FLD_VH_EAP_COUNT => $label_eapcount, RealTimeStats::FLD_VH_EAP_INUSE => $label_eapinuse, RealTimeStats::FLD_VH_EAP_WAITQUE => $label_eapwaitq, RealTimeStats::FLD_VH_EAP_IDLE => $label_eapidle, RealTimeStats::FLD_VH_EAP_REQ_PER_SEC => $label_eapreqpersec);
?>
<!-- row -->
<div class="row">
示例2: array
<?php
require_once 'inc/auth.php';
echo UI::content_header('fa-home', DMsg::UIStr('menu_dashboard'));
$servstatbottom = array(array(array(RealTimeStats::FLD_UPTIME, DMsg::UIStr('service_uptime'), 'success', ''), array(RealTimeStats::FLD_S_TOT_REQS, DMsg::UIStr('service_totalreq'), 'muted', ''), array(RealTimeStats::FLD_BLOCKEDIP_COUNT, DMsg::UIStr('service_blockedipcnt'), '', 'pinkDark')), array(array(RealTimeStats::FLD_AVAILCONN, DMsg::UIStr('service_availconn'), 'success', ''), array(RealTimeStats::FLD_PLAINCONN, DMsg::UIStr('service_plainconn'), 'orange', 'pinkDark'), array(RealTimeStats::FLD_MAXCONN, DMsg::UIStr('service_maxconn'), 'muted', '')), array(array(RealTimeStats::FLD_AVAILSSL, DMsg::UIStr('service_availssl'), 'success', ''), array(RealTimeStats::FLD_SSLCONN, DMsg::UIStr('service_sslconn'), 'orange', 'pinkDark'), array(RealTimeStats::FLD_MAXSSL_CONN, DMsg::UIStr('service_maxsslconn'), 'muted', '')), array(array(RealTimeStats::FLD_S_REQ_PROCESSING, DMsg::UIStr('service_reqprocessing'), 'success', 'pinkDark'), array(RealTimeStats::FLD_S_REQ_PER_SEC, DMsg::UIStr('service_reqpersec'), 'success', 'green')));
$servstatplot = array(array(RealTimeStats::FLD_BPS_IN, DMsg::UIStr('service_bpsin'), true), array(RealTimeStats::FLD_BPS_OUT, DMsg::UIStr('service_bpsout'), true), array(RealTimeStats::FLD_SSL_BPS_IN, DMsg::UIStr('service_sslbpsin'), false), array(RealTimeStats::FLD_SSL_BPS_OUT, DMsg::UIStr('service_sslbpsout'), false), array(RealTimeStats::FLD_PLAINCONN, DMsg::UIStr('service_plainconn'), true), array(RealTimeStats::FLD_IDLECONN, DMsg::UIStr('service_idleconn'), false), array(RealTimeStats::FLD_SSLCONN, DMsg::UIStr('service_sslconn'), true), array(RealTimeStats::FLD_S_REQ_PROCESSING, DMsg::UIStr('service_reqprocessing'), false), array(RealTimeStats::FLD_S_REQ_PER_SEC, DMsg::UIStr('service_reqpersec'), true));
?>
<!-- row -->
<div class="row">
<!-- NEW WIDGET START -->
<article class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="jarviswidget">
<header>
<span class="widget-icon"><i class="fa fa-bar-chart-o fa-lg"></i></span>
<h2><?php
DMsg::EchoUIStr('service_livefeeds');
?>
</h2>
<div class="widget-toolbar" role="menu">
<span class="onoffswitch-title"><?php
DMsg::EchoUIStr('service_realtime');
?>
</span>
<span class="onoffswitch">
<input type="checkbox" name="live_feed" class="onoffswitch-checkbox" checked="checked" id="live_feed">
<label class="onoffswitch-label" for="live_feed"> <span class="onoffswitch-inner" data-swchon-text="YES" data-swchoff-text="NO"></span> <span class="onoffswitch-switch"></span> </label> </span>
</div>
</header>
示例3:
<?php
require_once 'inc/auth.php';
echo UI::content_header('fa-list', DMsg::UIStr('menu_tools'), DMsg::UIStr('menu_logviewer'));
?>
<div>
<article>
<div class="well well-sm">
<form class="form-horizontal" name="logform" id="logform">
<fieldset>
<legend>
<!-- div class="btn-group">
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-file-text-o"></i> <span class="caret"> </span>
</button>
<ul class="dropdown-menu">
<li>
<a href="javascript:void(0);">Choose a different file</a>
</li>
</ul>
</div-->
<code id="cur_log_file"></code>
<a href="javascript:download_log()" class="btn btn-xs btn-default"><i class="fa fa-download"></i></a>
<span class="pull-right"><?php
DMsg::EchoUIStr('service_size');
?>
: <code id="cur_log_size"></code>KB</span>
</legend>
示例4: array
$repl = array('%%manual_script%%' => $manual_script);
$buf .= UIBase::warn_divmesg(DMsg::UIStr('buildphp_manualrunnotice', $repl));
$buf .= '
<h5>' . DMsg::ALbl('buildphp_mainstatus') . ': <span id="statusgraphzone"><i class="txt-color-teal fa fa-gear fa-spin"></i></span></h5>
<div>
<pre class="lst-statuszone" id="statuszone"></pre>
</div>
<h5>' . DMsg::ALbl('buildphp_detaillog') . ': </h5>
<div >
<pre class="lst-logzone" id="logzone">' . $cmd . '</pre>
</div>';
$buf .= $this->form_end();
echo $buf;
}
}
echo UI::content_header('fa-list', DMsg::ALbl('menu_tools'), DMsg::ALbl('menu_compilephp'));
$ui = new CompilePHPUI();
$ui->PrintPage();
?>
<script type="text/javascript">
/* DO NOT REMOVE : GLOBAL FUNCTIONS!
* pageSetUp() is needed whenever you load a page.
* It initializes and checks for all basic elements of the page
* and makes rendering easier.
*
*/
pageSetUp();