?
Current Path : /home1/savoy/www/savoyglobal.net/sgms/application/views/Consulting/ |
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/Consulting/single_consulting_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('consulting','viewinconsultingsearch','search_consulting_proposal','view_consulting_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->consulting_proposal_title; ?> </td> </tr> <tr> <td>Date</td> <td> <?php echo $this->mastermodel->convertdatenormalformat($viewinfo->consulting_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('consulting_confirmation','consulting_proposal_id',$viewinfo->consulting_proposal_id);?> <td> <?=$status>0 ?'Approved':'Not Approved';?> </td> </tr> <tr> <td>Remarks</td> <td> <?php echo $viewinfo->consulting_proposal_remarks; ?></td> </tr> </table> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Description</th> <th>Cost(<?=$currency_code;?>)</th> <th>Discount(<?=$currency_code;?>)</th> <th>Total(<?=$currency_code;?>)</th> </tr> <?php $consulting_proposal_details = $this->mastermodel->get_data('consulting_proposal_details',$viewinfo->consulting_proposal_id,'consulting_proposal_id'); $k=1; $total=0; foreach($consulting_proposal_details as $trst) { $price = $trst['price']; $discount = $trst['discount']; $total =($price)-($discount); ?> <tr> <td><?=$trst['description'];?></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> <li> <input type="hidden" name="consulting_proposal_id" id="consulting_id" value="<?=$viewinfo->consulting_proposal_id;?>" /> <input type="hidden" name="tab_name" value="consulting_proposal"/> </li> </ul> <?php $data['master_id']=$viewinfo->consulting_proposal_id; $data['controller']='consulting'; $data['controller_function']='viewinconsultingsearch'; $data['page']='view_consulting_proposal'; $data['model_function']='search_consulting_proposal'; $this->load->view('Master/uploaded_files',$data); echo form_close(); ?> </fieldset>