Files
Testing/cronjobs/rotatingbox.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

61 lines
807 B
PHP

<?php
/* $Id: home.php 8 2009-01-11 06:02:53Z john $ */
$includepoll=true;
chdir("..");
include "header-ajax.php";
$page = 'rotatingbox';
$query=$database->database_query("SELECT * FROM bateworldcom_zips.announcementbox ORDER BY menu_order");
if($database->database_num_rows($query)>0)
{
$output='<ul class="slides">';
while($row=$database->database_fetch_array($query))
{
$output.="
<li>
<a href='".$row["link"]."' target='_blank'>
";
if($row["image"]!=""){$output.="<img src='".$row["image"]."'>";}
$output.="
".nl2br ( $row["text"])."
</a>
</li>";
}
// Polls
$output.="</ul>";
}
$smarty->assign('output', $output);
// ASSIGN SMARTY VARIABLES AND DISPLAY pollS PAGE
include "footer-save.php";
?>