?
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_placement.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('software','viewinsoftwaresearch','search_placement','view_placement','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <?php } ?> <span class="heading">Placement Details</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('software/addinsoftware/update_placement/view_placement/1',$attributes); $proposalinfo=$this->softwaremodel->get_proposal_info($viewinfo->software_proposal_id); ?> <ul> <li> <table class="sortnew"> <caption>Placement Details</caption> <tr> <td>Proposal Title</td> <td> <?php echo $proposalinfo->software_proposal_title; ?> </td> </tr> <tr> <td>Date</td> <td> <?php echo $this->mastermodel->convertdatenormalformat($proposalinfo->software_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->placement_date); ?> </td> </tr> <tr> <td>Placement Status</td> <td> <?php echo $viewinfo->placement_status; ?> </td> </tr> <tr> <td>Remarks</td> <td> <?php echo $viewinfo->placement_remarks; ?> </td> </tr> <tr> <td>Terms & Conditions</td> <td> <?php echo nl2br($viewinfo->terms_conditions); ?> </td> </tr> </table> </li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Description</th> <th>Qty</th> <th>Cost</th> <th>Discount</th> <th>Total</th> </tr> <?php $placement_details = $this->mastermodel->get_data('software_placement_details',$viewinfo->placement_id,'placement_id'); $k=1; $total=0; foreach($placement_details as $list) { $quantity = $list['quantity']; $price = $list['price']; $discount = $list['discount']; $total =($quantity*$price)-($discount); ?> <tr> <td><?=nl2br($list['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> </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 $placement_details = $this->mastermodel->get_data('software_placement_details',$viewinfo->placement_id,'placement_id'); $k=1; $total=0; foreach($placement_details as $list) { $quantity = $list['quantity']; $price = $list['price']; $discount = $list['discount']; $total =($quantity*$price)-$discount; $k++; } $payment_method=''; $payment_details=$this->mastermodel->get_data_srow('software_placement_payment',$viewinfo->placement_id,'placement_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> <li> <input type="hidden" name="software_proposal_id" id="software_proposal_id" value="<?=$viewinfo->software_proposal_id?>" /> <input type="hidden" name="placement_id" id="placement_id" value="<?=$viewinfo->placement_id?>" /> <input type="hidden" name="tab_name" value="software_placement"/> </li> </ul> <?php $data['master_id']=$viewinfo->placement_id; $data['controller']='software'; $data['controller_function']='viewinsoftwaresearch'; $data['page']='view_placement'; $data['model_function']='search_placement'; $this->load->view('Master/uploaded_files',$data); echo form_close(); ?> </fieldset>