示例#1
0
<?php

include './admin/config.php';
include './admin/db_connection.php';
$id = $_GET['id'];
$state_id = $_GET['state_id'];
$_SESSION['job'] = $_REQUEST['jobref'];
$_SESSION['qty'] = $_REQUEST['quantity'];
$user_id = $_SESSION['sohorepro_userid'];
$id_user = $_SESSION['sohorepro_companyid'];
$updated_address = UpdatedAddress($id);
$user_manager = CheckManager($user_id);
$mail_ids = CompanyMember($id_user);
$comp_name = companyName($id_user);
$phone = companyphone($id_user);
$state_abbr = StateName($state_id);
$message = '<link href="mail_css.css" media="screen" rel="stylesheet" type="text/css" />';
$message .= '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">';
$message .= '<table width="750" border="0" cellspacing="0" cellpadding="0">';
$message .= '<tr bgcolor="#ff7e00">';
$message .= '<td width="10" height="10" align="left" valign="top"></td>';
$message .= '<td height="10" align="left" valign="top"></td>';
$message .= '<td width="10" height="10" align="left" valign="top"></td>';
$message .= '</tr>';
$message .= '<tr>';
$message .= '<td width="10" align="left" valign="top" bgcolor="#ff7e00"></td>';
$message .= '<td align="left" valign="top"><table width="730" border="0" cellspacing="0" cellpadding="0">';
$message .= '<tr>';
$message .= '<td width="20" height="20" align="left" valign="top"></td>';
$message .= '<td height="20" align="left" valign="top"></td>';
$message .= '<td width="20" height="20" align="left" valign="top"></td>';
<?php

