Mini Shell
<?php include'header.php'; ?>
<?php include'menu.php'; ?>
<!-- /#Start -->
<!-- /#Start -->
</div><!-- /#left -->
<div id="content">
<div class="outer">
<div class="inner bg-light lter">
<style>
.form-control.col-lg-6 {
width: 50% !important;
}
</style>
<?php
$id=$_REQUEST["id"];
?>
<script>
function back()
{
var cn=<?php echo $id ?>;
window.location.href="work_view.php?pp1="+ cn;
}
</script>
<div class="row">
<div class="col-lg-12">
<div class="box">
<header class="dark">
<div class="icons">
<i class="fa fa-check"></i>
</div>
<h5>Work & Events Edit</h5>
<!-- .toolbar -->
<div class="toolbar">
<nav style="padding: 8px;">
<a href="javascript:;" class="btn btn-default btn-xs collapse-box">
<i class="fa fa-minus"></i>
</a>
<a href="javascript:;" class="btn btn-default btn-xs full-box">
<i class="fa fa-expand"></i>
</a>
<a href="javascript:;" class="btn btn-danger btn-xs close-box">
<i class="fa fa-times"></i>
</a>
</nav>
</div><!-- /.toolbar -->
</header>
<div id="collapse2" class="body">
<form class="form-horizontal" id="popup-validation" action="work_update.php" method="post" enctype="multipart/form-data">
<?php
$produc1=mysql_query("select * from work where id='$id'");
while($produc1fetch=mysql_fetch_row($produc1))
{
?>
<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($produc1fetch[4])
{
?>
<img src="work_pic/<?php echo $produc1fetch[4];?>" align="right" class="img"/>
<?php }
else
{?> <img src="" align="right" class="img"/>
<?php } ?>
</div>
<div>
<span class="btn btn-default btn-file"><span class="fileinput-new">Select image</span> <span class="fileinput-exists">Change</span>
<input name="x" type="file" >
</span>
<a href="#" class="btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-4">Heading :</label>
<div class="col-lg-4">
<input type="text" value="<?php echo $produc1fetch[1];?>" class="validate[required] form-control" name="name" id="req" required>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-4">Content:</label>
<div class=" col-lg-12">
<textarea style="min-height:221px;" id="autosize" class="form-control" name="details" required><?php echo $produc1fetch[2];?></textarea>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-4">Post By :</label>
<div class="col-lg-4">
<input type="text" class="validate[required] form-control" name="postby" value="<?php echo $produc1fetch[5];?>" id="req" required >
</div>
</div>
<input type="hidden" value="<?php echo $id; ?>" name="id"/>
<div class="form-actions no-margin-bottom" align="center">
<input type="submit" value="Update" class="btn btn-primary">
<input type="button" value="Back" class="btn btn-primary" onclick="back();">
</div>
<?php
}
?>
</form>
</div>
</div>
</div><!-- /.col-lg-12 -->
</div><!-- /.row -->
</div><!-- /.inner -->
</div><!-- /.outer -->
</div><!-- /#content -->
</div><!-- /#wrap -->
<?php include'footer.php'; ?>
Zerion Mini Shell 1.0