?
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_consulting_proposal.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_consulting_proposal','view_consulting_proposal','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Updating proposal</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('consulting/addinconsulting/update_consulting_proposal/view_consulting_proposal/1',$attributes); $activities = $this->mastermodel->getdatas('activity','activity_id'); $source=$this->mastermodel->getdatas('source','source_name'); ?> <ul> <li> <label for="data">Proposal Title</label> <?php $data = array( 'name' => 'consulting_proposal_title', 'id' => 'consulting_proposal_title', 'class' =>'required', 'value' => $viewinfo->consulting_proposal_title ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Date</label> <?php $data = array( 'name' => 'consulting_proposal_date', 'id' => 'consulting_proposal_date', 'class' =>'required calfocus', 'value' => $this->mastermodel->convertdatenormalformat($viewinfo->consulting_proposal_date) ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Project</label> <div class="record_entry"><?= $this->mastermodel->getSingleFieldValue('activity','activity_name','activity_id',$viewinfo->activity_id);?></div> </li> <li> <label for="data">Quotation Code</label> <?php $data = array( 'name' => 'proposal_code', 'id' => 'proposal_code', 'class' => 'required', 'readonly' => 'true', 'value' => $viewinfo->proposal_code ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data"> Customer Name</label> <?php $data = array( 'name' => 'customer', 'id' => 'customer', 'class' =>'required', 'readonly' => 'true', 'value' => $this->mastermodel->getSingleFieldValue('customer','customer_name','customer_id',$viewinfo->customer_id) ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data"> Source</label> <select name="source_id" class="required"> <option value="">Select</option> <?php foreach($source as $list) { echo "<option value='".$list['source_id']."'";if($viewinfo->source_id==$list['source_id']){echo " selected";}echo ">".$list['source_name']."</option>"; } ?> </select> </li> <li> <label for="data">Status</label> <?php $status=$this->mastermodel->number_rows('consulting_confirmation','consulting_proposal_id',$viewinfo->consulting_proposal_id);?> <div class="record_entry"> <?=$status>0 ?'Approved':'Not Approved';?> </div> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'consulting_proposal_remarks', 'id' => 'consulting_proposal_remarks', 'value' => $viewinfo->consulting_proposal_remarks ); echo form_textarea($data).form_error($data); ?> </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 $consulting_proposal_details = $this->mastermodel->get_data('consulting_proposal_details',$viewinfo->consulting_proposal_id,'consulting_proposal_id'); $k=1; $total=0; foreach($consulting_proposal_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="medium auto" name="total" readonly 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_id" value="<?=$viewinfo->consulting_proposal_id;?>" /> <input type="hidden" name="tab_name" value="consulting_proposal"/> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>