• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_isset函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: mysql_query

        $q_detail = mysql_query("select * from transactions_tmp where table_id = '{$table_id}' and user_id = '" . $_SESSION['user_id'] . "'");
        while ($r_detail = mysql_fetch_array($q_detail)) {
            delete_config("transaction_tmp_details", "transaction_id = '" . $r_detail['transaction_id'] . "'");
        }
        delete_config("transactions_tmp", "table_id = '{$table_id}'");
        // hapus widget_tmp_details
        $q_widget_detail = mysql_query("select * from widget_tmp where table_id = '{$table_id}' and user_id = '" . $_SESSION['user_id'] . "'");
        while ($r_widget_detail = mysql_fetch_array($q_widget_detail)) {
            delete_config("widget_tmp_details", "wt_id = '" . $r_widget_detail['wt_id'] . "'");
        }
        delete_config("widget_tmp", "table_id = '{$table_id}'");
        mysql_query("update tables set table_status_id = '1' where table_id = '{$table_id}'");
        header("Location: transaction.php?page=list&table_id={$table_id}");
        break;
    case 'close':
        $table_id = get_isset($_GET['table_id']);
        $building_id = get_building_id($table_id);
        header("Location: order.php?bulding_id={$building_id}");
        break;
    case 'get_compliment':
        $table_id = get_isset($_GET['table_id']);
        $id = get_isset($_GET['id']);
        $get_compliment_status = get_compliment_status($id);
        if ($get_compliment_status == 1) {
            update_compliment($id, 0);
        } else {
            update_compliment($id, 1);
        }
        header("Location: transaction.php?page=list&table_id={$table_id}");
        break;
}
开发者ID:candradwiprasetyo,项目名称:rafli_resto,代码行数:31,代码来源:transaction.php


示例2: isset

include '../models/payment_model.php';
$page = null;
$page = isset($_GET['page']) ? $_GET['page'] : "list";
$title = ucwords("Pembayaran");
$_SESSION['table_active'] = 1;
switch ($page) {
    case 'list':
        $table_id = get_isset($_GET['table_id']);
        $building_id = isset($_GET['building_id']) ? $_GET['building_id'] : 0;
        $query = select($table_id);
        $query2 = select($table_id);
        $action = "order.php?page=save_payment&table_id=" . $table_id . "&building_id=" . $building_id;
        $table_name = get_table_name($table_id);
        $building_name = get_table_name($building_id);
        $transaction_code = get_transaction_code($table_id);
        if ($table_id == 0) {
            $button_back = "";
        } else {
            $button_back = "order.php?building_id={$building_id}";
        }
        include '../views/payment/list.php';
        break;
    case 'save':
        extract($_POST);
        $i_name = get_isset($i_name);
        $data = "'',\n\t\t\t\t\t\n\t\t\t\t\t'{$i_name}'\n\t\t\t\t\t\n\t\t\t";
        //echo $data;
        create($data);
        header("Location: payment.php?page=list&did=1");
        break;
}
开发者ID:candradwiprasetyo,项目名称:rafli_resto,代码行数:31,代码来源:payment.php


示例3: loadlib

loadlib("api");
features_ensure_enabled(array("api", "api_documentation"));
$method_classes = array();
$method_names = array();
ksort($GLOBALS['cfg']['api']['methods']);
$user_id = $GLOBALS['cfg']['user'] ? $GLOBALS['cfg']['user']['id'] : 0;
foreach ($GLOBALS['cfg']['api']['methods'] as $method_name => $details) {
    $details['name'] = $method_name;
    if (!api_methods_can_view_method($details, $user_id)) {
        continue;
    }
    $parts = explode(".", $method_name);
    array_pop($parts);
    $method_prefix = $parts[0];
    $method_class = implode(".", $parts);
    if (!is_array($method_classes[$method_class])) {
        $method_classes[$method_class] = array('methods' => array(), 'prefix' => $method_prefix);
    }
    $method_classes[$method_class]['methods'][] = $details;
    $method_names[] = $details['name'];
}
foreach ($method_classes as $class_name => $ignore) {
    sort($method_classes[$class_name]['methods']);
}
$GLOBALS['smarty']->assign_by_ref("method_classes", $method_classes);
if (get_isset("print")) {
    $GLOBALS['smarty']->display("page_api_methods_print.txt");
    exit;
}
$GLOBALS['smarty']->display("page_api_methods.txt");
exit;
开发者ID:alokc83,项目名称:flamework-api,代码行数:31,代码来源:api_methods.php


