当前位置: 首页>>代码示例>>PHP>>正文


PHP show_users函数代码示例

本文整理汇总了PHP中show_users函数的典型用法代码示例。如果您正苦于以下问题:PHP show_users函数的具体用法?PHP show_users怎么用?PHP show_users使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了show_users函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

						<?php 
$tabs = array("users-karma", "users-comments", "users-posts");
?>

						<?php 
foreach ($tabs as $tab => $tabname) {
    ?>
							<div class="tabs__tab<?php 
    if ($tab == 0) {
        echo ' is-visible';
    }
    ?>
">

								<?php 
    show_users($tabname);
    ?>

							</div>
						<?php 
}
?>

					</div>
				</div>
			</div>
		</section>

	</div><!-- .main -->

	<footer class="footer">
开发者ID:artiparty,项目名称:free-design-consultation,代码行数:31,代码来源:index.php

示例2: elseif

            // TODO: repopulate domain name(s) to the form if there was an error occured
            $error = true;
        } elseif (add_domain($domain, $owner, $dom_type, '', $zone_template)) {
            success("<a href=\"edit.php?id=" . get_zone_id_from_name($domain) . "\">" . $domain . " - " . SUC_ZONE_ADD . '</a>');
        }
    }
    if (false === $error) {
        unset($domains, $owner, $dom_type, $zone_template);
    }
}
if ($zone_master_add != "1") {
    error(ERR_PERM_ADD_ZONE_MASTER);
} else {
    echo "     <h2>" . _('Add master zone') . "</h2>\n";
    $available_zone_types = array("MASTER", "NATIVE");
    $users = show_users();
    $zone_templates = get_list_zone_templ($_SESSION['userid']);
    echo "     <form method=\"post\" action=\"add_zone_master.php\">\n";
    echo "      <table>\n";
    echo "       <tr>\n";
    echo "        <td class=\"n\">" . _('Zone name') . ":</td>\n";
    echo "        <td class=\"n\">\n";
    echo "         <ul id=\"domain_names\" style=\"list-style-type:none; padding:0 \">\n";
    echo "          <li><input type=\"text\" class=\"input\" name=\"domain[]\" value=\"\" id=\"domain_1\"></li>\n";
    echo "         </ol>\n";
    echo "        </td>\n";
    echo "        <td class=\"n\">\n";
    echo "         <input class=\"button\" type=\"button\" value=\"Add another domain\" onclick=\"addField('domain_names','domain_',0);\" />\n";
    echo "        </td>\n";
    echo "       </tr>\n";
    echo "       <tr>\n";
开发者ID:jelastic-public-cartridges,项目名称:jelastic-powerdns-cartridge,代码行数:31,代码来源:add_zone_master.php

示例3: get_users

}
$user_records = get_users();
?>

<html>
<head>
	<title> Show users with actions page </title>
</head>
<body>

	<h3> Displaying Users</h3>
	
	<table name="user_table" width="70%" border="1">
		<?php 
if ($user_records) {
    show_users($user_records);
}
?>
	</table>
	<br>
	<?php 
if ($number_of_rows > 0) {
    ?>
		Total Number of rows: <?php 
    echo $number_of_rows;
    ?>
	<?php 
}
?>

</body>
开发者ID:kurtkesu,项目名称:PHP-MYSQL-Class-Basic,代码行数:31,代码来源:show_users_with_actions.php

