Exemplo n.º 1
0
    $query = "UPDATE sohorepro_order_master SET customer_name = '" . $user_id . "', customer_company = '" . $company_id . "', time = NOW()  WHERE id = '" . $order_id . "' ";
    $sql_result = mysql_query($query);
    if ($sql_result) {
        echo '1';
    } else {
        echo '0';
    }
}
if (isset($_POST['admin_add1']) && $_POST['admin_add1'] != '') {
    $add1 = $_POST['admin_add1'];
    $add2 = $_POST['add2'];
    $city = $_POST['city'];
    $state = $_POST['state'];
    $zip = $_POST['zip'];
    $comp_id = $_POST['comp_ID'];
    $comp_id_check = ShippingAddressAllForGuest($comp_id);
    if ($comp_id_check > 0) {
        $address_insert = "UPDATE sohorepro_address SET address_1 = '" . $add1 . "', address_2= '" . $add2 . "', city = '" . $city . "', state = '" . $state . "', zip = '" . $zip . "' WHERE comp_id = '" . $comp_id . "' ";
        $result = mysql_query($address_insert);
    } else {
        $address_insert = "INSERT INTO sohorepro_address SET address_1 = '" . $add1 . "', address_2= '" . $add2 . "', city = '" . $city . "', state = '" . $state . "', zip = '" . $zip . "', comp_id = '" . $comp_id . "' ";
        $result = mysql_query($address_insert);
    }
    if ($result) {
        echo '1';
    } else {
        echo '0';
    }
}
//Unlink Invoice
if (isset($_POST['unlink_order_id']) && $_POST['unlink_order_id'] != '') {
Exemplo n.º 2
0
<?php

include './config.php';
include './auth.php';
$id = $_GET['comp_id'];
$acc_id = $_GET['acc_id'];
$state_all = StateAll();
$address = ShippingAddressAllForGuest($id);
//echo '<pre>';
//print_r($address);
//echo '</pre>';
?>
<style>
   /* Supply Login */
.shipp_window{
    width: 260px;   
    padding: 0px 20px;
    float:left; 
    border-right: 2px dotted #999;
}

.shipp_window ul{
    float: left;
    width: 100%;    
    color:#5f5f5f; font-size: 16px; 
    padding: 0px;
}
.shipp_window h1{
    font-size: 18px;
    float: left;
    width: 100%;