Mini Shell
<?php include'header.php'; ?>
<?php include'menu.php'; ?>
</div><!-- /#left -->
<?php $id=$_REQUEST["id"];?>
<div id="content">
<div class="outer">
<div class="inner bg-light lter">
<!--Begin Datatables-->
<div class="row">
<div class="col-lg-12">
<div class="box">
<header>
<div class="icons">
<i class="fa fa-table"></i>
</div>
<h5>View Product</h5>
</header>
<div id="collapse4" class="body">
<?php
$producpro=mysql_query("select * from product where id='$id' ");
while($producprofetch=mysql_fetch_row($producpro))
{
?>
<form class="form-horizontal" id="popup-validation" action="product_edit.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<?php echo $producprofetch[0]; ?>"/>
<div class="form-group">
<label class="control-label col-lg-4">Image</label>
<div class="col-lg-8">
<div class="fileinput fileinput-new" data-provides="fileinput">
<div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;">
<?php
if($producprofetch[6])
{
?>
<img src="product_pic/<?php echo $producprofetch[6];?>" align="right" class="img"/>
<?php }
else
{?> <img src="assets/img/logo.png" align="right" class="img"/>
<?php } ?>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-4">Name :</label>
<div class="col-lg-4">
<input type="text" class="validate[required] form-control" name="name" id="req" required value=" <?php echo $producprofetch[1];?>" disabled>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-4">price : </label>
<div class=" col-lg-4">
<input type="text" class="validate[required] form-control" name="rs" id="req" required value=" <?php echo $producprofetch[2];?>" disabled>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-4"></label>
<div class=" col-lg-4">
<select class="validate[required] form-control" name="m1" disabled>
<option value=" <?php echo $producprofetch[3];?>"><?php echo $producprofetch[3];?></option>
<option value="Default Sorting">Default Sorting</option>
<option value="Popular">Popular</option>
<option value="Latest">Latest</option>
<option value="Average Price">Average Price</option>
<option value="High Price">High Price</option>
<option value="Low Price">Low Price</option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-4"></label>
<div class=" col-lg-4">
<select class="validate[required] form-control" name="m2" disabled>
<option value=" <?php echo $producprofetch[4];?>"><?php echo $producprofetch[4];?></option>
<option value="Woman">Woman</option>
<option value="Man">Man</option>
<option value="Kids">Kids</option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-4"></label>
<div class=" col-lg-4">
<select class="validate[required] form-control" name="m3" disabled>
<option value=" <?php echo $producprofetch[5];?>"><?php echo $producprofetch[5];?></option>
<option value="All">All</option>
<option value="Watches">Watchesr</option>
<option value="Leather Starps">Leather Starps</option>
<option value="Accessories">Accessories</option>
<option value="Others">Others</option>
</select>
</div>
</div>
<div class="form-actions no-margin-bottom" align="center">
<input type="submit" value="Edit" class="btn btn-primary">
<a href="product_all.php"><input type="button" value="Back" class="btn btn-primary"></a>
</div>
</form>
<?php } ?>
</div>
</div>
</div>
</div><!-- /.row -->
<!--End Datatables-->
</div><!-- /.inner -->
</div><!-- /.outer -->
</div><!-- /#content -->
</div><!-- /#wrap -->
<?php include'footer.php'; ?>
Zerion Mini Shell 1.0