示例4: db_execquery

     if ($valuser->isadmin() && frm_ok('id', 1)) {
         db_execquery('UPDATE ' . TBL_USERS . ' SET u_status = 0 WHERE u_id = ' . frm_get('id', 1));
     }
     show_users();
     break;
 case 'saveadminuseroptions':
     if ($valuser->isadmin()) {
         if (!frm_isset('cancel')) {
             $id = frm_get('id', 1);
             if (frm_ok('id', 1)) {
                 $id = frm_get('id', 1);
                 save_useroptions($id);
                 show_useroptions(true, $id, get_lang(358), true);
             }
         } else {
             show_users();
         }
     }
     break;
 case 'saveuseroptions':
     if (db_guinfo('u_access') != 2) {
         $state = save_useroptions($u_id);
         switch ($state) {
             case 2:
                 show_useroptions(false, $u_id, get_lang(157), true);
                 break;
             case 3:
                 show_useroptions(false, $u_id, get_lang(165), true);
                 break;
             default:
                 show_useroptions(false, $u_id, get_lang(358), true);
开发者ID:skaligotla,项目名称:kplaylist,代码行数:31,代码来源:index.php

示例5: die

// $Id: users.inc.php,v 1.1 2008-10-20 14:10:00 dbellamy Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
$admin_layout = str_replace('!!menu_sous_rub!!', htmlentities($msg[26], ENT_QUOTES, $charset), $admin_layout);
print $admin_layout;
require_once './admin/users/users_func.inc.php';
print $admin_user_javascript;
switch ($action) {
    case 'pwd':
        include "./admin/users/user_pwd.inc.php";
        break;
    case 'modif':
        include "./admin/users/user_modif.inc.php";
        break;
    case 'update':
        include "./admin/users/user_update.inc.php";
        break;
    case 'add':
        echo window_title($database_window_title . $msg[347] . $msg[1003] . $msg[1001]);
        user_form("", "", "", 3, 0, "", 10, 10, 10, $form_param_default = "", "", "0", "0");
        echo form_focus('userform', 'form_login');
        break;
    case 'del':
        include "./admin/users/user_del.inc.php";
        break;
    default:
        echo window_title($database_window_title . $msg[25] . $msg[1003] . $msg[1001]);
        show_users($dbh);
        break;
}
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:31,代码来源:users.inc.php

示例6: Draw_Page


//.........这里部分代码省略.........
        case "Admin_Service_Type":
            rejectIfNotAuthenticated();
            require_once __DIR__ . '/controllers/admin/view_service_type.php';
            view_service_type();
            break;
        case "Admin_Edit_Service_Type":
            rejectIfNotAuthenticated();
            require_once __DIR__ . '/controllers/admin/edit_service_type.php';
            edit_type();
            break;
        case "Admin_Add_Service_Type":
            rejectIfNotAuthenticated();
            require_once __DIR__ . '/controllers/admin/add_service_type.php';
            add_type();
            break;
        case "Admin_Delete_Service_Type":
            rejectIfNotAuthenticated();
            require_once __DIR__ . '/controllers/admin/delete_service_type.php';
            delete_service_type();
            break;
        case "Admin_Delete_Service_Type_Denied":
            rejectIfNotAuthenticated();
            require_once __DIR__ . '/controllers/admin/delete_service_type_denied.php';
            deny_delete_type();
            break;
        case "Admin_Add_NGI":
            rejectIfNotAuthenticated();
            require_once __DIR__ . '/controllers/admin/add_ngi.php';
            add_ngi();
            break;
        case "Admin_Users":
            rejectIfNotAuthenticated();
            require_once __DIR__ . '/controllers/admin/users.php';
            show_users();
            break;
        case "Admin_Edit_User_DN":
            rejectIfNotAuthenticated();
            require_once __DIR__ . '/controllers/admin/edit_user_dn.php';
            edit_dn();
            break;
            //        case "Admin_Change_User_Admin_Status":
            //            rejectIfNotAuthenticated();
            //            require_once __DIR__.'/controllers/admin/edit_user_isadmin.php';
            //            make_admin();
            //            break;
        //        case "Admin_Change_User_Admin_Status":
        //            rejectIfNotAuthenticated();
        //            require_once __DIR__.'/controllers/admin/edit_user_isadmin.php';
        //            make_admin();
        //            break;
        case "Admin_Add_Project":
            rejectIfNotAuthenticated();
            require_once __DIR__ . '/controllers/admin/add_project.php';
            add_project();
            break;
        case "Admin_Scopes":
            rejectIfNotAuthenticated();
            require_once __DIR__ . '/controllers/admin/scopes.php';
            show_scopes();
            break;
        case "Admin_Remove_Scope":
            rejectIfNotAuthenticated();
            require_once __DIR__ . '/controllers/admin/delete_scope.php';
            remove_scope();
            break;
        case "Admin_Add_Scope":
开发者ID:Tom-Byrne,项目名称:gocdb,代码行数:67,代码来源:index.php

示例7: get_user_login

         $login = get_user_login($link, $id);
         $pwd_hash = db_escape_string(encrypt_password($tmp_password, $login));
         db_query($link, "UPDATE ttirc_users SET pwd_hash = '{$pwd_hash}'\n\t\t\t\tWHERE id = '{$id}'");
         print json_encode(array("message" => T_sprintf("Reset password of user %s to <b>%s</b>.", $login, $tmp_password)));
     }
     break;
 case "delete-user":
     $ids = db_escape_string($_REQUEST["ids"]);
     if ($_SESSION["access_level"] >= 10) {
         db_query($link, "DELETE FROM ttirc_users WHERE\n\t\t\t\tid in ({$ids}) AND id != " . $_SESSION["uid"]);
         print format_users($link);
     }
     break;
 case "users":
     if ($_SESSION["access_level"] >= 10) {
         show_users($link);
     }
     break;
 case "part-channel":
     $last_id = (int) db_escape_string($_REQUEST["last_id"]);
     $chan = db_escape_string($_REQUEST["chan"]);
     $connection_id = db_escape_string($_REQUEST["connection"]);
     if ($chan && valid_connection($link, $connection_id)) {
         handle_command($link, $connection_id, $chan, "/part");
         db_query($link, "DELETE FROM ttirc_channels WHERE channel = '{$chan}'\n\t\t\t\tAND connection_id = '{$connection_id}'");
     }
     $lines = get_new_lines($link, $last_id);
     $conn = get_conn_info($link);
     $chandata = get_chan_data($link, false);
     $params = get_misc_params($link);
     print json_encode(array($conn, $lines, $chandata, $params));
开发者ID:RulerOf,项目名称:Tiny-Tiny-IRC,代码行数:31,代码来源:backend.php

示例8: input_check

$cmd = input_check("show", "uid", 0, "showdetail", "uid", 0, "relation", "!frmid", "!uid", "!wid", 0);
if ($cmd == "show") {
    if ($uid == "") {
        $uid = user_ourself();
    }
    show_users($uid);
}
if ($cmd == "showdetail") {
    if ($uid == "") {
        $uid = user_ourself();
    }
    user_showinfo($uid, USER_SHOWINFO_NORMAL);
}
if ($cmd == "relation") {
    set_relation(user_ourself(), $uid, $wid);
    show_users(user_ourself());
}
print_footer();
exit;
// ============================================================================================
//
//
// Description:
//
//
// Parameters:
//
//
// Returns:
//
//
开发者ID:jaytaph,项目名称:perihelion-oldcode,代码行数:31,代码来源:user.php

示例9: update_users

    </ul>
</div>

<!-- Main page content: -->
<div id="mainForm">
    <h3>Here you can manage administrators or change your password. (Superuser "admin" cannot be deleted.)</h3>

    <!-- Manage users table -->
    <form action="manage_users.php" method="POST">
    <?php 
    // Update and show changes to admins upon POST
    if ($_SERVER['REQUEST_METHOD'] == 'POST') {
        update_users($dbc);
        show_users($dbc);
    } else {
        show_users($dbc);
    }
    ?>
    </form>
    <button onclick= "location.href='new_admin.php'">Add New Admin</button>
    <br><br><br><br><br>

    <!-- Password change fields -->
    <form action="manage_users.php" method="POST">
        <?php 
    if ($_SERVER['REQUEST_METHOD'] == 'POST') {
        // Validates password and changes the password if valid
        if (isset($_POST['pass']) && isset($_POST['pass-repeat']) && strcmp($_POST['pass'], $_POST['pass-repeat']) == 0) {
            change_password($dbc, $_POST['id'], $_POST['pass']);
            echo '<p> Password change successful! </p>';
        } else {
开发者ID:GrahamBurek,项目名称:limbodb,代码行数:31,代码来源:manage_users.php

示例10: show_users

<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/reou/includes/const.php";
require_once D_ROOT . "/reou/controllers/users_controller.php";
$users = show_users($db);
?>


<table id="table" class="user-list-table">
	<tr class="user-list--header"> 
		<th> Email </th>
		<th> Name </th>
		<th> Role </th>
		<th> Status </th>
	</tr>

	<?php 
foreach ($users as $k => $user) {
    ?>

			<tr>
				
				<td> <?php 
    echo $user["email"];
    ?>
 
					<a href="<?php 
    echo user_route('edit', "?userId={$user['id']}");
    ?>
 "> Click here? </a>
				</td>
开发者ID:ZeroG001,项目名称:reou,代码行数:31,代码来源:show_users.php

示例11: show_users

    }
}
?>

<?php 
$layout_context = "admin";
include "../includes/layouts/header.php";
?>

<div id="main_table">
	<p>
		<a href="../index.php">Back to Main</a>
	</p>

	<?php 
echo show_users("users");
?>
	<p>
		<a href="create_user.php">Create New User</a>&nbsp;&nbsp;
		<a href="delete_user.php?de=0" onclick="return confirm('Are you sure?');">Delete All</a>&nbsp;&nbsp;
	</p>
</div>

<!--
<div id="link_experiment">
	<h4>Experiements:</h4>
	<p>
		<form action="manage_content.php" method="get">
			<select id='attack_type'onclick="chooseAttack()">
			  <option value='0' selected>Normal</option>
			  <option value='1'>Attack 1</option>
开发者ID:WeiliangXing,项目名称:firewall-network-security,代码行数:31,代码来源:manage_content.php


注:本文中的show_users函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。