Click and drag on a slide to change the order. Wait for confirmation indicating the changes have been saved.
= 6){
ReportError("There are already 6 active slides. You must disable one in order to enable another.");
PageRedirect(3,"?op=newsreel");
return;
}
$weight = $lastspot+1;
$db->Query("UPDATE `bayonet_newsreel` SET `visible` = 1, `weight` = '$weight' WHERE `slide_id` = '$slide_id' LIMIT 1");
PageRedirect(0,"?op=newsreel");
}
function DisableSlide($slide_id){
global $db;
echo "Disable: ".$slide_id;
$result = $db->Query("SELECT `weight` FROM `bayonet_newsreel` WHERE `slide_id` = '$slide_id' LIMIT 1");
$row = $db->Fetch($result);
foreach($row as $slide){
$oldWeight = $slide['weight'];
}
$db->Query("UPDATE `bayonet_newsreel` SET `visible` = 0, `weight` = 0 WHERE `slide_id` = '$slide_id' LIMIT 1");
PageRedirect(0,"?op=newsreel");
}
function ListInactive(){
global $db;
echo "