FormHelpers::createRadio('match_method', HttpValidationMonitor::$MATCH_REGEX, $monitor->getMatchMethod() == HttpValidationMonitor::$MATCH_REGEX ? 'checked="checked"' : ''); ?> Use regular expressions (Will error if invalid pattern. See <a href="http://www.php.net/manual/en/pcre.pattern.php" target="_new">Reference</a>)</li> </ul> <div class="error"><?php FormHelpers::checkError('match_method', $errors); ?> </div> </div ><div class="form-field"> <strong>Condition:</strong> <div class="descr">What condition must be met for the monitor to be considered online?</div> <ul class="options"> <li><?php FormHelpers::createRadio('mode', HttpValidationMonitor::$MODE_DOES_CONTAIN, $monitor->getMode() == HttpValidationMonitor::$MODE_DOES_CONTAIN ? 'checked="checked"' : ''); ?> The monitor <strong>must</strong> contain the pattern.</li> <li><?php FormHelpers::createRadio('mode', HttpValidationMonitor::$MODE_DOESNT_CONTAIN, $monitor->getMode() == HttpValidationMonitor::$MODE_DOESNT_CONTAIN ? 'checked="checked"' : ''); ?> The monitor must <strong>not</strong> contain the pattern.</li> </ul> <div class="error"><?php FormHelpers::checkError('mode', $errors); ?> </div> </div>
<div class="form-field"> <ul class="options"> <li><?php FormHelpers::createRadio('status', STATUS_UNPOLLED, $monitor->getStatus() == STATUS_ONLINE || $monitor->getStatus() == STATUS_OFFLINE || $monitor->getStatus() == STATUS_UNPOLLED ? 'checked="checked"' : ''); ?> Running <div class="descr">Query, log uptime, and send notifications for this monitor.</div> </li> <li><?php FormHelpers::createRadio('status', STATUS_PAUSED, $monitor->getStatus() == STATUS_PAUSED ? 'checked="checked"' : ''); ?> Paused</li> <div class="descr">Do not query, log uptime, nor send notifications for this monitor indefinitely.</div> <li> <?php FormHelpers::createRadio('status', STATUS_DOWNTIME, $monitor->getStatus() == STATUS_DOWNTIME ? 'checked="checked"' : ''); ?> Schedule Downtime - Starting in <?php list($start_h, $start_m) = GuiHelpers::getHoursMinutes($monitor->getDowntimeStart()); list($end_h, $end_m) = GuiHelpers::getHoursMinutes($monitor->getDowntimeEnd()); FormHelpers::createText('downtime_start_hours', $start_h, 'size="2"'); p(' hours, '); FormHelpers::createText('downtime_start_minutes', $start_m, 'size="2"'); p(' minutes, lasting for '); FormHelpers::createText('downtime_end_hours', $end_h, 'size="2"'); p(' hours, '); FormHelpers::createText('downtime_end_minutes', $end_m, 'size="2"'); p(' minutes.'); ?> <div class="error"><?php