D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home5
/
grandhou
/
www
/
admin
/
Filename :
edituser.php
back
Copy
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Grand House</title> <link type="text/css" href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="css/bootstrap.min.css" rel="stylesheet"> <link rel="shortcut icon" href="upload/favicon.ico"> <link type="text/css" href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet"> <link type="text/css" href="css/theme.css" rel="stylesheet"> <link type="text/css" href="images/icons/css/font-awesome.css" rel="stylesheet"> <link type="text/css" href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600' rel='stylesheet'> </head> <body oncontextmenu="return false;"> <script> document.onkeydown = function(e) { if(event.keyCode == 123) { return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)){ return false; } if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)){ return false; } } </script> <?php include('include/header.php');?> <div class="wrapper"> <div class="container"> <div class="row"> <?php include('include/sidebar.php');?> <div class="span9"> <div class="content"> <div class="module"> <div class="module-head"> <h3>Edit User Details</h3> </div> <div class="module-body"> <?php if(isset($_POST['submit'])) {?> <div class="alert alert-success"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>Well done!</strong> <?php echo htmlentities($_SESSION['msg']);?><?php echo htmlentities($_SESSION['msg']="");?> </div> <?php } ?> <br /> <?php include("include/pdo.php"); $Id=$_GET['UserId']; $STH = $DB_con->query("select * from admin where id='$Id'"); # setting the fetch mode $STH->setFetchMode(PDO::FETCH_OBJ); # showing the results while($row = $STH->fetch()) { ?> <form class="form-horizontal row-fluid" method="post" action="updateuser.php" > <div class="control-group"> <div class="controls"> <input type="hidden" placeholder="Enter category Name" name="txtUserId" id="txtUserId" value="<?php echo $row->id;?>" readonly class="span8 tip" required> </div> </div> <div class="control-group"> <label class="control-label" for="basicinput">User Name</label> <div class="controls"> <input type="text" placeholder="Enter category Name" name="txtUserName" id="txtUserName" value="<?php echo $row->username;?>" class="span8 tip" required> </div> </div> <div class="control-group"> <label class="control-label" for="basicinput">Password</label> <div class="controls"> <input type="password" placeholder="Enter category Name" name="txtPass" id="txtPass" value="<?php echo $row->password;?>" class="span8 tip" required> </div> </div> <div class="control-group"> <div class="controls"> <button type="submit" name="submit" class="btn">Update</button> </div> </div> </form> <?php } ?> </div> </div> </div><!--/.content--> </div><!--/.span9--> </div> </div><!--/.container--> </div><!--/.wrapper--> <?php include('include/footer.php');?> <script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <script> $(document).ready(function() { $('.datatable-1').dataTable(); $('.dataTables_paginate').addClass("btn-group datatable-pagination"); $('.dataTables_paginate > a').wrapInner('<span />'); $('.dataTables_paginate > a:first-child').append('<i class="icon-chevron-left shaded"></i>'); $('.dataTables_paginate > a:last-child').append('<i class="icon-chevron-right shaded"></i>'); } ); </script> </body>