本文整理匯總了PHP中admin::admin_list方法的典型用法代碼示例。如果您正苦於以下問題:PHP admin::admin_list方法的具體用法?PHP admin::admin_list怎麽用?PHP admin::admin_list使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類admin
的用法示例。
在下文中一共展示了admin::admin_list方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: confirmDelete
<?php
include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_admin.php';
$admin = new admin();
$rs_user = $admin->admin_list();
if ($_REQUEST['id']) {
$user->delete($_REQUEST['id']);
reDirect('admin_users.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Orders - Admin </title>
<link rel="stylesheet" type="text/css" href="css/theme.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script>
var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
</script>
<script>
function confirmDelete(delUrl) {
if (confirm("Are you sure you want to delete")) {
document.location = delUrl;
}
}
</script>
<!--[if IE]>
示例2: admin
<?php
session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_catagory.php';
include_once 'db_config/db_user.php';
include_once 'db_config/db_admin.php';
$admin = new admin();
$rs_admin = $admin->admin_list();
$data_admin = mysql_fetch_array($rs_admin);
$data_admin['user_email'];
if ($_REQUEST['submit']) {
###############################################################
/*Mail Part */
###############################################################
$to_mail = $data_admin['user_email'];
$subject = $_REQUEST['subject'];
$mail_table = '
<table width="600" border="0">
<tr>
<td width="94" align="left">Message</td>
<td width="13" align="left">:</td>
<td width="479" align="center">' . $_REQUEST['message'] . '</td>
</tr>
<tr>
<td width="94" align="left">Order</td>
<td width="13" align="left">:</td>
<td width="479" align="left">' . $_REQUEST['order_id'] . '</td>
</tr>
<tr>