Beispiel #1
0
<?php

echo "<div class='content-wrapper'>";
switch ($uri[1]) {
    case "all":
        $com = DBDriver::all("SELECT cm.`id`, cm.`postid`, cm.`comments`, cm.`date`, cm.`name`, cm.`email`, cm.`ip`, cm.`published`, ps.title FROM `comments` cm, posts ps GROUP BY cm.published ORDER BY cm.id ");
        ?>
           
            <!-- Content Header (Page header) -->
            <section class="content-header">
              <h1>
                Manage Comments
              </h1>
              <ol class="breadcrumb">
                <li><a href="<?php 
        echo Request::base_url();
        ?>
"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="<?php 
        echo Request::base_url() . "/" . $uri[0] . "/all";
        ?>
">Comment</a></li>
                <li class="active">View</li>
              </ol>
            </section>

            <!-- Main content -->
            <section class="content">
              <div class="row">
                <div class="col-xs-12">
Beispiel #2
0
                ?>
                                    <div class="panel panel-warning">
                                        <div class="panel-heading">
                                           <h3 class="panel-title">Empty!</h3>
                                        </div>
                                        <div class="panel-body">
                                            No Article Found!
                                        </div>
                                    </div>
                                    <?php 
            }
            break;
    }
} else {
    $keyword = "%" . $_POST['myInput'] . "%";
    $article = DBDriver::all("SELECT kba.title,kba.content, kba.views, kba.featuredimage, kba.permalink from kb_article kba where kba.published=1 and kba.permalink like :permalink", array(":permalink" => $keyword));
    if (!empty($article)) {
        include "articles.php";
    } else {
        ?>
                                    <div class="panel panel-warning">
                                        <div class="panel-heading">
                                           <h3 class="panel-title">Empty!</h3>
                                        </div>
                                        <div class="panel-body">
                                            No Article Found!
                                        </div>
                                    </div>
                                    <?php 
    }
}
Beispiel #3
0
<?php

echo "<div class='content-wrapper'>";
switch ($uri[1]) {
    case "all":
        $user = DBDriver::all("SELECT `id`, `username`, `password`, `firstname`, `lastname`, `email`, `dateregister`, `keyhash`, `role` FROM `users` ORDER BY `id`");
        ?>
           
            <!-- Content Header (Page header) -->
            <section class="content-header">
              <h1>
                Manage User
              </h1>
              <ol class="breadcrumb">
                <li><a href="<?php 
        echo Request::base_url();
        ?>
"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="<?php 
        echo Request::base_url() . "/" . $uri[0] . "/all";
        ?>
">User</a></li>
                <li class="active">View</li>
              </ol>
            </section>

            <!-- Main content -->
            <section class="content">
              <div class="row">
                <div class="col-xs-12">
Beispiel #4
0
<?php

echo "<div class='content-wrapper'>";
switch ($uri[1]) {
    case "all":
        $cat = DBDriver::all("SELECT `id`, `title`, `description`, `permalink`, `dateadd`,`published` FROM `kb_category`");
        ?>
           
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                Manage Category
              </h1>
              <ol class="breadcrumb">
                <li><a href="<?php 
        echo Request::base_url();
        ?>
"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="<?php 
        echo Request::base_url() . "/" . $uri[0] . "/all";
        ?>
">Category</a></li>
                <li class="active">View</li>
              </ol>
            </section>

            <!-- Main content -->
            <section class="content">
              <div class="row">
                <div class="col-xs-12">
Beispiel #5
0
                    <div class="box-footer">
                      <button type="submit" class="btn btn-primary">Submit</button>
                      <button type="reset" class="btn btn-warning">Reset</button>
                    </div>
                  </form>
                </div><!-- /.box -->

              </div><!--/.col (left) -->
                </div>
            </section>
            <?php 
        break;
    case "update":
        $post = DBDriver::row("SELECT `id`, `title`, `content`, `category`, `featuredimage`, `published` FROM `kb_article` WHERE id=:id", array(':id' => $uri[2]));
        $cat = DBDriver::all("SELECT `id`, `title` FROM `kb_category` ORDER by `id` Asc");
        ?>
<section class="content-header">
              <h1>
                Manage Articles
              </h1>
              <ol class="breadcrumb">
                <li><a href="<?php 
        echo Request::base_url();
        ?>
"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="<?php 
        echo Request::base_url() . "/" . $uri[0] . "/all";
        ?>
">Articles</a></li>
                <li class="active">Update </li>
Beispiel #6
0
<?php

echo "<div class='content-wrapper'>";
switch ($uri[1]) {
    case "all":
        $im = DBDriver::all("SELECT `id`, `name`, `dateadd`, `fulllink` FROM `kb_media` ORDER by `id` Asc");
        ?>
           
            <!-- Content Header (Page header) -->
            <section class="content-header">
              <h1>
                Media Lists
              </h1>
              <ol class="breadcrumb">
                <li><a href="<?php 
        echo Request::base_url();
        ?>
"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="<?php 
        echo Request::base_url() . "/" . $uri[0] . "/all";
        ?>
">Category</a></li>
                <li class="active">View</li>
              </ol>
            </section>

            <!-- Main content -->
            <section class="content">
              <div class="row">
                <div class="col-xs-12">
Beispiel #7
0
<?php

echo "<div class='content-wrapper'>";
switch ($uri[1]) {
    case "all":
        $cat = DBDriver::all("SELECT `id`, `category`, `dateadd`, `datemodified`, `tags` FROM `categories` ORDER by `id` Asc");
        ?>
           
            <!-- Content Header (Page header) -->
            <section class="content-header">
              <h1>
                Category Lists
              </h1>
              <ol class="breadcrumb">
                <li><a href="<?php 
        echo Request::base_url();
        ?>
"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="<?php 
        echo Request::base_url() . "/" . $uri[0] . "/all";
        ?>
">Category</a></li>
                <li class="active">View</li>
              </ol>
            </section>

            <!-- Main content -->
            <section class="content">
              <div class="row">
                <div class="col-xs-12">