<div class="box-body">
                  <div class="table-responsive">
                   
                <!-- /.box-header -->
                <!-- form start -->
                <form role="form" method="post" action="doupdatemomforumtopic.php" enctype="multipart/form-data">
                    <input type="hidden" name="mom_forum_topic_id" value="<?php 
echo $mom_topic['mom_sub_forum_id'];
?>
">
                     <div class="form-group">
                      <label>Select Forum</label>
                      <select class="form-control" name="mom_forum_id">
                          <option value="">Select Forum</option>
                          <?php 
$mom_forum = getAllMomForum();
if ($mom_forum > 0) {
    while ($momforum = mysql_fetch_array($mom_forum)) {
        ?>
                          <option value="<?php 
        echo $momforum['mom_forum_id'];
        ?>
" <?php 
        if ($momforum['mom_forum_id'] == $mom_topic['mom_forum_id']) {
            ?>
 selected="selected" <?php 
        }
        ?>
><?php 
        echo $momforum['mom_forum_title'];
        ?>
Example #2
0
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                  </div>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <div class="table-responsive">
                    <table class="table no-margin">
                      <thead>
                        <tr>                         
                          <th>Title</th>                                             
                          <th>Created At</th>
                          <th>Actions</th>
                        </tr>
                      </thead>
                      <tbody>
                          <?php 
$result = getAllMomForum();
$num_rows = mysql_num_rows($result);
$Limit = 5;
//Number of results per page
if (isset($_GET["page"])) {
    $page = $_GET["page"];
} else {
    $page = 1;
}
$NumberOfPages = ceil($num_rows / $Limit);
$count = 0;
$pageresult = getAllMomForumListPaged(($page - 1) * $Limit, $Limit);
$num_rows = mysql_num_rows($pageresult);
if ($num_rows > 0) {
    while ($mom_forum = mysql_fetch_array($pageresult)) {
        ?>
Example #3
0
                $totalposts = countAllPostBySubForum($strictsubforum['mom_sub_forum_id']);
                $totalpost = mysql_fetch_array($totalposts);
                echo $totalpost[0];
                ?>
</span></td>
  </tr>   
</table>
<?php 
            }
        }
    }
}
?>
  
 <?php 
$momforums = getAllMomForum();
if ($momforums > 0) {
    while ($momforum = mysql_fetch_array($momforums)) {
        $mom_forum_id = $momforum['mom_forum_id'];
        ?>
    <h1 class="MOTHER"><?php 
        echo strtoupper($momforum['mom_forum_title']);
        ?>
</h1> 
 <?php 
        $subforums = getSubForumByForumId($mom_forum_id);
        if ($subforums > 0) {
            while ($subforum = mysql_fetch_array($subforums)) {
                ?>
   
<table class="table-responsive table-bordered table-condensed" style="width:100%; background:#FFF;">