예제 #1
0
파일: jmj.php 프로젝트: njassim/SOHO_REPRO
$message .= '<div style="float: left;width: 33%;margin-left: 30px;">';
$cust_add = getCustomeInfo($user_session_comp);
$cust_add_2 = ($cust_add[0]['comp_business_address2'] != '') ? $cust_add[0]['comp_business_address2']. ',<br>'  : '';                    
$message .= $cust_add[0]['comp_name'] . '<br>' . $cust_add[0]['comp_business_address1'] . ',<br>' . $cust_add_2 . $cust_add[0]['comp_city'] . ',&nbsp;' . $cust_add[0]['comp_state'] . '&nbsp;' . $cust_add[0]['comp_zipcode'];                
$message .= '</div>';  
$message .= '<div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;font-weight: bold;">User Details :</div>';
$message .= '<div style="float: left;width: 33%;margin-left: 30px;">'; 
$cust_user_add  = UserLoginDtls($user_session);
$cust_user_name = $cust_user_add[0]['cus_fname'].'&nbsp;'.$cust_user_add[0]['cus_lname'];
$cust_mail_id   = $cust_user_add[0]['cus_email'];
$cust_phone_num = $cust_user_add[0]['cus_contact_phone'];
$message .= $cust_user_name . '<br>' . $cust_mail_id . '<br>' . $cust_phone_num. '<br>Date :'. date('m-d-Y h:i A', time());
$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;">';
$cust_original_order    = EnteredPlotRecipients($user_session_comp, $user_session);
$cust_needed_sets       = ($cust_original_order[0]['print_ea'] != '0') ? $cust_original_order[0]['print_ea'] : $cust_original_order[0]['arch_needed'];
$cust_order_type        = ($cust_original_order[0]['arch_needed'] == '0') ? 'Copies' : 'Plotting on Bond';
$message .= '<table border="1" style="width: 100%;">'; 
$message .= '<tr bgcolor="#BFC5CD">'; 
$message .= '<td style="font-weight: bold;">Sets</td>'; 
$message .= '<td style="font-weight: bold;">Order Type</td>';
$message .= '<td style="font-weight: bold;">Size</td>'; 
$message .= '<td style="font-weight: bold;">Output</td>'; 
$message .= '<td style="font-weight: bold;">Binding</td>'; 
$message .= '<td style="font-weight: bold;">Folding</td>'; 
$message .= '</tr>'; 
$message .= '<tr bgcolor="#F8F8F8">'; 
$message .= '<td>'.$cust_needed_sets.'</td>'; 
$message .= '<td>'.$cust_order_type.'</td>';                             
$message .= '<td>'.$cust_original_order[0]['size'].'</td>'; 
예제 #2
0
                        <div id="sets_grid_new">
                            <table border="1" style="width: 100%;">
                                <tr bgcolor="#F99B3E">
                                    <td style="font-weight: bold;">Order Type</td>
                                    <td style="font-weight: bold;">Originals</td>
                                    <td style="font-weight: bold;">Available Sets</td>
                                    <td style="font-weight: bold;">Sets Needed</td>
                                    <td style="font-weight: bold;">Size</td>
                                    <td style="font-weight: bold;">Output</td>
                                    <td style="font-weight: bold;">Media</td>
                                    <td style="font-weight: bold;">Binding</td>
                                    <td style="font-weight: bold;">Folding</td>
                                </tr> 
                                <?php
                                $enteredPlot = EnteredPlotRecipients($company_id_view_plot, $user_id_add_set);
                                $i = 1;
                                foreach ($enteredPlot as $entered) {
                                    $rowColor = ($i % 2 != 0) ? '#ffeee1' : '#fff6f0';
                                    $binding = strtoupper($entered['binding']);
                                    $folding = strtoupper($entered['folding']);
                                    $order_type = ($entered['plot_arch'] == '1') ? 'Plotting on Bond' : 'Architectural Copies';
                                    $type = ($entered['plot_arch'] == '1') ? '1' : '0';
                                    $available_order = ($entered['plot_arch'] == '1') ? EnteredPlotRecipientsCount($company_id_view_plot, $user_id_add_set, '1') : EnteredPlotRecipientsCount($company_id_view_plot, $user_id_add_set, '0');
                                    $needed_sets = ($entered['plot_arch'] == '1') ? PlotSetsNeeded($company_id_view_plot, $user_id_add_set) : ArchSetsNeeded($company_id_view_plot, $user_id_add_set);
                                    ?>
                                    <tr bgcolor="<?php echo $rowColor; ?>">
                                        <td><?php echo $order_type; ?></td>
                                        <td><?php echo $available_order[0]['print_ea']; ?></td>
                                        <td><input style="width: 25px;float: left;padding: 2px;" type="text" class="avl_sets" name="avl_sets_<?php echo $i; ?>" id="avl_sets_<?php echo $i; ?>"  value="<?php echo ($available_order[0]['print_ea'] - $needed_sets); ?>" /><div class="increse_act"><img src="images/plus_icon.png" style="cursor: pointer;" onclick="return increase_qty_avl('<?php echo $i; ?>', '<?php echo $user_id_add_set; ?>', '<?php echo $company_id_view_plot; ?>', '<?php echo $type; ?>', '<?php echo $entered['id']; ?>');" title="Increase Quantity" alt="Increase Quantity" /><img src="images/minus_icon.png" style="cursor: pointer;" onclick="return decrease_qty_avl('<?php echo $i; ?>', '<?php echo $user_id_add_set; ?>', '<?php echo $company_id_view_plot; ?>', '<?php echo $type; ?>', '<?php echo $entered['id']; ?>');" title="Decrease Quantity" alt="Decrease Quantity" /></div></td>
                                        <td><input style="width: 25px;float: left;padding: 2px;" type="text" class="need_sets" name="need_sets_<?php echo $i; ?>" id="need_sets_<?php echo $i; ?>" value="1" /><div class="increse_act"><img src="images/plus_icon.png" style="cursor: pointer;" onclick="return increase_qty('<?php echo $i; ?>');" title="Increase Quantity" alt="Increase Quantity" /><img src="images/minus_icon.png" style="cursor: pointer;" onclick="return decrease_qty('<?php echo $i; ?>');" title="Decrease Quantity" alt="Decrease Quantity" /></div></td>