?
Current Path : /home1/savoy/public_html/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/public_html/savoyglobal.net/sgms/application/views/Software/edit_placement_payment.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="select-bar"> <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> <span class="heading">Placement Payment</span> </div> <fieldset> <img src="<?=base_url()?>assets/images/payment.gif" title="Payment" class="clickimage" onclick="editformdata('software','edit_page','<?=$viewinfo->placement_id;?>','software_placement','placement_id','edit_placement_payment')" alt="" align = "right"/> <img src="<?=base_url()?>assets/images/placement.gif" title="Placement" class="clickimage" onclick="editformdata('software','edit_page','<?=$viewinfo->placement_id;?>','software_placement','placement_id','edit_placement')" alt="" align = "right" /> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('software/addinsoftware/update_placement_payment/view_placement/1',$attributes); $proposalinfo=$this->softwaremodel->get_proposal_info($viewinfo->software_proposal_id); $payment_types=$this->mastermodel->getenumvalues('training_registration_payment', 'payment_method'); ?> <ul> <li> <label for="data"> Customer Name</label> <div class="record_entry"> <?php echo $this->mastermodel->getSingleFieldValue('customer','customer_name','customer_id',$proposalinfo->customer_id); ?> </div> </li> <li> <label for="data">Project</label> <div class="record_entry"><?= $this->mastermodel->getSingleFieldValue('activity','activity_name','activity_id',$proposalinfo->activity_id);?></div> </li> <li> <label for="data">Quotation Code</label> <div class="record_entry"> <?php echo $proposalinfo->proposal_code; ?> </div> </li> <li> <label for="data">Customer Account</label> <div class="record_entry"> <?=$customer_account=$this->mastermodel->getSingleFieldValue('customer','customer_no','customer_id',$proposalinfo->customer_id);?> <input type="hidden" name="customer_account" value="<?=$customer_account;?>"/> </div> </li> <li> <label for="data">Project Account</label> <div class="record_entry"> <?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;?>"/> </div> </li> <?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 = $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; } ?> <li> <label for="data">Amount</label> <?php $data = array( 'name' => 'amount', 'id' => 'amount', 'class' =>'required auto', 'value' => $total ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Payment Method</label> <select name="payment_method" id="payment_method" class="required" > <?php if(count($payment_types['val'])>0) { foreach ($payment_types['val'] as $method) { echo "<option value='".$method."'";if($method==$payment_method){echo "selected";} echo ">" . $method . "</option>"; } } ?> </select> </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"/> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Process</button> </li> </ul> <?php echo form_close();?> </fieldset>