public function index() { $this->set('allgroups', PilotGroups::getAllGroups()); $this->render('mailer_form.tpl'); }
public function index() { $this->checkPermission(EMAIL_PILOTS); $this->set('allgroups', PilotGroups::getAllGroups()); $this->render('mailer_form.php'); }
case 'TOTAL_HOURS': echo $setting->value; break; case 'CURRENT_SKIN': $skins = SiteData::GetAvailableSkins(); $skin = SettingsData::GetSetting('CURRENT_SKIN'); echo '<SELECT name="CURRENT_SKIN">'; $tot = count($skins); for ($i = 0; $i < $tot; $i++) { $sel = $skin->value == $skins[$i] ? 'selected' : ''; echo '<option value="' . $skins[$i] . '" ' . $sel . '>' . $skins[$i] . '</option>'; } echo '</SELECT>'; break; case 'DEFAULT_GROUP': $allgroups = PilotGroups::getAllGroups(); $current = SettingsData::getSetting('DEFAULT_GROUP'); echo '<select name="DEFAULT_GROUP">'; foreach ($allgroups as $group) { $sel = $current->value == $group->groupid ? 'selected="selected"' : ''; echo '<option value="' . $group->groupid . '" ' . $sel . '>' . $group->name . '</option>'; } echo '</select>'; break; break; default: if ($setting->value == 'true' || $setting->value == 'false') { if ($setting->value == 'true') { $sel_true = 'selected'; $sel_false = ''; } else {