EVOLUTION-NINJA
Edit File: article_master_data.php
<?php $cWarp=count($getwarp); $cWeft=count($getweft); foreach($getarticledata as $fresult) { //echo $fresult->shadeName;exit; ?> <h5> <b>Article Master Details</b> </h5> <table class="table table-bordered table-hover" id="sample_1" style="width: 97% !important";> <thead> <tr> <th> Article No </th> <th> Quality </th> <th> Weave </th> <th> Design </th> <th> Finish Width </th> <th> Reed Width </th> <th> Beam </th> <th> Reed </th> <th> Warp Total Ends </th> <th> Picks </th> <th> Finished Weight </th> <th> Finish sqr mtr(Gram) </th> <th> Ratio </th> <th> Created By </th> <th> Created At </th> </tr> </thead> <tbody> <tr> <td> <?php echo $fresult->articleNo; ?> </td> <td> <?php echo $fresult->quality; ?> </td> <td> <?php echo $fresult->design; ?> </td> <td> <?php echo $fresult->dbdesign; ?> </td> <td> <?php echo $fresult->finishWidth; ?> </td> <td> <?php echo $fresult->reedWidth; ?> </td> <td> <?php echo $fresult->beam; ?> </td><td> <?php echo $fresult->reed; ?> </td> <td> <?php echo $fresult->warpTotalEnds; ?> </td> <td> <?php echo $fresult->weftPicks; ?> </td> <td> <?php echo ($fresult->finishedWeight * 1000)." Grams"; ?> </td> <td> <?php echo ($fresult->finish_grams_squaremeter * 1000)." Grams"; ?> </td> <td> <?php echo $fresult->ratio; ?> </td> <td> <?php echo $fresult->created_by; ?> </td> <td> <?php echo $fresult->created_date; ?> </td> </tr> </tbody> </table> <table class="table table-bordered table-hover" id="sample_1" style="width: 97% !important;"> <thead> <tr> <td style="width: 17% !important;font-weight:bold !important;font-size:15px !important;" > Remark : </td> <td style="width: 70% !important;"> <?php echo $fresult->remark; ?> </td> </tr> <tr> <td style="width: 17% !important;font-weight:bold !important;font-size:15px !important;"> Composition : </td> <td style="width: 70% !important;"> <?php foreach($compo as $c) { echo $c->yarnQuality." : ".$c->sum * 100 ."% </br>"; } ?> </td> </tr> </thead> </table> <?php } ?> <!--<h3>Warp Details</h3>--> <!--<table class="table table-bordered table-hover" id="sample_1"> <thead> <tr> <th> Warp Quality </th> <th> Warp Denier </th> <th> Warp Specification </th> <th> Warp Final Denier </th> <th> No of Ends </th> <th> Kora Wt </th> <th> Hanks </th> <th> Dyed Wt </th> <th> Percentage </th> <th> Composition </th> </tr> </thead> <tbody> <?php if($cWarp==0 && $cWeft==0) { echo '<tr>'; echo '<td colspan=4> NO DATA FOUND </td>'; echo '</tr>'; } else { foreach($getwarp as $warp){ echo '<tr>'; echo '<td> ' . $warp->Warp_Quality . ' </td> <td> ' . $warp->Warp_Denier . ' </td> <td> ' . $warp->Warp_Specification . ' </td> <td> ' . $warp->Warp_Final_Denier . ' </td> <td> ' . $warp->No_of_Ends . ' </td> <td> ' . $warp->Kora_Wt . ' </td> <td> ' . $warp->Hanks . ' </td> <td> ' . $warp->Dyed_Wt . ' </td> <td> ' . $warp->percentage . ' </td> <td> ' . $warp->composition . ' </td>'; echo '</tr>'; } } ?> </tbody> </table> <br> <h3>Weft Details</h3> <table class="table table-bordered table-hover" id="sample_1"> <thead> <tr> <th> Weft Quality </th> <th> Weft Denier </th> <th> Weft Specification </th> <th> Weft Final Denier </th> <th> PPC </th> <th> Kora Wt </th> <th> Hanks </th> <th> Dyed Wt </th> <th> Percentage </th> <th> Composition </th> </tr> </thead> <tbody> <?php //echo '<pre>';print_r($getsmwarp);exit; if($cWarp==0 && $cWeft==0) { echo '<tr>'; echo '<td colspan=4> NO DATA FOUND </td>'; echo '</tr>'; } else { foreach($getweft as $weft){ echo '<tr>'; echo '<td> ' . $weft->Weft_Quality . ' </td> <td> ' . $weft->Weft_Denier . ' </td> <td> ' . $weft->Weft_Specification . ' </td> <td> ' . $weft->Weft_Final_Denier . ' </td> <td> ' . $weft->PPC . ' </td> <td> ' . $weft->Kora_Wt . ' </td> <td> ' . $weft->Hanks . ' </td> <td> ' . $weft->Dyed_Wt . ' </td> <td> ' . $weft->percentage . ' </td> <td> ' . $weft->composition . ' </td>'; echo '</tr>'; } } ?> </tbody> </table>-->