?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/application/views/Customer/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/sgms/application/views/Customer/view_track_customer.php |
<link href="<?=base_url()?>assets/css/tablesortnew.css" rel="stylesheet" type="text/css"/> <script type="text/javascript"> function load_track_page() { $("#entrydiv").empty().html('<CENTER><img src="<?=base_url()?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#entrydiv").load("<?= site_url() ?>/customer/trackcustomer"); } function displaycolorbox(controller,controllerfunction,id,table,field,page) { $("#colordiv").empty().html('<CENTER><img src="<?=base_url()?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#colordiv").load("<?= site_url() ?>/"+controller+'/'+controllerfunction+'/'+id+'/'+table+'/'+field+'/'+page); $(".inliexample2").colorbox({width:"85%",height:"85%", inline:true, href:"#colordiv"}); } </script> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="load_track_page()" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Customer Details</span> </div> <!-- Training Proposal --> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Proposals</caption> <thead> <tr> <th width="5%">Sl No</th> <th width="10%">Date</th> <th width="20%">Training Title</th> <th width="17%">Project</th> <th>Training Code</th> <th>Trainer</th> <th>Venue</th> </tr> </thead> <tbody> <?php if ($proposal->num_rows() > 0) { $z=1; $i=($pagenum-1)*10; foreach ($proposal->result() as $row) { $z%2==0 ? $alt="alt" : $alt="alt1"; $date = $this->mastermodel->convertdatenormalformat( $row->training_date ); ?> <tr class="<?=$alt;?>"> <td><?=++$i;?></td> <td><?= $date;?></td> <td><a class="inliexample2" href="#" onclick="displaycolorbox('training','single_page','<?=$row->training_id;?>','training_proposal','training_id','single_training_proposal')" ><?=$row->training_title;?></a></td> <td><?=$row->activity_name;?></td> <td><?=$row->training_code;?></td> <td><?=$row->trainer;?></td> <td><?=$row->venue;?></td> </tr> <?php $z++; } ?> <?php } ?> </tbody> </table> <br/><br/> <!-- Training Quotation --> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Quotations</caption> <thead> <tr> <th width="5%">Sl No</th> <th width="10%">Date</th> <th width="20%">Customer Name</th> <th width="17%">Project</th> <th>Training Code</th> <th>Quotation Code</th> <th>Venue</th> <th>Trainer</th> </tr> </thead> <tbody> <?php if ($quotation->num_rows() > 0) { $z=1; $i=($pagenum-1)*10; foreach ($quotation->result() as $row) { $z%2==0 ? $alt="alt" : $alt="alt1"; $date = $this->mastermodel->convertdatenormalformat( $row->quotation_date ); ?> <tr class="<?=$alt;?>"> <td><?=++$i;?></td> <td><?=$date;?></td> <td><a class="inliexample2" href="#" onclick="displaycolorbox('training','single_page','<?=$row->training_quotation_id;?>','training_quotation','training_quotation_id','single_quotation_training')" ><?=$row->training_title;?></a></td> <td><?=$row->activity_name;?></td> <td><?=$row->training_code;?></td> <td><?=$row->quotation_code;?></td> <td><?=$row->venue;?></td> <td><?=$row->trainer;?></td> <?php $z++; } ?> </tr> <?php } ?> </tbody> </table> <br/><br/> <!-- Training Registration --> <div style='display:none'> <div id="colordiv"></div> </div> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Registration</caption> <thead> <tr> <th width="5%">Sl No</th> <th width="10%">Date</th> <th width="20%">Customer Name</th> <th width="17%">Project</th> <th>Training Code</th> <th>Quotation Code</th> <th>Venue</th> <th>Trainer</th> </tr> </thead> <tbody> <?php if ($registration->num_rows() > 0) { $z=1; $i=($pagenum-1)*10; foreach ($registration->result() as $row) { $z%2==0 ? $alt="alt" : $alt="alt1"; $date = $this->mastermodel->convertdatenormalformat( $row->training_registration_date ); ?> <tr class="<?=$alt;?>"> <td><?=++$i;?></td> <td><?=$date;?></td> <td><a class="inliexample2" href="#" onclick="displaycolorbox('training','single_page','<?=$row->training_registration_id;?>','training_registration','training_registration_id','single_registration_training')" ><?=$row->training_title;?></a></td> <td><?=$row->activity_name;?></td> <td><?=$row->training_code;?></td> <td><?=$row->quotation_code;?></td> <td><?=$row->venue;?></td> <td><?=$row->trainer;?></td> <?php $z++; } ?> </tr> <?php } ?> </tbody> </table> <br/><br/> <!-- Software Proposal --> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Software Proposals</caption> <thead> <tr> <th width="5%">Sl No</th> <th width="10%">Date</th> <th width="20%">Customer Name</th> <th width="17%">Project</th> <th>Title</th> <th>Quotation Code</th> <th>Status</th> </tr> </thead> <tbody> <?php if ($software->num_rows() > 0) { $z=1; $i=($pagenum-1)*10; foreach ($software->result() as $row) { $z%2==0 ? $alt="alt" : $alt="alt1"; $date = $this->mastermodel->convertdatenormalformat( $row->software_proposal_date ); $status=$this->mastermodel->number_rows('software_placement','software_proposal_id',$row->software_proposal_id) ?> <tr class="<?=$alt;?>"> <td><?=++$i;?></td> <td><?=$date;?></td> <td><a class="inliexample2" href="#" onclick="displaycolorbox('software','single_page','<?=$row->software_proposal_id;?>','software_proposal','software_proposal_id','single_software_proposal')" ><?=$row->customer_name;?></a></td> <td><?=$row->activity_name;?></td> <td><?=$row->software_proposal_title;?></td> <td><?=$row->proposal_code;?></td> <td> <?=$status>0 ?'Approved':'Not Approved';?></td> <?php $z++; } ?> </tr> <?php } ?> </tbody> </table> <br/><br/> <!-- Software Placement --> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Software Placements</caption> <thead> <tr> <th width="5%">Sl No</th> <th width="10%">Date</th> <th width="20%">Customer Name</th> <th width="17%">Project</th> <th>Quotation Code</th> <th>Status</th> </tr> </thead> <tbody> <?php if ($placement->num_rows() > 0) { $table=""; $field=""; $z=1; $i=($pagenum-1)*10; foreach ($placement->result() as $row) { $z%2==0 ? $alt="alt" : $alt="alt1"; $date = $this->mastermodel->convertdatenormalformat( $row->placement_date ); ?> <tr class="<?=$alt;?>"> <td><?=++$i;?></td> <td><?=$date;?></td> <td><a class="inliexample2" href="#" onclick="displaycolorbox('software','single_page','<?=$row->placement_id;?>','software_placement','placement_id','single_placement')" ><?=$row->customer_name;?></a></td> <td><?=$row->activity_name;?></td> <td><?=$row->proposal_code;?></td> <td><?=$row->placement_status;?></td> <?php $z++; } ?> </tr> <?php } ?> </tbody> </table>