示例4: get_footer

         //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);
     $i_phone = get_isset($i_phone);
     $path = "../img/user/";
     $i_img_tmp = $_FILES['i_img']['tmp_name'];
     $i_img = $_FILES['i_img']['name'] ? $_FILES['i_img']['name'] : "";
     $cek_i_login = cek_name_login($i_login, $id);
     if ($cek_i_login >= '1') {
         header("Location: edit_admin.php?page=form&id={$id}&err=2");
     } else {
         if ($i_password != $i_confirm_password) {
             echo "<script> window.location='edit_admin.php?page=form&did=1'</script>";
         } else {
             $i_password = md5($i_password);
             mysql_query("UPDATE users SET user_password='" . $i_password . "' where user_id = '" . $id . "'");
         }
         if ($i_img) {
             $data = " user_login = '{$i_login}', \n\t\t\t\t\t\t \tuser_name = '{$i_name}',\n\t\t\t\t\t\t \tuser_phone = '{$i_phone}',\n\t\t\t\t\t\t \tuser_img = '{$path}{$i_img}'";
开发者ID:candradwiprasetyo,项目名称:led_running_text,代码行数:31,代码来源:edit_admin.php


示例5: isset

$page = null;
$page = isset($_GET['page']) ? $_GET['page'] : "list";
$title = ucfirst("login");
switch ($page) {
    case 'form':
        //inisialisasi
        $row = new stdClass();
        $row->user_login = false;
        $row->user_password = false;
        $action = "login.php?page=login";
        include '../views/login/form.php';
        break;
    case 'login':
        extract($_POST);
        $i_login = get_isset($i_login);
        $i_password = get_isset($i_password);
        $i_password = md5($i_password);
        $query = select_login($i_login, $i_password);
        $query_user = select_user($i_login, $i_password);
        if ($query > 0) {
            //login sukses
            $_SESSION['login'] = 1;
            $_SESSION['user_id'] = $query_user->user_id;
            $_SESSION['user_type_id'] = $query_user->user_type_id;
            $_SESSION['branch_id'] = $query_user->branch_id;
            /*
            			if($_SESSION['user_type_id'] == 1 || $_SESSION['user_type_id'] == 3){
            				header("Location: transaction.php?page=list");
            			}else{
            				header('Location: report_detail.php?page=list');
            			}*/
开发者ID:candradwiprasetyo,项目名称:rafli_resto,代码行数:31,代码来源:login.php


示例6: DateTime

        $datetime1 = new DateTime($date1);
        $datetime2 = new DateTime($date2);
        $difference = $datetime1->diff($datetime2);
        //echo $difference->days;
        /*$sel = abs(strtotime($date2)-strtotime($date1));
        		$selisih= $sel /(60*60*24);*/
        $jumlah_hari = $difference->days + 1;
        $jumlah_truk = get_jumlah_truk($date1, $date2, $i_owner_id);
        $jumlah_pengiriman = get_jumlah_pengiriman($date1, $date2, $i_owner_id);
        $jumlah_volume = get_jumlah_volume($date1, $date2, $i_owner_id) ? get_jumlah_volume($date1, $date2, $i_owner_id) : 0;
        $jumlah_volume = str_replace(".", ",", $jumlah_volume);
        $total_jasa_angkut = get_total_jasa_angkut($date1, $date2, $i_owner_id);
        $total_jasa_angkut = str_replace(".", ",", $total_jasa_angkut);
        $total_subsidi_tol = get_total_subsidi_tol($date1, $date2, $i_owner_id);
        $total_transport = $total_jasa_angkut + $total_subsidi_tol;
        $total_harga_urukan = get_total_harga_urukan($date1, $date2, $i_owner_id);
        $total_hpp = get_total_hpp($date1, $date2, $i_owner_id);
        $title = 'report_kepuasan_customer_tagihan';
        $supplier_title = str_replace(" ", "_", $supplier);
        $format = create_report($title . "_" . $supplier_title . "_" . $i_date);
        include '../views/report/report_kepuasan_customer_tagihan.php';
        break;
    case 'delete_transaction':
        $id = isset($_GET['id']) ? $_GET['id'] : null;
        extract($_POST);
        $i_date = get_isset($_GET['date']);
        $date_default = $i_date;
        delete_transaction($id);
        header("Location: report_kepuasan_customer.php?page=list&preview=1&date={$date_default}");
        break;
}
开发者ID:candradwiprasetyo,项目名称:rafli_resto,代码行数:31,代码来源:report_kepuasan_customer.php


示例7: get_building_name

        $building_name = get_building_name($building_id);
        $building_img = get_building_img($building_id);
        //get_header2($title);
        //$query = select();
        $action_room = "table.php?page=save_room";
        $action_table = "table.php?page=save_table&building_id={$building_id}";
        $action_logout = "logout.php";
        //$building_next();
        //$building_prev();
        include '../views/table/list.php';
        //get_footer();
        break;
    case 'save_table_location':
        $id = $_GET['id'];
        $data_x = $_GET['data_x'];
        $data_y = $_GET['data_y'];
        $data_top = $_GET['data_top'];
        save_table_location($id, $data_x, $data_y, $data_top);
        break;
    case 'save_table':
        extract($_POST);
        $building_id = $_GET['building_id'];
        $i_name = get_isset($i_name);
        $i_price = get_isset($i_price);
        $i_tt_id = get_isset($i_tt_id);
        $data = "'',\n\t\t\t\t\t'{$i_tt_id}', \n\t\t\t\t\t'{$i_name}',\n\t\t\t\t\t'200', \n\t\t\t\t\t'200',\n\t\t\t\t\t'{$i_price}',\n\t\t\t\t\t'0'\n\t\t\t";
        //echo $data;
        save_table($data);
        header("location: table.php?building_id={$building_id}");
        break;
}
开发者ID:muguli22,项目名称:house_plan,代码行数:31,代码来源:table.php


示例8: header

        header('Location: menu.php?page=list&did=2');
        break;
    case 'edit_item':
        extract($_POST);
        $id = get_isset($_GET['id']);
        $menu_id = get_isset($_GET['menu_id']);
        $i_item_id = get_isset($i_item_id);
        $i_item_qty = get_isset($i_item_qty);
        $data = " item_id = '{$i_item_id}', \n\t\t\t\t\t\t\titem_qty = '{$i_item_qty}'\n\t\t\t\t\t";
        update_item($data, $id);
        header("Location: menu.php?page=form&id={$menu_id}");
        break;
    case 'delete':
        $id = get_isset($_GET['id']);
        $path = "../img/menu/";
        $get_img_old = get_img_old($id);
        if ($get_img_old) {
            if (file_exists($path . $get_img_old)) {
                unlink($path . $get_img_old);
            }
        }
        delete($id);
        header('Location: menu.php?page=list&did=3');
        break;
    case 'delete_item':
        $id = get_isset($_GET['id']);
        $menu_id = get_isset($_GET['menu_id']);
        delete_item($id);
        header("Location: menu.php?page=form&id={$menu_id}");
        break;
}
开发者ID:candradwiprasetyo,项目名称:rafli_resto,代码行数:31,代码来源:menu.php


示例9: isset

<?php

include '../lib/config.php';
include '../lib/function.php';
include '../models/print_order_model.php';
$page = null;
$page = isset($_GET['page']) ? $_GET['page'] : "list";
$title = ucwords("Pembayaran");
$_SESSION['table_active'] = 1;
switch ($page) {
    case 'list':
        $building_id = get_isset($_GET['building_id']);
        $table_id = get_isset($_GET['table_id']);
        $mt_id = '';
        //get_isset($_GET['mt_id']);
        //$mt_name = get_mt_name($mt_id);
        $query = select($table_id);
        $row = mysql_fetch_array($query);
        $query_item = select_item($table_id, $mt_id);
        $back_button = "order.php?table_id={$table_id}&building_id={$building_id}";
        include '../views/print_order/list.php';
        break;
}
开发者ID:candradwiprasetyo,项目名称:rafli_resto,代码行数:23,代码来源:print_order.php


示例10: update

        update($data, $id);
        $query_partner = select_partner();
        while ($row_partner = mysql_fetch_array($query_partner)) {
            $query_menu = mysql_query("select a.*, b.menu_type_name\n                                                from menus a    \n                                                join menu_types b on b.menu_type_id = a.menu_type_id\n                                                where partner_id = '" . $row_partner['partner_id'] . "'\n                                                order by menu_id");
            while ($row_menu = mysql_fetch_array($query_menu)) {
                $i_check = isset($_POST['i_check_' . $row_menu['menu_id']]) ? $_POST['i_check_' . $row_menu['menu_id']] : "";
                if ($i_check) {
                    $check_exist = check_exist($id, $row_menu['menu_id']);
                    if ($check_exist == 0) {
                        $data = "'',\n\t\t\t\t\t\t\t\t\t'{$id}',\n\t\t\t\t\t\t\t\t\t'" . $row_menu['menu_id'] . "'\n\t\t\t\t\t\t\t";
                        create_item($data);
                    }
                } else {
                    delete_member_item($id, $row_menu['menu_id']);
                }
            }
        }
        header("Location: member.php");
        break;
    case 'delete':
        $id = get_isset($_GET['id']);
        delete($id);
        header('Location: member.php?page=list&did=3');
        break;
    case 'delete_item':
        $id = get_isset($_GET['id']);
        $member_id = get_isset($_GET['member_id']);
        delete_item($id);
        header("Location: member.php?page=form&id={$member_id}&did=3");
        break;
}
开发者ID:candradwiprasetyo,项目名称:rafli_resto,代码行数:31,代码来源:member.php


