Пример #1
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);
         $enteredPlot = EnteredPlotRecipientsCurrentOption($current_option[0]['id']);
         $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' : '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') ? PlotSetsNeededNew($company_id_view_plot, $user_id_add_set, $entered['options']) : ArchSetsNeededNew($company_id_view_plot, $user_id_add_set, $entered['options']);
             $plot_exist = EnteredPlotRecipientsCount($company_id_view_plot, $user_id_add_set, '1');
             $copy_exist = EnteredPlotRecipientsCount($company_id_view_plot, $user_id_add_set, '0');
             ?>
             <?php
             if ($entered['plot_arch'] == '1') {
                 ?>
Пример #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);
                        $enteredPlot = EnteredPlotRecipientsCurrentOption($all_sets['id']);
//                        echo '<pre>';
//                        print_r($enteredPlot);
//                        echo '</pre>';
                        $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') ? PlotSetsNeededNew($company_id_view_plot, $user_id_add_set, $entered['options']) : ArchSetsNeededNew($company_id_view_plot, $user_id_add_set, $entered['options']);
                            $plot_exist = EnteredPlotRecipientsCount($company_id_view_plot, $user_id_add_set, '1');
                            $copy_exist = EnteredPlotRecipientsCount($company_id_view_plot, $user_id_add_set, '0');