siddharth_application/application/views/viewrawmaterial.php

146 lines
5.3 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
$MaterialCode = '';
$MaterialName = '';
$MaterialType = '';
$UOM = '';
$CreatedBy = '';
$UpdatedBy = '';
if(!empty($userRecords))
{
foreach ($userRecords as $uf)
{
$MaterialCode = $uf->MaterialCode;
$MaterialName = $uf->MaterialName;
$MaterialType = $uf->MaterialType;
$UOM = $uf->UOM;
$CreatedBy = $uf->CreatedBy;
$UpdatedBy = $uf->UpdatedBy;
}
}
?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<center>Raw Material List</center>
</h1>
</section>
<section class="content">
<div style="text-align:right;">
<a href="<?php echo base_url() ?>rawmaterialdetails/rawmaterialListing" class="btn btn-info" value="Back">Back</a>
</div>
<br/>
<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">View Raw Material Details</h3></center>
</div><!-- /.box-header -->
<!-- form start -->
<!-- <form role="form" action="<?php echo base_url() ?>rawmaterialdetails/editRawmaterial" method="post" id="editRawmaterial" role="form">-->
<div class="box-body">
<div class="row">
<table class="table table-bordered 2px">
<div class="col-md-6 col-md-offset-3">
<div class="form-group">
<tbody>
<tr>
<td><label for="MaterialCode">Material Code</label></td>
<td><?php echo $MaterialCode; ?></td>
</tr>
<tr>
<td><label for="MaterialName">Material Name </label></td>
<td><?php echo $MaterialName; ?></td>
</tr>
<tr>
<td> <label for="MaterialType">Material Type</label></td>
<td><?php echo $MaterialType;?></td>
</tr>
<tr>
<td> <label for="UOM">UOM</label></td>
<td> <?php echo $UOM; ?></td>
</tr> <tr>
<td> <label for="CreatedBy">CreatedBy</label></td>
<td> <?php echo $CreatedBy; ?></td>
</tr> <tr>
<td> <label for="UpdatedBy">UpdatedBy</label></td>
<td> <?php echo $UpdatedBy; ?></td>
</tr>
</tbody>
</div>
</div>
</table>
</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>-->
</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>
</div>
</section>
</div>
<script src="<?php echo base_url(); ?>assets/js/editUser.js" type="text/javascript"></script>