12 $lang = $_REQUEST[
'lang'];
17 setcookie(
'lang',
$lang);
19 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
31 require_once (
'calendar.php');
49 if ($_REQUEST[
'submitted']) { ?>
51 <h1>
Form submitted</h1>
54 foreach ($_REQUEST as $key => $val) {
55 echo htmlspecialchars($key) .
' = ' . htmlspecialchars($val) .
'<br />';
61 <h1>Calendar.php test</h1>
63 <form action=
"test.php" method=
"get">
64 Select language: <select
name=
"lang" onchange=
"this.form.submit()">
69 $l = preg_replace(
'/(^calendar-|.js$)/',
'', $filename);
71 if ($l ==
$lang) $selected =
'selected="selected" ';
73 if ($l ==
'en') $display =
'EN';
74 echo
'<option ' . $selected .
'value="' . $l .
'">' . $display .
'</option>';
78 <blockquote style=
"font-size: 90%">
79 <b>NOTE</b>: as of
this release, 0.9.6, only
"EN" and
"RO", which I
80 maintain,
function correctly. Other language files
do not work
81 because they need to be updated. If you update some language file,
82 please consider sending it back to me so that I can include it in the
83 calendar distribution.
87 <form action=
"test.php" method=
"get">
88 <input
type=
"hidden" name=
"submitted" value=
"1" />
102 'showOthers' =>
true,
103 'ifFormat' =>
'%Y-%m-%d %I:%M %P',
108 'style' =>
'width: 15em; color: #840; background-color: #ff8; border: 1px solid #000; text-align: center',
110 'value' => strftime(
'%Y-%m-%d %I:%M %P', strtotime(
'now'))
117 <button>Submit</button>
print $fam getTitle() $fam name
if($_REQUEST['submitted']) else $cwd