/* // Decide whether or not we need to show the KidsScoop popup. Have they been on this site within the last 90 days? If so, don't annoy them. if ($_COOKIE['lastvisited'] > 0) $showpopup = false; else $showpopup = true; setcookie('lastvisited', time(), time()+60*60*24*90, '/', '.' . $_SERVER['HTTP_HOST']); // expire in 90 days */ // new policy from Mike 2/20/2017 $showpopup = false; $bannerpage = 'Reviews'; require('includes/config.php'); require('includes/leaderboardbanners.php'); require('includes/tilebanners.php'); if ($_POST['subscribe']) { // for KidsScoop subscriptions require('includes/subscribe.php'); } $editors = array(); $query = "SELECT id, fname, lname FROM editors"; $result = mysql_query($query) or die("Query failed: " . mysql_error()); while (list($editorid, $fname, $lname) = mysql_fetch_row($result)) $editors[$editorid] = "$fname $lname"; if ($_REQUEST['category']) $category = $_REQUEST['category']; // they've selected reviews for a particular category if ($_REQUEST['keyword']) $keyword = $_REQUEST['keyword']; // they're doing a text search for reviews ?>
if ($logo) {
echo "![]() |
echo $headline; ?>
if ($editors[$editorid]) echo "By: " . $editors[$editorid]; ?>
Posted: echo $posttime; ?>
echo $review; ?> echo "View All$companyname Reviews and Articles"; ?> |
echo $headline; ?>
if ($editors[$editorid]) echo "By: " . $editors[$editorid]; ?>
Posted: echo $posttime; ?>
|
echo $review; ?>
echo "View All $companyname Reviews and Articles"; ?> |
More Reviews | ||
$maxbuttons = 5; if ($localpage > 1) { // we will always have a first button if page > 1 echo "«"; } if ($localpage > 1) { echo "Previous"; } ?> | // We will display a max of $maxbuttons 'page' buttons. if ($localpage > $maxbuttons) { // we will need to truncate the beginning page buttons echo "$i\n"; for ($i=($localpage - $maxbuttons)+1; $i<=$localpage; $i++) { echo "$i\n"; } if ($i < $localpages) { echo "$i\n"; } } elseif ($localpages > $maxbuttons) { // We have more pages than buttons. Show the first $maxbuttons buttons, then follow it with the '...' button. for ($i=1; $i<=$maxbuttons; $i++) { echo "$i\n"; } echo "$i\n"; } else { // We have fewer pages than buttons. Just display them all. for ($i=1; $i<=$localpages; $i++) { echo "$i\n"; } } ?> | if ($localpage < $localpages) { // we will always have a 'next' button if there are more pages than the page we're on. echo " $localpages) $nextpage = $localpages; // but no more than we actually have echo $nextpage; echo "\">Next\n"; } if ($localpage < $localpages) { // Last button echo " $localpages) $nextpage = $localpages; // but no more than we actually have echo $nextpage; echo "\">»"; } ?> |
if ($logo) {
echo "![]() |
echo $headline; ?>
if ($editors[$editorid]) echo "By: " . $editors[$editorid]; ?>
Posted: echo $posttime; ?>
echo $review; ?> View Allecho $companyname; ?> Reviews and Articles |
echo $headline; ?>
if ($editors[$editorid]) echo "By: " . $editors[$editorid]; ?>
Posted: echo $posttime; ?>
|
echo $review; ?>
More Reviews | ||
$maxbuttons = 5; if ($nationalpage > 1) { // we will always have a first button if page > 1 echo "«"; } if ($nationalpage > 1) { echo "Previous"; } ?> | // We will display a max of $maxbuttons 'page' buttons. if ($nationalpage > $maxbuttons) { // we will need to truncate the beginning page buttons echo "$i\n"; for ($i=($nationalpage - $maxbuttons)+1; $i<=$nationalpage; $i++) { echo "$i\n"; } if ($i < $nationalpages) { echo "$i\n"; } } elseif ($nationalpages > $maxbuttons) { // We have more pages than buttons. Show the first $maxbuttons buttons, then follow it with the '...' button. for ($i=1; $i<=$maxbuttons; $i++) { echo "$i\n"; } echo "$i\n"; } else { // We have fewer pages than buttons. Just display them all. for ($i=1; $i<=$nationalpages; $i++) { echo "$i\n"; } } ?> | if ($nationalpage < $nationalpages) { // we will always have a 'next' button if there are more pages than the page we're on. echo " $nationalpages) $nextpage = $nationalpages; // but no more than we actually have echo $nextpage; echo "#nationalreviews\">Next\n"; } if ($nationalpage < $nationalpages) { // Last button echo " $nationalpages) $nextpage = $nationalpages; // but no more than we actually have echo $nextpage; echo "#nationalreviews\">»"; } ?> |
// go get that editor's blog screen shot
$query2 = "SELECT blogs.bloggraphic, blogname FROM blogs, editors WHERE editors.blogid=blogs.id AND editors.id='$editorid'";
$result2 = mysql_query($query2) or die("Query failed: " . mysql_error());
list($bloggraphic, $blogname) = mysql_fetch_row($result2);
if ($bloggraphic) echo "![]() |
echo $headline; ?>
if ($editors[$editorid]) echo "By: " . $editors[$editorid]; ?>
Posted: echo $posttime; ?>
echo $review; ?> View Allecho $blogname; ?> Posts |
echo $headline; ?>
if ($editors[$editorid]) echo "By: " . $editors[$editorid]; ?>
Posted: echo $posttime; ?>
|
echo $review; ?>
More Reviews | ||
$maxbuttons = 5; if ($typeCpage > 1) { // we will always have a first button if page > 1 echo "«"; } if ($typeCpage > 1) { echo "Previous"; } ?> | // We will display a max of $maxbuttons 'page' buttons. if ($typeCpage > $maxbuttons) { // we will need to truncate the beginning page buttons echo "$i\n"; for ($i=($typeCpage - $maxbuttons)+1; $i<=$typeCpage; $i++) { echo "$i\n"; } if ($i < $typeCpages) { echo "$i\n"; } } elseif ($typeCpages > $maxbuttons) { // We have more pages than buttons. Show the first $maxbuttons buttons, then follow it with the '...' button. for ($i=1; $i<=$maxbuttons; $i++) { echo "$i\n"; } echo "$i\n"; } else { // We have fewer pages than buttons. Just display them all. for ($i=1; $i<=$typeCpages; $i++) { echo "$i\n"; } } ?> | if ($typeCpage < $typeCpages) { // we will always have a 'next' button if there are more pages than the page we're on. echo " $typeCpages) $nextpage = $typeCpages; // but no more than we actually have echo $nextpage; echo "#nonclientreviews\">Next\n"; } if ($typeCpage < $typeCpages) { // Last button echo " $typeCpages) $nextpage = $typeCpages; // but no more than we actually have echo $nextpage; echo "#nonclientreviews\">»"; } ?> |
![]() |
echo $headline; ?>
Posted: echo $posttime; ?>
echo $review; ?> View AllParent Posts |
echo $headline; ?>
Posted: echo $posttime; ?>
|
echo $review; ?>
More Reviews | ||
$maxbuttons = 5; if ($typeDpage > 1) { // we will always have a first button if page > 1 echo "«"; } if ($typeDpage > 1) { echo "Previous"; } ?> | // We will display a max of $maxbuttons 'page' buttons. if ($typeDpage > $maxbuttons) { // we will need to truncate the beginning page buttons echo "$i\n"; for ($i=($typeDpage - $maxbuttons)+1; $i<=$typeDpage; $i++) { echo "$i\n"; } if ($i < $typeDpages) { echo "$i\n"; } } elseif ($typeDpages > $maxbuttons) { // We have more pages than buttons. Show the first $maxbuttons buttons, then follow it with the '...' button. for ($i=1; $i<=$maxbuttons; $i++) { echo "$i\n"; } echo "$i\n"; } else { // We have fewer pages than buttons. Just display them all. for ($i=1; $i<=$typeDpages; $i++) { echo "$i\n"; } } ?> | if ($typeDpage < $typeDpages) { // we will always have a 'next' button if there are more pages than the page we're on. echo " $typeDpages) $nextpage = $typeDpages; // but no more than we actually have echo $nextpage; echo "#nonbloggernonclientreviews\">Next\n"; } if ($typeDpage < $typeDpages) { // Last button echo " $typeDpages) $nextpage = $typeDpages; // but no more than we actually have echo $nextpage; echo "#nonbloggernonclientreviews\">»"; } ?> |