Example #1
0
 function index_action()
 {
     $topics = getAllTopics(0, "and isused=1", "", 3);
     $zhiku = getAllZhiku(0, "", "", 5);
     include template('index_all');
 }
 function all_action()
 {
     $topics = getAllTopics();
     include template('article_all');
 }
Example #3
0
<img src="images/BADAL1.png" class="momcloud"/></section>
</div>
</div>
<section class="momgradient">
<div class="container">
<div class="row">
<div class="col-md-12" style="border:#000 px solid;">

 <div style="float:right;"> 
<a class="btn btn-sm btn-info btn-flat pull-left" onclick="displayTopic();" style=""><span style="color:#FFF; font-size:1.3em;">Add New Topic</span></a>
</div>
     
    
  
    <?php 
$topicresult = getAllTopics();
if ($topicresult > 0) {
    while ($topics = mysql_fetch_array($topicresult)) {
        ?>
 
   
        <div>
            <div>

<a href="view_topic_detail.php?topic_id=<?php 
        echo $topics['topic_id'];
        ?>
"> 
<h1 style="color:#FF0; padding:0; font-size:3em; border:#000 px solid; width:50%; font-family:myfont; font-style:italic; letter-spacing:2px;">
  	ALPHABET FUN
   <?php