Example #1
0
/**
 * update event info
 * @return void
 * @access private
 */
function update_event_form()
{
    global $color, $editor_size, $year, $day, $month, $hour, $minute, $calendardata;
    $tmparray = $calendardata["{$month}{$day}{$year}"]["{$hour}{$minute}"];
    $tab = '    ';
    echo "\n<form name=\"eventupdate\" action=\"event_edit.php\" method=\"post\">\n" . $tab . addHidden('year', $year) . $tab . addHidden('month', $month) . $tab . addHidden('day', $day) . $tab . addHidden('hour', $hour) . $tab . addHidden('minute', $minute) . $tab . addHidden('updated', 'yes') . html_tag('tr') . html_tag('td', _("Date:"), 'right', $color[4]) . "\n" . html_tag('td', '', 'left', $color[4]) . "      <select name=\"event_year\">\n";
    select_option_year($year);
    echo "      </select>\n" . "      &nbsp;&nbsp;\n" . "      <select name=\"event_month\">\n";
    select_option_month($month);
    echo "      </select>\n" . "      &nbsp;&nbsp;\n" . "      <select name=\"event_day\">\n";
    select_option_day($day);
    echo "      </select>\n" . "      </td></tr>\n" . html_tag('tr') . html_tag('td', _("Time:"), 'right', $color[4]) . "\n" . html_tag('td', '', 'left', $color[4]) . "      <select name=\"event_hour\">\n";
    select_option_hour($hour);
    echo "      </select>\n" . "      &nbsp;:&nbsp;\n" . "      <select name=\"event_minute\">\n";
    select_option_minute($minute);
    echo "      </select>\n" . "      </td></tr>\n" . html_tag('tr') . html_tag('td', _("Length:"), 'right', $color[4]) . "\n" . html_tag('td', '', 'left', $color[4]) . "      <select name=\"event_length\">\n";
    select_option_length($tmparray['length']);
    echo "      </select>\n" . "      </td></tr>\n" . html_tag('tr') . html_tag('td', _("Priority:"), 'right', $color[4]) . "\n" . html_tag('td', '', 'left', $color[4]) . "      <select name=\"event_priority\">\n";
    select_option_priority($tmparray['priority']);
    echo "      </select>\n" . "      </td></tr>\n" . html_tag('tr') . html_tag('td', _("Title:"), 'right', $color[4]) . "\n" . html_tag('td', addInput('event_title', $tmparray['title'], 30, 50), 'left', $color[4]) . "\n</tr>\n" . html_tag('tr') . html_tag('td', addTextArea('event_text', $tmparray['message'], $editor_size, 5), 'left', $color[4], 'colspan="2"') . '</tr>' . html_tag('tr') . html_tag('td', addSubmit(_("Update Event"), 'send'), 'left', $color[4], 'colspan="2"') . "</tr></form>\n";
}
Example #2
0
/**
 * end of monthly view and form to jump to any month and year
 * @return void
 * @access private
 */
function endcalendar()
{
    global $year, $month;
    echo html_tag('tr') . "\n" . html_tag('td', '', 'left', '', 'colspan="7"') . "\n" . "          <form name=\"caljump\" action=\"calendar.php\" method=\"post\">\n" . "          <select name=\"year\">\n";
    select_option_year($year);
    echo "          </select>\n" . "          <select name=\"month\">\n";
    select_option_month($month);
    echo "          </select>\n" . '          <input type="submit" value="' . _("Go") . "\" />\n" . "          </form>\n" . "          </td></tr>\n" . "</table></td></tr></table>\n";
}