コード例 #1
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'];
      }
} 
?>
コード例 #2
0
ファイル: get_recipients.php プロジェクト: njassim/SOHO_REPRO
    if ($cust_original_order_final[0]['spl_instruction'] != '') {
        $message .= '<div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;font-weight: bold;">Special Instructions: </div>';
        $message .= '<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">' . $cust_original_order_final[0]['spl_instruction'] . '</div>';
    }
    $message .= '</div>';
    $message .= '</div>';
    $message .= '</div>';
    //Original Order End


    $r = 1;
    foreach ($entered_needed_sets_final as $entered_sets) {
        if (($entered_sets['shipp_id'] == 'P1') && ($entered_sets['shipp_id'] == 'P2')) {
            $shipp_add = AddressBookPickupSohoCap($entered_sets['shipp_id']);
        } else {
            $shipp_add = SelectIdAddressService($entered_sets['shipp_id']);
        }
        $needed_options  =   $entered_sets['option_id'];
        $needed_sets  = ($entered_sets['plot_needed'] != '0') ? $entered_sets['plot_needed'] : $entered_sets['arch_needed'];
        $order_type   = ($entered_sets['arch_needed'] != '0') ? 'Architectural Copies' : 'Plotting on Bond';
        $plot_binding = ($entered_sets['binding'] == '0') ? '' : ','.$entered_sets['binding'];
        $plot_folding = ($entered_sets['folding'] == '0') ? '' : ','.$entered_sets['folding'];
        $arch_binding = ($entered_sets['arch_binding'] == '0') ? '' : ','.$entered_sets['arch_binding'];
        $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>';