コード例 #1
0
if (isset($_POST['me_action'])) {
    if ($_POST['me_action'] == 'UPDATENAME') {
        $new_name = tep_db_prepare_input($_POST['name']);
        $booking->update(null, $new_name);
        echo utf8_encode($booking->name);
        exit;
    } elseif ($_POST['me_action'] == 'UPDATESTATUS') {
        $old_status = $booking->status;
        $new_status = tep_db_prepare_input($_POST['status']);
        $booking->updateStatus($old_status, $new_status, $session_userinfo['username']);
        echo utf8_encode($booking->status);
        exit;
    }
}
$content .= '<div style="width:710px;">';
$content .= $booking->drawStatusIcon('booking-status', '', 'float:right;');
$content .= '<h2><span id="booking-name" class="pointer" title="Click to rename order">' . $booking->name . '</span><input id="booking-name-edit" type="text" class="input2" style="display:none;" /></h2>';
$content .= '</div>';
$content .= '<div class="draw-table" style="clear:both;">';
$content .= '<table class="sticky-tablehead" border="0" cellpadding="0" cellspacing="0">';
$content .= '<thead><tr>';
foreach ($product_table_header as $k => $v) {
    $content .= '<th>' . $v . '</th>';
}
$content .= '</tr></thead>';
$content .= '<tbody id="table-loader">';
$items_as_products = array();
$products = array();
$articles = array();
foreach ($booking->items as $psid => $qty) {
    $stock = $class_pm->stockRetrieveDetailByPSID($psid);