Advertisement
Guest User

posting.php

a guest
Jun 25th, 2019
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.46 KB | None | 0 0
  1. <?php
  2.     session_start();
  3.     if($_SESSION['user_group'] <> 'Administrator'){
  4.     header('location:../../id/error');
  5.     }
  6. ?>
  7.  
  8.     <!doctype html>
  9.     <html class="no-js" lang="en" dir="ltr">
  10.  
  11.     <head>
  12.         <meta charset="utf-8">
  13.         <meta http-equiv="x-ua-compatible" content="ie=edge">
  14.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  15.         <title>GONIT - Admin Dashboard</title>
  16.         <link rel="icon" href="../../id/images/icon.ico">
  17.         <link rel="stylesheet" href="../../id/css/foundation.css">
  18.         <link rel="stylesheet" href="../../id/css/app.css">
  19.         <script src="../../id/js/ckeditor/ckeditor.js"></script>
  20.     </head>
  21.  
  22.     <body>
  23.         <div class="grid-y medium-grid-frame">
  24.             <?php include '../../id/element/admin/menu-admin-header.php';?>
  25.                 <div class="cell medium-auto medium-cell-block-container">
  26.                     <div class="grid-x">
  27.                             <div class="body-background-dashboard2 medium-cell-block-y">
  28.                                 <div class="grid-y grid-padding-y">
  29.                                     <div class="large-12 medium-12 small-12 cell">
  30.                                         <div class="grid-x grid-padding-x grid-padding-y">
  31.                                             <div class="large-12 medium-12 small-12 title-text-dashboard2 cell">
  32.                                                 <h5>
  33.                                                     <?php
  34.                                                         include '../../id/text/menu.php';
  35.                                                         $hasil= strtoupper($posting4);
  36.                                                         echo $hasil;
  37.                                                     ?>
  38.                                                 </h5>
  39.                                                 <div class="line4"></div>
  40.                                                 <div id="clockbox2"></div>
  41.                                                 <script src="../../id/js/clock2.js"></script>
  42.                                             </div>
  43.                                         </div>
  44.                                         <div class="grid-x grid-padding-x grid-padding-y">
  45.                                             <div class="large-12 medium-12 small-12 text-right cell">
  46.                                             <form method="post" name=form action="../../id/admin/posting-proses">
  47.                                             <input type="hidden" name="blog_username" value="0">
  48.                                             <input type="hidden" name="blog_date" value="0">
  49.                                             <input type="hidden" name="blog_link" value="0">
  50.                                                 <span>Author by: <?= $_SESSION['user_username']; ?></span>
  51.                                                 <span><button class="posting" type="submit" name="submit" value="data"><img src="https://img.icons8.com/office/20/000000/submit-resume.png"> Publikasikan </button></span> &nbsp;&nbsp;
  52.                                                 <span><a href="../../id/admin/blog"><img src="https://img.icons8.com/office/20/000000/close-window--v2.png"> Tutup</a></span>
  53.                                             </div>
  54.                                             <div class="large-12 medium-12 small-12 cell">
  55.                                                 <label><h5>Judul</h5></label>
  56.                                                     <input type="text" placeholder="Judul" name="blog_title" />
  57.                                                 <div class="grid-x grid-padding-x grid-padding-y">
  58.                                                     <div class="large-2 medium-4 small-12 cell">
  59.                                                         <label><h5>Category</h5></label>
  60.                                                             <select name="blog_cat_id">
  61.                                                                 <?php
  62.                                                                     require_once("../../connection.php");
  63.                                                                     $tw_category = $db->prepare("SELECT * FROM tw_category");
  64.                                                                     $tw_category->execute();
  65.                                                                     while($d = $tw_category->fetch(PDO::FETCH_ASSOC)){
  66.                                                                 ?>
  67.                                                                 <option value="<?=$d['blog_cat_id'];?>"><?=$d['cat_name'];?></option>
  68.                                                                 <?php } ?>
  69.                                                             </select>
  70.                                                     </div>
  71.                                                 </div>
  72.                                                 <label for="exampleFileUpload" class="button">Upload Gambar</label>
  73.                                                 <input type="file" name="blog_images" id="exampleFileUpload" class="show-for-sr">
  74.                                                 <div class="callout-height">
  75.                                                     <link href="../../id/css/quill.snow.css" rel="stylesheet">
  76.                                                     <label><h5>Isi</h5></label>
  77.                                                     <textarea name="blog_body" id="editor1" rows="10" cols="500">
  78.                                                     </textarea>
  79.                                                     <script>
  80.                                                         CKEDITOR.replace( 'editor1' );
  81.                                                     </script>
  82.                                                 </div>
  83.                                             </div>
  84.                                             </form>
  85.                                         </div>
  86.                                     </div>
  87.                                 </div>
  88.                             </div>
  89.                     </div>
  90.                 </div>
  91.         </div>
  92.  
  93.         <script src="../../id/js/vendor/jquery.js"></script>
  94.         <script src="../../id/js/vendor/what-input.js"></script>
  95.         <script src="../../id/js/vendor/foundation.js"></script>
  96.         <script src="../../id/js/app.js"></script>
  97.  
  98.     </body>
  99.  
  100.     </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement