?
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/edit_confirmation_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('consulting','viewinconsultingsearch','search_confirmation','view_confirmation','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Confirmation Payment</span> </div> <fieldset> <img src="<?=base_url()?>assets/images/payment.gif" title="Payment" class="clickimage" onclick="editformdata('consulting','edit_page','<?=$viewinfo->confirmation_id;?>','consulting_confirmation','confirmation_id','edit_confirmation_payment')" alt="" align = "right"/> <img src="<?=base_url()?>assets/images/confirmation.gif" title="Confirmation" class="clickimage" onclick="editformdata('consulting','edit_page','<?=$viewinfo->confirmation_id;?>','consulting_confirmation','confirmation_id','edit_confirmation')" alt="" align = "right" /> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('consulting/addinconsulting/update_confirmation_payment/view_confirmation/1',$attributes); $proposalinfo=$this->consultingmodel->get_proposal_info($viewinfo->consulting_proposal_id); $payment_types=$this->mastermodel->getenumvalues('consulting_confirmation_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 $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 = $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; } ?> <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="consulting_proposal_id" id="consulting_proposal_id" value="<?=$viewinfo->consulting_proposal_id?>" /> <input type="hidden" name="confirmation_id" id="confirmation_id" value="<?=$viewinfo->confirmation_id?>" /> <input type="hidden" name="tab_name" value="consulting_confirmation"/> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Process</button> </li> </ul> <?php echo form_close();?> </fieldset>