Percentage complete must be numeric.
'; return; } if( $percent < 0 || $percent > 100 ) { $error = 'Supply percentages between 0 and 100 (inclusive), please.
'; return; } // ETA must be sane if( ($eta < $now && $percent < 100) || ($etaStatusbox updated successfully.
'; } if( isset($_POST['action']) && $_POST['action'] == 'create-update' ) handle_update_form(); adminhead('Status Box'); adminmenu('manage-statusbox.php'); /* Simple Presets, Select things said before */ $presets = $mtdb->getAll('SELECT COUNT(*) as c, percentage, text, CONCAT( percentage, "% - ", text ) as p FROM status GROUP BY p HAVING c>1 ORDER BY c DESC'); ?>Status updates that have gone before.
getAll("SELECT published,eta,percentage,text FROM status ORDER BY published DESC limit 5"); ?>| Published | ETA | Percentage | Text |
|---|---|---|---|
| published; ?> | eta; ?> | percentage; ?> | text); ?> |