本文整理汇总了PHP中boostrap_form类的典型用法代码示例。如果您正苦于以下问题:PHP boostrap_form类的具体用法?PHP boostrap_form怎么用?PHP boostrap_form使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了boostrap_form类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例2: section_start
function section_start()
{
$boot = new boostrap_form();
$tpl = new templates();
$page = CurrentPageName();
echo $boot->SearchFormGen("searchstring", "session-search", null, null);
}
示例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);
}
示例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);
}
示例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"]}");
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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>";
}
示例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();
}
示例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();
}
示例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);
}
示例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";
}
示例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";
}