Ejemplo n.º 1
0
                      <button type="submit" class="btn btn-primary">Save</button>
                      <a href="<?php 
        echo Request::base_url() . "/" . $uri[0] . "/all";
        ?>
" class="btn btn-default">Back</a>
                    </div>
                  </form>
                </div><!-- /.box -->

              </div><!--/.col (left) -->
                </div>
            </section>
        <?php 
        break;
    case "delete":
        $com = DBDriver::row("SELECT `id`, `name`, `tags` FROM `categories` WHERE id=:id", array(':id' => $uri[2]));
        ?>
<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">Delete</li>
Ejemplo n.º 2
0
         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 
     }
     break;
 default:
     $article = DBDriver::row("SELECT kba.title,kba.content,kbc.title as category, kba.views, kba.featuredimage from kb_article kba, kb_category kbc where kba.category=kbc.id and kba.permalink=:permalink", array(":permalink" => $uri[1]));
     if (!empty($article)) {
         include 'contentdetail.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 
     }
     break;
Ejemplo n.º 3
0
                      <button type="submit" class="btn btn-primary">Save</button>
                      <a href="<?php 
        echo Request::base_url() . "/" . $uri[0] . "/all";
        ?>
" class="btn btn-default">Back</a>
                    </div>
                  </form>
                </div><!-- /.box -->

              </div><!--/.col (left) -->
                </div>
            </section>
        <?php 
        break;
    case "delete":
        $user = DBDriver::row("SELECT id, `username`, `email` FROM `users` WHERE id=:id", array(':id' => $uri[2]));
        ?>
<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">Delete</li>
Ejemplo n.º 4
0
                      <button type="submit" class="btn btn-primary">Save</button>
                      <a href="<?php 
        echo Request::base_url() . "/" . $uri[0] . "/all";
        ?>
" class="btn btn-default">Back</a>
                    </div>
                  </form>
                </div><!-- /.box -->

              </div><!--/.col (left) -->
                </div>
            </section>
        <?php 
        break;
    case "delete":
        $cat = DBDriver::row("SELECT `id`, `title` FROM `kb_category` WHERE `id` =:id", array(':id' => $uri[2]));
        ?>
<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">Delete</li>
Ejemplo n.º 5
0
                      <button type="submit" class="btn btn-primary">Save</button>
                      <a href="<?php 
        echo Request::base_url() . "/" . $uri[0] . "/all";
        ?>
" class="btn btn-default">Back</a>
                    </div>
                  </form>
                </div><!-- /.box -->

              </div><!--/.col (left) -->
                </div>
            </section>
        <?php 
        break;
    case "delete":
        $post = DBDriver::row("SELECT `id`, `title` FROM `pages` WHERE id=:id", array(':id' => $uri[2]));
        ?>
<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">Delete</li>
Ejemplo n.º 6
0
                    </div><!-- /.box-body -->

                    <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 "delete":
        $im = DBDriver::row("SELECT `id`, `name` FROM `kb_media` WHERE id=:id", array(':id' => $uri[2]));
        ?>
<section class="content-header">
              <h1>
                Media File
              </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">Delete</li>
Ejemplo n.º 7
0
<?php

$sumcat = DBDriver::row("SELECT count(id) as total from kb_category WHERE published=1");
?>
<div class="column col-sm-2 col-xs-1 sidebar-offcanvas" id="sidebar">
<ul class="nav">
    <li><a href="#" data-toggle="offcanvas" data-target="lg-menu" class="visible-xs text-center"><span class="fa fa-2x fa-bars"></span></a></li>
</ul>
<ul class="nav hidden-xs" id="lg-menu">
    <li><a href="<?php 
echo Request::base_url();
?>
"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="<?php 
echo Request::base_url() . "/" . $slug['category'];
?>
/all"><i class="fa fa-list-alt"></i> List Category <span class="label label-success"> <?php 
echo $sumcat->total;
?>
 </span></a></li>
    <li><a href="<?php 
echo Request::base_url() . "/" . $slug['article'] . "/new";
?>
"><i class="fa fa-list-ul"></i> New Article</a></li>
</ul>         
<!-- tiny only nav-->
</div>