// 選択リストの出力 foreach ($this->_tpl_vars['adjustment_dates_list'] as $date_id => $adjustment_date) { $disp_answer_no =& $schedule_participant->get_answer($date_id); $answer_no = $disp_answer_no == '' ? $schedule->get_answer_selection_default() : $disp_answer_no; ?> <td bgcolor="#ffffff" width="60" align="center"> <?php // 参加状態の場合は選択リストを出力 if ($is_closed == FALSE && ($schedule_participant->is_participate() || $schedule->is_target_all())) { ?> <select name="answers[<?php echo $date_id; ?> ]"> <?php echo ACSTemplateLib::get_simple_select_options($this->_tpl_vars['html_options_answer_selection'], $answer_no); ?> </select> <?php // 参加状態でない場合は表示のみ } else { ?> <?php echo $answer_selection[$disp_answer_no]['answer_char']; ?> <input type="hidden" name="answers[<?php echo $date_id; ?> ]" value="<?php echo $answer_no;
<?php ACSTemplateLib::print_error_message($this->_tpl_vars['error_message']); ?> <?php // 定型文言語の選択 ?> <p> <?php echo ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php", 'M007'); ?> :<br> <select name="lang_id" onChange="sel_lang()"> <?php echo ACSTemplateLib::get_simple_select_options($this->_tpl_vars['html_options_lang_list'], $this->_tpl_vars['current_lang']); ?> </select> </p> <?php // メール件名 ?> <p> <?php echo ACSMsg::get_msg("Community", "DecideSchedule_input.tpl.php", 'M004'); ?> :<br> <input type="text" name="mail_subject" onChange="onchange_msg()" value="<?php echo $this->_tpl_vars['mail_subject']; ?> " size="90">
function get_min_select_options($selected_min = '', $step_min = 5) { if ($selected_min === '') { $dt = getdate(); $selected_min = $dt['minutes']; } $vals = array(); for ($min = 0; $min <= 59; $min += $step_min) { $vals[$min] = sprintf("%02d", $min); } return ACSTemplateLib::get_simple_select_options($vals, floor($selected_min / $step_min) * $step_min); }