Exemplo n.º 1
0
require 'header.php';
// including the blog layout
?>
<div>
    <div class="demo-blog demo-blog--blogpost mdl-layout mdl-js-layout has-drawer is-upgraded">
      <main class="mdl-layout__content">
        <!--<div class="demo-back">
          <a class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon" href="index.html" title="go back" role="button">
            <i class="material-icons" role="presentation">arrow_back</i>
          </a>
        </div>-->
        <div class="demo-blog__posts mdl-grid">    
          <?php 
if (islogin()) {
    include 'display/functions/amazing.func.php';
    amazing($heading = 'Already loged in', $content = 'It seems You are already loged in.<br/>No need to login Again. :)', $link = '#');
} else {
    //login forum
    include 'display/functions/login.func.php';
    login($message = '');
}
?>
          <!--navigation panel for large database-->
        </div>
    <?php 
require 'footer.php';
?>
      </main>
      <!--<div class="mdl-layout__obfuscator"></div>-->
    </div>
    <script src="../../material.min.js"></script>
Exemplo n.º 2
0
?>
<body>
<?php 
// including the header of the document
require 'header.php';
// including the blog layout
?>
<div>
	<div class="demo-blog mdl-layout mdl-js-layout has-drawer is-upgraded">
      <main class="mdl-layout__content">
        <div class="demo-blog__posts mdl-grid">
         <?php 
include_once 'display/functions/otr.func.php';
otr('hello', 'hello world', 'index.php');
include_once 'display/functions/amazing.func.php';
amazing('I couldn’t take any pictures but this was an amazing thing…', 'hello world', 'index.php');
include_once 'display/functions/shopping.func.php';
shopping('hello', 'hello world', 'index.php');
include_once 'display/next.nav.func.php';
next_nav('index.php');
?>
 
        </div>
    <?php 
require 'footer.php';
?>
      </main>
      <div class="mdl-layout__obfuscator"></div>
    </div>
</div>
</body>
Exemplo n.º 3
0
// including the header of the document
require 'header.php';
// including the blog layout
?>
<div>
	<div class="demo-blog mdl-layout mdl-js-layout has-drawer is-upgraded">
      <main class="mdl-layout__content">
        <div class="demo-blog__posts mdl-grid">
         <?php 
include_once 'display/functions/otr.func.php';
for ($i = 0; $i < 4; $i++) {
    otr('View text', 'click to view content', 'entry');
}
include_once 'display/functions/amazing.func.php';
for ($i = 0; $i < 6; $i++) {
    amazing('View content', 'click to view the content', 'entry_login');
}
?>
 
        </div>
    <?php 
require 'footer.php';
?>
      </main>
      <!--<div class="mdl-layout__obfuscator"></div>-->
    </div>
</div>
</body>
<?php 
require 'script.php';
?>
Exemplo n.º 4
0
          <!--break from here-->
          <?php 
// getting todays birthday
include 'dbms/dbms_imp.php';
$today = date('-m-d');
// echo "$today";
// query to get todays birthday
$query_bd = "SELECT `uniqueid` FROM `userdetail` WHERE `dob` LIKE '%{$today}%'";
$result = $connection->query($query_bd);
$count = $result->num_rows;
// getting the display functions
include_once 'display/functions/amazing.func.php';
include_once 'display/functions/birthday.func.php';
include_once 'display/functions/birthday_comment.func.php';
if ($count == 0) {
    amazing('waiting for a birthday', "oh seems like there are no cakes and candles ", "#");
} else {
    while ($rows = $result->fetch_array()) {
        birthday($rows[0]);
    }
    birthday_comment();
}
?>
          <!--navigation panel for large database-->
        </div>
    <?php 
require 'footer.php';
?>
      </main>
      <!--<div class="mdl-layout__obfuscator"></div>-->
    </div>
Exemplo n.º 5
0
//includind the head tag
require 'head.php';
?>
<body>
<?php 
// including the header of the document
require 'header.php';
// including the blog layout
?>
<div>
	<div class="demo-blog mdl-layout mdl-js-layout has-drawer is-upgraded">
      <main class="mdl-layout__content">
        <div class="demo-blog__posts mdl-grid">
         <?php 
include_once 'display/functions/amazing.func.php';
amazing('Now you are a part of the team', "Please login to continue", "Login");
?>
 
        </div>
    <?php 
// including the footer
require 'footer.php';
?>
      </main>
    </div>
</div>
</body>
<?php 
// including the additional script
require 'script.php';
?>
Exemplo n.º 6
0
// including the header of the document
require 'header.php';
// including the blog layout
?>
<div>
	<div class="demo-blog mdl-layout mdl-js-layout has-drawer is-upgraded">
      <main class="mdl-layout__content">
        <div class="demo-blog__posts mdl-grid">
         <?php 
include_once 'display/functions/get_image.func.php';
include_once 'display/functions/otr.func.php';
include_once 'display/functions/amazing.func.php';
$result = $connection->query("SELECT `id` FROM `notice` ORDER BY `dated` DESC");
$count = $result->num_rows;
if ($count == 0) {
    amazing('Oh a blank notice :-P', "Hey notice board here...searching for notices..catch u later", "#");
}
$i = 1;
while ($rows = $result->fetch_array()) {
    $notice = new notice($rows[0]);
    otr("{$notice->title}", "{$notice->bref}", "entry.php?ref=" . $rows[0], $notice->dated);
}
?>
 
        </div>
    <?php 
// including the footer
require 'footer.php';
?>
      </main>
    </div>