示例11: get_branch_name

 case 'save':
     if ($_SESSION['user_type_id'] == 1 || $_SESSION['user_type_id'] == 2) {
         $where = "";
         $branch_name = "Semua Cabang";
     } else {
         $where = " and c.branch_id = '" . $_SESSION['branch_id'] . "'";
         $branch_name = get_branch_name($_SESSION['branch_id']);
     }
     extract($_POST);
     $i_name = get_isset($i_name);
     $i_phone = get_isset($i_phone);
     $i_address = get_isset($i_address);
     $i_amount = get_isset($i_amount);
     $i_date = get_isset($i_date);
     $i_date = format_back_date($i_date);
     $i_hour = get_isset($i_hour);
     $i_h = explode(" ", $i_hour);
     $hour = explode(":", $i_h[0]);
     if ($i_h[1] == "PM") {
         if ($hour[0] == 12) {
             $new_hour = $hour[0];
         } else {
             $new_hour = $hour[0] + 12;
         }
         $new_hour = $new_hour . ":" . $hour[1];
     } else {
         if ($hour[0] == 12) {
             $new_hour = $hour[0] - 12;
         } else {
             $new_hour = $hour[0];
         }
开发者ID:candradwiprasetyo,项目名称:rafli_resto,代码行数:31,代码来源:reserved.php


示例12: get_isset

        $i_name = get_isset($i_name);
        $i_unit_id = get_isset($i_unit_id);
        $i_item_limit = get_isset($i_item_limit);
        $data = "'',\n\t\t\t\t\t'{$i_name}',\n\t\t\t\t\t'{$i_unit_id}',\n\t\t\t\t\t'{$i_item_limit}'\n\t\t\t";
        //echo $data;
        $id = create($data);
        create_stock($id);
        header("Location: stock.php?page=form&id={$id}");
        break;
    case 'edit':
        extract($_POST);
        $id = get_isset($_GET['id']);
        $i_name = get_isset($i_name);
        $i_unit_id = get_isset($i_unit_id);
        $i_item_limit = get_isset($i_item_limit);
        $data = "\n\t\t\t\t\titem_name = '{$i_name}',\n\t\t\t\t\tunit_id = '{$i_unit_id}',\n\t\t\t\t\titem_limit = '{$i_item_limit}'\n\n\t\t\t\t\t";
        update($data, $id);
        header('Location: stock.php?page=list&did=2');
        break;
    case 'delete':
        $id = get_isset($_GET['id']);
        delete($id);
        header('Location: stock.php?page=list&did=3');
        break;
    case 'delete_item':
        $id = get_isset($_GET['id']);
        $i_id = get_isset($_GET['i_id']);
        delete_item($id);
        header("Location: stock.php?page=form&id={$i_id}");
        break;
}
开发者ID:candradwiprasetyo,项目名称:rafli_resto,代码行数:31,代码来源:stock.php


