?
Current Path : /home1/savoy/www/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/www/savoyglobal.net/sgms/application/views/Software/add_software_proposal.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script language="javascript" type="text/javascript"> jQuery(document).ready(function() { suggestcustomer(); }); </script> <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">Creating new proposal</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('software/addinsoftware/insert_software_proposal/view_software_proposal/1',$attributes); $activities = $this->mastermodel->get_data('activity','1','activity_category_id'); $source=$this->mastermodel->getdatas('source','source_name'); ?> <ul> <li> <label for="data">Date</label> <?php $data = array( 'name' => 'software_proposal_date', 'id' => 'software_proposal_date', 'class' =>'required calfocus' ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Customer Name</label> <?php $data = array( 'name' => 'customer', 'id' => 'customer', 'class' =>'required' ); echo form_input($data).form_error($data); ?> <input type="hidden" name="customer_id" id="customer_id"/> </li> <li> <label for="data">Project</label> <select name="activity_id" id="activity_id" class="required" onchange="get_software_code(this)" > <option value="">Select</option> <?php foreach($activities as $list) { ?> <option value="<?=$list['activity_id'];?>"><?=$list['activity_name'];?></option> <?php } ?> </select> </li> <li> <label for="data">Quotation Code</label> <?php $data = array( 'name' => 'proposal_code', 'id' => 'proposal_code', 'class' => 'required', 'readonly' => 'true' ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Proposal Title</label> <?php $data = array( 'name' => 'software_proposal_title', 'id' => 'software_proposal_title', 'class' =>'required' ); 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']."'>".$list['source_name']."</option>"; } ?> </select> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'software_proposal_remarks', 'id' => '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> <tr> <td><textarea style="width:160px;" name="description"></textarea></td> <td><input type="text" class="required number small" name="quantity" value="1" ></td> <td><input type="text" class="required auto small" name="price" ></td> <td><input type="text" class="auto small" name="discount" id="1" value="0" onblur="calculatetotal(this.id)"></td> <td><input type="text" class="medium auto" readonly name="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> </table> </li> <li> <input type="hidden" name="software_proposal_id" id="software_proposal_id" /> <input type="hidden" name="tab_name" value="software_proposal"/> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="checkdatavalidity($('input#customer_id').val(),'customer','No existing customer selected');addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>