Beispiel #1
0
<?php 
        if ($pages > 1) {
            ?>
<table class="tab1" cellspacing="0" cellpadding="5">
<tr>
<th class="th1" nowrap="nowrap">
<?php 
            echo $recno;
            ?>
 Text<?php 
            echo $recno == 1 ? '' : 's';
            ?>
</th><th class="th1" nowrap="nowrap">
<?php 
            makePager($currentpage, $pages, 'edit_archivedtexts.php', 'form1');
            ?>
</th></tr></table>
<?php 
        }
        ?>

<?php 
    }
    ?>

<p><input type="button" value="Active Texts" onclick="location.href='edit_texts.php?query=&amp;page=1';" /></p>

<?php 
}
pageend();
Beispiel #2
0
        }
        mysql_free_result($res);
        ?>
</table>
</form>

<?php 
        if ($pages > 1) {
            ?>
<table class="tab1" cellspacing="0" cellpadding="5">
<tr>
<th class="th1" nowrap="nowrap">
<?php 
            echo $recno;
            ?>
 Tag<?php 
            echo $recno == 1 ? '' : 's';
            ?>
</th><th class="th1" nowrap="nowrap">
<?php 
            makePager($currentpage, $pages, 'edit_tags.php', 'form1');
            ?>
</th></tr></table>
<?php 
        }
        ?>

<?php 
    }
}
pageend();
Beispiel #3
0
$('#waitinfo').addClass('hide');
//]]>
</script>

<?php 
        if ($pages > 1) {
            ?>
<form name="form3" action="#">
<table class="tab1" cellspacing="0" cellpadding="5">
<tr>
<th class="th1" nowrap="nowrap">
<?php 
            echo $recno;
            ?>
 Term<?php 
            echo $recno == 1 ? '' : 's';
            ?>
</th><th class="th1" nowrap="nowrap">
<?php 
            makePager($currentpage, $pages, 'edit_words.php', 'form3', 2);
            ?>
</th></tr></table>
</form>
<?php 
        }
        ?>

<?php 
    }
}
pageend();
Beispiel #4
0
 } else {
     $orgcrit = $_GET['c'];
 }
 if (isset($_GET['m'])) {
     $method = $_GET['m'];
 } else {
     if (isset($_POST['m'])) {
         $method = $_POST['m'];
     } else {
         $method = 'newfirst';
     }
 }
 $criteria = substr($orgcrit, 0, 30);
 //chop off too long search queries
 $tot_cnt = getForumSearchResultsCount($criteria);
 $pager = makePager($tot_cnt, $config['forum']['search_results_per_page'], '&amp;c=' . $criteria);
 $list = getForumSearchResults($criteria, $method, $pager['limit']);
 echo $pager['head'];
 echo $tot_cnt . ' hits on "' . $criteria . '", ';
 switch ($method) {
     case 'oldfirst':
         echo 'oldest first.';
         break;
     case 'newfirst':
         echo 'newest first.';
         break;
     case 'mostread':
     default:
         echo 'most read first.';
         break;
 }
Beispiel #5
0
        ?>
</table>
</form>

<?php 
        if ($pages > 1) {
            ?>
<form name="form3" action="#">
<table class="tab1" cellspacing="0" cellpadding="5">
<tr>
<th class="th1" nowrap="nowrap">
<?php 
            echo $recno;
            ?>
 Tag<?php 
            echo $recno == 1 ? '' : 's';
            ?>
</th><th class="th1" nowrap="nowrap">
<?php 
            makePager($currentpage, $pages, 'edit_texttags.php', 'form3', 2);
            ?>
</th></tr></table>
</form>
<?php 
        }
        ?>

<?php 
    }
}
pageend();
function displayTopicFlat($itemId)
{
    global $h, $db, $config;
    if (!is_numeric($itemId)) {
        return false;
    }
    echo '<div class="forum_overview_group">';
    $item = getForumItem($itemId);
    echo getForumDepthHTML(FORUM_MESSAGE, $item['parentId']) . '<br/><br/>';
    showForumPost($item);
    if ($h->session->id) {
        if (!isSubscribed(SUBSCRIPTION_FORUM, $itemId)) {
            echo '<a href="?id=' . $itemId . '&subscribe=' . $itemId . '">Subscribe to topic</a><br/><br/>';
        } else {
            echo '<a href="?id=' . $itemId . '&unsubscribe=' . $itemId . '">Unsubscribe to topic</a><br/><br/>';
        }
    }
    $tot_cnt = getForumItemCountFlat($itemId);
    $pager = makePager($tot_cnt, $config['forum']['posts_per_page']);
    $list = getForumItems($itemId, true, $pager['limit']);
    //get replies
    echo $pager['head'];
    if ($list) {
        foreach ($list as $row) {
            showForumPost($row, $item['locked']);
        }
    }
    echo '</div>';
}