?
Current Path : /home1/savoy/public_html/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/public_html/savoyglobal.net/sgms/application/views/Consulting/single_confirmation.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $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_confirmation','view_confirmation','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <?php } ?> <span class="heading">confirmation Details</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('consulting/addinconsulting/update_confirmation/view_confirmation/1',$attributes); $proposalinfo=$this->consultingmodel->get_proposal_info($viewinfo->consulting_proposal_id); ?> <ul> <li> <table class="sortnew"> <caption>Confirmation Details</caption> <tr> <td>Proposal Title</td> <td> <?php echo $proposalinfo->consulting_proposal_title; ?> </td> </tr> <tr> <td>Date</td> <td> <?php echo $this->mastermodel->convertdatenormalformat($proposalinfo->consulting_proposal_date); ?> </td> </tr> <tr> <td>Project</td> <td><?= $this->mastermodel->getSingleFieldValue('activity','activity_name','activity_id',$proposalinfo->activity_id);?></td> </tr> <tr> <td>Proposal Code</td> <td> <?php echo $proposalinfo->proposal_code; ?> </td> </tr> <tr> <td> Customer Name</td> <td> <?php echo $this->mastermodel->getSingleFieldValue('customer','customer_name','customer_id',$proposalinfo->customer_id); ?> </td> </tr> <tr> <td>Customer No</td> <td> <?=$this->mastermodel->getSingleFieldValue('customer','customer_no','customer_id',$proposalinfo->customer_id);?></td> </tr> <tr> <td>Date</td> <td> <?php echo $this->mastermodel->convertdatenormalformat($viewinfo->confirmation_date); ?> </td> </tr> <tr> <td>confirmation Status</td> <td> <?php echo $viewinfo->confirmation_status; ?> </td> </tr> <tr> <td>Remarks</td> <td> <?php echo $viewinfo->confirmation_remarks; ?> </td> </tr> <tr> <td>Terms & Conditions</td> <td> <?php echo nl2br($viewinfo->terms_conditions); ?> </td> </tr> <tr> <td>Confirmation Files</td> <td> <?php if($viewinfo->fie_location!='') { echo '<a href="'.base_url().'/assets/uploads/'.$viewinfo->fie_location.'">Download Confirmation</a>'; } ?> </td> </tr> </table> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Description</th> <th>Cost</th> <th>Discount</th> <th>Total</th> </tr> <?php $confirmation_details = $this->mastermodel->get_data('consulting_confirmation_details',$viewinfo->confirmation_id,'confirmation_id'); $k=1; $total=0; foreach($confirmation_details as $list) { $price = $list['price']; $discount = $list['discount']; $total =($price)-($discount); ?> <tr> <td><?=nl2br($list['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> </tr> <?php $k++; } ?> </table> </li> <li> <table class="sortnew"> <caption>Payment Details</caption> <tr> <td>Customer Account</td> <td> <?=$customer_account=$this->mastermodel->getSingleFieldValue('customer','customer_no','customer_id',$proposalinfo->customer_id);?> <input type="hidden" name="customer_account" value="<?=$customer_account;?>"/> </td> </tr> <tr> <td>Project Account</td> <td> <?php echo $project_account=$this->mastermodel->getSingleFieldValue('activity','activity_account_code','activity_id',$proposalinfo->activity_id); ?> <input type="hidden" name="project_account" value="<?=$project_account;?>"/> </td> </tr> <?php $confirmation_details = $this->mastermodel->get_data('consulting_confirmation_details',$viewinfo->confirmation_id,'confirmation_id'); $k=1; $total=0; foreach($confirmation_details as $list) { $price = $list['price']; $discount = $list['discount']; $total =($price)-$discount; $k++; } $payment_method=''; $payment_details=$this->mastermodel->get_data_srow('consulting_confirmation_payment',$viewinfo->confirmation_id,'confirmation_id'); if(!empty ($payment_details)) { $total = $payment_details->amount; $payment_method=$payment_details->payment_method; } ?> <tr> <td>Amount</td> <td> <?php echo $total; ?> </td> </tr> <tr> <td>Payment Method</td> <td> <?=$payment_method;?> </td> </tr> </table> </li> </ul> <?php $data['master_id']=$viewinfo->confirmation_id; $data['controller']='consulting'; $data['controller_function']='viewinconsultingsearch'; $data['page']='view_confirmation'; $data['model_function']='search_confirmation'; $this->load->view('Master/uploaded_files',$data); echo form_close(); ?> </fieldset>