示例13: extract

        break;
    case 'add_menu':
        extract($_POST);
        $bank_id = $_GET['bank_id'];
        $menu_id = $_GET['menu_id'];
        $data = "'',\n\t\t\t\t\t'{$bank_id}',\n\t\t\t\t\t'{$menu_id}'\n\t\t\t";
        //echo $data;
        create_item($data);
        header("Location: bank.php?page=form&id={$bank_id}&did=1");
        break;
    case 'edit':
        extract($_POST);
        $id = get_isset($_GET['id']);
        $i_name = get_isset($i_name);
        $i_no_rek = get_isset($i_no_rek);
        $data = " bank_name = '{$i_name}',\n\t\t\t\t\t\t\tbank_account_number = '{$i_no_rek}'\n\t\t\t\t\t\t\t";
        update($data, $id);
        header("Location: bank.php");
        break;
    case 'delete':
        $id = get_isset($_GET['id']);
        delete($id);
        header('Location: bank.php?page=list&did=3');
        break;
    case 'delete_item':
        $id = get_isset($_GET['id']);
        $bank_id = get_isset($_GET['bank_id']);
        delete_item($id);
        header("Location: bank.php?page=form&id={$bank_id}&did=3");
        break;
}
开发者ID:candradwiprasetyo,项目名称:rafli_resto,代码行数:31,代码来源:bank.php


