--- a/servicealerts/servicealert_editor.php +++ b/servicealerts/servicealert_editor.php @@ -1,4 +1,19 @@ \n"; - die(); - } + deleteInformedAlert($deleteParts[0], $deleteParts[1], $deleteParts[2]); + echo "Deleted network inform for {$deleteParts[0]} ({$deleteParts[1]},{$deleteParts[2]})
\n"; + die(); +} if ($_REQUEST['networkinform']) { addInformedAlert($_REQUEST['networkinform'], "agency", "0", "inform"); - echo "Added network inform for" . $_REQUEST['networkinform']; - die(); - } + echo "Added network inform for" . $_REQUEST['networkinform']; + die(); +} if ($_REQUEST['stopsearch']) { addInformedAlert($_REQUEST['stopsearch'], "stop", $_REQUEST['stopid'], "remove"); - echo "Added stop remove for" . $_REQUEST['stopsearch'] . ", stop" . $_REQUEST['stopid'] . "
\n"; - - foreach ($service_periods as $sp) { + echo "Added stop remove for" . $_REQUEST['stopsearch'] . ", stop" . $_REQUEST['stopid'] . "
\n"; + + foreach ($service_periods as $sp) { echo "Remove from $sp routes
\n"; - foreach (getStopRoutes($_REQUEST['stopid'], $sp) as $route) { + foreach (getStopRoutes($_REQUEST['stopid'], $sp) as $route) { addInformedAlert($_REQUEST['stopsearch'], "route", $route['route_id'], "patch"); - echo "Added route patch for" . $_REQUEST['stopsearch'] . ", route" . $route['route_id'] . "
\n"; - } - } + echo "Added route patch for" . $_REQUEST['stopsearch'] . ", route" . $route['route_id'] . "
\n"; + } + } die(); - } +} if ($_REQUEST['streetsearch']) { - + echo "Informing stops of street
\n"; - foreach(getStopByName() as $stop) { + foreach (getStopByName() as $stop) { addInformedAlert($_REQUEST['stopsearch'], "stop", $_REQUEST['stopid'], "inform"); - echo "Added stop inform for" . $_REQUEST['stopsearch'] . ", stop" . $_REQUEST['stopid'] . "
\n"; - - foreach ($service_periods as $sp) { + echo "Added stop inform for" . $_REQUEST['stopsearch'] . ", stop" . $_REQUEST['stopid'] . "
\n"; + + foreach ($service_periods as $sp) { echo "Informing $sp routes
\n"; - foreach (getStopRoutes($_REQUEST['stopid'], $sp) as $route) { + foreach (getStopRoutes($_REQUEST['stopid'], $sp) as $route) { addInformedAlert($_REQUEST['stopsearch'], "route", $route['route_id'], "inform"); - echo "Added route inform for stop" . $_REQUEST['stopsearch'] . ", route" . $route['route_id'] . "
\n"; - } - } + echo "Added route inform for stop" . $_REQUEST['stopsearch'] . ", route" . $route['route_id'] . "
\n"; + } + } die(); - } - } + } +} ?> Active and Future Alerts: -'; - } - -?> + '; + } + ?>
{$alert['start']}{$alert['end']}" . substr($alert['description'], 0, 999) . 'edit
{$alert['start']}{$alert['end']}" . substr($alert['description'], 0, 999) . 'edit
-
" method="get">
" /> + if ($alert['start']) + echo $alert['start']; + else + echo date("c", strtotime("0:00")); +?>" />
-
+
" />
-
+
- +
-
+
+
-
+
- +
- - -
+ + +
'; - foreach(getInformedAlerts($_REQUEST['edit'], "", "") as $informed) { + echo ''; + foreach (getInformedAlerts($_REQUEST['edit'], "", "") as $informed) { echo "'; - } + } echo '
{$informed['informed_class']}{$informed['informed_id']}{$informed['informed_action']}" . 'delete
'; - ?> -
+ ?> + + ?>"/> -
-
-
- - -
+
+
+
+ + +
+ ?>"/> -
-
-
- - -
+
+
+
+ + +
+ ?>"/> -
- +