本文整理汇总了PHP中read_id函数的典型用法代码示例。如果您正苦于以下问题:PHP read_id函数的具体用法?PHP read_id怎么用?PHP read_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了read_id函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
include '../lib/function.php';
include '../models/edit_admin_model.php';
$page = null;
$page = isset($_GET['page']) ? $_GET['page'] : "form";
$title = ucfirst("admin");
switch ($page) {
case 'form':
get_header();
if ($_SESSION['user_type_id'] == 1 || $_SESSION['user_type_id'] == 3) {
$close_button = "transaction.php?page=list";
} else {
$close_button = "report_detail.php?page=list";
}
$id = $_SESSION['user_id'];
if ($id) {
$row = read_id($id);
//log_data(1, 0, $_SESSION['user_id'], "edit admin");
//$row->user_birth_date = format_date($row->user_birth_date);
$row->user_confirm_password = $row->user_password;
$action = "edit_admin.php?page=edit&id={$id}";
}
include '../views/edit_admin/form.php';
get_footer();
break;
case 'edit':
extract($_POST);
$id = get_isset($_GET['id']);
$i_login = get_isset($i_login);
$i_password = get_isset($i_password);
$i_confirm_password = get_isset($i_confirm_password);
$i_name = get_isset($i_name);
示例2: get_footer
$action = "transaction_new.php?page=save";
include '../views/transaction_new/list.php';
get_footer($query_find);
break;
case 'list_edit':
get_header($title);
if (isset($_GET['table_id'])) {
$table_id = $_GET['table_id'];
}
$query_item = select_item_edit($table_id);
$query_item2 = select_item_edit($table_id);
$query_item3 = select_item_edit($table_id);
$query_item = select_item_edit($table_id);
$query_item2 = select_item_edit($table_id);
$query_item3 = select_item_edit($table_id);
$row_edit = read_id($table_id);
$date = format_date_only($row_edit['transaction_date']);
$member_id = $row_edit['member_id'];
$action = "transaction_new.php?page=edit";
include '../views/transaction_new/list_edit.php';
get_footer();
break;
case 'add_menu':
$member_id = get_isset($_GET['member_id']);
$menu_id = get_isset($_GET['menu_id']);
$table_id = get_isset($_GET['table_id']);
$get_menu_price = get_menu_price($menu_id);
$check_menu = check_menu($table_id, $menu_id);
if ($check_menu == 0) {
$get_discount = get_discount($member_id, $menu_id);
//echo $get_discount;