<strong><?php p($c->getName()); ?> </strong> <ul class="options"> <?php foreach ($channels as $chan) { $chandle = Channel::fetch(intval($chan['id'])); if (array_search($chandle->getId(), $monitor->getChanIds()) !== false) { $checked = true; } else { $checked = false; } ?> <li><?php FormHelpers::createCheckbox('notification_channels[]', $chandle->getId(), $checked ? 'checked="checked"' : ''); p('<strong>' . $chandle->getName() . ':</strong> ' . $chandle); ?> </li> <?php } ?> </ul> <?php } } ?> </div> <div class="form-field"><center><?php FormHelpers::createSubmit('Submit'); ?>