?
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/edit_placement.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_placement','view_placement','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Updating placement</span> </div> <fieldset> <img src="<?=base_url()?>assets/images/payment.gif" title="Payment" class="clickimage" onclick="editformdata('software','edit_page','<?=$viewinfo->placement_id;?>','software_placement','placement_id','edit_placement_payment')" alt="" align = "right"/> <img src="<?=base_url()?>assets/images/placement.gif" title="Placement" class="clickimage" onclick="editformdata('software','edit_page','<?=$viewinfo->placement_id;?>','software_placement','placement_id','edit_placement')" alt="" align = "right" /> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('software/addinsoftware/update_placement/view_placement/1',$attributes); $proposalinfo=$this->softwaremodel->get_proposal_info($viewinfo->software_proposal_id); $status=$this->mastermodel->getenumvalues('software_placement', 'placement_status'); ?> <ul> <li> <label for="data">Proposal Title</label> <div class="record_entry"> <?php echo $proposalinfo->software_proposal_title; ?> </div> </li> <li> <label for="data">Date</label> <div class="record_entry"> <?php echo $this->mastermodel->convertdatenormalformat($proposalinfo->software_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' => 'placement_date', 'id' => 'placement_date', 'class' =>'required calfocus', 'value' => $this->mastermodel->convertdatenormalformat($viewinfo->placement_date) ); 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."'";if($method==$viewinfo->placement_status){echo "selected";} echo ">" . $method . "</option>"; } } ?> </select> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'placement_remarks', 'id' => 'placement_remarks', 'value' => $viewinfo->placement_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> <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 $placement_details = $this->mastermodel->get_data('software_placement_details',$viewinfo->placement_id,'placement_id'); $k=1; $total=0; foreach($placement_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" readonly name="total" value="<?=$total;?>" id="1" onblur="calculatetotal(this.id)"></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_proposal_id" value="<?=$viewinfo->software_proposal_id?>" /> <input type="hidden" name="placement_id" id="placement_id" value="<?=$viewinfo->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> </ul> <?php echo form_close();?> </fieldset>