?
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/edit_confirmation.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">Updating confirmation</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/view_confirmation/1',$attributes); $proposalinfo=$this->consultingmodel->get_proposal_info($viewinfo->consulting_proposal_id); $status=$this->mastermodel->getenumvalues('consulting_confirmation', 'confirmation_status'); ?> <ul> <li> <label for="data">Proposal Title</label> <div class="record_entry"> <?php echo $proposalinfo->consulting_proposal_title; ?> </div> </li> <li> <label for="data">Date</label> <div class="record_entry"> <?php echo $this->mastermodel->convertdatenormalformat($proposalinfo->consulting_proposal_date); ?> </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 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">Date</label> <?php $data = array( 'name' => 'confirmation_date', 'id' => 'confirmation_date', 'class' =>'required calfocus', 'value' => $this->mastermodel->convertdatenormalformat($viewinfo->confirmation_date) ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Confirmation Status</label> <select name="confirmation_status" id="confirmation_status" class="required" > <?php if(count($status['val'])>0) { foreach ($status['val'] as $method) { echo "<option value='".$method."'";if($method==$viewinfo->confirmation_status){echo "selected";} echo ">" . $method . "</option>"; } } ?> </select> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'confirmation_remarks', 'id' => 'confirmation_remarks', 'value' => $viewinfo->confirmation_remarks ); echo form_textarea($data).form_error($data); ?> </li> <li> <label for="data">Terms & Conditions</label> <?php $data = array( 'name' => 'terms_conditions', 'id' => 'terms_conditions', 'value' => $viewinfo->terms_conditions ); echo form_textarea($data).form_error($data); ?> </li> <li> <li> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Description</th> <th>Cost</th> <th>Discount</th> <th>Total</th> <th width="10%"> <input type="button" style="width:70px;" id="button2" value="Add More" class="addRow" title="Add Row"/> </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><textarea style="width:160px;" name="description<?=$k?>"><?=$list['description'] ?></textarea></td> <td><input type="text" class="auto required small" name="price<?=$k?>" value="<?=$price;?>"></td> <td><input type="text" class="auto small" name="discount<?=$k?>" id="1" onblur="calculatetotal(this.id)" value="<?=$discount;?>"></td> <td><input type="text" class="auto required medium" readonly name="total" value="<?=$total;?>" ></td> <td><img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/></td> </tr> <?php $k++; } ?> </table> </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')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>