195 lines
8.4 KiB
PHP
195 lines
8.4 KiB
PHP
|
|
<!-- Body page content -->
|
|
|
|
|
|
|
|
<div class="">
|
|
<div class="page-title">
|
|
|
|
<div class="title_left">
|
|
<h3>Edit Assets</h3>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<div class="row">
|
|
<div class="col-md-12 col-sm-12 ">
|
|
<div class="x_panel">
|
|
<div class="x_title">
|
|
<ul class="nav navbar-right panel_toolbox">
|
|
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
|
|
</li>
|
|
</ul>
|
|
<h6>General Information</h6>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
<div class="x_content">
|
|
<br />
|
|
<form id="" data-parsley-validate class="form-horizontal form-label-left" method="post" action="<?php echo base_url();?>Asset/editAssets" enctype="multipart/form-data">
|
|
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
|
|
<input type="hidden" name="id" value="<?php echo $editData->id; ?>">
|
|
<div class="item form-group">
|
|
<label class="control-label col-md-1 col-sm-1 " for="first-name"> Name </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input type="text" id="name" name="name" value="<?php echo $editData->name; ?>" required="required" class="form-control ">
|
|
</div>
|
|
|
|
|
|
<label class="control-label col-md-1 col-sm-1 " for="last-name">Manufacturer </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<select id="manufacturer" name="manufacturer" required="required" class="form-control" placeholder="choose">
|
|
<option value="<?php echo $editData->manufacturer; ?>"><?php echo $editData->manufacturer_name; ?></option>
|
|
<?php foreach ($manufacturerData as $key => $value) { ?>
|
|
<option value="<?php echo $value->id; ?>"><?php echo $value->name; ?></option>
|
|
<?php } ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
<label class="control-label col-md-1 col-sm-1 " for="first-name"> Tag </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="tag" name="tag" value="<?php echo $editData->tag; ?>" class="form-control" type="text" >
|
|
</div>
|
|
|
|
<label class="control-label col-md-1 col-sm-1 " for="last-name">Serial </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="serial" name="serial" value="<?php echo $editData->serial; ?>" class="form-control" type="text" >
|
|
</div>
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
<label class="control-label col-md-1 col-sm-1 " for="first-name"> Model </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="model" name="model" value="<?php echo $editData->model; ?>" class="form-control" type="text" >
|
|
</div>
|
|
|
|
<label class="control-label col-md-1 col-sm-1 " for="last-name">Status </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="status" name="status" value="<?php echo $editData->status; ?>" class="form-control" type="text" >
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-1 col-sm-1 " for="last-name">Category </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<select id="category" name="category" required="required" class="form-control" >
|
|
<option value="<?php echo $editData->category; ?>"><?php echo $editData->category_name; ?></option>
|
|
<?php foreach ($categoriesData as $key => $value) { ?>
|
|
<option value="<?php echo $value->id; ?>"><?php echo $value->name; ?></option>
|
|
<?php } ?>
|
|
</select>
|
|
</div>
|
|
|
|
<label class="control-label col-md-1 col-sm-1 " for="last-name">Location </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<select id="location" name="location" required="required" class="form-control" >
|
|
<option value="<?php echo $editData->location; ?>"><?php echo $editData->location_name; ?></option>
|
|
<?php foreach ($locationsData as $key => $value) { ?>
|
|
<option value="<?php echo $value->id; ?>"><?php echo $value->location; ?></option>
|
|
<?php } ?>
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
<label class="control-label col-md-1 col-sm-1 " for="first-name"> Notes </label>
|
|
<div class="col-md-11 col-sm-11 ">
|
|
<input id="notes" name="notes" value="<?php echo $editData->notes; ?>" class="form-control" type="text" >
|
|
</div>
|
|
</div>
|
|
<br /> <h6>Order Related Information</h6> <div class="x_title"> </div> <br />
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-1 col-sm-1 " for="last-name">Order No </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="order_no" name="order_no" value="<?php echo $editData->order_no; ?>" class="form-control" type="text" >
|
|
</div>
|
|
|
|
<label class="control-label col-md-1 col-sm-1 " for="first-name">Purchase Date</label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="purchase_date" name="purchase_date" value="<?php echo $editData->purchase_date; ?>" class="date-picker form-control" type="text" required="required" type="text" onfocus="this.type='date'" onmouseover="this.type='date'" onclick="this.type='date'" onblur="this.type='text'" onmouseout="timeFunctionLong(this)">
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-1 col-sm-1 " for="last-name">Supplier </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<select id="supplier" name="supplier" required="required" class="form-control" >
|
|
<option value="<?php echo $editData->supplier; ?>"><?php echo $editData->supplier_name; ?></option>
|
|
<?php foreach ($suppliorData as $key => $value) { ?>
|
|
<option value="<?php echo $value->id; ?>"><?php echo $value->name; ?></option>
|
|
<?php } ?>
|
|
</select>
|
|
</div>
|
|
|
|
|
|
<label class="control-label col-md-1 col-sm-1 " for="first-name"> Cost </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="cost" name="cost" value="<?php echo $editData->cost; ?>" class="form-control" type="text" name="middle-name">
|
|
</div>
|
|
</div>
|
|
|
|
<br /> <h6>Additional Information</h6> <div class="x_title"> </div> <br />
|
|
<div class="item form-group">
|
|
|
|
<label class="control-label col-md-1 col-sm-1 " for="last-name">Warranty Information</label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="warranty" name="warranty" value="<?php echo $editData->warranty; ?>" class="form-control" type="text" >
|
|
</div>
|
|
|
|
<label class="control-label col-md-1 col-sm-1 " for="first-name"> Main Image </label>
|
|
<div class="col-md-5 col-sm-5 ">
|
|
<input id="formFile" name="asset_img" class="typeFile" type="file" >
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="ln_solid"></div>
|
|
<div class="item form-group">
|
|
<div class="col-md-6 col-sm-6 offset-md-10">
|
|
<button class="btn btn-primary" onclick="history.back()">Cancel</button>
|
|
<button type="submit" class="btn btn-success">Update</button>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
<div style="display:block" id="sub-value">
|
|
<?php echo $sub_asset_value_htmlPage; ?>
|
|
</div>
|
|
<!-- /Body page content -->
|