本文整理汇总了PHP中boostrap_form类的典型用法代码示例。如果您正苦于以下问题:PHP boostrap_form类的具体用法?PHP boostrap_form怎么用?PHP boostrap_form使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了boostrap_form类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: section_websites_search
function section_websites_search()
{
$boot = new boostrap_form();
$tpl = new templates();
$q = new mysql_squid_builder();
$page = CurrentPageName();
$table = "visited_sites_tot";
$searchstring = string_to_flexquery("sites-search");
$ORDER = $boot->TableOrder(array("size" => "ASC"));
if ($q->COUNT_ROWS($table) == 0) {
senderrors("no data");
}
$sql = "SELECT * FROM {$table} WHERE 1 {$searchstring} ORDER BY {$ORDER} LIMIT 0,250";
$results = $q->QUERY_SQL($sql);
if (!$q->ok) {
senderrors($q->mysql_error . "<br>{$sql}");
}
while ($ligne = mysql_fetch_assoc($results)) {
$md = md5(serialize($ligne));
$ligne["size"] = FormatBytes($ligne["size"] / 1024);
$sitenameenc = urlencode($ligne["familysite"]);
$js = "Loadjs('miniadm.webstats.familysite.all.php?familysite={$sitenameenc}')";
$link = $boot->trswitch($js);
$tr[] = "\n\t\t<tr id='{$md}'>\n\t\t\t<td style='font-size:16px' width=10% nowrap {$link}>{$ligne["familysite"]}</td>\n\t\t\t<td style='font-size:16px' width=1% nowrap {$link}>{$ligne["hits"]}</td>\n\t\t\t<td style='font-size:16px' width=1% nowrap {$link}>{$ligne["size"]}</td>\n\t\t</tr>\n\t\t";
}
echo $boot->TableCompile(array("familysite" => "{familysite}", "hits" => "{hits}", "size" => "{size}"), $tr);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:27,代码来源:miniadm.webstats.bywebsites.php
示例2: section_start
function section_start()
{
$boot = new boostrap_form();
$tpl = new templates();
$page = CurrentPageName();
echo $boot->SearchFormGen("searchstring", "session-search", null, null);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:miniadmin.proxy.monitor.sessions.php
示例3: tabs
function tabs()
{
$users = new usersMenus();
$Privileges_members_admins = Privileges_members_admins();
$AS_PROXY_SECTION = false;
if ($users->SQUID_INSTALLED) {
$AS_PROXY_SECTION = true;
}
if ($users->APP_FTP_PROXY) {
$AS_PROXY_SECTION = true;
}
if ($users->NGINX_INSTALLED) {
$AS_PROXY_SECTION = true;
}
if (isNetSessions()) {
$array["{network_services}"] = "miniadm.network.php?webstats-middle=yes&title=yes";
}
$array["{tasks}"] = "miniadm.system.schedules.php";
$boot = new boostrap_form();
if ($users->AsSquidAdministrator or $users->AsWebMaster) {
if ($users->NGINX_INSTALLED) {
if ($AS_PROXY_SECTION) {
$array["{certificates_center}"] = "miniadmin.certificates.php?tabs=yes&title=yes";
}
}
}
if ($Privileges_members_admins) {
$array["{users_and_groups}"] = "miniadmin.system.members.php?tabs=yes&title=yes";
}
echo $boot->build_tab($array);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:31,代码来源:miniadm.system.php
示例4: tabs
function tabs()
{
$page = CurrentPageName();
$array["{tasks}"] = "miniadm.system.schedules-engine.php";
$array["{parameters}"] = "{$page}?parameters=yes";
$boot = new boostrap_form();
echo $boot->build_tab($array);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:8,代码来源:miniadm.system.schedules.php
示例5: artica_section
function artica_section()
{
$EXPLAIN = array();
$boot = new boostrap_form();
$tpl = new templates();
//$EXPLAIN["BUTTONS"][]=$tpl->_ENGINE_parse_body(button("{new_website}", "YahooWin5('690','freewebs.HTTrack.php?item-id=0&t=0','WebCopy::{new_website}');"));
echo $boot->SearchFormGen("context,text,process,content", "search", "&context={$_GET["context"]}&category={$_GET["category"]}");
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:8,代码来源:miniadm.system.artica-events.php
示例6: syslog_section
function syslog_section()
{
$EXPLAIN = array();
$boot = new boostrap_form();
$tpl = new templates();
//$EXPLAIN["BUTTONS"][]=$tpl->_ENGINE_parse_body(button("{new_website}", "YahooWin5('690','freewebs.HTTrack.php?item-id=0&t=0','WebCopy::{new_website}');"));
echo $boot->SearchFormGen("service", "search", null);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:8,代码来源:miniadm.system.syslog-query.php
示例7: tabs
function tabs()
{
$page = CurrentPageName();
$tpl = new templates();
$t = time();
$boot = new boostrap_form();
$array["{status}"] = "{$page}?status=yes";
echo $boot->build_tab($array);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:9,代码来源:miniadmin.zpush.php
示例8: tabs
function tabs()
{
$page = CurrentPageName();
$sock = new sockets();
$mini = new boostrap_form();
$array["{parameters}"] = "squid.main.quicklinks.php?architecture-users=yes";
$array["{IT_charter}"] = "miniadmin.proxy.charter.php?tabs=yes";
echo $mini->build_tab($array);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:9,代码来源:miniadmin.proxy.userinteraction.php
示例9: tabs
function tabs()
{
$page = CurrentPageName();
$tpl = new templates();
$t = time();
$boot = new boostrap_form();
$array["{localdomains}"] = "miniadm.messaging.domains.php";
$array["{parameters}"] = "domains.manage.org.index.php?org_section=postfix&SwitchOrgTabs={$_SESSION["ou"]}&ou={$_SESSION["ou"]}&mem=yes&dn=&miniadm=yes";
echo $boot->build_tab($array);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:10,代码来源:miniadmin.messaging.organization.php
示例10: generate_graph
function generate_graph()
{
include_once 'ressources/class.artica.graphs.inc';
$q = new mysql_squid_builder();
$page = CurrentPageName();
$tpl = new templates();
$t = $_GET["t"];
$ff = time();
$boot = new boostrap_form();
$sql = "SELECT zDate,not_categorized FROM tables_day WHERE not_categorized>0";
$c = 0;
$results = $q->QUERY_SQL($sql);
if (!$q->ok) {
echo "<H2>{$q->mysql_error}</H2><center style='font-size:11px'><code>{$sql}</code></center>";
}
if (mysql_num_rows($results) > 0) {
$nb_events = mysql_num_rows($results);
while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
$xdata[] = $ligne["zDate"];
$ydata[] = $ligne["not_categorized"];
$c++;
$timeDate = strtotime($ligne["zDate"] . " 00:00:00");
$timeText = time_to_date($timeDate);
$js = $boot->trswitch("Loadjs('squid.visited.php?day={$ligne["zDate"]}&onlyNot=yes')");
$jsrecat = $boot->trswitch("Loadjs('squid.visited.php?recategorize-day-js={$ligne["zDate"]}&href={$page}')");
$BIGTABLE[] = "\n\t\t<tr>\n\t\t\t<td {$js}>{$timeText}</td>\n\t\t\t<td {$js}><strong style='font-size:18px'>{$ligne["not_categorized"]}</strong></td>\n\t\t\t<td {$jsrecat} width=1% nowrap><img src='img/loupe-32.png'></td>\n\t\t</tr>\n\t\t";
}
$Main = array($xdata, $ydata);
$Main = urlencode(base64_encode(serialize($Main)));
$t = time();
echo "<center>\n\t\t\t<div style='font-size:18px;margin-bottom:10px'>" . $tpl->_ENGINE_parse_body("{not_categorized}/{days}") . "</div>\n\t\t\t<div id='{$ff}-graph' style='width:940px;height:450px'><center><img src='img/wait_verybig_mini_red.gif'></center></div>\n\t\t\t</center>";
}
$BIGTABLE_COMPILED = $tpl->_ENGINE_parse_body("\n\t\t<table class='table table-bordered table-hover'>\n\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th>{date}</th>\n\t\t\t\t\t<th colspan=2>{websites}</th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t <tbody>\n\t\t\t") . @implode("", $BIGTABLE) . "</tbody></table>";
echo "<center>\n\t\t<div style='margin:8px;float-right;width:100%'>" . $tpl->_ENGINE_parse_body(button("{analyze}", "NoCategorizedAnalyze()", 18)) . "</div>\n\t\t</center>\n\t\t{$BIGTABLE_COMPILED}\n\t\n\t\t<script>\n\t\tfunction NoCategorizedAnalyze(){\n\t\t\n\t\t}\n\t\t\n\tvar x_NoCategorizedAnalyze= function (obj) {\n\t\t\tvar tempvalue=obj.responseText;\n\t\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t \twindow.location.href = '{$page}';\n\t\t}\t\n\n\t\tfunction NoCategorizedAnalyze(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('NoCategorizedAnalyze','yes');\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_NoCategorizedAnalyze);\n\t\t}\n\t\t\n\t\tLoadjs('{$page}?graphjs=yes&container={$ff}-graph&data={$Main}');\n\t\t\n\t</script>";
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:35,代码来源:miniadm.webstats.notcategorized-days.php
示例11: parameters
function parameters()
{
$users = new usersMenus();
$sock = new sockets();
$FailOverArtica = $sock->GET_INFO("FailOverArtica");
if (!is_numeric($FailOverArtica)) {
$FailOverArtica = 1;
}
$FailOverArticaParams = unserialize(base64_decode($sock->GET_INFO("FailOverArticaParams")));
if (!is_numeric($FailOverArticaParams["squid-internal-mgr-info"])) {
$FailOverArticaParams["squid-internal-mgr-info"] = 1;
}
if (!is_numeric($FailOverArticaParams["ExternalPageToCheck"])) {
$FailOverArticaParams["ExternalPageToCheck"] = 1;
}
$boot = new boostrap_form();
$boot->set_checkbox("FailOverArtica", "{FailOverArtica}", $FailOverArtica, array("TOOLTIP" => "{FailOverArtica_explain}", "DISABLEALL" => true));
$boot->set_spacertitle("{APP_PROXY}");
$boot->set_checkbox("squid-internal-mgr-info", "{failover_mgrinfo}", $FailOverArticaParams["squid-internal-mgr-info"], array("TOOLTIP" => "{failover_mgrinfo_explain}"));
$boot->set_checkbox("ExternalPageToCheck", "{failover_ExternalPageToCheck}", $FailOverArticaParams["ExternalPageToCheck"], array("TOOLTIP" => "{failover_ExternalPageToCheck_explain}"));
if (!$users->CORP_LICENSE) {
$boot->set_form_locked();
}
echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:25,代码来源:miniadm.ucarp.php
示例12: popup
function popup()
{
$tpl = new templates();
$page = CurrentPageName();
$ID = $_GET["ID"];
$title = "{new_page}";
$buttonname = "{add}";
if ($ID > 0) {
$q = new mysql_squid_builder();
$ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM reverse_pages_content WHERE ID='{$ID}'"));
$title = $ligne["subject"];
$buttonname = "{apply}";
}
if ($ligne["content"] == null) {
$ligne["content"] = "<html>\n<head>\n<title>It's works</title>\n</head>\n<body>\n\t<H1>It works!</H1>\n</body>\n</html>";
}
$boot = new boostrap_form();
$boot->set_hidden("ID", $ID);
$boot->set_formtitle($title);
if (!is_numeric($ligne["cachemin"])) {
$ligne["cachemin"] = 5;
}
$boot->set_list("cachemin", "{cache}", $ligne["cachemin"], $q->CACHE_AGES);
$boot->set_field("subject", "{subject}", $ligne["subject"]);
$boot->set_textarea("content", "{content}", $ligne["content"], array("ENCODE" => true, "HEIGHT" => 350));
$boot->set_button($buttonname);
$boot->set_RefreshSearchs();
if ($ID == 0) {
$boot->set_CloseYahoo("YahooWin6");
}
echo $boot->Compile();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:32,代码来源:miniadmin.crm.pages.php
示例13: tabs
function tabs()
{
$page = CurrentPageName();
$tpl = new templates();
$t = time();
$boot = new boostrap_form();
$mini = new miniadm();
$users = new usersMenus();
$ldap = new clladp();
$tpl = new templates();
if (isset($_GET["title"])) {
$title = $tpl->_ENGINE_parse_body("<H3>{users_and_groups}</H3><p>{users_and_groups_system_explain}</p>");
}
if ($ldap->IsKerbAuth()) {
$array["{activedirectory_members}"] = "miniadm.members.browse.php?section-search-ad=yes";
}
$array["{radius_members}"] = "miniadm.system.members.radius.php";
if ($mini->IFItsProxy()) {
$array["{hostpot_members}"] = "miniadmin.hotspot.php?tabs=yes&title=yes";
}
echo $title . $boot->build_tab($array);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:22,代码来源:miniadmin.system.members.php
示例14: search
function search()
{
if (!CheckRights()) {
senderror("{ERROR_NO_PRIVS}");
}
$boot = new boostrap_form();
$sock = new sockets();
$users = new usersMenus();
$maillog_path = $users->maillog_path;
$tpl = new templates();
$t = time();
$query = base64_encode($_GET["search"]);
if (!is_numeric($_POST["rp"])) {
$_POST["rp"] = 500;
}
$array = unserialize(base64_decode($sock->getFrameWork("postfix.php?query-maillog=yes&filter={$query}&maillog={$maillog_path}&rp={$_POST["rp"]}&zarafa-filter={$_GET["zarafa-filter"]}&mimedefang-filter={$_GET["mimedefang-filter"]}")));
$array = explode("\n", @file_get_contents("/usr/share/artica-postfix/ressources/logs/web/query.mail.log"));
krsort($array);
$zDate = $tpl->_ENGINE_parse_body("{zDate}");
$hostTXT = $tpl->_ENGINE_parse_body("{host}");
$serviceTXT = $tpl->_ENGINE_parse_body("{servicew}");
$eventsTXT = $tpl->_ENGINE_parse_body("{events}");
while (list($index, $line) = each($array)) {
$lineenc = base64_encode($line);
if (preg_match("#^[a-zA-Z]+\\s+[0-9]+\\s+([0-9\\:]+)\\s+(.+?)\\s+(.+?)\\[([0-9]+)\\]:(.+)#", $line, $re)) {
$date = "{$re[1]}";
$host = $re[2];
$service = $re[3];
$pid = $re[4];
$line = $re[5];
}
$class = LineToClass($line);
$img = statusLogs($line);
$loupejs = "ZoomEvents('{$lineenc}')";
$trSwitch = $boot->trswitch("blur()");
$tr[] = "\n\t\t<tr id='{$id}' class={$class} {$trSwitch}>\n\t\t<td style='font-size:12px' {$trSwitch} width=1% nowrap><i class='icon-time'></i> {$date}</td>\n\t\t<td style='font-size:12px' nowrap {$trSwitch} width=1% nowrap><i class='icon-arrow-right'></i> {$host}</td>\n\t\t<td style='font-size:12px' nowrap {$trSwitch} width=1% nowrap>{$service}</td>\n\t\t<td style='text-align:center;font-size:12px' width=1% nowrap>{$pid}</td>\n\t\t<td style='text-align:center;font-size:12px' width=1% nowrap><img src='{$img}'></td>\n\t\t<td style='font-size:12px' nowrap {$trSwitch} width=99% nowrap>{$line}</td>\n\t\t</tr>";
}
echo $tpl->_ENGINE_parse_body("\n\t\n\t\t\t<table class='table table-bordered table-hover'>\n\t\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th>{$zDate}</th>\n\t\t\t\t\t<th>{$hostTXT}</th>\n\t\t\t\t\t<th>{$serviceTXT}</th>\n\t\t\t\t\t<th>PID</th>\n\t\t\t\t\t<th colspan=2>{$eventsTXT}</th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t <tbody>\n\t\t\t") . @implode("\n", $tr) . " </tbody>\n\t\t\t\t</table>\n\t\t\t\t<script>\n\n\t</script>\n\t";
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:39,代码来源:miniadmin.postfix.events.php
示例15: SearchTask
function SearchTask()
{
$boot = new boostrap_form();
$sock = new sockets();
$q = new mysql_squid_builder();
$tpl = new templates();
$CheckRunningTasks = base64_decode(unserialize($sock->getFrameWork("squid.php?CheckRunningTasks=yes")));
$table = "webfilters_schedules";
$searchstring = string_to_flexquery("SearchTask");
$sql = "SELECT * FROM {$table} WHERE TaskType={$_GET["TaskID"]} {$searchstring}";
$results = $q->QUERY_SQL($sql);
$q2 = new mysql();
$MyPage = CurrentPageName();
$schedules = new system_tasks();
while ($ligne = mysql_fetch_assoc($results)) {
$sincerun = null;
$tools = array();
$delete = imgtootltip("delete-24.png", "{delete} {$ligne['ID']}", "SquidTaskDelete('{$ligne['ID']}')");
$disabled = null;
if (isset($CheckRunningTasks[$ligne['ID']])) {
$run_icon = "preloader.gif";
}
//print_r($ligne);
$TimeText = $tpl->_ENGINE_parse_body($schedules->PatternToHuman($ligne["TimeText"]));
$TimeText = str_replace("<br>", "", $TimeText);
if (intval($ligne["enabled"]) == 0) {
$disabled = $tpl->_ENGINE_parse_body("<span class='label label-info'>{disabled}</span> ");
}
if (isset($CheckRunningTasks[$ligne['ID']])) {
$sincerun = "<br><i>{$CheckRunningTasks[$ligne['ID']]}</i>";
}
$tablename = "TaskSq{$ligne['ID']}";
if ($q2->TABLE_EXISTS($tablename, "artica_events")) {
$evs = $q2->COUNT_ROWS($tablename, "artica_events");
if ($evs > 0) {
$tools[] = "<i class='icon-info-sign'></i> {$evs} {events}";
}
}
$js = $boot->trswitch("Loadjs('miniadm.ajax.proxy.schedule.php?ID={$ligne['ID']}');");
$ligne["TimeDescription"] = utf8_encode($ligne["TimeDescription"]);
$delete = "<td {$js} width=1% style='text-align:center'>{$delete}</td>";
$delete = null;
$tr[] = "\n\t\t<tr class='{$class}'>\n\t\t<td {$js} width=1%>{$ligne['ID']}</td>\n\t\t<td {$js} >{$disabled}<strong style='font-size:16px;font-weight:bold'>{$ligne["TimeDescription"]}</strong>{$sincerun}<div>{$TimeText}</div><div style='font-size:11px'>" . $tpl->_ENGINE_parse_body(@implode(" | ", $tools)) . "</div></td>\n\t\t\n\t\t</tr>\n\t\t";
}
$tpl = new templates();
echo $tpl->_ENGINE_parse_body("<table class='table table-bordered table-hover'>\n\t\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th width=1%>{ID}</th>\n\t\t\t\t\t<th width=98%>{task}</th>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t <tbody>\n\t\t\t") . @implode("\n", $tr) . " </tbody>\n\t\t\n\t\t\t</table>\n";
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:47,代码来源:miniadm.ajax.squid.schedules.php
示例16: today
function today()
{
$boot = new boostrap_form();
echo $boot->SearchFormGen("uid,ipaddr,sitename,words", "search-today");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:5,代码来源:miniadmin.proxy.keywords.php
示例17: webstats_middle_table_items
function webstats_middle_table_items()
{
$t = $_GET["t"];
$tpl = new templates();
$MyPage = CurrentPageName();
$q = new mysql_squid_builder();
$users = new usersMenus();
$sock = new sockets();
$xtime = $_GET["xtime"];
$database = "squidlogs";
$tablename_members = date("Ymd", $_GET["xtime"]) . "_members";
if ($_GET["FILTER"] == null) {
$_GET["FILTER"] = which_filter($tablename_members);
}
$subtable = "( SELECT {$_GET["FILTER"]},SUM(size) as size, SUM(hits) as hits FROM `{$tablename_members}` \n\tGROUP BY {$_GET["FILTER"]} HAVING LENGTH({$_GET["FILTER"]})>0) as t";
$search = '%';
$table = $subtable;
$page = 1;
$FORCE_FILTER = null;
$dansguardian_events = date("Ymd", $xtime) . "_hour";
if (!$q->TABLE_EXISTS($tablename_members, $database)) {
json_error_show("{$table} doesn't exists...");
}
if ($q->COUNT_ROWS($tablename_members, $database) == 0) {
json_error_show("No data");
}
if (isset($_POST["sortname"])) {
if ($_POST["sortname"] != null) {
$ORDER = "ORDER BY {$_POST["sortname"]} {$_POST["sortorder"]}";
}
}
if (isset($_POST['page'])) {
$page = $_POST['page'];
}
$searchstring = string_to_flexquery("items");
if (isset($_POST['rp'])) {
$rp = $_POST['rp'];
}
$boot = new boostrap_form();
$pageStart = ($page - 1) * $rp;
$limitSql = "LIMIT {$pageStart}, {$rp}";
$sql = "SELECT * FROM {$table} WHERE 1 {$searchstring} {$FORCE_FILTER} ORDER BY size DESC LIMIT 0,150";
writelogs($sql, __FUNCTION__, __FILE__, __LINE__);
$results = $q->QUERY_SQL($sql, $database);
while ($ligne = mysql_fetch_assoc($results)) {
$zmd5 = md5(serialize($ligne));
$color = "black";
//familysite size hits
$colorsize = "black";
$sizeorg = $ligne["size"];
$ligne["hits"] = numberFormat($ligne["hits"], 0, "", " ");
$ligne["size"] = FormatBytes($ligne["size"] / 1024);
if ($sizeorg > 102400000) {
$colorsize = "#4E0000";
}
if ($sizeorg > 512000000) {
$colorsize = "#9A0000";
}
// https://192.168.1.106:9000/
$urljs = "Loadjs('squid.members.zoom.php?table={$dansguardian_events}&field={$_GET["FILTER"]}&value={$ligne["{$_GET["FILTER"]}"]}')";
$link = $boot->trswitch($urljs);
$tr[] = "\n\t<tr id='{$id}'>\n\t<td {$link}><i class='icon-user'></i> {$ligne["name"]}</a>{$ligne["{$_GET["FILTER"]}"]}</td>\n\t<td {$link}><i class='icon-globe'></i> {$ligne["hits"]}</td>\n\t<td {$link}><i class='icon-globe'></i> {$ligne["size"]}</td>\n\t</tr>";
}
echo $tpl->_ENGINE_parse_body("\n\t\t\n\t\t<table class='table table-bordered table-hover'>\n\t\t\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th>{{$_GET["FILTER"]}}</th>\n\t\t\t\t\t<th>{hits}</th>\n\t\t\t\t\t<th>{size}</th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t <tbody>\n\t\t\t") . @implode("\n", $tr) . " </tbody>\n\t\t</table>";
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:65,代码来源:miniadm.webstats.websites.ByDayMembers.php
示例18: search
function search()
{
$page = CurrentPageName();
$boot = new boostrap_form();
$tpl = new templates();
$searchstring = string_to_flexquery("search");
$ORDER = $boot->TableOrder(array("subject" => "ASC"));
$limitSql = "LIMIT 0,250";
$sql = "SELECT * FROM reverse_pages_content WHERE 1 {$searchstring} ORDER BY {$ORDER} {$limitSql}";
$q = new mysql_squid_builder();
$results = $q->QUERY_SQL($sql);
if (!$q->ok) {
echo $q->mysql_error_html();
}
while ($ligne = mysql_fetch_assoc($results)) {
$ID = $ligne["ID"];
$jsselect = null;
$select = null;
$js = $boot->trswitch("Loadjs('miniadmin.crm.pages.php?ID={$ID}')");
if ($_GET["field-id"] != null) {
$select = "Loadjs('{$page}?select-js=yes&ID={$ID}&field-id={$_GET["field-id"]}')";
$jsselect = $boot->trswitch($select);
$select_img = imgsimple("arrow-right-24.png", null, $select);
}
$delete_img = imgsimple("delete-24.png", null, "Loadjs('{$page}?delete-js=yes&ID={$ID}')");
$tr[] = "\n\t<tr id='{$ligne["ID"]}'>\n\t<td width='99%' nowrap {$js}><i class='icon-tags'></i> {$ligne["subject"]}</a></td>\n\t<td width='45px' nowrap style='vertical-align:middle;text-align:center'>{$select_img}</td>\n\t<td width='45px' nowrap style='vertical-align:middle;text-align:center'>{$delete_img}</td>\n\t</tr>";
}
$html = $boot->TableCompile(array("subject" => "{subject}", "ID" => "select", "delete" => "{delete}"), $tr);
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:30,代码来源:miniadmin.crm.browsepages.php
示例19: settings
function settings()
{
$tpl = new templates();
$page = CurrentPageName();
$q = new mysql_catz();
$users = new usersMenus();
$sock = new sockets();
$SquidDBTuningParameters = unserialize(base64_decode($sock->GET_INFO("MySQLCatzParams")));
$query_cache_size = $SquidDBTuningParameters["query_cache_size"];
$max_allowed_packet = $SquidDBTuningParameters["max_allowed_packet"];
$max_connections = $SquidDBTuningParameters["max_connections"];
$connect_timeout = $SquidDBTuningParameters["connect_timeout"];
$interactive_timeout = $SquidDBTuningParameters["interactive_timeout"];
$key_buffer_size = $SquidDBTuningParameters["key_buffer_size"];
$table_open_cache = $SquidDBTuningParameters["table_open_cache"];
$myisam_sort_buffer_size = $SquidDBTuningParameters["myisam_sort_buffer_size"];
$ListenPort = $SquidDBTuningParameters["ListenPort"];
$tmpdir = $SquidDBTuningParameters["tmpdir"];
if (!isset($SquidDBTuningParameters["net_read_timeout"])) {
$SquidDBTuningParameters["net_read_timeout"] = 120;
}
$serverMem = round(($users->MEM_TOTAL_INSTALLEE - 300) / 1024);
$VARIABLES = $q->SHOW_VARIABLES();
if (is_array($SquidDBTuningParameters)) {
while (list($key, $value) = each($SquidDBTuningParameters)) {
if (isset($SquidDBTuningParameters[$key])) {
if ($GLOBALS["VERBOSE"]) {
echo "VARIABLES[{$key}]={$VARIABLES[$key]} MySQLCatzParams[{$key}]={$SquidDBTuningParameters[$key]}<br>\n";
}
if ($VARIABLES[$key] == null) {
$VARIABLES[$key] = $SquidDBTuningParameters[$key];
}
}
}
}
$read_buffer_size = round($VARIABLES["read_buffer_size"] / 1024 / 1000, 2);
$read_rnd_buffer_size = round($VARIABLES["read_rnd_buffer_size"] / 1024 / 1000, 2);
$sort_buffer_size = round($VARIABLES["sort_buffer_size"] / 1024 / 1000, 2);
$thread_stack = round($VARIABLES["thread_stack"] / 1024 / 1000, 2);
$join_buffer_size = round($VARIABLES["join_buffer_size"] / 1024 / 1000, 2);
$max_tmp_table_size = round($VARIABLES["max_tmp_table_size"] / 1024 / 1000, 2);
$innodb_log_buffer_size = round($VARIABLES["innodb_log_buffer_size"] / 1024 / 1000, 2);
$innodb_additional_mem_pool_size = round($VARIABLES["innodb_additional_mem_pool_size"] / 1024 / 1000, 2);
$innodb_log_buffer_size = round($VARIABLES["innodb_log_buffer_size"] / 1024 / 1000, 2);
$innodb_buffer_pool_size = round($VARIABLES["innodb_buffer_pool_size"] / 1024 / 1000, 2);
$max_connections = $VARIABLES["max_connections"];
$per_thread_buffers = $sort_buffer_size + $read_rnd_buffer_size + $sort_buffer_size + $thread_stack + $join_buffer_size;
$total_per_thread_buffers = $per_thread_buffers * $max_connections;
if ($total_per_thread_buffers > $serverMem) {
$color = "#EB0000";
}
$query_cache_size = round($VARIABLES["query_cache_size"] / 1024 / 1000, 2);
$key_buffer_size = round($VARIABLES["key_buffer_size"] / 1024 / 1000, 2);
if ($tmpdir == null) {
$tmpdir = "/tmp";
}
$server_buffers = $key_buffer_size + $max_tmp_table_size + $innodb_buffer_pool_size + $innodb_additional_mem_pool_size + $innodb_log_buffer_size + $query_cache_size;
if ($server_buffers > $serverMem) {
$color = "#EB0000";
}
$max_used_memory = $server_buffers + $total_per_thread_buffers;
if ($max_used_memory > $serverMem) {
$color = "#EB0000";
}
$UNIT = "M";
if ($max_used_memory > 1000) {
$max_used_memory = round($max_used_memory / 1000, 2);
$UNIT = "G";
}
if (!is_numeric($ListenPort)) {
$ListenPort = 0;
}
$boot = new boostrap_form();
$boot->set_hidden("innodb_buffer_pool_size", $innodb_buffer_pool_size);
$boot->set_hidden("innodb_additional_mem_pool_size", $innodb_additional_mem_pool_size);
$boot->set_hidden("innodb_log_buffer_size", $innodb_log_buffer_size);
$boot->set_spacertitle("{threads}:");
$boot->set_field("read_buffer_size", "{read_buffer_size} (MB)", $read_buffer_size, array("TOOLTIP" => "{read_buffer_size_text}"));
$boot->set_field("read_rnd_buffer_size", "{read_rnd_buffer_size} (MB)", $read_rnd_buffer_size, array("TOOLTIP" => "{read_rnd_buffer_size_text}"));
$boot->set_field("sort_buffer_size", "{sort_buffer_size} (MB)", $sort_buffer_size, array("TOOLTIP" => "{sort_buffer_size_text}"));
$boot->set_field("thread_stack", "Thread Stack", $thread_stack, array("TOOLTIP" => "{thread_stack_text}"));
$boot->set_spacertitle("{server}:");
$boot->set_field("ListenPort", "{listen_port}", $ListenPort);
$boot->set_field("tmpdir", "{working_directory}", $tmpdir, array("BUTTON" => array("LABEL" => "{browse}", "JS" => "Loadjs('SambaBrowse.php?no-shares=yes&field=%f&no-hidden=yes')")));
$boot->set_field("net_read_timeout", "{net_read_timeout} ({seconds})", $SquidDBTuningParameters["net_read_timeout"]);
$boot->set_field("max_connections", "{max_connections}", $max_connections);
$boot->set_field("key_buffer_size", "{key_buffer_size} (MB)", $key_buffer_size);
$boot->set_field("max_tmp_table_size", "MAX TMP Table size (MB)", $max_tmp_table_size);
$boot->set_field("query_cache_size", "{query_cache_size} (MB)", $query_cache_size, array("TOOLTIP" => "{thread_stack_text}"));
$boot->set_button("{apply}");
$boot->set_formdescription("{$server_buffers}M + {$total_per_thread_buffers}M = {$max_used_memory}{$UNIT}");
$html = $boot->Compile();
echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:94,代码来源:miniadm.proxy.category.database.php
示例20: proxy_behavior
function proxy_behavior()
{
$boot = new boostrap_form();
$boot->set_formtitle("{proxy_behavior}");
$boot->set_formdescription("{proxy_behavior_explain}");
$sock = new sockets();
$exclusive_internet_proxy = 1;
$exclusive_reverse_proxy = 0;
$mixed_mode = 0;
$SquidActHasReverse = $sock->GET_INFO("SquidActHasReverse");
$SquidActHasReverseOnly = $sock->GET_INFO("SquidActHasReverseOnly");
if (!is_numeric($SquidActHasReverse)) {
$SquidActHasReverse = 0;
}
if (!is_numeric($SquidActHasReverseOnly)) {
$SquidActHasReverseOnly = 0;
}
if ($SquidActHasReverseOnly == 1) {
$exclusive_internet_proxy = 0;
$exclusive_reverse_proxy = 1;
$mixed_mode = 0;
}
if ($SquidActHasReverseOnly == 0) {
if ($SquidActHasReverse == 1) {
$exclusive_internet_proxy = 0;
$exclusive_reverse_proxy = 0;
$mixed_mode = 1;
}
}
$boot->set_checkbox("exclusive_reverse_proxy", "{exclusive_reverse_proxy}", $exclusive_reverse_proxy);
$boot->set_checkbox("exclusive_internet_proxy", "{exclusive_internet_proxy}", $exclusive_internet_proxy);
$boot->set_checkbox("mixed_mode", "{mixed_mode}", $mixed_mode);
$boot->set_button("{apply}");
echo $boot->Compile();
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:35,代码来源:miniadmin.proxy.php
注:本文中的boostrap_form类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论