?
Current Path : /home1/savoy/www/savoyglobal.net/sgms/application/views/Software/ |
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/www/savoyglobal.net/sgms/application/views/Software/single_software_proposal.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $currency_code = $this->mastermodel->getSingleFieldValue('currency','currency_code','default_currency','1'); ?> <div class="select-bar"> <?php if($_SESSION['modename'] != "Customer") { ?> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('software','viewinsoftwaresearch','search_software_proposal','view_software_proposal','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <?php } ?> <span class="heading">Proposal Details</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('',$attributes); $activities = $this->mastermodel->getdatas('activity','activity_id') ?> <ul> <li> <table class="sortnew"> <tr> <td for="data">Proposal Title</td> <td> <?php echo $viewinfo->software_proposal_title; ?> </td> </tr> <tr> <td>Date</td> <td> <?php echo $this->mastermodel->convertdatenormalformat($viewinfo->software_proposal_date); ?> </td> </tr> <tr> <td>Project</td> <td><?= $this->mastermodel->getSingleFieldValue('activity','activity_name','activity_id',$viewinfo->activity_id);?></td> </tr> <tr> <td>Proposal Code</td> <td> <?php echo $viewinfo->proposal_code; ?> </td> </tr> <tr> <td> Customer Name</td> <td> <?php echo $this->mastermodel->getSingleFieldValue('customer','customer_name','customer_id',$viewinfo->customer_id); ?> </td> </tr> <tr> <td>Customer No</td> <td> <?=$this->mastermodel->getSingleFieldValue('customer','customer_no','customer_id',$viewinfo->customer_id);?></td> </tr> <tr> <td> Source</td> <td> <?=$this->mastermodel->getSingleFieldValue('source','source_name','source_id',$viewinfo->source_id);?> </td> </tr> <tr> <td>Status</td> <?php $status=$this->mastermodel->number_rows('software_placement','software_proposal_id',$viewinfo->software_proposal_id);?> <td> <?=$status>0 ?'Approved':'Not Approved';?> </td> </tr> <tr> <td>Remarks</td> <td> <?php echo $viewinfo->software_proposal_remarks; ?></td> </tr> </table> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Description</th> <th>Qty</th> <th>Cost(<?=$currency_code;?>)</th> <th>Discount(<?=$currency_code;?>)</th> <th>Total(<?=$currency_code;?>)</th> </tr> <?php $software_proposal_details = $this->mastermodel->get_data('software_proposal_details',$viewinfo->software_proposal_id,'software_proposal_id'); $k=1; $total=0; foreach($software_proposal_details as $trst) { $quantity = $trst['quantity']; $price = $trst['price']; $discount = $trst['discount']; $total =($quantity*$price)-($discount); ?> <tr> <td><?=$trst['description'];?></td> <td><?=$quantity;?></td> <td style="text-align: right"><?=number_format($price,2);?></td> <td style="text-align: right"><?=number_format($discount,2);?></td> <td style="text-align: right"><?=number_format($total,2);?></td> <?php $k++; } ?> </table> </li> </ul> <?php $data['master_id']=$viewinfo->software_proposal_id; $data['controller']='software'; $data['controller_function']='viewinsoftwaresearch'; $data['page']='view_software_proposal'; $data['model_function']='search_software_proposal'; $this->load->view('Master/uploaded_files',$data); echo form_close(); ?> </fieldset>