include './config.php';
if (isset($_POST['customer_id']) && $_POST['customer_id'] != '') {
    $customer_id = $_POST['customer_id'];
    $customer_info = getCustomeInfo($customer_id);
    $state = StateName($customer_info[0]['comp_state']);
    echo $customer_info[0]['comp_contact_name'] . '~' . $customer_info[0]['comp_contact_email'] . '~' . $customer_info[0]['comp_name'] . '~' . $customer_info[0]['comp_contact_phone'] . '~' . $customer_info[0]['comp_business_address1'] . '~' . $customer_info[0]['comp_business_address2'] . '~' . $customer_info[0]['comp_room'] . ' ' . $customer_info[0]['comp_suite'] . ' ' . $customer_info[0]['comp_floor'] . '~' . $customer_info[0]['comp_city'] . '~' . $state . '~' . $customer_info[0]['comp_zipcode'] . '~' . $customer_info[0]['comp_phone1'] . '~' . $customer_info[0]['comp_phone2'] . '~' . $customer_info[0]['comp_phone3'] . '~' . $customer_info[0]['comp_phone3'] . '~<a href="../tax_form/' . $customer_info[0]['tax_form_resale'] . '" target="_blank">' . $customer_info[0]['tax_form_resale'] . '</a>~' . $customer_info[0]['tax_form_excempt'];
}
if (isset($_POST['invite_user_id']) && $_POST['invite_user_id'] != '') {
    $comp_id = $_POST['invite_user_id'];
    $customer_info = getCustomeInfo($comp_id);
    $message = '<html>';
    $message .= '<head>';
    $message .= '<title></title>';
    $message .= '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
    $message .= '</head>';
    $message .= '<body>';
    $message .= '<table width="550" border="0" cellspacing="0" cellpadding="0">';
    $message .= '<tr bgcolor="#ff7e00">';
    $message .= '<td width="10" height="10" align="left" valign="top"></td>';
    $message .= '<td height="10" align="left" valign="top"></td>';
    $message .= '<td width="10" height="10" align="left" valign="top"></td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td width="10" align="left" valign="top" bgcolor="#ff7e00"></td>';
    $message .= '<td align="left" valign="top">';
    $message .= '<table width="530" border="0" cellspacing="0" cellpadding="0">';
    $message .= '<tr>';
    $message .= '<td width="20" height="20" align="left" valign="top"></td>';
    $message .= '<td height="20" align="left" valign="top"></td>';
示例#3
0
            echo $cumpony_id;
            ?>
" id="<?php 
            echo $cumpony_id;
            ?>
" /></span>
                                                                                                        </td>
                                                                                                        <td>
                                                                                                            <span style="cursor: pointer;margin-left: -17px;" class="del_stat_inline del_stat_inline_span_<?php 
            echo $cumpony_id;
            ?>
" id="<?php 
            echo $cumpony_id;
            ?>
"><?php 
            echo $del_state = $deleivery_address[0]['state'] != '' ? StateName($deleivery_address[0]['state']) : '---';
            ?>
</span>&nbsp;
                                                                                                            <select name="state" id="<?php 
            echo $cumpony_id;
            ?>
" class="none del_state del_stat_inline_txt_<?php 
            echo $cumpony_id;
            ?>
" >                    
                                                                                                                <?php 
            $state = StateAll();
            if ($deleivery_state == "---") {
                ?>
                                                                                                                    <option value="<?php 
                echo $deleivery_state;
示例#4
0
    $comp_id        = $object_add['company_id']; 
    
    if($add_id != '0') {
    $update_address =  "UPDATE sohorepro_checkout SET shipping_add_id = '".$id."' WHERE product_id = '".$product_id."'";
    mysql_query($update_address);   
    }else{
     $update_address =  "UPDATE sohorepro_checkout SET shipping_add_id = '".$id."' WHERE user_id = '".$user_id."'";
    mysql_query($update_address);   
    }
    $select         = "SELECT * FROM sohorepro_address WHERE id = '".$id."' ";
    $res            = mysql_query($select);
    $object         = mysql_fetch_assoc($res); 
    $comp_name      = $object['company_name'];
    $shipping_address = ShippingAddressAll($comp_id);
    $shipping_size    = count($shipping_address);
    echo $comp_name.'</br>'.$object['attention_to'].'</br>'.$object['address_1'].'</br>'.$object['address_2'].'</br>'.$object['address_3'].'</br>'.$object['city'].',  '.StateName($object['state']).',  '.$object['zip'].'~';
}


if (isset($_POST['usr_name_chk']) && $_POST['usr_name_chk'] != '') {
    
    $reference    = $_POST['reference'];
    $user_name    = $_POST['usr_name_chk'];
    $user_pass    = $_POST['usr_pass_chk'];
    
    $check_user = CheckCusUser($user_name,$user_pass);
    if(count($check_user) > 0)
    {
    $_SESSION['sohorepro_userid']       = $check_user[0]['cus_id'];
    $_SESSION['sohorepro_companyid']    = $check_user[0]['cus_compname']; 
    $_SESSION['sohorepro_username']     = $check_user[0]['cus_contact_name']; 
示例#5
0

//Retrive the company data to load the form
if(isset($_REQUEST['cid']))
{
$search = $_REQUEST['cid'];

$select_company = mysql_query("select * from sohorepro_company where status = '1' AND comp_contact_phone ='$search'  ");

$str_comp='';

$fth_comp=  mysql_fetch_array($select_company);

if(mysql_num_rows($select_company) > 0)
{
$state_comp = StateName($fth_comp['comp_state']);
$str_comp .= ($fth_comp['comp_name'] == '') ? 'NIL^^^^' : $fth_comp['comp_name']."^^^^";
$str_comp .= ($fth_comp['comp_contact_phone'] == '') ? 'NIL^^^^' : "YES-RESULT^^^^";
$str_comp .= ($fth_comp['comp_business_address1'] == '') ? '&nbsp;^^^^' :$fth_comp['comp_business_address1']."^^^^";
$str_comp .= ($fth_comp['comp_business_address2'] == '') ? '^^^^' : $fth_comp['comp_business_address2']."^^^^";
$str_comp .= ($fth_comp['comp_room'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_room']."^^^^";
$str_comp .= ($fth_comp['comp_suite'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_suite']."^^^^";
$str_comp .= ($fth_comp['comp_floor'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_floor']."^^^^";
$str_comp .= ($fth_comp['comp_city'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_city']."^^^^";
$str_comp .= ($fth_comp['comp_state'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_state'].'&nbsp;'."^^^^";
$str_comp .= ($fth_comp['comp_zipcode'] == '') ? '&nbsp;^^^^' :$fth_comp['comp_zipcode']."^^^^";
$str_comp .= ($fth_comp['comp_phone1'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_phone1']."^^^^";
$str_comp .= ($fth_comp['comp_phone2'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_phone2']."^^^^";
$str_comp .= ($fth_comp['comp_phone3'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_phone3']."^^^^";
$str_comp .= ($fth_comp['comp_phone4'] == '') ? '&nbsp;^^^^' : $fth_comp['comp_phone4']."^^^^";
$str_comp .= ($fth_comp['tax_exe'] == '') ? '&nbsp;^^^^' : $fth_comp['tax_exe']."^^^^";
示例#6
0
 </script>
 </head>
 <body>
     
 <div id="body_container">
 <div id="body_content" class="body_wrapper">
 <div id="body_content-inner" class="body_wrapper-inner">

<?php 
include "includes/header_sidebar.php";
?>

 
 <div id="content_output">

<?php 
include "includes/top_nav.php";
?>

 
 <div id="content_output-data" style="margin-bottom:20px;">
<!--- TABLE START -->
<div id="cart_tabl">
    <?php 
if ($result == "success") {
    ?>

        <div style="color:#007F2A; text-align:center; padding-bottom:10px;">Shipping Address Deleted Successfully</div>
        <script>setTimeout("location.href=\'addressbook.php\'", 1000);</script>
        <?php 
<?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">
示例#8
0
</td>
                                    </tr>
                                    <tr height="25px">
                                        <td><span style="font-weight:bold;">Multiple Shipping Addresses: </span></td>
                                    </tr>
                                    <?php 
    $multi = MultiShippingAddress($Order_Id);
    $pick_up_multi = Pickup();
    foreach ($multi as $multi_shipp) {
        $address_multi_pre = SelectIdAddress($multi_shipp['shipping_id']);
        $address_multi_1 = $address_multi_pre[0]['address_1'] != '' ? $address_multi_pre[0]['address_1'] . '<br>' : '';
        $address_multi_2 = $address_multi_pre[0]['address_2'] != '' ? $address_multi_pre[0]['address_2'] . '<br>' : '';
        $address_multi_3 = $address_multi_pre[0]['address_3'] != '' ? $address_multi_pre[0]['address_3'] . '<br>' : '';
        $check_item_id = explode(",", $multi_shipp['item_id']);
        $items_tag = $check_item_id[1] != '' ? '<span style="font-weight:bold;">Items&nbsp;:&nbsp;' . $multi_shipp['item_id'] . '<br>' : '<span style="font-weight:bold;">Item&nbsp;:&nbsp;' . $multi_shipp['item_id'] . '<br>';
        $address_for_items_pre[] = $multi_shipp['shipping_id'] != 'P' ? '<div style="float:left;width:100%;">' . $items_tag . '</span><span style="font-weight:bold;">Shipping Address: </span><br>' . $address_multi_pre[0]['company_name'] . '<br>' . $address_multi_1 . $address_multi_2 . $address_multi_3 . $address_multi_pre[0]['city'] . ',&nbsp;' . StateName($address_multi_pre[0]['state']) . '&nbsp;' . $address_multi_pre[0]['zip'] . '<br><br><span style="font-weight:bold;">Delivery Date :</span></div><div style="float:left;width:100%;">' . $deleivery_date . '</div>' : '<div style="float:left;width:100%;">' . $items_tag . '</span><span style="font-weight:bold;">Pickup Address: </span><br>' . $pick_up_multi . '<br><br><span style="font-weight:bold;">Delivery Date :</span></div><div style="float:left;width:100%;">' . $deleivery_date . '</div>';
    }
    ?>
                                    <tr>
                                        
                                        <td>
                                            <table align="left" border="0">
                                                <?php 
    for ($m = 0; $m < count($address_for_items_pre); $m += 3) {
        ?>
                                                    <tr>
                                                    <td><?php 
        echo $address_for_items_pre[$m];
        ?>
</td>
                                                    <td><?php 
                        <option class="select-dash" disabled="disabled">-----------------------------------------</option>
                    <?php 
                    foreach ($address_book_drop as $address) {
                    ?>                                                                                        
                        <option value="<?php echo $address['id']; ?>" <?php if ($address['id'] == $address_book_se) { ?> selected="selected" <?php } ?>><?php echo $address['company_name']; ?></option>
                    <?php
                    }
                    ?>
                </select>
            </div>
            <!-- Address Show Start -->
            <div id="show_address" style="float: left;width: 56%;padding: 6px;border: 1px #F99B3E solid;margin-top: 10px;margin-left: 5px;height: 20px;font-weight: bold;">
                <?php
                $address_1 = ($address_book[0]['address_1'] != '') ? $address_book[0]['address_1'] . ',' : '';
                $address_2 = ($address_book[0]['address_2'] != '') ? $address_book[0]['address_2'] . ',' : '';
                echo $address_1 . $address_2 . $address_book[0]['city'] . ', ' . StateName($address_book[0]['state']) . ' ' . $address_book[0]['zip'];
                ?>
            </div>

            <!--            <div style="float: left;width: 100%;margin-top: 10px;">
                            <div style="float: right;width: 61%;font-weight: bold;">Attention to: </div>
                        </div>
                        <div style="float: left;width: 100%;margin-top: 10px;">
                            <div style="float: right;width: 61%;">
                                <div id="show_address_att" style="float: left;width: 50%;border: 1px #F99B3E solid;padding: 5px;height: 25px;">
                                    <input type="text" name="shipp_att" id="shipp_att" value="<?php echo $address_book[0]['attention_to']; ?>" style="background-color: #F3FA2F; font-weight: bold; font-size: 20px !important;" />
                                </div>
                            </div>
                        </div>-->   
            <div style="float: left;width: 100%;margin-top: 5px;">   
                <div style="float: left;width: 40%;">
示例#10
0
function ExtraProductsInOrder($Order_Id, $shipp_add_id, $short_msg)
{
    $sql_order_id_mail = mysql_query("SELECT id,order_id,created_date,order_number,customer_name,customer_company,deleivery_date,order_comment FROM sohorepro_order_master WHERE id = '" . $Order_Id . "' ORDER BY id DESC LIMIT 1");
    $object = mysql_fetch_assoc($sql_order_id_mail);
    $user_mail_id_txt = UserMail($object['customer_name']);
    $user_mail = array('email_id' => UserMail($object['customer_name']));
    $user_name = UserName($object['customer_name']);
    $company_name = companyName($object['customer_company']);
    $phone = companyphone($object['customer_company']);
    $billing_address = BillingAddressShippId($object['customer_company']);
    $shipp_address = CompanyAddressMail($billing_address);
    $prop = PropTest($shipping_id);
    $id = $Order_Id;
    $Order_id = $object['order_id'];
    $Order_number = $object['order_number'];
    $deleivery_date = $object['deleivery_date'];
    $comp_id = $object['customer_company'];
    $order_comm = $object['order_comment'];
    //$current_time           = date("Y-m-d h:i:s");
    $current_time = $object['created_date'];
    $datew = new DateTime($current_time, new DateTimeZone('America/New_York'));
    date_default_timezone_set('America/New_York');
    $temp_times = date("Y-m-d h:iA", $datew->format('U'));
    //$Date = date("m-d-Y", strtotime(date('Y-m-d h:i:s', time()))). ' ' .date("h:iA",strtotime("-0 minutes",strtotime($temp_times)));
    $Date = date('Y-m-d h:i A', time());
    $view_orders = viewOrders($id);
    $pick_up = $view_orders[0]['shipping_add_id'];
    $mail_id = getActiveEmail();
    $returnValue = html_entity_decode('Your Soho Repro graphics order has been received and will be processed promptly.', ENT_COMPAT, 'ISO-8859-1');
    $customer_email = array('email_id' => CompanyMail($comp_id));
    array_push($mail_id, $user_mail, $customer_email);
    $comment = 'Comment :';
    $address_3 = $shipp_address['address_3'] != '' ? $shipp_address['address_3'] . '<br>' : '';
    $mail = new PHPMailer();
    $message = '<html>';
    $message .= '<head>';
    $message .= '<title></title>';
    $message .= '<meta content="text/html;charset=iso-8859-1" http-equiv="Content-Type">';
    $message .= '</head>';
    $message .= '<body>';
    $message .= '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">';
    $message .= '<table width="780" border="0" cellspacing="0" cellpadding="0" class="padd">';
    $message .= '<tr><td>' . $short_msg . '</td></tr>';
    $message .= '</table>';
    $message .= '<table width="780" border="0" cellspacing="0" cellpadding="0" class="padd">';
    $message .= '<tr bgcolor="#ff7e00">';
    $message .= '<td width="10" height="10" align="left" valign="top"></td>';
    $message .= '<td height="10" align="left" valign="top"></td>';
    $message .= '<td width="10" height="10" align="left" valign="top"></td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td width="10" align="left" valign="top" bgcolor="#ff7e00"></td>';
    $message .= '<td align="left" valign="top"><table width="760" border="0" cellspacing="0" cellpadding="0">';
    $message .= '<tr>';
    $message .= '<td width="20" height="20" align="left" valign="top"></td>';
    $message .= '<td height="20" align="left" valign="top"></td>';
    $message .= '<td width="20" height="20" align="left" valign="top"></td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td width="20" align="left" valign="top"></td>';
    $message .= '<td align="left" valign="top"><table width="740" border="0" cellspacing="0" cellpadding="0">';
    $message .= '<tr>';
    $message .= '<td>' . $returnValue . '</br></td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td>&nbsp;</td>';
    $message .= '</tr>';
    $message .= '<tr height="30px">';
    $message .= '<td><span style="font-weight:bold;">Customer Reference :</span> ' . $Order_id . '</td>';
    $message .= '</tr>';
    $message .= '<tr height="25px">';
    $message .= '<td><span style="font-weight:bold;">Date :</span> ' . $Date . '</td>';
    $message .= '</tr>';
    $message .= '<tr height="25px">';
    $message .= '<td><span style="font-weight:bold;">Name :</span> ' . $user_name . '</td>';
    $message .= '</tr>';
    $message .= '<tr height="25px">';
    $message .= '<td><span style="font-weight:bold;">Company :</span> ' . $company_name . '</td>';
    $message .= '</tr>';
    $message .= '<tr height="25px">';
    $message .= '<td><span style="font-weight:bold;">Email :</span> ' . $user_mail_id_txt . '</td>';
    $message .= '</tr>';
    $message .= '<tr height="25px">';
    $message .= '<td><span style="font-weight:bold;">Phone :</span> ' . $phone . '</td>';
    $message .= '</tr>';
    if ($pick_up == 'P') {
        $message .= '<tr height="30px">';
        $message .= '<td><span style="font-weight:bold;">Pickup Address: </span></td>';
        $message .= '</tr>';
        $message .= '<tr>';
        $message .= '<td style="padding-bottom:7px;">Soho Reprographics<br>381 Broome Street<br>New York, NY 10013</td>';
        $message .= '</tr>';
    } else {
        $message .= '<tr height="30px">';
        $message .= '<td><span style="font-weight:bold;">Billing Address: </span></td>';
        $message .= '</tr>';
        $message .= '<tr>';
        $message .= '<td style="padding-bottom:7px;">' . $shipp_address['company_name'] . '<br>' . $shipp_address['address_1'] . '<br>' . $shipp_address['address_2'] . '<br>' . $address_3 . $shipp_address['city'] . ',&nbsp;' . StateName($shipp_address['state']) . '&nbsp;' . $shipp_address['zip'] . '</td>';
        $message .= '</tr>';
        $message .= '<tr height="25px">';
        $message .= '<td><span style="font-weight:bold;">Multiple Shipping Addresses: </span></td>';
        $message .= '</tr>';
        $multi = MultiShippingAddress($Order_Id);
        $pick_up_multi = Pickup();
        foreach ($multi as $multi_shipp) {
            $address_multi_pre = SelectIdAddress($multi_shipp['shipping_id']);
            $address_multi_1 = $address_multi_pre[0]['address_1'] != '' ? $address_multi_pre[0]['address_1'] . '<br>' : '';
            $address_multi_2 = $address_multi_pre[0]['address_2'] != '' ? $address_multi_pre[0]['address_2'] . '<br>' : '';
            $address_multi_3 = $address_multi_pre[0]['address_3'] != '' ? $address_multi_pre[0]['address_3'] . '<br>' : '';
            $check_item_id = explode(",", $multi_shipp['item_id']);
            $items_tag = $check_item_id[1] != '' ? '<span style="font-weight:bold;">Items&nbsp;:&nbsp;' . $multi_shipp['item_id'] . '<br>' : '<span style="font-weight:bold;">Item&nbsp;:&nbsp;' . $multi_shipp['item_id'] . '<br>';
            $address_for_items_pre[] = $multi_shipp['shipping_id'] != 'P' ? $items_tag . '</span><span style="font-weight:bold;">Shipping Address: </span><br>' . $address_multi_pre[0]['company_name'] . '<br>' . $address_multi_1 . $address_multi_2 . $address_multi_pre[0]['city'] . ',&nbsp;' . StateName($address_multi_pre[0]['state']) . '&nbsp;' . $address_multi_pre[0]['zip'] . '<br><br><span style="font-weight:bold;">Delivery Date :</span>' . $deleivery_date : $items_tag . '</span><span style="font-weight:bold;">Pickup Address: </span><br>' . $pick_up_multi . '<br><br><br><span style="font-weight:bold;">Delivery Date :</span>' . $deleivery_date;
        }
        $message .= '<tr><td>';
        $message .= '<table align="left">';
        for ($m = 0; $m < count($address_for_items_pre); $m += 3) {
            $message .= '<tr>
                <td>' . $address_for_items_pre[$m] . '</td>
                <td>' . $address_for_items_pre[$m + 1] . '</td>
                <td>' . $address_for_items_pre[$m + 2] . '</td>
            </tr>';
            $message .= '<tr><td>&nbsp;</td></tr>';
        }
        $message .= '</table>';
        $message .= '</td></tr>';
    }
    $message .= '</table></td>';
    $message .= '<td height="25" width="20" align="left" valign="top"></td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td width="20" align="left" valign="top"></td>';
    $message .= '<td align="left" valign="top">';
    $message .= '<table width="740" border="0" cellspacing="0" cellpadding="0" style="margin-right:-1px;">';
    $message .= '<tr style="color:#fff; text-transform:uppercase;">';
    $message .= '<td width="40" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Item</td>';
    $message .= '<td width="400" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Description</td>';
    $message .= '<td width="80" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Quantity</td>';
    $message .= '<td width="100" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Unit Price</td>';
    $message .= '<td width="110" align="center" valign="middle" bgcolor="#f68210" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">Total</td>';
    $message .= '</tr>';
    $total = 0;
    $i = 1;
    foreach ($view_orders as $ord) {
        $rowColor = $i % 2 != 0 ? '#dfdfdf' : '#eeeeee';
        $rowColor1 = $i % 2 != 0 ? '#eeeeee' : '#f6f2f2';
        $prod_id = $ord['product_id'];
        $shipping = SelectAllAddress($ord['shipping_add_id']);
        $id = $ord['id'];
        $message .= '<tr>';
        $message .= '<td width="40" align="left" valign="middle" bgcolor="' . $rowColor1 . '" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-left:20px;">' . $i . '</td>';
        $message .= '<td width="400" align="center" valign="middle" bgcolor="' . $rowColor . '" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;">' . getorderProd($prod_id) . '</td>';
        $message .= '<td width="80" align="right" valign="middle" bgcolor="' . $rowColor1 . '" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;">' . $ord['product_quantity'] . '</td>';
        $message .= '<td width="100" align="right" valign="middle" bgcolor="' . $rowColor . '" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;">' . '$' . $ord['product_price'] . '</td>';
        $message .= '<td width="110" align="right" valign="middle" bgcolor="' . $rowColor1 . '" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;">' . '$' . number_format($ord['product_quantity'] * $ord['product_price'], 2, '.', '') . '</td>';
        $message .= '</tr>';
        $sub_tot = $ord['product_quantity'] * $ord['product_price'];
        $tax_status = getTaxStatusChk($comp_id);
        $tax_value = TaxValue();
        if ($tax_status == '1') {
            $tax_line = '0';
        } else {
            $tax_line = $tax_value;
        }
        $total = $total + $sub_tot;
        $tax = $tax_line * ($total / 100);
        $i++;
    }
    $message .= '<tr>';
    $message .= '<td colspan="2" rowspan="3" bgcolor="#eeeeee" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;"><span style="font-weight:bold;">Comment:</span><br>' . $order_comm . '</td>';
    $message .= '<td colspan="2" align="right" bgcolor="#eeeeee" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;"><span style="font-weight:bold;">Subtotal</span></td>';
    $message .= '<td bgcolor="#eeeeee" align="right" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;">' . '$' . number_format($total, 2, '.', '') . '</td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td colspan="2" align="right" bgcolor="#dfdfdf" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;"><span style="font-weight:bold;">Tax</span></td>';
    $message .= '<td bgcolor="#dfdfdf" align="right" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;">' . '$' . number_format($tax, 2, '.', '') . '</td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td colspan="2" align="right" bgcolor="#eeeeee" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;"><span style="font-weight:bold;">Total*</span></td>';
    $message .= '<td bgcolor="#eeeeee" align="right" style="border-right:1px solid #fff; border-bottom:1px solid #fff; padding:7px 0px;padding-right:15px;">' . '$' . number_format($total + $tax, 2, '.', '') . '</td>';
    $message .= '</tr>';
    $message .= '</table></td>';
    $message .= '<td width="20" align="left" valign="top"></td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td width="20" height="20" align="left" valign="top"></td>';
    $message .= '<td height="20" align="left" valign="top"></td>';
    $message .= '<td width="20" height="20" align="left" valign="top"></td>';
    $message .= '</tr>';
    $message .= '<tr>';
    $message .= '<td height="20" align="left" valign="top"></td>';
    $message .= '<td height="20" align="left" valign="top" style="padding-bottom:5px;font-size:12px;">*Delivery charges to be applied as necessary</td>';
    $message .= '<td height="20" align="left" valign="top"></td>';
    $message .= ' </tr>';
    $message .= '</table></td>';
    $message .= '<td width="10" align="left" valign="top" bgcolor="#ff7e00"></td>';
    $message .= '</tr>';
    $message .= '<tr bgcolor="#ff7e00">';
    $message .= '<td width="10" height="10" align="left" valign="top"></td>';
    $message .= '<td height="10" align="left" valign="top"></td>';
    $message .= '<td width="10" height="10" align="left" valign="top"></td>';
    $message .= ' </tr>';
    $message .= '</table>';
    $message .= '</table>';
    $message .= '</body>';
    $message .= '</html>';
    $final_html = html_entity_decode($message);
    //        foreach ($mail_id as $to){
    //        $subject    = "Soho Reprographic Order Acknowledgement with Extra Products";
    //        $headers    = 'From: "SohoRepro" <*****@*****.**>' . "\r\n";
    //        $headers   .= 'MIME-Version: 1.0' . "\n";
    //        $headers   .= 'Content-Type: text/html; charset=utf-8\r\n';
    //        $headers   .= 'Content-Transfer-Encoding: 8bit\r\n\r\n';
    //        $to         = $to['email_id'];
    //        //echo $to, $subject, $message, $headers;
    //        $result = mail($to, $subject, $message, $headers);
    //        }
    foreach ($mail_id as $mails_sent) {
        $pre_filt[] = $mails_sent['email_id'];
    }
    $final_list = array_unique($pre_filt);
    //        foreach ($final_list as $to){
    //        $subject  = "Order Changed by Admin for Job:".$Order_id;
    //        $headers  = 'From: "SohoRepro" <*****@*****.**>' . "\r\n";
    //        $headers .= 'MIME-Version: 1.0' . "\n";
    //        $headers .= 'Content-Type: text/html; charset=utf-8\r\n'."X-Mailer: PHP";
    //        $headers .= 'Content-Transfer-Encoding: 8bit\r\n\r\n';
    //        //$to       = $to['email_id'];
    //        //echo $to, $subject, $message, $headers;
    //        $result = mail($to, $subject, $final_html, $headers);
    //        }
    $subject = "Order Changed by Admin for Job:" . $Order_id;
    $headers = 'From: "SohoRepro" <*****@*****.**>' . "\r\n";
    $headers .= 'MIME-Version: 1.0' . "\n";
    $headers .= 'Content-Type: text/html; charset=utf-8\\r\\n' . "X-Mailer: PHP";
    $headers .= 'Content-Transfer-Encoding: 8bit\\r\\n\\r\\n';
    $to = "*****@*****.**";
    //echo $to, $subject, $message, $headers;
    $result = mail($to, $subject, $final_html, $headers);
    if ($result) {
        return '1';
    } else {
        return '0';
    }
}
示例#11
0
        $arch_folding = ($entered_sets['arch_folding'] == '0') ? '' : ','.$entered_sets['arch_folding'];
        $size         = ($entered_sets['size'] == 'undefined') ? $entered_sets['arch_size'] : $entered_sets['size'];
        $output       = ($entered_sets['output'] == 'undefined') ? $entered_sets['arch_output'] : $entered_sets['output'];
        $media        = ($entered_sets['media'] == 'undefined') ? $entered_sets['arch_media'] : $entered_sets['media'];
        $binding      = ($entered_sets['binding'] == 'undefined') ? $entered_sets['arch_binding'] : $entered_sets['binding'];
        $folding      = ($entered_sets['folding'] == 'undefined') ? $entered_sets['arch_folding'] : $entered_sets['folding'];
        
        $message .= '<div style="font-weight: bold;padding-top: 3px;">RECIPIENT ' . $r . '</div>';
        $message .= '<div style="border: 2px #F99B3E solid;width: 95%;float: left;margin-bottom: 10px;">';
        $message .= '<div style="width: 100%;float: left;margin-top: 10px;margin-bottom: 10px;">';
        $message .= '<div style="float: left;width: 65%;margin-left: 30px;margin-top: 10px;font-weight: bold;">Send to: </div>';
        $message .= '<div style="float: left;width: 33%;margin-left: 30px;">';

        if (($entered_sets['shipp_id'] != 'P1') && ($entered_sets['shipp_id'] != 'P2')) {
            $add_2 = ($shipp_add[0]['address_2'] == '') ? '' : $shipp_add[0]['address_2'] . ',<br>';
            $message .= $shipp_add[0]['company_name'] . '<br>' . 'Attention: ' . $entered_sets['attention_to'] . '<br>' . 'Conatct:  ' . $entered_sets['contact_ph'] . '<br>' . $shipp_add[0]['address_1'] . ',<br>' . $add_2 . $shipp_add[0]['city'] . ',&nbsp;' . StateName($shipp_add[0]['state']) . '&nbsp;' . $shipp_add[0]['zip'];
        } else {                    //echo $shipp_add[0]['address'];                        
            $shipp_add_p = AddressBookPickupSohoCap($entered_sets['shipp_id']);
            $message .= $shipp_add_p[0]['address'];
        }

//        $add_2 = ($shipp_add[0]['address_2'] == '') ? '' : $shipp_add[0]['address_2'] . ',<br>';
//        $message .= $shipp_add[0]['company_name'] . '<br>' . $shipp_add[0]['address_1'] . ',<br>' . $add_2 . $shipp_add[0]['city'] . ',&nbsp;' . StateName($shipp_add[0]['state']) . '&nbsp;' . $shipp_add[0]['zip'];
        $message .= '</div>';
        $message .= '<div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;font-weight: bold;">PACKING LIST:</div>';
        $message .= '<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">';

        $message .= '<table border="0" style="width: 100%;">';
        $message .= '<tr bgcolor="#F99B3E">';
        $message .= '<td style="font-weight: bold;">Option</td>'; 
        $message .= '<td style="font-weight: bold;">Sets</td>';
示例#12
0
    return $value;
}


$multi      = MultiShippingAddress(25);


foreach ($multi as $multi_shipp){

$address_multi_pre    = SelectIdAddress($multi_shipp['shipping_id']);

$address_multi_1    =  ($address_multi_pre[0]['address_1'] != '')  ? $address_multi_pre[0]['address_1'].'<br>' : '';
$address_multi_2    =  ($address_multi_pre[0]['address_2'] != '')  ? $address_multi_pre[0]['address_2'].'<br>' : '';
$address_multi_3    =  ($address_multi_pre[0]['address_3'] != '')  ? $address_multi_pre[0]['address_3'].'<br>' : '';
    
$address_for_items_pre[] = '<span style="font-weight:bold;">Item&nbsp;:&nbsp;'.$multi_shipp['item_id'].'<br></span><span style="font-weight:bold;">Shipping Address: </span><br>'.$address_multi_pre[0]['company_name'].'<br>'.$address_multi_1.$address_multi_2.$address_multi_3.$address_multi_pre[0]['city'].',&nbsp;'.StateName($address_multi_pre[0]['state']).'&nbsp;'.$address_multi_pre[0]['zip'].'<br><br><span style="font-weight:bold;">Delivery Date :</span>' . $deleivery_date;
    
}

$message .= '<table align="left">';
for ($m = 0; $m<count($address_for_items_pre); $m+=3)
{
    $message.= '<tr>
                <td>'.$address_for_items_pre[$m].'</td>
                <td>'.$address_for_items_pre[$m+1].'</td>
                <td>'.$address_for_items_pre[$m+2].'</td>
            </tr>';
    $message.= '<tr><td>&nbsp;</td></tr>';
}
$message .= '</table>';
示例#13
0
                if($chk['shipping_add_id'] == 'P'){
            ?>
                <option value="P" selected="selected" >Pickup</option>
                <?php }  else {?>
                <option value="P">Pickup</option>
                <?php } ?>
                <option value="N" >Enter a new address</option>
            <?php } ?>
        </select></br>   
        <?php $select_address = SelectIdAddress($chk['shipping_add_id']);
              $att  = ($select_address[0]['attention_to'] != '') ? $select_address[0]['attention_to'].'</br>' : '';
              $add1 = ($select_address[0]['address_1'] != '') ? $select_address[0]['address_1'].'</br>' : '';
              $add2 = ($select_address[0]['address_2'] != '') ? $select_address[0]['address_2'].'</br>' : '';
              $add3 = ($select_address[0]['address_3'] != '') ? $select_address[0]['address_3'].'</br>' : '';
        if(count($select_address) == '1'){
        echo str_replace('Pick up', '', $select_address[0]['company_name']).'</br>'.$att.$add1.$add2.$add3.$select_address[0]['city'].',  '.StateName($select_address[0]['state']).'&nbsp;'.$select_address[0]['zip']; 
        }  elseif($chk['shipping_add_id'] == 'P') {
            echo 'Soho Reprographics</br>381 Broome Street</br>New York, NY 10013';    
        }
        ?>
        <!--<span id="shipping_select_<?php echo $product_id ?>" class="jass none shipping_select_<?php echo $product_id ?>"><?php //echo $comp_name.'</br>'.$primary_shipping[0]['attention_to'].'</br>'.$primary_shipping[0]['address_1'].'</br>'.$primary_shipping[0]['address_2'].'</br>'.$primary_shipping[0]['address_3'].'</br>'.$primary_shipping[0]['city'].',  '.StateName($primary_shipping[0]['state']).',  '.$primary_shipping[0]['zip']; ?></span>-->        
    </td>
    <td width="90" align="center" valign="top" class="brdr_1"><input type="button" onclick="delete_product(<?php echo $product_id; ?>,<?php echo $user_id; ?>);" /></td>
  </tr>
  <?php
                    $i++;
                }
            }
 else {         ?>
      <tr align="center" bgcolor="#fff6f0">
          <td colspan="6" class="brdr_1">No Products Found</td>
                  <option value="<?php echo $address['id'] ?>" selected="selected"><?php echo $address['company_name']; ?></option>  
                <?php }  else {    
                if ($address['id'] == $chk['shipping_add_id']) {
                ?>
                <option value="<?php echo $address['id'] ?>" selected="selected"><?php echo $address['company_name']; ?></option>
            <?php }else{ ?>
                <option value="<?php echo $address['id'] ?>" ><?php echo $address['company_name']; ?></option>
            <?php 
            }            
                }                
            } 
            ?><option value="N" >Enter a new address</option>
        </select></br>   
        <?php $select_address = SelectIdAddress($chk['shipping_add_id']);
        if(count($select_address) == '1'){
        echo $select_address[0]['company_name'].'</br>'.$select_address[0]['attention_to'].'</br>'.$select_address[0]['address_1'].'</br>'.$select_address[0]['address_2'].'</br>'.$select_address[0]['address_3'].'</br>'.$select_address[0]['city'].',  '.StateName($select_address[0]['state']).',  '.$select_address[0]['zip']; 
        }
        ?>
        <!--<span id="shipping_select_<?php echo $product_id ?>" class="jass none shipping_select_<?php echo $product_id ?>"><?php //echo $comp_name.'</br>'.$primary_shipping[0]['attention_to'].'</br>'.$primary_shipping[0]['address_1'].'</br>'.$primary_shipping[0]['address_2'].'</br>'.$primary_shipping[0]['address_3'].'</br>'.$primary_shipping[0]['city'].',  '.StateName($primary_shipping[0]['state']).',  '.$primary_shipping[0]['zip']; ?></span>-->        
    </td>
    <td width="90" align="center" valign="top" class="brdr_1"><input type="button" onclick="delete_product(<?php echo $product_id; ?>,<?php echo $user_id; ?>);" /></td>
  </tr>
  <?php
                    $i++;
                }
            }
 else {         ?>
      <tr align="center" bgcolor="#fff6f0">
          <td colspan="7" class="brdr_1">No Products Found</td>
      </tr> 
 <?php } ?>
示例#15
0
<div style="border: 2px #F99B3E solid;padding-bottom: 20px;margin-bottom : 5px;width: 100%;float: left;" class="shaddows">
<div style="width: 100%;float: left;margin-top: 10px;">
<div style="float: left;width: 48%;margin-left: 10px;font-weight: bold;">RECIPIENT <?php echo $r; ?></div>
<div style="float: right;width: 20%;font-weight: bold;">
<span title="Edit Recipient" alt="Edit Recipient" style="font-weight: bold;cursor: pointer;padding-right: 15px;font-weight: bold;padding-right: 15px;background: #009C58;color: #FFF;padding: 2px 10px;border-radius: 5px;margin-top: 3px;" onclick="return edit_recipient('<?php echo $entered_sets['id']; ?>');">Edit</span>
<span title="Delete Recipient" alt="Delete Recipient" style="font-weight: bold;cursor: pointer;background: #D84B36;color: #FFF;padding: 2px 8px;border-radius: 5px;margin-top: 3px;font-weight: bold;" onclick="return delete_recipient('<?php echo $entered_sets['id']; ?>');">Delete</span>
</div>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 10px;font-weight: bold;">Send to :</div>
<div style="float: left;width: 33%;margin-left: 30px;">  
<?php
$add_2 = ($shipp_add[0]['address_2'] == '') ? '' : $shipp_add[0]['address_2'] . ',<br>';
echo $shipp_add[0]['company_name'] . '<br>' . $shipp_add[0]['address_1'] . ',<br>' . $add_2 . $shipp_add[0]['city'] . ',&nbsp;' . StateName($shipp_add[0]['state']) . '&nbsp;' . $shipp_add[0]['zip'] . '<br>' . 'Attention To :' . $entered_sets['attention_to'];
?>                   
</div>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;font-weight: bold;">PACKING LIST:</div>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
<table border="1" style="width: 100%;">
<tr bgcolor="#F99B3E">
<td style="font-weight: bold;">Sets</td> 
<td style="font-weight: bold;">Order Type</td>                            
<td style="font-weight: bold;">Size</td>
<td style="font-weight: bold;">Output</td>
<td style="font-weight: bold;">Binding</td>
<td style="font-weight: bold;">Folding</td>
</tr>
<tr bgcolor="#ffeee1">
<td><?php echo $entered_sets['plot_needed']; ?></td>
<td>Plotting on Bond</td>                            
<td><?php echo $entered_sets['size']; ?></td>
<td><?php echo $entered_sets['output']; ?></td>
<td><?php echo $entered_sets['binding']; ?></td>
示例#16
0
$message .= '<td width="220" align="center" valign="middle" bgcolor="#f68210" class="brdr">Shipping Address</td>';
$message .= '</tr>';
$total = 0;
$i = 0;
foreach ($view_orders as $ord) {
    $rowColor   = ($i % 2 != 0) ? '#dfdfdf' : '#eeeeee';
    $rowColor1  = ($i % 2 != 0) ? '#eeeeee' : '#f6f2f2';
    $prod_id    = $ord['product_id'];
    $shipping   = SelectAllAddress($ord['shipping_add_id']);
    $id = $ord['id'];    
$message .= '<tr>';
$message .= '<td width="250" align="left" valign="middle" bgcolor="'.$rowColor1.'" class="brdr pad_lft">'.getorderProd($prod_id).'</td>';
$message .= '<td width="90" align="center" valign="middle" bgcolor="'.$rowColor.'" class="brdr">'.$ord['product_quantity'].'</td>';
$message .= '<td width="90" align="right" valign="middle" bgcolor="'.$rowColor1.'" class="brdr pad_rght">'.'$' . $ord['product_price'].'</td>';
$message .= '<td width="90" align="right" valign="middle" bgcolor="'.$rowColor.'" class="brdr pad_rght">'.'$' . ($ord['product_quantity'] * $ord['product_price']).'.00</td>';
$message .= '<td width="190" align="left" valign="middle" bgcolor="'.$rowColor1.'" class="brdr pad_lft pad_rght">'.$shipping[0]['company_name'].'</br>'.$shipping[0]['attention_to'].'</br>'.$shipping[0]['address_1'].'</br>'.$shipping[0]['address_2'].'</br>'.$shipping[0]['address_3'].'</br>'.$shipping[0]['city'].','.StateName($shipping[0]['state']).','.$shipping[0]['zip'].'</td>';
$message .= '</tr>';
$sub_tot = $ord['product_quantity'] * $ord['product_price'];
$total = $total + $sub_tot;
$tax         = (8.875 * ($total/100));
$i++;
}
$message .= '</table></td>';
$message .= '<td width="20" align="left" valign="top"></td>';
$message .= '</tr>';
$message .= '<tr>';
$message .= '<td width="20" height="20" align="left" valign="top"></td>';
$message .= '<td height="20" align="left" valign="top"></td>';
$message .= '<td width="20" height="20" align="left" valign="top"></td>';
$message .= '</tr>';
$message .= '<tr>';
示例#17
0
<?php
include './admin/config.php';
include './admin/db_connection.php';
error_reporting(0);


if (isset($_POST['shipping_id_rp']) && $_POST['shipping_id_rp'] != '') {
      $shipp_add = SelectIdAddressService($_POST['shipping_id_rp']);   
      if($shipp_add != ''){
          $add_1 = ($shipp_add[0]['address_1'] == '') ? '' : $shipp_add[0]['address_1'].', ';
          $add_2 = ($shipp_add[0]['address_2'] == '') ? '' : $shipp_add[0]['address_2'].', ';
      echo $add_1.$add_2.$shipp_add[0]['city'].', '.StateName($shipp_add[0]['state']).' '.$shipp_add[0]['zip'].'~'.$shipp_add[0]['attention_to'];
      }
} 
?>
示例#18
0
" id="<?php 
            echo $cumpony_id;
            ?>
"><?php 
            echo $deleivery_address[0]['address_3'];
            ?>
</span>                                                                                    
                                                                                </td>
                                                                            </tr>
                                                                            <tr>                                                                                        
                                                                                <td align="left" width="420">
                                                                                    <table align="left">
                                                                                        <tr align="left">
                                                                                            <td align="left">
                                                                                                <?php 
            echo $deleivery_address[0]['city'] . ',' . StateName($deleivery_address[0]['state']) . '&nbsp;' . $deleivery_address[0]['zip'];
            ?>
                                                                                                
                                                                                            </td> 
                                                                                        </tr>
                                                                                    </table> 
                                                                                </td>
                                                                            </tr>                                                                                     
                                                                            <tr>                                                                                        
                                                                                <td>
                                                                                    <span class="<?php 
            echo $cumpony_id;
            ?>
"><strong>P : </strong></span>
                                                                                    <span style="cursor: pointer;" class="bus_phone_inline_span_del_<?php 
            echo $cumpony_id;
示例#19
0
                        $media        = ($entered_sets['media'] == 'undefined') ? $entered_sets['arch_media'] : $entered_sets['media'];
                        $binding      = ($entered_sets['binding'] == 'undefined') ? $entered_sets['arch_binding'] : $entered_sets['binding'];
                        $folding      = ($entered_sets['folding'] == 'undefined') ? $entered_sets['arch_folding'] : $entered_sets['folding'];
                    ?> 
                        <div style="float: left;" class="shaddows">
                            <div class="ribbon" id="ribbon_final"><span>RECIPIENT <?php echo $r; ?></span></div>
                        <div style="width: 100%;float: left;margin-top: 10px;margin-bottom: 10px;"> 
                            <div class="details_div">
                            <div style="float: left;width: 65%;margin-left: 30px;margin-top: 10px;font-weight: bold;">Send to: </div>
                <div style="float: left;width: 33%;margin-left: 30px;">  
                    <?php
                    if(($entered_sets['shipp_id'] != 'P1') && ($entered_sets['shipp_id'] != 'P2')){
                    $add_2 = ($shipp_add[0]['address_2'] == '') ? '' : $shipp_add[0]['address_2'] . '<br>';
                    $att    = ($entered_sets['attention_to'] != "undefined") ? '<br>Attention:  '.$entered_sets['attention_to'] : '';
                    $phone  = ($entered_sets['contact_ph'] != "undefined") ? '<br>'.'Contact:  '.$entered_sets['contact_ph'] : '';
                    echo $shipp_add[0]['company_name'].$att.$phone.'<br>'. $shipp_add[0]['address_1'] . '<br>' . $add_2 . $shipp_add[0]['city'] . '&nbsp;' . StateName($shipp_add[0]['state']) . '&nbsp;' . $shipp_add[0]['zip'].'<br>'.$shipp_add[0]['phone'];
                    }  else {                    //echo $shipp_add[0]['address'];                        
                    $shipp_add_p = AddressBookPickupSohoCap($entered_sets['shipp_id']);
                    echo $shipp_add_p[0]['address'];   
                    }
                    ?>                   
                </div>
                <!-- Address Show End -->

                <div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;font-weight: bold;">PACKING LIST: </div>
                <div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
                    
                    <table border="1" style="width: 100%;">
                        <tr bgcolor="#BFC5CD">
                            <td style="font-weight: bold;">Option</td> 
                            <td style="font-weight: bold;">Sets</td> 
示例#20
0
$message .= '</tr>';
$message .= '<tr>';
$message .= '<td >Soho Reprographics<br>381 Broome Street<br>New York, NY 10013</td>';
$message .= '</tr>';
}else{
$message .= '<tr height="30px">';
$message .= '<td><span class="bold">Billing Address: </span></td>';
$message .= '</tr>';
$message .= '<tr>';
$message .= '<td>'.$shipp_address['address_1'].'<br>'.$shipp_address['address_2'].'<br>'.$shipp_address['address_3'].'<br>'.$shipp_address['city'].','.StateName($shipp_address['state']).','.$shipp_address['zip'].'</td>';
$message .= '</tr>';
$message .= '<tr height="25px">';
$message .= '<td><span >Shipping Address: </span></td>';
$message .= '</tr>';
$message .= '<tr>';
$message .= '<td>'.$shipp_address['address_1'].'<br>'.$shipp_address['address_2'].'<br>'.$shipp_address['address_3'].'<br>'.$shipp_address['city'].','.StateName($shipp_address['state']).','.$shipp_address['zip'].'</td>';
$message .= '</tr>';    
}
$message .= '<tr height="30px">';
$message .= '<td><span >Customer Reference :</span> ' . $Order_id . '</td>';
$message .= '</tr>';
$message .= '<tr height="30px">';
$message .= '<td><span>Deleivery Date :</span> ' . $deleivery_date . '</td>';
$message .= '</tr>';
$message .= '</table></td>';
$message .= '<td height="25" width="20" align="left" valign="top"></td>';
$message .= '</tr>';
$message .= '<tr>';
$message .= '<td width="20" align="left" valign="top"></td>';
$message .= '<td align="left" valign="top">';
$message .= '<table width="740" border="0" cellspacing="0" cellpadding="0" style="margin-right:-1px;">';
示例#21
0
<?php

include './config.php';
include './auth.php';
if (isset($_POST['address_book_id']) && $_POST['address_book_id'] != '') {
    $address_id = $_POST['address_book_id'];
    $select_address = SelectIdAddress($address_id);
    $company_name = $select_address[0]['company_name'] != '' ? $select_address[0]['company_name'] : $select_address[0]['company_name'];
    $att = $select_address[0]['attention_to'] != '' ? $select_address[0]['attention_to'] : $select_address[0]['attention_to'];
    $add1 = $select_address[0]['address_1'] != '' ? $select_address[0]['address_1'] : $select_address[0]['address_1'];
    $add2 = $select_address[0]['address_2'] != '' ? $select_address[0]['address_2'] : $select_address[0]['address_2'];
    $add3 = $select_address[0]['address_3'] != '' ? $select_address[0]['address_3'] : $select_address[0]['address_3'];
    $phone = $select_address[0]['phone'] != '' ? $select_address[0]['phone'] : $select_address[0]['phone'];
    $csz = $select_address[0]['city'] . ',  ' . StateName($select_address[0]['state']) . '&nbsp;' . $select_address[0]['zip'];
    $devilery_zip_ext = $select_address[0]['zip_ext'] == '' ? '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' : $select_address[0]['zip_ext'];
    $state = StateName($select_address[0]['state']);
    $company_id = CompIdFromAddress($address_id);
    if (count($select_address) > 0) {
        ?>
    <?php 
        //echo $company_name.$add1.$add2.$add3.$csz.$phone;
        //echo $company_name.$add1.$add2.$add3.$csz.$phone;
        ?>
    <table width="100%" border="0">
        <?php 
        $company_name = $select_address[0]['company_name'] == '' ? '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' : $select_address[0]['company_name'];
        ?>
        <tr>
            <td>
                <span style="float: left;"><strong>C :&nbsp;</strong></span><span class="pointer edit_adb_cn add_book_cn_<?php 
        echo $address_id;
示例#22
0
                if($chk['shipping_add_id'] == 'P'){
            ?>
                <option value="P" selected="selected" >Pickup</option>
                <?php }  else {?>
                <option value="P">Pickup</option>
                <?php } ?>
                <option value="N">Enter a new address</option>
            <?php } ?>
        </select></br>   
        <?php $select_address = SelectIdAddress($chk['shipping_add_id']);
              $att  = ($select_address[0]['attention_to'] != '') ? $select_address[0]['attention_to'].'</br>' : '';
              $add1 = ($select_address[0]['address_1'] != '') ? $select_address[0]['address_1'].'</br>' : '';
              $add2 = ($select_address[0]['address_2'] != '') ? $select_address[0]['address_2'].'</br>' : '';
              $add3 = ($select_address[0]['address_3'] != '') ? $select_address[0]['address_3'].'</br>' : '';
        if(count($select_address) == '1'){
        echo $select_address[0]['company_name'].'</br>'.$att.$add1.$add2.$add3.$select_address[0]['city'].',  '.StateName($select_address[0]['state']).'&nbsp;'.$select_address[0]['zip']; 
        }  elseif($chk['shipping_add_id'] == 'P') {
            echo 'Soho Reprographics</br>381 Broome Street</br>New York, NY 10013';    
        }
        ?>
        <!--<span id="shipping_select_<?php echo $product_id ?>" class="jass none shipping_select_<?php echo $product_id ?>"><?php //echo $comp_name.'</br>'.$primary_shipping[0]['attention_to'].'</br>'.$primary_shipping[0]['address_1'].'</br>'.$primary_shipping[0]['address_2'].'</br>'.$primary_shipping[0]['address_3'].'</br>'.$primary_shipping[0]['city'].',  '.StateName($primary_shipping[0]['state']).',  '.$primary_shipping[0]['zip']; ?></span>-->        
    </td>
    <td width="90" align="center" valign="top" class="brdr_1"><input type="button" onclick="delete_product(<?php echo $product_id; ?>,<?php echo $user_id; ?>);" /></td>
  </tr>
  <?php
                    $i++;
                }
            }
 else {         ?>
      <tr align="center" bgcolor="#fff6f0">
          <td colspan="6" class="brdr_1">No Products Found</td>
示例#23
0
                $all_days_off = AllDayOff();
                foreach ($all_days_off as $days_off_split) {
                    $all_days_in[] = $days_off_split['date'];
                }
                $all_date = implode(",", $all_days_in);
                $all_date_exist = str_replace("/", "-", $all_date);
                ?>

            </div>

            <div style="float: left;width: 33%;margin-left: 30px;border: 1px #F99B3E solid;margin-top: 10px;font-weight: bold;padding:3px;">Send to: 
                <?php
                $check_values           = explode("_", $pickup_from_soho_add);
                //$address_select         = ($check_values[0] == "EVERY") ? AddressBookCompanyPrimary($check_values[1]) : AddressBookPickupSoho($pickup_from_soho_add);
                $address_book_show      = ($check_values[0] == "EVERY") ? AddressBookCompanyPrimary($check_values[1]) : AddressBookPickupSoho($pickup_from_soho_add);
                $primary_add_print      =  $address_book_show[0]['address_1'] . ', ' . $address_book_show[0]['address_2'] . ', ' . $address_book_show[0]['city'] . ', ' . StateName($address_book_show[0]['state']) . ' ' . $address_book_show[0]['zip'];
                $print_address          = ($check_values[0] == "EVERY") ? $primary_add_print : $address_book_show[0]['address_format'];
                $address_book           = AddressBookPickupSohoAll();
                $address_book_return    = AddressBookCompanyService($_SESSION['sohorepro_companyid']);
                ?>
                <select  name="address_book_rp" id="address_book_rp" style="width: 75% !important;" onchange="return pickup_soho_p();">                    
                        <option value="0">Address Book</option>
                        <option value="<?php echo 'EVERY_'.$address_book_return[0]['id']; ?>" <?php if($pickup_from_soho_add == 'EVERY_'.$address_book_return[0]['id']){ ?> selected="selected" <?php } ?>>Return Everything To My Office</option>       
                        <option class="select-dash" disabled="disabled">-----------------------------------------</option>
                    <?php                    
                    foreach ($address_book as $address) {
                        ?>                                                                                        
                        <option value="<?php echo $address['id']; ?>" <?php if ($address['id'] == $pickup_from_soho_add) { ?> selected="selected" <?php } ?> ><?php echo $address['caption']; ?></option>
                        <?php
                        }
                        ?>