示例14: header

        header("Location: type_jurnal.php?page=list&did=1");
        break;
    case 'add_menu':
        extract($_POST);
        $type_jurnal_id = $_GET['type_jurnal_id'];
        $menu_id = $_GET['menu_id'];
        $data = "'',\n\t\t\t\t\t'{$type_jurnal_id}',\n\t\t\t\t\t'{$menu_id}'\n\t\t\t";
        //echo $data;
        create_item($data);
        header("Location: type_jurnal.php?page=form&id={$type_jurnal_id}&did=1");
        break;
    case 'edit':
        extract($_POST);
        $id = get_isset($_GET['id']);
        $i_name = get_isset($i_name);
        $data = " journal_type_name = '{$i_name}'\n\t\t\t\t\t\t\t";
        update($data, $id);
        header("Location: type_jurnal.php");
        break;
    case 'delete':
        $id = get_isset($_GET['id']);
        delete($id);
        header('Location: type_jurnal.php?page=list&did=3');
        break;
    case 'delete_item':
        $id = get_isset($_GET['id']);
        $type_jurnal_id = get_isset($_GET['type_jurnal_id']);
        delete_item($id);
        header("Location: type_jurnal.php?page=form&id={$type_jurnal_id}&did=3");
        break;
}
开发者ID:candradwiprasetyo,项目名称:rafli_resto,代码行数:31,代码来源:type_jurnal.php


示例15: isset

<?php

include '../lib/config.php';
include '../lib/function.php';
include '../models/print_model.php';
$page = null;
$page = isset($_GET['page']) ? $_GET['page'] : "list";
$title = ucwords("Pembayaran");
$_SESSION['table_active'] = 1;
switch ($page) {
    case 'list':
        $transaction_id = get_isset($_GET['transaction_id']);
        $query = select($transaction_id);
        $row = mysql_fetch_array($query);
        $query_item = select_item($transaction_id);
        include '../views/print/list.php';
        break;
}
开发者ID:candradwiprasetyo,项目名称:rafli_resto,代码行数:18,代码来源:print.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_it_image函数代码示例发布时间:2022-05-15
下一篇:
PHP get_is_file函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap