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


PHP order_list函数代码示例

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


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

示例1: define

<?php

define('IN_ECS', true);
require dirname(__FILE__) . '/includes/init.php';
require_once ROOT_PATH . 'includes/lib_order.php';
require_once ROOT_PATH . 'includes/lib_supplier_common_wap.php';
require_once ROOT_PATH . 'languages/' . $_CFG['lang'] . '/order.php';
require_once ROOT_PATH . 'languages/' . $_CFG['lang'] . '/back.php';
$smarty->assign('lang', $_LANG);
$act = empty($_REQUEST['act']) ? 'list' : trim($_REQUEST['act']);
//订单列表
if ($act == 'list') {
    $data = order_list();
    $filter = $data['filter'];
    $orders = $data['orders'];
    $smarty->assign('orders', $orders);
    $smarty->assign('filter', $data['filter']);
    $sel_status = $filter['composite_status'];
    assign_status_list($sel_status);
    _wap_assign_header_info('订单列表');
    _wap_assign_footer_order_info();
    _wap_display_page('order_list.htm');
} elseif ($act == 'info') {
    /* 根据订单id或订单号查询订单信息 */
    if (isset($_REQUEST['order_id'])) {
        $order_id = intval($_REQUEST['order_id']);
        $order = order_info($order_id);
    } elseif (isset($_REQUEST['order_sn'])) {
        $order_sn = trim($_REQUEST['order_sn']);
        $order = order_info(0, $order_sn);
    } else {
开发者ID:seanguo166,项目名称:yinoos,代码行数:31,代码来源:order.php

示例2: elseif

    $smarty->display('user_account_manage.htm');
} elseif ($_REQUEST['act'] == 'surplus') {
    $order_list = order_list();
    /* 赋值到模板 */
    $smarty->assign('order_list', $order_list['order_list']);
    $smarty->assign('ur_here', $_LANG['order_by_surplus']);
    $smarty->assign('filter', $order_list['filter']);
    $smarty->assign('record_count', $order_list['record_count']);
    $smarty->assign('page_count', $order_list['page_count']);
    $smarty->assign('full_page', 1);
    $smarty->assign('action_link', array('text' => $_LANG['user_account_manage'], 'href' => 'user_account_manage.php?act=list&start_date=' . local_date('Y-m-d', $start_date) . '&end_date=' . local_date('Y-m-d', $end_date)));
    /* 显示页面 */
    assign_query_info();
    $smarty->display('order_surplus_list.htm');
} elseif ($_REQUEST['act'] == 'query') {
    $order_list = order_list();
    $smarty->assign('order_list', $order_list['order_list']);
    $smarty->assign('filter', $order_list['filter']);
    $smarty->assign('record_count', $order_list['record_count']);
    $smarty->assign('page_count', $order_list['page_count']);
    $sort_flag = sort_flag($order_list['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    make_json_result($smarty->fetch('order_surplus_list.htm'), '', array('filter' => $order_list['filter'], 'page_count' => $order_list['page_count']));
}
/**
* 获得账户变动金额
* @param   string  $type   0,充值 1,提现
* @return  array
*/
function get_total_amount($start_date, $end_date, $type = 0)
{
开发者ID:run100,项目名称:ecshop,代码行数:31,代码来源:user_account_manage.php

示例3: delete

if (!empty($_POST) && isset($_POST["del_servers"]) && $_POST["del_servers"] == "1") {
    $id = $_POST["id"];
    delete($db, $id, "servers");
}
// --- UP_LIST
if (!empty($_POST) && isset($_POST["up_list"]) && $_POST["up_list"] == "1") {
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "servers", "up", 0);
    unset($_POST);
}
// -------------
// --- DOWN_LIST
if (!empty($_POST) && isset($_POST["down_list"]) && $_POST["down_list"] == "1") {
    $max_line = intval($_POST["max_line"]);
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "servers", "down", $max_line);
    unset($_POST);
}
// -------------
// --- MODIFICATION
if (!empty($_POST) && isset($_POST["update_servers"]) && $_POST["update_servers"] == "1") {
    $id = intval($_POST["id"]);
    $servers = addslashes($_POST["servers"]);
    echo "Modification du champ<br />\n\t\t\t\tAncienne valeur = [<b>" . $servers . "</b>]<br />\n\t\t\t\t<form action='#' method='POST'> <input type='hidden' name='id' value='" . $id . "' /> <input type='hidden' name='update_servers' value='1' />\n\t\t\t\t\t<input type='text' name='servers_updated' class='form-control' />\n\t\t\t\t\t<button class='btn btn-large btn-primary'>Enregistrer<br />les modifications</button>\n\t\t\t\t</form>";
    unset($_POST);
}
// --- MODIFICATION DANS DB
if (!empty($_POST) && isset($_POST["update_servers_db"]) && $_POST["update_servers_db"] == "1") {
    $id = $_POST["id"];
    $data = addslashes($_POST["servers_updated"]);
    update_admin($db, $id, $data, "servers");
开发者ID:Mettmett,项目名称:gestinterv,代码行数:31,代码来源:servers.php

示例4: delete

if (!empty($_POST) && isset($_POST["del_type_os"]) && $_POST["del_type_os"] == "1") {
    $id = $_POST["id"];
    delete($db, $id, "type_os");
}
// --- UP_LIST
if (!empty($_POST) && isset($_POST["up_list"]) && $_POST["up_list"] == "1") {
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "type_os", "up", 0);
    unset($_POST);
}
// -------------
// --- DOWN_LIST
if (!empty($_POST) && isset($_POST["down_list"]) && $_POST["down_list"] == "1") {
    $max_line = intval($_POST["max_line"]);
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "type_os", "down", $max_line);
    unset($_POST);
}
// -------------
// --- MODIFICATION
if (!empty($_POST) && isset($_POST["update_type_os"]) && $_POST["update_type_os"] == "1") {
    $id = intval($_POST["id"]);
    $type_os = addslashes($_POST["type_os"]);
    echo "Modification du champ<br />\n\t\t\t\tAncienne valeur = [<b>" . $type_os . "</b>]<br />\n\t\t\t\t<form action='#' method='POST'> <input type='hidden' name='id' value='" . $id . "' /> <input type='hidden' name='update_type_os' value='1' />\n\t\t\t\t\t<input type='text' name='type_os_updated' class='form-control' />\n\t\t\t\t\t<button class='btn btn-large btn-primary'>Enregistrer<br />les modifications</button>\n\t\t\t\t</form>";
    unset($_POST);
}
// --- MODIFICATION DANS DB
if (!empty($_POST) && isset($_POST["update_type_os_db"]) && $_POST["update_type_os_db"] == "1") {
    $id = $_POST["id"];
    $data = addslashes($_POST["type_os_updated"]);
    update_admin($db, $id, $data, "type_os");
开发者ID:Mettmett,项目名称:gestinterv,代码行数:31,代码来源:type_os.php

示例5: delete

if (!empty($_POST) && isset($_POST["del_shop"]) && $_POST["del_shop"] == "1") {
    $id = $_POST["id"];
    delete($db, $id, "shop");
}
// --- UP_LIST
if (!empty($_POST) && isset($_POST["up_list"]) && $_POST["up_list"] == "1") {
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "shop", "up", 0);
    unset($_POST);
}
// -------------
// --- DOWN_LIST
if (!empty($_POST) && isset($_POST["down_list"]) && $_POST["down_list"] == "1") {
    $max_line = intval($_POST["max_line"]);
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "shop", "down", $max_line);
    unset($_POST);
}
// -------------
// --- MODIFICATION
if (!empty($_POST) && isset($_POST["update_shop"]) && $_POST["update_shop"] == "1") {
    $id = intval($_POST["id"]);
    $shop = addslashes($_POST["shop"]);
    echo "Modification du champ<br />\n\t\t\t\tAncienne valeur = [<b>" . $shop . "</b>]<br />\n\t\t\t\t<form action='#' method='POST'> <input type='hidden' name='id' value='" . $id . "' /> <input type='hidden' name='update_shop' value='1' />\n\t\t\t\t\t<input type='text' name='shop_updated' class='form-control' />\n\t\t\t\t\t<button class='btn btn-large btn-primary'>Enregistrer<br />les modifications</button>\n\t\t\t\t</form>";
    unset($_POST);
}
// --- MODIFICATION DANS DB
if (!empty($_POST) && isset($_POST["update_shop_db"]) && $_POST["update_shop_db"] == "1") {
    $id = $_POST["id"];
    $data = addslashes($_POST["shop_updated"]);
    update_admin($db, $id, $data, "shop");
开发者ID:Mettmett,项目名称:gestinterv,代码行数:31,代码来源:shop.php

示例6: delete

if (!empty($_POST) && isset($_POST["del_antivirus"]) && $_POST["del_antivirus"] == "1") {
    $id = $_POST["id"];
    delete($db, $id, "antivirus");
}
// --- UP_LIST
if (!empty($_POST) && isset($_POST["up_list"]) && $_POST["up_list"] == "1") {
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "antivirus", "up", 0);
    unset($_POST);
}
// -------------
// --- DOWN_LIST
if (!empty($_POST) && isset($_POST["down_list"]) && $_POST["down_list"] == "1") {
    $max_line = intval($_POST["max_line"]);
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "antivirus", "down", $max_line);
    unset($_POST);
}
// -------------
// --- MODIFICATION
if (!empty($_POST) && isset($_POST["update_antivirus"]) && $_POST["update_antivirus"] == "1") {
    $id = intval($_POST["id"]);
    $antivirus = addslashes($_POST["antivirus"]);
    echo "Modification du champ<br />\n\t\t\t\tAncienne valeur = [<b>" . $antivirus . "</b>]<br />\n\t\t\t\t<form action='#' method='POST'> <input type='hidden' name='id' value='" . $id . "' /> <input type='hidden' name='update_antivirus' value='1' />\n\t\t\t\t\t<input type='text' name='antivirus_updated' class='form-control' />\n\t\t\t\t\t<button class='btn btn-large btn-primary'>Enregistrer<br />les modifications</button>\n\t\t\t\t</form>";
    unset($_POST);
}
// --- MODIFICATION DANS DB
if (!empty($_POST) && isset($_POST["update_antivirus_db"]) && $_POST["update_antivirus_db"] == "1") {
    $id = $_POST["id"];
    $data = addslashes($_POST["antivirus_updated"]);
    update_admin($db, $id, $data, "antivirus");
开发者ID:Mettmett,项目名称:gestinterv,代码行数:31,代码来源:antivirus.php

示例7: delete

if (!empty($_POST) && isset($_POST["del_type_interv"]) && $_POST["del_type_interv"] == "1") {
    $id = $_POST["id"];
    delete($db, $id, "type_interv");
}
// --- UP_LIST
if (!empty($_POST) && isset($_POST["up_list"]) && $_POST["up_list"] == "1") {
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "type_interv", "up", 0);
    unset($_POST);
}
// -------------
// --- DOWN_LIST
if (!empty($_POST) && isset($_POST["down_list"]) && $_POST["down_list"] == "1") {
    $max_line = intval($_POST["max_line"]);
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "type_interv", "down", $max_line);
    unset($_POST);
}
// -------------
// --- MODIFICATION
if (!empty($_POST) && isset($_POST["update_type_interv"]) && $_POST["update_type_interv"] == "1") {
    $id = intval($_POST["id"]);
    $type_interv = addslashes($_POST["type_interv"]);
    echo "Modification du champ<br />\n\t\t\t\tAncienne valeur = [<b>" . $type_interv . "</b>]<br />\n\t\t\t\t<form action='#' method='POST'> <input type='hidden' name='id' value='" . $id . "' /> <input type='hidden' name='update_type_interv' value='1' />\n\t\t\t\t\t<input type='text' name='type_hardware_updated' class='form-control' />\n\t\t\t\t\t<button class='btn btn-large btn-primary'>Enregistrer<br />les modifications</button>\n\t\t\t\t</form>";
    unset($_POST);
}
// --- MODIFICATION DANS DB
if (!empty($_POST) && isset($_POST["update_type_interv_db"]) && $_POST["update_type_interv_db"] == "1") {
    $id = $_POST["id"];
    $data = addslashes($_POST["type_interv_updated"]);
    update_admin($db, $id, $data, "type_interv");
开发者ID:Mettmett,项目名称:gestinterv,代码行数:31,代码来源:type_interv.php

示例8: batch_fill_order_shipping

function batch_fill_order_shipping()
{
    $_REQUEST['act'] = 'current_order';
    $res['error'] = '';
    $has_used = array();
    $un_match = array();
    $success = array();
    $error = array();
    if (!empty($_GET['tracking_start']) && !empty($_GET['order_num'])) {
        $order_list = order_list();
        if ($order_list) {
            $order_list = $order_list['orders'];
            $tracking_start = mysql_real_escape_string(trim($_GET['tracking_start']));
            $shipping_id = $_REQUEST['shipping_id'];
            $total = $_GET['order_num'] < count($order_list) ? $_GET['order_num'] : count($order_list);
            for ($i = 0; $i < $total; $i++) {
                $tracking[$i] = $tracking_start + $i;
            }
            $list = array();
            unset($k);
            foreach ($order_list as $o) {
                if (!trim($o['tracking_sn'])) {
                    $list[]['order_id'] = $o['order_id'];
                }
            }
            $order_list = $list;
            unset($o);
            foreach ($order_list as $k => $o) {
                if ($k > $total) {
                    break;
                } else {
                    $sql = 'SELECT order_id FROM ' . $GLOBALS['ecs']->table('order_info') . " WHERE order_id<>{$o['order_id']} AND shipping_status NOT IN (3,4) AND tracking_sn='{$tracking[$k]}'";
                    if ($GLOBALS['db']->getOne($sql)) {
                        $has_used[] = $tracking[$k];
                        continue;
                    } else {
                        // 验证运单号与快递公司是否一致
                        $sql_select = 'SELECT code_regexp FROM ' . $GLOBALS['ecs']->table('shipping') . ' s, ' . $GLOBALS['ecs']->table('order_info') . " i WHERE i.shipping_id=s.shipping_id AND i.order_id={$o['order_id']}";
                        $regexp = $GLOBALS['db']->getOne($sql_select);
                        if ($shipping_id == 39) {
                            $tracking[$k] = "{$tracking[$k]}";
                        }
                        if ($regexp && !preg_match($regexp, $tracking[$k])) {
                            $un_match[] = $tracking[$k];
                        } else {
                            $sql = "UPDATE " . $GLOBALS['ecs']->table('order_info') . " SET tracking_sn='{$tracking[$k]}'," . " shipping_time={$_SERVER['REQUEST_TIME']} WHERE order_id={$o['order_id']} AND tracking_sn<>'{$tracking[$k]}'";
                            if ($GLOBALS['db']->query($sql)) {
                                $syn_info = shipping_synchro($o['order_id']);
                                if (!empty($syn_info['message'])) {
                                    $error[] = $syn_info['message'];
                                } else {
                                    $success[] = array('order_id' => $o['order_id'], 'tracking_sn' => $tracking[$k]);
                                }
                            } else {
                                $error[] = $tracking_sn;
                            }
                        }
                    }
                }
            }
            $res = array('has_used' => $has_used, 'un_match' => $un_match, 'error' => $error, 'success' => $success);
        } else {
            $res = crm_msg('没有相应订单');
        }
    } else {
        $res['message'] = '请输入正确的运单号!';
    }
    return $res;
}
开发者ID:554119220,项目名称:kjrscrm,代码行数:69,代码来源:order.php

示例9: delete

if (!empty($_POST) && isset($_POST["del_type_hardware"]) && $_POST["del_type_hardware"] == "1") {
    $id = $_POST["id"];
    delete($db, $id, "type_hardware");
}
// --- UP_LIST
if (!empty($_POST) && isset($_POST["up_list"]) && $_POST["up_list"] == "1") {
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "type_hardware", "up", 0);
    unset($_POST);
}
// -------------
// --- DOWN_LIST
if (!empty($_POST) && isset($_POST["down_list"]) && $_POST["down_list"] == "1") {
    $max_line = intval($_POST["max_line"]);
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "type_hardware", "down", $max_line);
    unset($_POST);
}
// -------------
// --- MODIFICATION
if (!empty($_POST) && isset($_POST["update_type_hardware"]) && $_POST["update_type_hardware"] == "1") {
    $id = intval($_POST["id"]);
    $type_hardware = addslashes($_POST["type_hardware"]);
    echo "Modification du champ<br />\n\t\t\t\tAncienne valeur = [<b>" . $type_hardware . "</b>]<br />\n\t\t\t\t<form action='#' method='POST'> <input type='hidden' name='id' value='" . $id . "' /> <input type='hidden' name='update_type_hardware' value='1' />\n\t\t\t\t\t<input type='text' name='type_hardware_updated' class='form-control' />\n\t\t\t\t\t<button class='btn btn-large btn-primary'>Enregistrer<br />les modifications</button>\n\t\t\t\t</form>";
    unset($_POST);
}
// --- MODIFICATION DANS DB
if (!empty($_POST) && isset($_POST["update_type_hardware_db"]) && $_POST["update_type_hardware_db"] == "1") {
    $id = $_POST["id"];
    $data = addslashes($_POST["type_hardware_updated"]);
    update_admin($db, $id, $data, "type_hardware");
开发者ID:Mettmett,项目名称:gestinterv,代码行数:31,代码来源:type_hardware.php

示例10: delete

if (!empty($_POST) && isset($_POST["del_tech"]) && $_POST["del_tech"] == "1") {
    $id = $_POST["id"];
    delete($db, $id, "techs");
}
// --- UP_LIST
if (!empty($_POST) && isset($_POST["up_list"]) && $_POST["up_list"] == "1") {
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "techs", "up", 0);
    unset($_POST);
}
// -------------
// --- DOWN_LIST
if (!empty($_POST) && isset($_POST["down_list"]) && $_POST["down_list"] == "1") {
    $max_line = intval($_POST["max_line"]);
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "techs", "down", $max_line);
    unset($_POST);
}
// -------------
// --- MODIFICATION
if (!empty($_POST) && isset($_POST["update_tech"]) && $_POST["update_tech"] == "1") {
    $id = intval($_POST["id"]);
    $name_tech = addslashes($_POST["name_tech"]);
    echo "Modification du champ<br />\n\t\t\t\tAncienne valeur = [<b>" . $name_tech . "</b>]<br />\n\t\t\t\t<form action='#' method='POST'> <input type='hidden' name='id' value='" . $id . "' /> <input type='hidden' name='update_tech_db' value='1' />\n\t\t\t\t\t<input type='text' name='name_tech_updated' class='form-control' />\n\t\t\t\t\t<button class='btn btn-large btn-primary'>Enregistrer<br />les modifications</button>\n\t\t\t\t</form>";
    unset($_POST);
}
// --- MODIFICATION DANS DB
if (!empty($_POST) && isset($_POST["update_tech_db"]) && $_POST["update_tech_db"] == "1") {
    $id = $_POST["id"];
    $data = addslashes($_POST["name_tech_updated"]);
    update_admin($db, $id, $data, "techs");
开发者ID:Mettmett,项目名称:gestinterv,代码行数:31,代码来源:techs.php

示例11: assign_query_info

    assign_query_info();
    $smarty->display($tpl_file);
} elseif ('confirm_refund' == $_REQUEST['act']) {
    $rec_id = intval($_REQUEST['rec_id']);
    $rec_id <= 0 && die("invalid");
    $agree = intval($_REQUEST['agree']);
    $refund_status = $agree ? 2 : 3;
    refund_confirm_order_goods($rec_id, $refund_status);
    $links[] = array('text' => '退款申请列表', 'href' => 'order.php?act=refund_list');
    sys_msg("成功处理该退款申请", 1, $links);
} elseif ($_REQUEST['act'] == 'query' || $_REQUEST['act'] == 'refund_query') {
    /* 检查权限 */
    admin_priv('order_view');
    //mod by coolvee.com 酷唯软件出品
    $refund_ex = 'refund_query' == $_REQUEST['act'] ? " refund_status>'0'" : "";
    $order_list = order_list($refund_ex);
    //mod by coolvee.com 酷唯软件出品
    $tpl_file = 'order_list.htm';
    'refund_query' == $_REQUEST['act'] && ($tpl_file = 'refund_list.htm');
    $smarty->assign('order_list', $order_list['orders']);
    $smarty->assign('filter', $order_list['filter']);
    $smarty->assign('record_count', $order_list['record_count']);
    $smarty->assign('page_count', $order_list['page_count']);
    $sort_flag = sort_flag($order_list['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    make_json_result($smarty->fetch($tpl_file), '', array('filter' => $order_list['filter'], 'page_count' => $order_list['page_count']));
} elseif ($_REQUEST['act'] == 'team_query' || $_REQUEST['act'] == 'teammem_query') {
    /* 检查权限 */
    admin_priv('order_view');
    //mod by coolvee.com 酷唯软件出品
    $order_list = team_list();
开发者ID:shiruolin,项目名称:hzzshop,代码行数:31,代码来源:order.php

示例12: show_user_center

/**
 * 用户中心显示.
 */
function show_user_center()
{
    order_list();
    $GLOBALS['smarty']->assign('user_name', $_SESSION['user_name']);
    //    //$best_goods = get_recommend_goods('best');
    //    if (count($best_goods) > 0)
    //    {
    //        foreach  ($best_goods as $key => $best_data)
    //        {
    //            $best_goods[$key]['shop_price'] = encode_output($best_data['shop_price']);
    //            $best_goods[$key]['name'] = encode_output($best_data['name']);
    //        }
    //    }
    //
    //
    //
    //    $GLOBALS['smarty']->assign('best_goods' , $best_goods);
    $GLOBALS['smarty']->assign('common_header_title', '用户中心');
    $GLOBALS['smarty']->assign('footer', get_footer());
    $GLOBALS['smarty']->display('user.dwt');
}
开发者ID:netroby,项目名称:ecshop,代码行数:24,代码来源:user.php

示例13: delete

if (!empty($_POST) && isset($_POST["del_software"]) && $_POST["del_software"] == "1") {
    $id = $_POST["id"];
    delete($db, $id, "software");
}
// --- UP_LIST
if (!empty($_POST) && isset($_POST["up_list"]) && $_POST["up_list"] == "1") {
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "software", "up", 0);
    unset($_POST);
}
// -------------
// --- DOWN_LIST
if (!empty($_POST) && isset($_POST["down_list"]) && $_POST["down_list"] == "1") {
    $max_line = intval($_POST["max_line"]);
    $order_list_actual = intval($_POST["order_list"]);
    order_list($db, $order_list_actual, "software", "down", $max_line);
    unset($_POST);
}
// -------------
// --- MODIFICATION
if (!empty($_POST) && isset($_POST["update_software"]) && $_POST["update_software"] == "1") {
    $id = intval($_POST["id"]);
    $software = addslashes($_POST["software"]);
    echo "Modification du champ<br />\n\t\t\t\tAncienne valeur = [<b>" . $software . "</b>]<br />\n\t\t\t\t<form action='#' method='POST'> <input type='hidden' name='id' value='" . $id . "' /> <input type='hidden' name='update_software' value='1' />\n\t\t\t\t\t<input type='text' name='software_updated' class='form-control' />\n\t\t\t\t\t<button class='btn btn-large btn-primary'>Enregistrer<br />les modifications</button>\n\t\t\t\t</form>";
    unset($_POST);
}
// --- MODIFICATION DANS DB
if (!empty($_POST) && isset($_POST["update_software_db"]) && $_POST["update_software_db"] == "1") {
    $id = $_POST["id"];
    $data = addslashes($_POST["software_updated"]);
    update_admin($db, $id, $data, "software");
开发者ID:Mettmett,项目名称:gestinterv,代码行数:31,代码来源:software.php


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