PHP Classes

File: WIAdmin/WIInc/pages.php

Recommend this page to a friend!
  Classes of Jules Warner   WICMS   WIAdmin/WIInc/pages.php   Download  
File: WIAdmin/WIInc/pages.php
Role: Example script
Content type: text/plain
Description: Example script
Class: WICMS
Database driven content management system with PDO
Author: By
Last change: WI CMS

I am in process of building up my own cms system, its not quiet complete
yet.
There are multiple PDO classes, database driven, in process of making an
installer package for it.
The back end is being built UI with drag and drop, for a simple set up
Date: 6 years ago
Size: 3,685 bytes
 

Contents

Class file image Download
<style type="text/css">
    li{
        list-style: none;
    }

    .wrap{
    width: 44%;
    height: 44px;
    margin-left: 378px;

    }

    .pgs{
            width: 50%;
    margin-left: 297px;
    }

    .close {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 10px #000;
    filter: alpha(opacity=20);
    opacity: .5;
}

.on{
  display: block;
}

.off{
  display: none;
}
</style>
 <aside class="right-side">
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        Pages
                        <small>Control panel</small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="dashboard.php"><i class="fa fa-dashboard"></i> Home</a></li>
                        <li class="active">Pages</li>
                    </ol>
                </section>

               

                <!-- Main content -->
                <section class="content">
                    <!-- Small boxes (Stat box) -->
                    <div class="col-lg-8 col-dm-3 col-xs-3 col-sm-3">
                    <button class="btn" onclick="window.location.href='WINewPage.php'">New Page</button>
                    </div>
                   
                    <div class="row">
                        <div class="col-lg-3 col-xs-6 col-xl-12">
                            <!-- input box's box -->
                          <div class="wrap">
                              <ul class="wrapper">
                                  <li class="col-lg-4 col-dm-3 col-xs-3 col-sm-3">Name</li>
                                  <li class="col-lg-4 col-dm-3 col-xs-3 col-sm-3">Edit</li>
                                  <li class="col-lg-4 col-dm-3 col-xs-3 col-sm-3">Delete</li>
                              </ul>
                          </div>
                    <?php $page->PageListings();?>

                          
                        </div><!-- ./col -->
                     </div>


                      <div class="modal off" id="modal-delete">
            <div class="modal-dialog">
              <div class="modal-content">
                <div class="modal-header">
                  <button type="button" class="close" onclick="WIPage.Close()" data-dismiss="modal" aria-hidden="true">&times;</button>
                  <h4 class="modal-title" id="modal-username">
                    <?php echo WILang::get('Delete_page'); ?>
</h4>
                </div>

                <div class="modal-body" id="details-body">

                </div>
                <div align="center" class="ajax-loading"><img src="<?php echo $WI['theme_dir'] ?><?php echo $WI['img_admin'] ?>ajax_loader.gif" /></div>
                <div class="modal-footer">
 
                </div>
              </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
          </div><!-- /.modal -->

                     </section>
                     </aside>

 <script type="text/javascript">
     $(document).ready(function () {
    //button click
    $("a.page").click(function () {
      // alert('item submitted');
            //validation passed
            var page_id = this.id;
            //alert(page_id);
            //$.cookie.set("page_id", "page_id");

             var date = new Date();
 var minutes = 30;
 date.setTime(date.getTime() + (minutes * 60 * 1000));
            $.cookie("page_id", page_id, {expires: date});
           
        });

});

 </script>
<script type="text/javascript" src="WICore/WIJ/WIPages.js"></script>