?
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_software_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('software','viewinsoftwaresearch','search_software_proposal','view_software_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('software/addinsoftware/update_software_proposal/view_software_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' => 'software_proposal_title', 'id' => 'software_proposal_title', 'class' =>'required', 'value' => $viewinfo->software_proposal_title ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Date</label> <?php $data = array( 'name' => 'software_proposal_date', 'id' => 'software_proposal_date', 'class' =>'required calfocus', 'value' => $this->mastermodel->convertdatenormalformat($viewinfo->software_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('software_placement','software_proposal_id',$viewinfo->software_proposal_id);?> <div class="record_entry"> <?=$status>0 ?'Approved':'Not Approved';?> </div> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'software_proposal_remarks', 'id' => 'software_proposal_remarks', 'value' => $viewinfo->software_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>Qty</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 $software_proposal_details = $this->mastermodel->get_data('software_proposal_details',$viewinfo->software_proposal_id,'software_proposal_id'); $k=1; $total=0; foreach($software_proposal_details as $list) { $quantity = $list['quantity']; $price = $list['price']; $discount = $list['discount']; $total =($quantity*$price)-($discount); ?> <tr> <td><textarea style="width:160px;" name="description<?=$k?>"><?= $list['description'] ?></textarea></td> <td><input type="text" class="auto required small" name="quantity<?=$k?>" value="<?=$quantity;?>"></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="software_proposal_id" id="software_id" value="<?=$viewinfo->software_proposal_id;?>" /> <input type="hidden" name="tab_name" value="software_proposal"/> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>