?
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/proposal_info_placement.php |
<?php $this->load->view('documentreadyfunctions'); $company = $this->mastermodel->get_data_srow('company','1','company_id'); $status=$this->mastermodel->getenumvalues('software_placement', 'placement_status'); ?> <li> <label for="data">Proposal Title</label> <div class="record_entry"> <?php echo $viewinfo->software_proposal_title; ?> </div> </li> <li> <label for="data">Date</label> <div class="record_entry"> <?php echo $this->mastermodel->convertdatenormalformat($viewinfo->software_proposal_date); ?> </div> </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> <div class="record_entry"> <?php echo $viewinfo->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',$viewinfo->customer_id); ?> </div> </li> <li> <label for="data">Date</label> <?php $data = array( 'name' => 'placement_date', 'id' => 'placement_date', 'class' =>'required calfocus', ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Placement Status</label> <select name="placement_status" id="placement_status" class="required" > <?php if(count($status['val'])>0) { foreach ($status['val'] as $method) { echo "<option value='".$method. "' >" . $method . "</option>"; } } ?> </select> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'placement_remarks', 'id' => 'placement_remarks' ); echo form_textarea($data).form_error($data); ?> </li><br/> <li> <label for="data">Terms & Conditions</label> <textarea name="terms_conditions"> <?=$company->placement_terms;?> </textarea> </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;?>" value="1"></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" 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="placement_id" id="placement_id" /> <input type="hidden" name="tab_name" value="software_placement"/> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li>