257 lines
13 KiB
PHP
257 lines
13 KiB
PHP
<div class="content-wrapper">
|
||
<!-- Content Header (Page header) -->
|
||
<section class="content-header">
|
||
<center>
|
||
<h1>Purchase Order <small><?php echo "Today is " . date("Y/m/d") ?></small> </h1>
|
||
</center>
|
||
</section>
|
||
|
||
<section class="content">
|
||
|
||
<div class="row">
|
||
<!-- left column -->
|
||
<div class="col-md-12">
|
||
<!-- general form elements -->
|
||
|
||
|
||
|
||
<div class="box box-primary">
|
||
<div class="box-header">
|
||
<center>
|
||
<h3 class="box-title">Purchase Order</h3>
|
||
</center>
|
||
</div><!-- /.box-header -->
|
||
<!-- form start -->
|
||
|
||
<form role="form" id="addUser" action="<?php echo base_url() ?>purchaseorder/addNewPO" method="post" role="form">
|
||
<div class="box-body">
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="PO_Type">PO Type</label>
|
||
<select class="form-control" name="PO_Type" required>
|
||
<option value=""></option>
|
||
<option value="Daily">Daily</option>
|
||
<option value="Weekly">Weekly</option>
|
||
<option value="Monthly">Monthly</option>
|
||
<option value="Yearly">Yearly</option>
|
||
<option value="Others">Others</option>
|
||
|
||
</select>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="PO_Date">PO Date</label>
|
||
<input type="date" name="PO_Date" min=<?php $week = date("Y-m-d",mktime(0, 0, 0, date("m"), date("d")-7,date("Y")));echo $week;?> max=<?php echo date('Y-m-d'); ?> value="<?php echo date('Y-m-d'); ?>" class="form-control" placeholder="" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="SupplierID">Supplier ID</label>
|
||
<select class="form-control required" id="SupplierID" name="SupplierID">
|
||
<option value="null">Select Supplier ID</option>
|
||
<?php
|
||
if(!empty($SupplierName))
|
||
{
|
||
foreach ($SupplierName as $SID)
|
||
{
|
||
?>
|
||
<option value="<?php echo $SID->SupplierID ?>"><?php echo $SID->SupplierID ?> <?php echo $SID->SupplierName ?></option>
|
||
<?php
|
||
}
|
||
}
|
||
?>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="SpecialOrder">Special Requirement of order</label>
|
||
<input type="text" class="form-control required" id="SpecialOrder" name="SpecialOrder" maxlength="255">
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="createdby">Created By</label>
|
||
<input type="text" class="form-control required" id="Special" name="Special" maxlength="255" value="<?php echo $name; ?>"readonly>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div style="background-color:#eee">
|
||
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="role">UserID</label>
|
||
<select class="form-control required" id="role" name="role">
|
||
<option>Select Role</option>
|
||
<?php
|
||
if(!empty($users))
|
||
{
|
||
foreach ($users as $us)
|
||
{
|
||
?>
|
||
<option value="<?php echo $us->userId ?>"><?php echo $us->userId ?> <?php echo $us->name ?></option>
|
||
<?php
|
||
}
|
||
}
|
||
?>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-6 ">
|
||
<div class="form-group">
|
||
<label for="re_email">Requester Email</label>
|
||
<input type="text" class="form-control required" id="re_email" name="re_email">
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div class="col-md-6 ">
|
||
<div class="form-group">
|
||
<label for="re_phone">Requesters Phone</label>
|
||
<input type="text" class="form-control required digits" id="re_phone" name="re_phone">
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="re_Date">Requested Date</label>
|
||
<input type="date" name="re_Date" min=<?php $week = date("Y-m-d",mktime(0, 0, 0, date("m"), date("d")-7,date("Y")));echo $week;?> max=<?php echo date('Y-m-d'); ?> value="<?php echo date('Y-m-d'); ?>" class="form-control" placeholder="" />
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="bud_manager">Budget Manager</label>
|
||
<select class="form-control" name="bug_manager"required>
|
||
<option value=""></option>
|
||
<option value="Daily">Daily</option>
|
||
<option value="Weekly">Weekly</option>
|
||
<option value="Monthly">Monthly</option>
|
||
<option value="Yearly">Yearly</option>
|
||
<option value="Others">Others</option>
|
||
|
||
</select>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="bud_manager_de">Budget Manager Department</label>
|
||
<select class="form-control" name="bud_manager_de"required>
|
||
<option value=""></option>
|
||
<option value="Daily">Daily</option>
|
||
<option value="Weekly">Weekly</option>
|
||
<option value="Monthly">Monthly</option>
|
||
<option value="Yearly">Yearly</option>
|
||
<option value="Others">Others</option>
|
||
|
||
</select>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="Pur_category">Purchasing Category</label>
|
||
<select class="form-control" name="Pur_category"required>
|
||
<option value=""></option>
|
||
<option value="Daily">Daily</option>
|
||
<option value="Weekly">Weekly</option>
|
||
<option value="Monthly">Monthly</option>
|
||
<option value="Yearly">Yearly</option>
|
||
<option value="Others">Others</option>
|
||
|
||
</select>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div>
|
||
<div class="col-md-12">Purchase Order Line Item<hr/></div>
|
||
<div class="col-md-12" style="border:2px solid #000">
|
||
|
||
<div class="col-md-2">
|
||
<h4>S.NO</h4>
|
||
<h5>1</h5>
|
||
<h5>2</h5>
|
||
</div>
|
||
<div class="col-md-2">
|
||
<h4>Product Details</h4>
|
||
<h5>Waste sand</h5>
|
||
<h5>Waste sand</h5>
|
||
</div>
|
||
<div class="col-md-2">
|
||
<h4>Unit Of Measure</h4>
|
||
<h5>Ton</h5>
|
||
<h5>Ton</h5>
|
||
</div>
|
||
<div class="col-md-2">
|
||
<h4>Quantity</h4>
|
||
<h5>100</h5>
|
||
<h5>100</h5>
|
||
</div>
|
||
<div class="col-md-2">
|
||
<h4>Unit Price</h4>
|
||
<h5>200</h5>
|
||
<h5>200</h5>
|
||
</div>
|
||
<div class="col-md-2">
|
||
<h4>Total Amout</h4>
|
||
<h5>20000</h5>
|
||
<h5>20000</h5>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-2 col-md-offset-10" style="padding-top:2%;">
|
||
<input type="submit" class="btn btn-primary" value="Add New PO Line Item" />
|
||
</div>
|
||
</div>
|
||
</div><!-- /.box-body -->
|
||
|
||
<div class="box-footer">
|
||
<input type="submit" class="btn btn-primary" value="Submit" />
|
||
<input type="reset" class="btn btn-default" value="Reset" />
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-4">
|
||
<?php
|
||
$this->load->helper('form');
|
||
$error = $this->session->flashdata('error');
|
||
if($error)
|
||
{
|
||
?>
|
||
<div class="alert alert-danger alert-dismissable">
|
||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||
<?php echo $this->session->flashdata('error'); ?>
|
||
</div>
|
||
<?php } ?>
|
||
<?php
|
||
$success = $this->session->flashdata('success');
|
||
if($success)
|
||
{
|
||
?>
|
||
<div class="alert alert-success alert-dismissable">
|
||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||
<?php echo $this->session->flashdata('success'); ?>
|
||
</div>
|
||
<?php } ?>
|
||
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
</div>
|
||
<script src="<?php echo base_url(); ?>assets/js/addUser.js" type="text/javascript"></script>
|