Advertisement
Guest User

Create view

a guest
Sep 19th, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.27 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <div id="page-wrapper">
  5.         <div class="row">
  6.             <div class="col-lg-12">
  7.                 <h1 class="page-header">UPLOAD FILE DATA QHSE</h1>
  8.             </div>
  9.         </div>
  10.  
  11.     <meta charset="utf-8">
  12.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  13.     <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  14.     <title><?php echo $title;?></title>
  15.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  16.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awasome/3.3.7/css/font-awesome.min.css">
  17.     <link rel="stylesheet" href="https:/fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300,italic,400italic,600italic">
  18. </head>
  19. <body>
  20.     <div class="container">
  21.         <div class="row">
  22.             <div class="box-header with-border">
  23.                  <div class="text-center">
  24.                     <h3 class=box-title><?php echo $title ?><</h3>
  25.                 </div>
  26.             </div>
  27.         <div class="col-md-12" style="margin: 10px;">
  28.             <div class="box box-solid">
  29.             <div class="box-body">
  30.             <blockquote>
  31.             <p><b>Keterangan!!</b></p>
  32.             <small><cite title="Source Title"> Inputan yang di tanda bintang merah (<span style="color: red;">*</span>)Harus Di Isi !!</title></small>
  33.             </blockquote>
  34.         </div>
  35.     </div>
  36.     <div class="col-md-6">
  37.         <?php  
  38.             echo form_open_multipart('upload/create', ['class'=>'form-horizontal']);
  39.             ?>
  40.             <div class="form-group">
  41.                 <label class="col-md-2 control-label">Name <span style="color: red;">*</span></label>
  42.                 <div class="col-md-9">
  43.                 <input type="text" name="name" class="form-control" placeholder="Name..">
  44.                 <?php echo form_error('name', '<span style= "color:red;">','</span>') ?>
  45.                 </div>
  46.             </div>
  47.             <!-- <div class="form-group">
  48.                 <label class="col-md-2 control-label">File1</label>
  49.                 <div class="col-md-9">
  50.                 <input type="file" name="file1" class="form-control" placeholder="Name..">
  51.             </div>
  52.         </div> -->
  53.         <div class="form-group">
  54.                 <label class="col-md-2 control-label">File</label>
  55.                 <div class="col-md-9">
  56.                 <input type="file" name="file2" class="form-control" placeholder="Name..">
  57.             </div>
  58.         </div>
  59.         <div class="form-group">
  60.                 <div class="col-md-12-offset-2">
  61.                 <div class="col-md-9">
  62.                 <button type="submit" name="submit" class="btn btn-primary"><i class="fa fa-check"></i>simpan</button>
  63.             </div>
  64.         </div>
  65.  
  66.             <?php echo form_close(); ?>
  67.         </div>
  68.         <div class="col-md-6">
  69.                 <table class="table table-hover">
  70.                     <tr>
  71.                         <th>#</th>
  72.                         <th>Nama</th>
  73.                         <th>File</th>
  74.                     </tr>
  75.                     <?php $no=1; if (!empty($data)): ?>
  76.                          <?php foreach ($data as $row): ?>
  77.                         <tr>
  78.                             <td><?php echo $no++; ?></td>
  79.                             <td><?php echo $row->name ?></td>
  80.                             <td><?php echo $row->file2 ?></td><td><a href="<?=base_url();?>uploads/file/<?php echo $row->file2; ?>"><?php echo $row->file2; ?></a></td>
  81.                             <td><a href="<?php echo site_url('upload/hapus/'.$row->file2);?>"class="btn btn-sm btn-danger">delete </a></td>
  82.                             <td><a href="<?php echo site_url('upload/create/'.$row->file2);?>"class="btn btn-sm btn-info">Edit </a></td>
  83.                         </tr>
  84.                        
  85.                     <?php endforeach ?>
  86.                     <?php else: ?>
  87.                     <tr>
  88.                         <td colspan="4" align="center"> Tidak Ada Data</td>
  89.                     </tr>
  90.                 <?php endif ?>
  91.                     </table>
  92.                 </div>
  93.             </div>
  94.         </div>
  95.     </div>
  96. </body>
  97. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement