Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Liz created the comment managing page and the survey editing form

  • Loading branch information...
commit 5feab96c36582edad98a6f9a965dc41e8661afb8 1 parent 862f431
wushenshen authored

Showing 2 changed files with 186 additions and 0 deletions. Show diff stats Hide diff stats

  1. +107 0 admin/admin-comments.php
  2. +79 0 admin/admin-edit-survey.php
107 admin/admin-comments.php
... ... @@ -0,0 +1,107 @@
  1 +<?php include_once('../include/header.php'); ?>
  2 +
  3 +<?php include_once('../include/nav.php'); ?>
  4 +
  5 +<div class="container">
  6 +<div class="row">
  7 + <div class="span12">
  8 +
  9 + <h1>Admin Backend: Manage Comments</h1>
  10 +
  11 +
  12 + <form class="well form-inline form-search">
  13 + <a class="btn" href="<?php echo $base_url; ?>/admin/admin-add-articles.php"> <i class="icon-file"></i> Write New Article</a>
  14 + <a class="btn" href="<?php echo $base_url; ?>/admin/admin-articles.php"> <i class="icon-file"></i> Manage Articles</a>
  15 + <a class="btn" href="<?php echo $base_url; ?>/admin/admin-users.php"> <i class="icon-user"></i> Manage Users</a>
  16 + <a class="btn" href="#"> <i class="icon-list"></i> Manage Comments</a>
  17 +
  18 + <button type="submit" class="btn" style="float:right;">Search Articles</button>
  19 + <input type="text" class="input-medium search-query" style="float:right;">
  20 + </form>
  21 +
  22 + <form>
  23 + <button type="submit" class="btn btn-danger btn-mini" style="margin-bottom:18px;"> <i class="icon-trash icon-white"></i> Delete All Selected</button>
  24 +
  25 + <table class="table table-striped table-bordered table-condensed">
  26 +
  27 + <thead>
  28 + <tr>
  29 + <th><label class="checkbox"><input type="checkbox"></label>
  30 + </th>
  31 + <th> </th>
  32 + <th>Name</th>
  33 + <th>Comment</th>
  34 + <th>Posted Date</th>
  35 + <th>Approved?</th>
  36 + </tr>
  37 + </thead>
  38 + <tbody>
  39 + <tr>
  40 + <td><label class="checkbox"><input type="checkbox"></label></td>
  41 + <td>
  42 + <a class="btn btn-primary btn-mini" href="<?php echo $base_url; ?>/admin/edit-comment.php"> <i class="icon-pencil icon-white"></i> Edit</a>
  43 + <a class="btn btn-danger btn-mini" href="#"> <i class="icon-trash icon-white"></i> Delete</a>
  44 + </td>
  45 + <td>Name Here</td>
  46 + <td>this is the comment text.</td>
  47 + <td>May 1, 2012 (include time??)</td>
  48 + <td>No</td>
  49 + </tr>
  50 + <tr>
  51 + <td><label class="checkbox"><input type="checkbox"></label></td>
  52 + <td>
  53 + <a class="btn btn-primary btn-mini" href="<?php echo $base_url; ?>/admin/edit-comment.php"> <i class="icon-pencil icon-white"></i> Edit</a>
  54 + <a class="btn btn-danger btn-mini" href="#"> <i class="icon-trash icon-white"></i> Delete</a>
  55 + </td>
  56 + <td>Name Here</td>
  57 + <td>this is the comment text.</td>
  58 + <td>May 1, 2012 (include time??)</td>
  59 + <td>No</td>
  60 + </tr>
  61 + <tr>
  62 + <td><label class="checkbox"><input type="checkbox"></label></td>
  63 + <td>
  64 + <a class="btn btn-primary btn-mini" href="<?php echo $base_url; ?>/admin/edit-comment.php"> <i class="icon-pencil icon-white"></i> Edit</a>
  65 + <a class="btn btn-danger btn-mini" href="#"> <i class="icon-trash icon-white"></i> Delete</a>
  66 + </td>
  67 + <td>Name Here</td>
  68 + <td>this is the comment text.</td>
  69 + <td>May 1, 2012 (include time??)</td>
  70 + <td>Yes</td>
  71 + </tr>
  72 + </tbody>
  73 +
  74 + </table>
  75 +
  76 + <button type="submit" class="btn btn-danger btn-mini"> <i class="icon-trash icon-white"></i> Delete All Selected</button>
  77 +
  78 + </form>
  79 +
  80 + <form class="well form-inline form-search">
  81 + <a class="btn" href="<?php echo $base_url; ?>/admin/admin-articles.php"> <i class="icon-file"></i> Manage Articles</a>
  82 + <a class="btn" href="<?php echo $base_url; ?>/admin/admin-users.php"> <i class="icon-user"></i> Manage Users</a>
  83 + <a class="btn" href="#"> <i class="icon-list"></i> Manage Comments</a>
  84 +
  85 + <button type="submit" class="btn" style="float:right;">Search Articles</button>
  86 + <input type="text" class="input-medium search-query" style="float:right;">
  87 + </form>
  88 +
  89 + <div class="pagination pagination-centered">
  90 + <ul>
  91 + <li class="disabled"><a href="#">Prev</a></li>
  92 + <li class="active">
  93 + <a href="#">1</a>
  94 + </li>
  95 + <li><a href="#">2</a></li>
  96 + <li><a href="#">3</a></li>
  97 + <li><a href="#">4</a></li>
  98 + <li><a href="#">Next</a></li>
  99 + </ul>
  100 + </div>
  101 +
  102 + </div>
  103 +</div>
  104 +</div>
  105 +<br />
  106 +
  107 +<?php include_once('../include/footer.php'); ?>
79 admin/admin-edit-survey.php
... ... @@ -0,0 +1,79 @@
  1 +<?php include_once('../include/header.php'); ?>
  2 +
  3 +<?php include_once('../include/nav.php'); ?>
  4 +
  5 +<div class="container">
  6 +<div class="row">
  7 + <div class="span12">
  8 +
  9 + <h1>Admin Backend: Edit Survey</h1>
  10 +
  11 +
  12 + <form class="well form-inline form-search">
  13 + <a class="btn" href="<?php echo $base_url; ?>/admin/admin-articles.php"> <i class="icon-file"></i> Manage Articles</a>
  14 + <a class="btn" href="<?php echo $base_url; ?>/admin/admin-users.php"> <i class="icon-user"></i> Manage Users</a>
  15 + <a class="btn" href="#"> <i class="icon-list"></i> Manage Comments</a>
  16 +
  17 + <button type="submit" class="btn" style="float:right;">Search Articles</button>
  18 + <input type="text" class="input-medium search-query" style="float:right;">
  19 + </form>
  20 +
  21 + <form class="form-horizontal">
  22 +
  23 + <div class="control-group">
  24 + <label for="content" class="control-label">Survey Question: </label>
  25 + <div class="controls">
  26 + <textarea id="content" class="span10" rows="3" placeholder="question here ..."></textarea>
  27 + </div>
  28 + </div>
  29 +
  30 + <div class="control-group">
  31 + <label for="question1" class="control-label">Option 1: </label>
  32 + <div class="controls">
  33 + <input id="question1" class="span6" type="text">
  34 + </div>
  35 + </div>
  36 + <div class="control-group">
  37 + <label for="question2" class="control-label">Option 2: </label>
  38 + <div class="controls">
  39 + <input id="question2" class="span6" type="text">
  40 + </div>
  41 + </div>
  42 + <div class="control-group">
  43 + <label for="question3" class="control-label">Option 3: </label>
  44 + <div class="controls">
  45 + <input id="question3" class="span6" type="text">
  46 + </div>
  47 + </div>
  48 + <div class="control-group">
  49 + <label for="question4" class="control-label">Option 4: </label>
  50 + <div class="controls">
  51 + <input id="question4" class="span6" type="text">
  52 + </div>
  53 + </div>
  54 +
  55 +
  56 + <div class="controls">
  57 + <button type="submit" class="btn">Save Changes</button>
  58 + <button type="submit" class="btn">Cancel</button>
  59 + </div>
  60 + </form>
  61 +
  62 +
  63 +
  64 + <form class="well form-inline form-search">
  65 + <a class="btn" href="<?php echo $base_url; ?>/admin/admin-articles.php"> <i class="icon-file"></i> Manage Articles</a>
  66 + <a class="btn" href="<?php echo $base_url; ?>/admin/admin-users.php"> <i class="icon-user"></i> Manage Users</a>
  67 + <a class="btn" href="#"> <i class="icon-list"></i> Manage Comments</a>
  68 +
  69 + <button type="submit" class="btn" style="float:right;">Search Articles</button>
  70 + <input type="text" class="input-medium search-query" style="float:right;">
  71 + </form>
  72 +
  73 +
  74 + </div>
  75 +</div>
  76 +</div>
  77 +<br />
  78 +
  79 +<?php include_once('../include/footer.php'); ?>

0 comments on commit 5feab96

Please sign in to comment.
Something went wrong with that request. Please try again.