Advertisement
oimtrust

profile-edit.blade.php_crudImage-pdo-oop

Jan 2nd, 2017
1,679
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.30 KB | None | 0 0
  1. <div class="container">
  2.     <div class="row">
  3.         <div class="col-lg-12">
  4.             <h1 class="page-header"></h1>
  5.             <h1 class="page-header">Profile</h1>
  6.             <ol class="breadcrumb">
  7.                 <li><a href="index.php">Home</a></li>
  8.                 <li class="active">Edit Profile</li>
  9.             </ol>
  10.         </div>
  11.     </div>
  12.  
  13.     <div class="row">
  14.         <div class="col-md-4">
  15.             <div class="form-group">
  16.                 <?php
  17.                     if (isset($error)) {
  18.                         foreach ($error as $error) {
  19.                             ?>
  20.                             <div class="alert alert-danger">
  21.                                 <i class="glyphicons glyphicons-warning-sign"></i> &nbsp; <?php echo $error; ?>
  22.                             </div>
  23.                             <?php
  24.                         }
  25.                     }
  26.                  ?>
  27.             </div>
  28.  
  29.             <form method="post" enctype="multipart/form-data">
  30.                 <div class="form-group">
  31.                     <label>Nama Lengkap:</label>
  32.                     <input type="text" name="nama" value="<?php echo $edit_row['nama']; ?>" class="form-control">
  33.                 </div>
  34.  
  35.                 <div class="form-group">
  36.                     <label>Foto:</label>
  37.                     <p><img src="photo/<?php echo $edit_row['photo']; ?>" class="img-rounded" width="115px" height="115px"></p>
  38.                     <input type="file" name="photo" class="form-control" accept="image/*">
  39.                 </div>
  40.  
  41.                 <div class="form-group">
  42.                     <button type="submit" name="btn-update" class="form-control btn btn-info">Simpan</button>
  43.                 </div>
  44.             </form>
  45.         </div>
  46.     </div>
  47. </div>
  48.  
  49. <br>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement