本文整理汇总了PHP中tabs函数的典型用法代码示例。如果您正苦于以下问题:PHP tabs函数的具体用法?PHP tabs怎么用?PHP tabs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tabs函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addTabs
function addTabs($source)
{
if (func_num_args() > 1) {
if (func_get_args()[1] == false) {
return $source . tabs($this->tabcount);
}
}
return tabs($this->tabcount) . $source;
}
示例2: tabs
<?php
require_once 'layout_tabs.php';
?>
<link rel="stylesheet" type="text/css" media="screen" href="<?php
echo $pageData->css;
?>
" />
<?php
echo tabs($pageData->tabs);
?>
<h1 class="settings">
<fb:name uid="<?php
echo $pageData->userid;
?>
" useyou="false" capitalize="true" possessive="true"/> Friends
</h1>
<fb:if-section-not-added section="profile">
<div class="addmsg"><fb:add-section-button section="profile" />Your profile currently lacks a certain something</div>
</fb:if-section-not-added>
<form action="common.php" method="GET">
<table cellpadding="0" cellspacing="1" class="table friends">
<thead>
<tr>
<th>Compare</th>
<th colspan="2">Friend</th>
<th>Percent</th>
示例3: tabs
}
.ui-jqgrid tr.jqgrow td { border: 0px none;}
</style>
<script src="../../../js/jquery.js" type="text/javascript"></script>
<script src="../../../js/i18n/grid.locale-en.js" type="text/javascript"></script>
<script type="text/javascript">
$.jgrid.no_legacy_api = true;
$.jgrid.useJSON = true;
</script>
<script src="../../../js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script>
</head>
<body>
<div>
<style type="text">
.ui-jqgrid tr.jqgrow td { border: 0px none;}
</style>
<?php
include "treegrid.php";
?>
</div>
<br/>
<?php
tabs(array("treegrid.php"));
?>
</body>
</html>
示例4: usersMenus
include_once('ressources/class.squid.inc');
$usersmenus=new usersMenus();
if(!$usersmenus->AsSquidAdministrator){
$tpl=new templates();
$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
echo "alert('$alert');";
die();
}
if(isset($_POST["ProxyPacCacheTime"])){settings_save();exit;}
if(isset($_GET["settings-js"])){settings_js();exit;}
if(isset($_GET["settings-popup"])){settings_popup();exit;}
if(isset($_POST["EmptyCache"])){EmptyCache();exit;}
if(isset($_GET["tabs"])){tabs();exit;}
if(isset($_GET["help"])){help();exit;}
if(isset($_GET["events"])){events();exit;}
if(isset($_GET["events-search"])){events_search();exit;}
if(isset($_GET["events-script"])){events_script_js();exit;}
if(isset($_GET["events-script-popup"])){events_script_popup();exit;}
if(isset($_GET["events-script-tester-js"])){events_script_tester_js();exit;}
if(isset($_GET["events-script-tester-popup"])){events_script_tester_popup();exit;}
if(isset($_POST["TESTER-URL"])){events_script_tester_perform();exit;}
if(isset($_POST["rebuild-tables"])){rebuild_tables();exit;}
if(isset($_GET["rules"])){rules();exit;}
if(isset($_GET["rules-search"])){rules_search();exit;}
if(isset($_GET["rule-js"])){rules_js();exit;}
示例5: tabs
<?php
require_once 'layout_tabs.php';
?>
<link rel="stylesheet" type="text/css" media="screen" href="<?php
echo $pageData->css;
?>
" />
<?php
echo tabs($pageData->tabs, $pageData->userid);
?>
<h1 class="settings">
<fb:name uid="<?php
echo $pageData->userid;
?>
" useyou="false" capitalize="true" /> is <?php
echo $pageData->percent;
?>
% addicted to film.
<fb:pronoun useyou="false" capitalize="true" uid="<?php
echo $pageData->userid;
?>
" />
has seen <?php
echo $pageData->moviecount;
?>
out of <?php
echo $pageData->totalcount;
示例6: usersMenus
include_once('ressources/class.templates.inc');
include_once('ressources/class.ldap.inc');
include_once('ressources/class.users.menus.inc');
include_once('ressources/class.tcpip.inc');
include_once('ressources/class.system.nics.inc');
include_once('ressources/class.maincf.multi.inc');
$user=new usersMenus();
if($user->AsPostfixAdministrator==false){
$tpl=new templates();
echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
die();exit();
}
if(isset($_GET["instances-tabs"])){tabs();exit;}
if(isset($_GET["instances-list"])){instances_list();exit;}
if(isset($_GET["instances-search"])){instances_search();exit;}
if(isset($_GET["crossroads-list"])){crossroads_list();exit;}
if(isset($_GET["crossroads-search"])){crossroads_search();exit;}
if(isset($_GET["crossroads-delete"])){crossroads_delete();exit;}
if(isset($_GET["instance-duplicate-form"])){instances_duplicate_form();exit;}
if(isset($_GET["add-new-instance"])){instances_duplicate_perform();exit;}
if(isset($_GET["status-instance"])){instance_status();exit;}
if(isset($_GET["delete"])){instance_delete();exit;}
if(isset($_GET["rebuild-instances"])){rebuild_instances();exit;}
js();
示例7: templates
<?php
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.lvm.org.inc';
include_once 'ressources/class.os.system.inc';
include_once 'ressources/class.maincf.multi.inc';
if (!Isright()) {
$tpl = new templates();
echo "alert('" . $tpl->javascript_parse_text('{ERROR_NO_PRIVS}') . "');";
die;
}
if (isset($_GET["tabs"])) {
echo tabs();
exit;
}
if (isset($_GET["status"])) {
echo status();
exit;
}
if (isset($_GET["service-status"])) {
echo status_service();
exit;
}
if (isset($_GET["rules"])) {
echo rules();
exit;
}
if (isset($_GET["DeleteRuleMaster"])) {
DeleteRuleMaster();
示例8: switch
switch ($type_modifier) {
case "pointer":
case "const_pointer":
$object_constants .= tabs(2) . "zval z_{$variable_name};\n";
$object_constants .= tabs(2) . "object_init_ex(&z_{$variable_name}, php_{$plain_type}_entry);\n";
$object_constants .= tabs(2) . "((zo_{$plain_type}*) zend_object_store_get_object(&z_{$variable_name} TSRMLS_CC))->native_object = ({$plain_type}_php*) {$variable_name};\n";
$object_constants .= tabs(2) . "wxPHP_REGISTER_OBJECT_CONSTANT(\"{$variable_name}\", z_{$variable_name}, CONST_CS | CONST_PERSISTENT);\n\n";
break;
case "reference":
case "const_reference":
case "none":
case "const_none":
$object_constants .= tabs(2) . "zval z_{$variable_name};\n";
$object_constants .= tabs(2) . "object_init_ex(&z_{$variable_name}, php_{$plain_type}_entry);\n";
$object_constants .= tabs(2) . "((zo_{$plain_type}*) zend_object_store_get_object(&z_{$variable_name} TSRMLS_CC))->native_object = ({$plain_type}_php*) &{$variable_name};\n";
$object_constants .= tabs(2) . "wxPHP_REGISTER_OBJECT_CONSTANT(\"{$variable_name}\", z_{$variable_name}, CONST_CS | CONST_PERSISTENT);\n\n";
break;
}
break;
default:
//Just skip unknown types
}
}
$classes .= "\n";
$classes .= "\t//Class enumerations\n";
$classes .= "\n";
foreach ($defEnums[0] as $enumClassName => $classEnums) {
//Only add enums of enabled classes
if (isset($defIni[$enumClassName])) {
foreach ($classEnums as $enumName => $enumList) {
foreach ($enumList as $enumOption => $enumValue) {
示例9: jQuery
jQuery(document).ready(function(){
if(Modernizr.input.placeholder) {
jQuery("#supported").append("<div>Your browser support 'placeholder' input property!</div>");
} else {
jQuery("#notsupported").append("<div>Your browser does not support 'placeholder' input property!</div>").addClass('ui-state-error');
}
if(Modernizr.inputtypes.number) {
jQuery("#supported").append("<div>Your browser support input type: number!</div>");
} else {
jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error');
}
});
</script>
</head>
<body>
<div style="margin-left:20px;margin-right: 20px;">
<?php
include "html5placeholder.php";
?>
<div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div>
</div>
<br/>
<div id="supported"></div>
<div id="notsupported"></div>
<?php
tabs(array("html5placeholder.php"));
?>
</body>
</html>
示例10: jQuery
<script src="../../../js/jquery.js" type="text/javascript"></script>
<script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script>
<script src="../../../js/jquery.form.js" type="text/javascript"></script>
<script src="../../../js/modernizr-2.0.6.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
if(Modernizr.inputtypes.number) {
jQuery("#supported").append("<div>Your browser support input type: number!</div>");
} else {
jQuery("#notsupported").append("<div>Your browser does not support input type: number!</div>").addClass('ui-state-error');
}
});
</script>
</head>
<body>
<div style="margin-left:20px;margin-right: 20px;">
<?php
include "sqlsuccess.php";
?>
<div style="text-align: center;margin-top:10px;">This Form is created with HTML5 PHP jqForm builder</div>
</div>
<br/>
<div id="supported"></div>
<div id="notsupported"></div>
<?php
tabs(array("sqlsuccess.php"));
?>
</body>
</html>
示例11: session_start
<?php
session_start();
include_once('ressources/class.templates.inc');
include_once('ressources/class.users.menus.inc');
include_once('ressources/class.openvpn.inc');
include_once('ressources/class.system.network.inc');
include_once('ressources/class.tcpip.inc');
$users=new usersMenus();
if(!$users->AsSystemAdministrator){die("alert('no access');");}
if(isset($_GET["popup"])){tabs();exit();}
if(isset($_GET["server"])){server();exit();}
if(isset($_GET["clients"])){clients();exit();}
if(isset($_POST["ENABLE_SERVER"])){SAVE_SERVER();exit;}
if(isset($_POST["IP_START"])){SAVE_SERVER();exit;}
if(isset($_POST["EnableOpenVPNEndUserPage"])){EnableOpenVPNEndUserPageSave();exit;}
js();
function js(){
$tpl=new templates();
$page=CurrentPageName();
$title=$tpl->_ENGINE_parse_body("{OPENVPN_SERVER_SETTINGS}");
$html="YahooWin4('600','$page?popup=yes','$title')";
echo $html;
示例12: usersMenus
<?php
include_once('ressources/class.templates.inc');
include_once('ressources/class.ldap.inc');
include_once('ressources/class.users.menus.inc');
include_once('ressources/class.squid.inc');
include_once('ressources/class.artica.graphs.inc');
if(posix_getuid()==0){die();}
$user=new usersMenus();
if($user->AsSquidAdministrator==false){
$tpl=new templates();
echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
die();exit();
}
if($_GET["tabs"]){tabs();exit;}
if(isset($_GET["title-caches-perf"])){title_caches_perf();exit;}
if($_GET["period"]=="howto"){howto();exit;}
if($_GET["period"]=="today"){today();exit;}
if($_GET["period"]=="week"){week();exit;}
if($_GET["period"]=="month"){month();exit;}
js();
function js(){
$page=CurrentPageName();
$tpl=new templates();
if(isset($_GET["inline"])){echo "$('#BodyContent').load('$page?tabs=yes');";return;}
$title=$tpl->_ENGINE_parse_body("{cache_performance}::{statistics}");
$html="YahooWin4('750','$page?tabs=yes','$title')";
echo $html;
示例13: classes_get_property_code
/**
* @author Jefferson González
*
* @license
* This file is part of wxPHP check the LICENSE file for information.
*
* @description
* Functions to assist on the generation of the wxWidgets functions
* to php functions code
*
*/
function classes_get_property_code($class_name)
{
global $defClassProperties;
$code = "";
if (isset($defClassProperties[$class_name])) {
$property_index = 0;
foreach ($defClassProperties[$class_name] as $property_name => $property_attributes) {
$type_modifier = "";
$standard_type = parameter_type($property_attributes["type"], false, "MINIT", $class_name, $type_modifier, true);
$property_type = str_replace(array("const ", "&", "*"), "", $property_attributes["type"]);
switch ($type_modifier) {
//If constant skip
case "const_pointer":
case "const_pointer_pointer":
case "const_reference":
case "const_none":
continue;
default:
//If not constant continue
break;
}
if (!$property_attributes["static"]) {
$code .= "else if(strcmp(\"{$property_name}\", name) == 0)\n";
$code .= tabs(1) . "{\n";
} else {
//Skip static properties (we should handle them differently?)
continue;
}
switch ($standard_type) {
case "bool":
switch ($type_modifier) {
case "pointer":
case "pointer_pointer":
$code .= tabs(2) . "RETVAL_BOOL(*((bool*) *((void**) native_object->properties[{$property_index}])));\n";
break;
case "reference":
case "none":
$code .= tabs(2) . "RETVAL_BOOL(*((bool*) native_object->properties[{$property_index}]));\n";
break;
}
break;
case "integer":
case "class_enum":
case "global_enum":
switch ($type_modifier) {
case "pointer":
case "pointer_pointer":
$code .= tabs(2) . "RETVAL_LONG(*(({$property_type}*) *((void**) native_object->properties[{$property_index}])));\n";
break;
case "reference":
case "none":
$code .= tabs(2) . "RETVAL_LONG(*(({$property_type}*) native_object->properties[{$property_index}]));\n";
break;
}
break;
case "float":
switch ($type_modifier) {
case "pointer":
case "pointer_pointer":
$code .= tabs(2) . "RETVAL_DOUBLE(*(({$property_type}*) *((void**) native_object->properties[{$property_index}])));\n";
break;
case "reference":
case "none":
$code .= tabs(2) . "RETVAL_DOUBLE(*(({$property_type}*) native_object->properties[{$property_index}]));\n";
break;
}
break;
case "characters":
switch ($type_modifier) {
case "pointer":
case "pointer_pointer":
$code .= tabs(2) . "RETVAL_STRING(((char*) *((void**) native_object->properties[{$property_index}])), 1);\n";
break;
case "reference":
case "none":
$code .= tabs(2) . "RETVAL_LONG(*((char*) native_object->properties[{$property_index}]));\n";
break;
}
break;
case "date":
switch ($type_modifier) {
case "pointer":
case "pointer_pointer":
$code .= tabs(2) . "RETVAL_LONG(*((wxDateTime*) *((void**) native_object->properties[{$property_index}])).GetTicks());\n";
break;
case "reference":
case "none":
$code .= tabs(2) . "RETVAL_LONG(*((wxDateTime*) native_object->properties[{$property_index}]).GetTicks());\n";
break;
//.........这里部分代码省略.........
示例14: tabs
<body>
<div id="notifications"></div>
<?php
include 'html/templates/interior/timer.php';
?>
<?php
include 'html/templates/interior/idletimeout.php';
?>
<div id = "nav_container">
<?php
$t = tabs($dbh, $_GET['i']);
echo $t;
?>
<div id="menus">
<?php
include 'html/templates/Menus.php';
?>
</div>
</div>
<div id="content">
示例15: tabs
<style type="text">
html, body {
margin: 0; /* Remove body margin/padding */
padding: 0;
overflow: hidden; /* Remove scroll bars on browser window */
font-size: 62.5%;
}
body {
font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif";
}
#tags {z-index: 900}
</style>
<link rel="stylesheet" type="text/css" media="screen" href="../../../themes/redmond/jquery-ui-1.8.2.custom.css" />
<script src="../../../js/jquery.js" type="text/javascript"></script>
<script src="../../../js/jquery.jqChart.min.js" type="text/javascript"></script>
<script src="../../../js/jquery-ui-custom.min.js" type="text/javascript"></script>
</head>
<body>
<div>
<?php
include "chart.php";
?>
</div>
<br/>
<?php
tabs(array("chart.php"));
?>
</body>
</html>