本文整理匯總了PHP中admin::user_subtabs方法的典型用法代碼示例。如果您正苦於以下問題:PHP admin::user_subtabs方法的具體用法?PHP admin::user_subtabs怎麽用?PHP admin::user_subtabs使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類admin
的用法示例。
在下文中一共展示了admin::user_subtabs方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
*
* PHP version 5
* LICENSE: This source file is subject to LGPL license
* that is available through the world-wide-web at the following URI:
* http://www.gnu.org/copyleft/lesser.html
* @author Ushahidi Team <team@ushahidi.com>
* @package Ushahidi - http://source.ushahididev.com
* @module API Controller
* @copyright Ushahidi - http://www.ushahidi.com
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL)
*/
?>
<div class="bg">
<h2>
<?php
admin::user_subtabs("users");
?>
</h2>
<!-- report-table -->
<div class="report-form">
<!-- report-table -->
<?php
print form::open();
?>
<input type="hidden" name="action" id="action" value="">
<div class="table-holder">
<table class="table">
<thead>
<tr>
<th class="col-1">
示例2: foreach
*
* PHP version 5
* LICENSE: This source file is subject to LGPL license
* that is available through the world-wide-web at the following URI:
* http://www.gnu.org/copyleft/lesser.html
* @author Ushahidi Team <team@ushahidi.com>
* @package Ushahidi - http://source.ushahididev.com
* @module Roles View
* @copyright Ushahidi - http://www.ushahidi.com
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL)
*/
?>
<div class="bg">
<h2>
<?php
admin::user_subtabs("roles");
?>
</h2>
<?php
if ($form_error) {
?>
<!-- red-box -->
<div class="red-box">
<h3><?php
echo Kohana::lang('ui_admin.error_msg');
?>
</h3>
<ul>
<?php
foreach ($errors as $error_item => $error_description) {
示例3: foreach
*
* PHP version 5
* LICENSE: This source file is subject to LGPL license
* that is available through the world-wide-web at the following URI:
* http://www.gnu.org/copyleft/lesser.html
* @author Ushahidi Team <team@ushahidi.com>
* @package Ushahidi - http://source.ushahididev.com
* @module Edit User View
* @copyright Ushahidi - http://www.ushahidi.com
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL)
*/
?>
<div class="bg">
<h2>
<?php
admin::user_subtabs("users_edit");
?>
</h2>
<?php
if ($form_error) {
?>
<!-- red-box -->
<div class="red-box">
<h3><?php
echo Kohana::lang('ui_main.error');
?>
</h3>
<ul>
<?php
foreach ($errors as $error_item => $error_description) {
print !$error_description ? '' : "<li>" . $error_description . "</li>";
示例4: foreach
*
* PHP version 5
* LICENSE: This source file is subject to LGPL license
* that is available through the world-wide-web at the following URI:
* http://www.gnu.org/copyleft/lesser.html
* @author Ushahidi Team <team@ushahidi.com>
* @package Ushahidi - http://source.ushahididev.com
* @module Roles View
* @copyright Ushahidi - http://www.ushahidi.com
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL)
*/
?>
<div class="bg">
<h2>
<?php
admin::user_subtabs("roles", $display_roles);
?>
</h2>
<?php
if ($form_error) {
?>
<!-- red-box -->
<div class="red-box">
<h3><?php
echo Kohana::lang('ui_admin.error_msg');
?>
</h3>
<ul>
<?php
foreach ($errors as $error_item => $error_description) {
示例5:
* Users view page.
*
* PHP version 5
* LICENSE: This source file is subject to LGPL license
* that is available through the world-wide-web at the following URI:
* http://www.gnu.org/copyleft/lesser.html
* @author Ushahidi Team <team@ushahidi.com>
* @package Ushahidi - http://source.ushahididev.com
* @module API Controller
* @copyright Ushahidi - http://www.ushahidi.com
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL)
*/
?>
<div class="bg">
<h2>
<?php admin::user_subtabs("users"); ?>
</h2>
<!-- report-table -->
<div class="report-form">
<!-- report-table -->
<?php print form::open(NULL,array('id' => 'userMain', 'name' => 'userMain')); ?>
<input type="hidden" name="action" id="action" value="">
<input type="hidden" name="user_id_action" id="user_id_action" value="">
<div class="table-holder">
<table class="table">
<thead>
<tr>
<th class="col-1">
</th>
<th class="col-2">
示例6: foreach
*
* PHP version 5
* LICENSE: This source file is subject to LGPL license
* that is available through the world-wide-web at the following URI:
* http://www.gnu.org/copyleft/lesser.html
* @author Ushahidi Team <team@ushahidi.com>
* @package Ushahidi - http://source.ushahididev.com
* @module Edit User View
* @copyright Ushahidi - http://www.ushahidi.com
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License (LGPL)
*/
?>
<div class="bg">
<h2>
<?php
admin::user_subtabs("users_edit", $display_roles);
?>
</h2>
<?php
if ($form_error) {
?>
<!-- red-box -->
<div class="red-box">
<h3><?php
echo Kohana::lang('ui_main.error');
?>
</h3>
<ul>
<?php
foreach ($errors as $error_item => $error_description) {
print !$error_description ? '' : "<li>" . $error_description . "</li>";