コード例 #1
0
ファイル: addressbook.php プロジェクト: njassim/SOHO_REPRO
<?php

include './admin/config.php';
include './admin/db_connection.php';
$_SESSION['job'] = $_REQUEST['jobref'];
$_SESSION['qty'] = $_REQUEST['quantity'];
$user_id = $_SESSION['sohorepro_companyid'];
$id_user = $_SESSION['sohorepro_userid'];
$shipping_address = ShippingAddress($user_id);
$primary_shipping = PrimaryShipping($user_id);
$user_manager = CheckManager($id_user);
if ($_GET['redirect'] == 'serivce_recipient') {
    ?>
<script>setTimeout("location.href=\'add_recipients.php?address_ste=1\'", 1000);</script>
<?php 
}
if ($_GET['delete_id']) {
    $delete_id = $_GET['delete_id'];
    $sql = "DELETE FROM sohorepro_address WHERE id = " . $delete_id . " ";
    $sql_result = mysql_query($sql);
    if ($sql_result) {
        $result = "success";
    } else {
        $result = "failure";
    }
}
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
コード例 #2
0
ファイル: shoppingcart.php プロジェクト: njassim/SOHO_REPRO
            $exist_product  =   ExistProdInChe($items['product_id'], $user_id);
            $added_qty      =   $exist_product[0]['quantity'] + $items['quantity'];
            if (count($exist_product) > 0) {
            $query  =   "UPDATE sohorepro_checkout SET quantity = '".$added_qty."' WHERE product_id = '".$items['product_id']."' AND user_id = '".$user_id."' ";
            }  else {
            $query  = "INSERT INTO sohorepro_checkout SET product_id     = '" . $items['product_id'] . "', quantity = '" . $items['quantity'] . "', unit_price = '" . $items['unit_price'] . "', user_id = '" . $user_id . "', staff_id = '0', company_id = '" . $company_id . "', reference = '" . $job_reference . "', shipping_add_id = '0' ";
            }
            mysql_query($query);
            }            
$query_guest      = "DELETE FROM sohorepro_checkout_guest WHERE ip = '".$ip."' ";
mysql_query($query_guest);
}

$shipping_address   = ($company_id != '') ? ShippingAddressAll($company_id): ShipAddNewSup($user_id) ;
$shipping_size      = count($shipping_address);
$primary_shipping   = PrimaryShipping($company_id);
$comp_name          = companyName($company_id);
$address_shipp      = ($shipping_size == 1) ? $shipping_address[0]['id'] : '0' ;
$checkout_product   = checkOut($user_id);
$_SESSION['ref_val'] = $checkout_product[0]['reference'];
$reference          = ($checkout_product[0]['reference'] != '') ? $checkout_product[0]['reference'] : $_SESSION['ref_val'];
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <!-- Mirrored from buckart.com/srsite/SoHoRepro-WebsitePages/store/store.html by HTTrack Website Copier/3.x [XR&CO'2013], Sat, 21 Sep 2013 08:44:50 GMT -->
 <!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
 <head>
 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
 <title> SohoRepro </title>
コード例 #3
0
<?php
include './admin/config.php';
include './admin/db_connection.php';
$_SESSION['job'] = $_REQUEST['jobref'];
$_SESSION['qty'] = $_REQUEST['quantity'];
$user_id = $_SESSION['sohorepro_companyid'];
$id_user = $_SESSION['sohorepro_userid'];

$shipping_address = ShippingAddressService($user_id);
$primary_shipping = PrimaryShipping($user_id);
$user_manager = CheckManager($id_user);

if($_GET['redirect'] == 'serivce_recipient'){
?>
<script>setTimeout("location.href=\'add_recipients.php?address_ste=1\'", 1000);</script>
<?php
}
if ($_GET['delete_id']) {
    $delete_id = $_GET['delete_id'];
    $sql = "DELETE FROM sohorepro_address_service WHERE id = " . $delete_id . " ";
    $sql_result = mysql_query($sql);
    if ($sql_result) {
        $result = "success";
    } else {
        $result = "failure";
    }
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">