Contact Form 7 Datepicker - Version 0.1

Version Description

First release

=

Download this release

Release Info

Developer shockware
Plugin Icon wp plugin Contact Form 7 Datepicker
Version 0.1
Comparing to
See all releases

Version 0.1

Files changed (74) hide show
  1. contact-form-7-datepicker.php +572 -0
  2. css/jsDatePick_ltr.css +68 -0
  3. css/jsDatePick_ltr.min.css +1 -0
  4. css/jsDatePick_rtl.css +68 -0
  5. css/jsDatePick_rtl.min.css +1 -0
  6. img/aqua/aqua_dayDown.gif +0 -0
  7. img/aqua/aqua_dayNormal.gif +0 -0
  8. img/aqua/aqua_dayOver.gif +0 -0
  9. img/armygreen/armygreen_dayDown.gif +0 -0
  10. img/armygreen/armygreen_dayNormal.gif +0 -0
  11. img/armygreen/armygreen_dayOver.gif +0 -0
  12. img/bananasplit/bananasplit_dayDown.gif +0 -0
  13. img/bananasplit/bananasplit_dayNormal.gif +0 -0
  14. img/bananasplit/bananasplit_dayOver.gif +0 -0
  15. img/beige/beige_dayDown.gif +0 -0
  16. img/beige/beige_dayNormal.gif +0 -0
  17. img/beige/beige_dayOver.gif +0 -0
  18. img/boxBottomLeftCorner.png +0 -0
  19. img/boxBottomRightCorner.png +0 -0
  20. img/boxSideWallPx.gif +0 -0
  21. img/boxSideWallPx.png +0 -0
  22. img/boxTopLeftCorner.png +0 -0
  23. img/boxTopPx.gif +0 -0
  24. img/boxTopPx.png +0 -0
  25. img/boxTopRightCorner.png +0 -0
  26. img/closeButton_down.gif +0 -0
  27. img/closeButton_normal.gif +0 -0
  28. img/closeButton_over.gif +0 -0
  29. img/deepblue/deepblue_dayDown.gif +0 -0
  30. img/deepblue/deepblue_dayNormal.gif +0 -0
  31. img/deepblue/deepblue_dayOver.gif +0 -0
  32. img/greenish/greenish_dayDown.gif +0 -0
  33. img/greenish/greenish_dayNormal.gif +0 -0
  34. img/greenish/greenish_dayOver.gif +0 -0
  35. img/lightgreen/lightgreen_dayDown.gif +0 -0
  36. img/lightgreen/lightgreen_dayNormal.gif +0 -0
  37. img/lightgreen/lightgreen_dayOver.gif +0 -0
  38. img/monthBackward_down.gif +0 -0
  39. img/monthBackward_normal.gif +0 -0
  40. img/monthBackward_over.gif +0 -0
  41. img/monthForward_down.gif +0 -0
  42. img/monthForward_normal.gif +0 -0
  43. img/monthForward_over.gif +0 -0
  44. img/oceanblue/ocean_blue_dayDown.gif +0 -0
  45. img/oceanblue/ocean_blue_dayNormal.gif +0 -0
  46. img/oceanblue/ocean_blue_dayOver.gif +0 -0
  47. img/orange/orange_dayDown.gif +0 -0
  48. img/orange/orange_dayNormal.gif +0 -0
  49. img/orange/orange_dayOver.gif +0 -0
  50. img/peppermint/peppermint_dayDown.gif +0 -0
  51. img/peppermint/peppermint_dayNormal.gif +0 -0
  52. img/peppermint/peppermint_dayOver.gif +0 -0
  53. img/pink/pink_dayDown.gif +0 -0
  54. img/pink/pink_dayNormal.gif +0 -0
  55. img/pink/pink_dayOver.gif +0 -0
  56. img/purple/purple_dayDown.gif +0 -0
  57. img/purple/purple_dayNormal.gif +0 -0
  58. img/purple/purple_dayOver.gif +0 -0
  59. img/torqoise/torqoise_dayDown.gif +0 -0
  60. img/torqoise/torqoise_dayNormal.gif +0 -0
  61. img/torqoise/torqoise_dayOver.gif +0 -0
  62. img/yearBackward_down.gif +0 -0
  63. img/yearBackward_normal.gif +0 -0
  64. img/yearBackward_over.gif +0 -0
  65. img/yearForward_down.gif +0 -0
  66. img/yearForward_normal.gif +0 -0
  67. img/yearForward_over.gif +0 -0
  68. js/jsDatePick.jquery.full.1.3.js +1234 -0
  69. js/jsDatePick.jquery.min.1.3.js +1 -0
  70. languages/contact-form-7-datepicker-ro_RO.mo +0 -0
  71. languages/contact-form-7-datepicker-ro_RO.po +242 -0
  72. languages/contact-form-7-datepicker.pot +225 -0
  73. readme.txt +43 -0
  74. screenshot-1.png +0 -0
contact-form-7-datepicker.php ADDED
@@ -0,0 +1,572 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Contact Form 7 Datepicker
4
+ Plugin URI: https://github.com/relu/contact-form-7-datepicker/
5
+ Description: Implements a new [date] tag in Contact Form 7 that adds a date field to a form. When clicking the field a calendar pops up enabling your site visitors to easily select any date.
6
+ Author: Aurel Canciu
7
+ Version: 0.1
8
+ Author URI: https://github.com/relu/
9
+ */
10
+ ?>
11
+ <?php
12
+ /* Copyright 2011 Aurel Canciu <aurelcanciu@gmail.com>
13
+
14
+ This program is free software; you can redistribute it and/or modify
15
+ it under the terms of the GNU General Public License as published by
16
+ the Free Software Foundation; either version 2 of the License, or
17
+ (at your option) any later version.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+ ?>
29
+ <?php
30
+
31
+ define('CF7_DATE_PICKER_VERSION', '0.1');
32
+
33
+ /**
34
+ * deactivate_cf7datepicker()
35
+ *
36
+ * Action triggered when plugin is activated
37
+ * It inserts some default values as options
38
+ */
39
+ function activate_cf7datepicker(){
40
+ global $wpdb, $blog_id;
41
+ $table = $wpdb->prefix."options";
42
+ $query = "INSERT INTO $table (blog_id, option_name, option_value)
43
+ VALUES (".$blog_id.",'cf7datepicker','1;true;false;beige;%m-%d-%Y;1;ltr') ";
44
+ $result = $wpdb->query( $query );
45
+ }
46
+
47
+ /**
48
+ * deactivate_cf7datepicker()
49
+ *
50
+ * Action triggered when plugin is deactivated
51
+ * It deletes the settings stored in the database
52
+ */
53
+ function deactivate_cf7datepicker() {
54
+ global $wpdb, $blog_id;
55
+ $table = $wpdb->prefix."options";
56
+
57
+ $query = " DELETE FROM $table WHERE blog_id=".$blog_id." AND option_name='cf7datepicker' ";
58
+ $result = $wpdb->query( $query );
59
+
60
+ }
61
+
62
+ /**
63
+ * load_settings_cf7datepicker()
64
+ *
65
+ * Loads plugin's settings from the database
66
+ */
67
+ function load_settings_cf7datepicker() {
68
+ global $wpdb, $blog_id;
69
+ $table = $wpdb->prefix."options";
70
+ return $wpdb->get_row( "SELECT * FROM $table WHERE blog_id=".$blog_id." AND option_name='cf7datepicker' ");
71
+ }
72
+
73
+ /**
74
+ * update_settings_cf7datepicker($dataupdate)
75
+ *
76
+ * Updates plugin's settings into the database
77
+ * @param Array $dateupdate, contains the updated settings
78
+ */
79
+ function update_settings_cf7datepicker($dataupdate) {
80
+ global $wpdb, $blog_id;
81
+ $table = $wpdb->prefix."options";
82
+ $query = " UPDATE $table SET option_value = '".$dataupdate[0].";".$dataupdate[1].";".$dataupdate[2].";".$dataupdate[3].";".$dataupdate[4].";".$dataupdate[5].";".$dataupdate[6]."' WHERE blog_id=".$blog_id." AND option_name='cf7datepicker' ";
83
+ $result = $wpdb->query( $query );
84
+ }
85
+
86
+ /**
87
+ * register_admin_settings_cf7datepicker()
88
+ *
89
+ * Registers the Admin panel so that it will show up as a submenu page in Contact Form 7's menu
90
+ */
91
+ function register_admin_settings_cf7datepicker() {
92
+ if (function_exists('add_submenu_page')) {
93
+ add_submenu_page('wpcf7',__('Datepicker Settings', 'contact-form-7-datepicker'),__('Datepicker Settings', 'contact-form-7-datepicker'),
94
+ 'edit_themes',
95
+ basename(__FILE__),
96
+ 'admin_settings_html_cf7datepicker');
97
+ }
98
+ }
99
+
100
+ /**
101
+ * read_schemes_cf7datepicker()
102
+ *
103
+ * Gets the names of the schemes available from the img/ directory
104
+ * @return Array $themes, the names of the schemes found
105
+ */
106
+ function read_schemes_cf7datepicker() {
107
+ $path = ABSPATH.'/wp-content/plugins/'.plugin_basename(dirname(__FILE__)).'/img/';
108
+ if ($handle = opendir($path)) {
109
+ $themes = array() ;
110
+ while (false !== ($file = readdir($handle))) {
111
+ if (is_dir($path.$file) && $file != "." && $file != "..") {
112
+ $themes[] = $file;
113
+ }
114
+ }
115
+ }
116
+ closedir($handle);
117
+ return $themes;
118
+ }
119
+
120
+ /**
121
+ * get_scheme_images_cf7datepicker()
122
+ *
123
+ * Gets the images of a scheme and natural sorts them
124
+ * @param String $scheme, the name of the scheme to get images for
125
+ * @return Array $schemeimg, the paths to the scheme images
126
+ */
127
+ function get_scheme_images_cf7datepicker($scheme) {
128
+ $path = ABSPATH.'/wp-content/plugins/'.plugin_basename(dirname(__FILE__)).'/img/'.$scheme.'/';
129
+ if ($handle = opendir($path)) {
130
+ $schemeimg = array();
131
+ while (false !== ($file = readdir($handle))) {
132
+ if (is_file($path.$file) && preg_match('/\.gif$/i', $file))
133
+ $schemeimg[] = '/wp-content/plugins/'.plugin_basename(dirname(__FILE__)).'/img/'.$scheme.'/'.$file;
134
+ }
135
+ natsort($schemeimg);
136
+ }
137
+ closedir($handle);
138
+ return $schemeimg;
139
+ }
140
+
141
+ /**
142
+ * admin_settings_html_cf7datepicker()
143
+ *
144
+ * Generates the admin panel HTML
145
+ */
146
+ function admin_settings_html_cf7datepicker() {
147
+ if(isset($_POST['datepickersave'])) {
148
+ $dataupdate = array($_POST['useMode'], $_POST['isStripped'], $_POST['limitToToday'], $_POST['cellColorScheme'], $_POST['dateFormat'], $_POST['weekStartDay'], $_POST['directionality']);
149
+ update_settings_cf7datepicker($dataupdate);
150
+ }
151
+
152
+ $loadsetting = load_settings_cf7datepicker();
153
+ $setting = explode(";",$loadsetting->option_value);
154
+ $useMode = array(1,2);
155
+ $limitToToday = $isStripped = array(__('true', 'contact-form-7-datepicker'),__('false', 'contact-form-7-datepicker'));
156
+ $cellColorScheme = read_schemes_cf7datepicker();
157
+ $weekStartDay = array(__('Sunday', 'contact-form-7-datepicker'),__('Monday', 'contact-form-7-datepicker'));
158
+ $directionality = array(__('Left to right', 'contact-form-7-datepicker'),__('Right to left', 'contact-form-7-datepicker'));
159
+
160
+ ?>
161
+ <div class="wrap">
162
+ <h2>Contact Form 7 Datepicker</h2><?php
163
+ echo __('<p>This plugin implements a new <strong>[date]</strong> tag in <a href="http://wordpress.org/extend/plugins/contact-form-7/">Contact Form 7</a>
164
+ that adds a date field to a form. When clicking the field a calendar pops up enabling your site visitors to easily select any date.<br />
165
+ To use it simply insert the <strong>[date your-field-name]</strong> or <strong>[date* your-requierd-field-name]</strong> if you want it to be mandatory,
166
+ in your Contact Form 7 edit section.</p>', 'contact-form-7-datepicker'); ?>
167
+ <form method="post">
168
+ <table class="widefat">
169
+ <tbody>
170
+ <tr>
171
+ <th style="width:20%">
172
+ <label><?php echo __('Color scheme', 'contact-form-7-datepicker'); ?></label>
173
+ </th>
174
+ <td colspan="2"><?php
175
+ foreach($cellColorScheme as $scheme) {
176
+ if($scheme == $setting[3])
177
+ $checked = "checked='checked'";
178
+ else
179
+ $checked = ""; ?>
180
+
181
+ <div style="float: left; width: 100px; margin: 30px 30px 0 0; text-align: center;">
182
+ <div style="display: block; padding: 5px; background: #fff; border: 1px solid #ccc; border-radius: 4px 4px 4px 4px;">
183
+ <label><?php echo $scheme; ?></label><br /><?php
184
+ foreach(get_scheme_images_cf7datepicker($scheme) as $img) { ?>
185
+ <img src="<?php echo get_option('siteurl') . $img; ?>" style="margin: 5px;" /><?php
186
+ } ?><br /><br />
187
+ <input name="cellColorScheme" type="radio" width="24" height="25" value="<?php echo $scheme; ?>" <?php echo $checked; ?> />
188
+ </div>
189
+ </div><?php
190
+ } ?>
191
+ </td>
192
+ </tr>
193
+
194
+ <tr>
195
+ <th>
196
+ <label><?php echo __('Use Mode', 'contact-form-7-datepicker'); ?></label>
197
+ </th>
198
+ <td>
199
+ <select name="useMode"><?php
200
+ foreach($useMode as $row) {
201
+ if($row == $setting[0])
202
+ $selected = "selected";
203
+ else
204
+ $selected = "";
205
+
206
+ echo "<option value='".$row."' ".$selected." >".$row."</option>";
207
+ } ?>
208
+ </select>
209
+ </td>
210
+ <td>
211
+ <?php echo __('<p>1 – The calendar\'s HTML will be directly appended to the field supplied by target<br />
212
+ 2 – The calendar will appear as a popup when the field with the id supplied in target is clicked.</p>', 'contact-form-7-datepicker'); ?>
213
+ </td>
214
+ </tr>
215
+
216
+ <tr>
217
+ <th>
218
+ <label><?php echo __('Sripped', 'contact-form-7-datepicker'); ?></label>
219
+ </th>
220
+ <td>
221
+ <select name="isStripped"><?php
222
+ foreach($isStripped as $row) {
223
+ if($row == __('true', 'contact-form-7-datepicker'))
224
+ $val = "true";
225
+ else
226
+ $val = "false";
227
+
228
+ if ($val == $setting[1])
229
+ $selected = "selected";
230
+ else
231
+ $selected = "";
232
+
233
+ echo "<option value='".$val."' ".$selected." >".__($row, 'contact-form-7-datepicker')."</option>";
234
+ } ?>
235
+ </select>
236
+ </td>
237
+ <td>
238
+ <?php echo __('<p>When set to true the calendar appears without the visual design - usually used with \'Use Mod\' 1.</p>','contact-form-7-datepicker'); ?>
239
+ </td>
240
+ </tr>
241
+
242
+ <tr>
243
+ <th>
244
+ <label><?php echo __('Limit To Today', 'contact-form-7-datepicker'); ?></label>
245
+ </th>
246
+ <td>
247
+ <select name="limitToToday"><?php
248
+ foreach($limitToToday as $row) {
249
+ if($row == __('true', 'contact-form-7-datepicker'))
250
+ $val = "true";
251
+ else
252
+ $val = "false";
253
+
254
+ if ($val == $setting[2])
255
+ $selected = "selected";
256
+ else
257
+ $selected = "";
258
+
259
+ echo "<option value='".$val."' ".$selected." >".__($row, 'contact-form-7-datepicker')."</option>";
260
+ } ?>
261
+ </select>
262
+ </td>
263
+ <td>
264
+ <?php echo __('<p>Enables you to limit the possible picking days to today\'s date.</p>','contact-form-7-datepicker'); ?>
265
+ </td>
266
+ </tr>
267
+
268
+ <tr>
269
+ <th>
270
+ <label><?php echo __('Week Start Day', 'contact-form-7-datepicker'); ?></h2></label>
271
+ </th>
272
+ <td>
273
+ <select name="weekStartDay"><?php
274
+ foreach($weekStartDay as $row) {
275
+ if ($row == __('Sunday','contact-form-7-datepicker'))
276
+ $val = 0;
277
+ else
278
+ $val = 1;
279
+
280
+ if($val == $setting[5])
281
+ $selected = "selected";
282
+ else
283
+ $selected = "";
284
+
285
+ echo "<option value='".$val."' ".$selected." >".__($row,'contact-form-7-datepicker')."</option>";
286
+ } ?>
287
+ </select>
288
+ </td>
289
+ <td>
290
+ </td>
291
+ </tr>
292
+
293
+ <tr>
294
+ <th>
295
+ <label><?php echo __('Text Direction', 'contact-form-7-datepicker'); ?></h2></label>
296
+ </th>
297
+ <td>
298
+ <select name="directionality"><?php
299
+ foreach($directionality as $row) {
300
+ if ($row == __('Left to right','contact-form-7-datepicker'))
301
+ $val = "ltr";
302
+ else
303
+ $val = "rtl";
304
+
305
+ if($val == $setting[6])
306
+ $selected = "selected";
307
+ else
308
+ $selected = "";
309
+
310
+ echo "<option value='".$val."' ".$selected." >".__($row,'contact-form-7-datepicker')."</option>";
311
+ } ?>
312
+ </select>
313
+ </td>
314
+ <td>
315
+ </td>
316
+ </tr>
317
+
318
+ <tr>
319
+ <th>
320
+ <label><?php echo __('Date Format', 'contact-form-7-datepicker'); ?></label>
321
+ </th>
322
+ <td>
323
+ <input name="dateFormat" id="dateFormat" type="text" value="<?php echo $setting[4]; ?>" />
324
+ </td>
325
+ <td>
326
+ <?php echo __('<p>Possible values to use in the date format:<br />
327
+ <br />
328
+ %d - Day of the month, 2 digits with leading zeros<br />
329
+ %j - Day of the month without leading zeros<br />
330
+ %m - Numeric representation of a month, with leading zeros<br />
331
+ %M - A short textual representation of a month, three letters<br />
332
+ %n - Numeric representation of a month, without leading zeros<br />
333
+ %F - A full textual representation of a month, such as January or March<br />
334
+ %Y - A full numeric representation of a year, 4 digits<br />
335
+ %y - A two digit representation of a year<br />
336
+ <br />
337
+ You can of course put whatever divider you want between them.<br /></p>',
338
+ 'contact-form-7-datepicker'); ?>
339
+ </td>
340
+ </tr>
341
+
342
+ <tr>
343
+ <td colspan="2">
344
+ </td>
345
+ <td>
346
+ <input name="datepickersave" id="datepickersave" type="submit" value="<?php echo __('Save Setting', 'contact-form-7-datepicker'); ?>" class="button" />
347
+ </td>
348
+ </tr>
349
+ </tbody>
350
+ </table>
351
+ </form><?php
352
+ }
353
+
354
+ /**
355
+ * enqueues_cf7datepicker()
356
+ *
357
+ * Loads needed scripts and CSS
358
+ */
359
+ function enqueues_cf7datepicker() {
360
+ $loadsetting = load_settings_cf7datepicker();
361
+ $setting = explode(";",$loadsetting->option_value);
362
+
363
+ if( is_admin() )
364
+ return; ?>
365
+ <link rel="stylesheet" type="text/css" href="<?php echo plugins_url( '/css/jsDatePick_'.(($setting[6] != "") ? $setting[6] : "ltr").'.min.css', __FILE__ ); ?>" />
366
+ <script type="text/javascript" src="<?php echo plugins_url( '/js/jsDatePick.jquery.min.1.3.js', __FILE__ ); ?>"></script>
367
+ <script type="text/javascript"><?php echo "
368
+ g_l = [];
369
+ g_l[\"MONTHS\"] = [\"".__('Janaury', 'contact-form-7-datepicker').
370
+ "\",\"".__('February', 'contact-form-7-datepicker').
371
+ "\",\"".__('March', 'contact-form-7-datepicker').
372
+ "\",\"".__('April', 'contact-form-7-datepicker').
373
+ "\",\"".__('May', 'contact-form-7-datepicker').
374
+ "\",\"".__('June', 'contact-form-7-datepicker').
375
+ "\",\"".__('July', 'contact-form-7-datepicker').
376
+ "\",\"".__('August', 'contact-form-7-datepicker').
377
+ "\",\"".__('September', 'contact-form-7-datepicker').
378
+ "\",\"".__('October', 'contact-form-7-datepicker').
379
+ "\",\"".__('November', 'contact-form-7-datepicker').
380
+ "\",\"".__('December', 'contact-form-7-datepicker')."\"];
381
+ g_l[\"DAYS_3\"] = [\"".__('Sun', 'contact-form-7-datepicker').
382
+ "\",\"".__('Mon', 'contact-form-7-datepicker').
383
+ "\",\"".__('Tue', 'contact-form-7-datepicker').
384
+ "\",\"".__('Wed', 'contact-form-7-datepicker').
385
+ "\",\"".__('Thu', 'contact-form-7-datepicker').
386
+ "\",\"".__('Fri', 'contact-form-7-datepicker').
387
+ "\",\"".__('Sat', 'contact-form-7-datepicker')."\"];
388
+ g_l[\"MONTH_FWD\"] = \"".__('Move a month forward', 'contact-form-7-datepicker')."\";
389
+ g_l[\"MONTH_BCK\"] = \"".__('Move a month backward', 'contact-form-7-datepicker')."\";
390
+ g_l[\"YEAR_FWD\"] = \"".__('Move a year forward', 'contact-form-7-datepicker')."\";
391
+ g_l[\"YEAR_BCK\"] = \"".__('Move a year backward', 'contact-form-7-datepicker')."\";
392
+ g_l[\"CLOSE\"] = \"".__('Close the calendar', 'contact-form-7-datepicker')."\";
393
+ g_l[\"ERROR_2\"] = g_l[\"ERROR_1\"] = \"".__('Date object invalid!', 'contact-form-7-datepicker')."\";
394
+ g_l[\"ERROR_4\"] = g_l[\"ERROR_3\"] = \"".__('Target invalid!', 'contact-form-7-datepicker')."\";"; ?>
395
+ </script><?php
396
+ }
397
+
398
+ /**
399
+ * page_text_filter_cf7datepicker($content)
400
+ *
401
+ * Searches for [datepicker ] tag inside page content
402
+ * @param String $content, the page content which gets filtered
403
+ * @return function preg_replace_callback, searches for the tag and calls page_text_filter_callback_cf7datepicker if found
404
+ */
405
+ function page_text_filter_cf7datepicker($content) {
406
+ $regex = '/\[datepicker\s(.*?)\]/';
407
+ return preg_replace_callback($regex, 'page_text_filter_callback_cf7datepicker', $content);
408
+ }
409
+
410
+ /**
411
+ * page_text_filter_callback_cf7datepicker($matches)
412
+ *
413
+ * If a match is found in the content of a form, this returns the HTML for the matched date input field
414
+ * @param Array $matches, the name of the input date field that we generate code for
415
+ * @return String $string, the HTML for our match
416
+ */
417
+ function page_text_filter_callback_cf7datepicker($matches) {
418
+ $loadsetting = load_settings_cf7datepicker();
419
+ $setting = explode(";",$loadsetting->option_value);
420
+
421
+ $string = "<input type=\"text\" name=\"".$matches[1]."\" id=\"".$matches[1]."\" />
422
+ <script type=\"text/javascript\">
423
+ jQuery(document).ready(function() {
424
+ DatePicker_".$matches[1]." = new JsDatePick({
425
+ useMode:".$setting[0].",
426
+ isStripped:".$setting[1].",
427
+ target:\"".$matches[1]."\",
428
+ limitToToday:".$setting[2].",
429
+ cellColorScheme:\"".$setting[3]."\",
430
+ dateFormat:\"".$setting[4]."\",
431
+ imgPath:\"".plugins_url( '/img/'.$setting[3].'/', __FILE__ )."\",
432
+ weekStartDay:".$setting[5].",
433
+ directionality:\"".$setting[6]."\"
434
+ });
435
+ });
436
+ </script>";
437
+ return $string;
438
+ }
439
+
440
+ /**
441
+ * wpcf7_shotcode_handler_cf7datepicker($tag)
442
+ *
443
+ * Handler for wpcf7 shortcodes [date ] and [date* ]
444
+ * @param Array $tag, this is the tag that will be handled (can be 'date' or 'date*')
445
+ * @return String $html, the HTML that will be appended to the form
446
+ */
447
+ function wpcf7_shotcode_handler_cf7datepicker($tag) {
448
+ global $wpcf7_contact_form;
449
+
450
+ if ( ! is_array( $tag ) )
451
+ return '';
452
+
453
+ $type = $tag['type'];
454
+ $name = $tag['name'];
455
+ $options = (array) $tag['options'];
456
+ $values = (array) $tag['values'];
457
+
458
+ if ( empty( $name ) )
459
+ return '';
460
+
461
+ $atts = '';
462
+ $id_att = '';
463
+ $class_att = '';
464
+ $size_att = '';
465
+ $maxlength_att = '';
466
+
467
+ if ( 'date*' == $type )
468
+ $class_att .= ' wpcf7-validates-as-required';
469
+
470
+ foreach ( $options as $option ) {
471
+ if ( preg_match( '%^id:([-0-9a-zA-Z_]+)$%', $option, $matches ) ) {
472
+ $id_att = $matches[1];
473
+
474
+ } elseif ( preg_match( '%^class:([-0-9a-zA-Z_]+)$%', $option, $matches ) ) {
475
+ $class_att .= ' ' . $matches[1];
476
+
477
+ } elseif ( preg_match( '%^([0-9]*)[/x]([0-9]*)$%', $option, $matches ) ) {
478
+ $size_att = (int) $matches[1];
479
+ $maxlength_att = (int) $matches[2];
480
+ }
481
+ }
482
+
483
+ if ( $id_att )
484
+ $atts .= ' id="' . trim( $id_att ) . '"';
485
+
486
+ if ( $class_att )
487
+ $atts .= ' class="' . trim( $class_att ) . '"';
488
+
489
+ if ( $size_att )
490
+ $atts .= ' size="' . $size_att . '"';
491
+ else
492
+ $atts .= ' size="40"';
493
+
494
+ if ( $maxlength_att )
495
+ $atts .= ' maxlength="' . $maxlength_att . '"';
496
+
497
+ if ( is_a( $wpcf7_contact_form, 'WPCF7_ContactForm' ) && $wpcf7_contact_form->is_posted() ) {
498
+ if ( isset( $_POST['_wpcf7_mail_sent'] ) && $_POST['_wpcf7_mail_sent']['ok'] )
499
+ $value = '';
500
+ else
501
+ $value = $_POST[$name];
502
+ } else {
503
+ $value = $values[0];
504
+ }
505
+
506
+ $html = page_text_filter_callback_cf7datepicker(array('',$name));
507
+ $validation_error = '';
508
+ if ( is_a( $wpcf7_contact_form, 'WPCF7_ContactForm' ) )
509
+ $validation_error = $wpcf7_contact_form->validation_error( $name );
510
+
511
+ $html = '<span class="wpcf7-form-control-wrap ' . $name . '">' . str_replace('<p>','',$html) . $validation_error . '</span>';
512
+
513
+ return $html;
514
+ }
515
+
516
+ /**
517
+ * wpcf7_validation_filter_cf7datepicker($result, $tag)
518
+ *
519
+ * This is used to validate the Contact Form 7 'date' field
520
+ * @param Array $result, 'valid' key has a boolean value (true if valid)
521
+ * and 'reason' key with a message if not valid
522
+ * @param Array $tag, contains the type and name of the field that is validated
523
+ * @return Array $result
524
+ */
525
+ function wpcf7_validation_filter_cf7datepicker( $result, $tag ) {
526
+ global $wpcf7_contact_form;
527
+
528
+ $type = $tag['type'];
529
+ $name = $tag['name'];
530
+
531
+ $_POST[$name] = trim( strtr( (string) $_POST[$name], "\n", " " ) );
532
+
533
+ if ( 'date*' == $type ) {
534
+ if ( '' == $_POST[$name] ) {
535
+ $result['valid'] = false;
536
+ $result['reason'][$name] = $wpcf7_contact_form->message( 'invalid_required' );
537
+ }
538
+ }
539
+
540
+ return $result;
541
+ }
542
+
543
+ /* Add wpcf7 shortcodes [date ] and [date* ] */
544
+ if ( ! function_exists( 'wpcf7_add_shortcode' ) ) {
545
+ if( is_file( WP_PLUGIN_DIR."/contact-form-7/includes/shortcodes.php" ) ) {
546
+ include WP_PLUGIN_DIR."/contact-form-7/includes/shortcodes.php";
547
+ wpcf7_add_shortcode( 'date', 'wpcf7_shotcode_handler_cf7datepicker', true );
548
+ wpcf7_add_shortcode( 'date*', 'wpcf7_shotcode_handler_cf7datepicker', true );
549
+ }
550
+ }
551
+
552
+ /**
553
+ * load_plugin_text_domain_cf7datepicker()
554
+ *
555
+ * Function for loading the l10n files from /languages/ dir
556
+ */
557
+ function load_plugin_text_domain_cf7datepicker() {
558
+ load_plugin_textdomain( 'contact-form-7-datepicker', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
559
+ }
560
+
561
+ /* Register the plugin, actions and filters */
562
+ register_activation_hook( __FILE__, 'activate_cf7datepicker' );
563
+ register_deactivation_hook( __FILE__, 'deactivate_cf7datepicker' );
564
+
565
+ add_action('admin_menu', 'register_admin_settings_cf7datepicker');
566
+ add_action('wp_head', 'enqueues_cf7datepicker', 1002);
567
+ add_action('init', 'load_plugin_text_domain_cf7datepicker');
568
+
569
+ add_filter( 'wpcf7_validate_date', 'wpcf7_validation_filter_cf7datepicker', 10, 2 );
570
+ add_filter( 'wpcf7_validate_date*', 'wpcf7_validation_filter_cf7datepicker', 10, 2 );
571
+
572
+ ?>
css/jsDatePick_ltr.css ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+
3
+ Copyright 2009 Itamar Arjuan
4
+ jsDatePick is distributed under the terms of the GNU General Public License.
5
+
6
+ */
7
+
8
+ .JsDatePickBox { position:relative; width:212px; font-family:Arial; }
9
+
10
+ .JsDatePickBox .jsDatePickCloseButton { cursor:pointer; position:absolute; z-index:1; top:1px; right:10px; width:33px; height:13px; background:url(../img/closeButton_normal.gif) left top no-repeat; }
11
+ .JsDatePickBox .jsDatePickCloseButtonOver { cursor:pointer; position:absolute; z-index:1; top:1px; right:10px; width:33px; height:13px; background:url(../img/closeButton_over.gif) left top no-repeat; }
12
+ .JsDatePickBox .jsDatePickCloseButtonDown { cursor:pointer; position:absolute; z-index:1; top:1px; right:10px; width:33px; height:13px; background:url(../img/closeButton_down.gif) left top no-repeat; }
13
+
14
+ .JsDatePickBox .boxLeftWall { float:left; width:7px; margin:0; padding:0; }
15
+ .JsDatePickBox .boxLeftWall .leftTopCorner{ margin:0; padding:0; width:7px; height:8px; background:url(../img/boxTopLeftCorner.png) left top no-repeat; overflow:hidden; }
16
+ .JsDatePickBox .boxLeftWall .leftBottomCorner{ margin:0; padding:0; width:7px; height:8px; background:url(../img/boxBottomLeftCorner.png) left top no-repeat; overflow:hidden; }
17
+ .JsDatePickBox .boxLeftWall .leftWall{ margin:0; padding:0; width:7px; background:url(../img/boxSideWallPx.gif) #ffffff left top repeat-y; overflow:hidden; }
18
+
19
+ .JsDatePickBox .boxRightWall { float:left; width:7px; margin:0; padding:0;}
20
+ .JsDatePickBox .boxRightWall .rightTopCorner{ margin:0; padding:0; width:7px; height:8px; background:url(../img/boxTopRightCorner.png) left top no-repeat; overflow:hidden; }
21
+ .JsDatePickBox .boxRightWall .rightBottomCorner{ margin:0; padding:0; width:7px; height:8px; background:url(../img/boxBottomRightCorner.png) left top no-repeat; overflow:hidden; }
22
+ .JsDatePickBox .boxRightWall .rightWall{ margin:0; padding:0; width:7px; background:url(../img/boxSideWallPx.gif) #ffffff right top repeat-y; overflow:hidden; }
23
+
24
+ .JsDatePickBox .topWall { position:absolute; overflow:hidden; top:0px; left:7px; width:198px; height:4px; background:url(../img/boxTopPx.gif) #ffffff left top repeat-x; }
25
+ .JsDatePickBox .bottomWall { position:absolute; overflow:hidden; bottom:-1px; left:7px; width:198px; height:4px; background:url(../img/boxTopPx.gif) #ffffff left top repeat-x; }
26
+
27
+ .JsDatePickBox .hiddenBoxLeftWall { float:left; width:0px; overflow:hidden; overflow:hidden;}
28
+ .JsDatePickBox .hiddenBoxRightWall { float:left; width:0px; overflow:hidden; overflow:hidden;}
29
+
30
+ .JsDatePickBox .boxMain { float:left; background-color:#ffffff; margin:0; padding:15px 0 5px 0; }
31
+ .JsDatePickBox .boxMainStripped { background:#ffffff; border:none; }
32
+ .JsDatePickBox .tooltip { height:12px; line-height:11px; overflow:hidden; font-size:10px; color:#666666; text-align:left; padding:0px; margin:2px 0 2px 0; }
33
+ .JsDatePickBox .weekDaysRow { height:12px; overflow:hidden; line-height:11px; font-size:10px; color:#666666; text-align:center; padding:0px; margin:2px 0 0 0; }
34
+ .JsDatePickBox .weekDaysRow .weekDay { float:left; height:14px; overflow:hidden; width:24px; margin:0 5px 0 0; padding:0; }
35
+
36
+ .JsDatePickBox .boxMainInner { background:#ffffff; width:198px; float:left; margin:5px 0 0 0; padding:0; }
37
+ .JsDatePickBox .boxMainCellsContainer { background-color:#ffffff; margin:0; padding:0; }
38
+
39
+ .JsDatePickBox .boxMainInner .controlsBar { overflow:hidden; height:20px; position:relative; }
40
+ .JsDatePickBox .boxMainInner .controlsBarText { overflow:hidden; height:20px; line-height:20px; color:#000000; font-size:12px; text-align:center; }
41
+
42
+ .JsDatePickBox .boxMainInner .monthForwardButton { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; right:22px; background:url(../img/monthForward_normal.gif) left top no-repeat; }
43
+ .JsDatePickBox .boxMainInner .monthForwardButtonOver { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; right:22px; background:url(../img/monthForward_over.gif) left top no-repeat; }
44
+ .JsDatePickBox .boxMainInner .monthForwardButtonDown { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; right:22px; background:url(../img/monthForward_down.gif) left top no-repeat; }
45
+
46
+ .JsDatePickBox .boxMainInner .monthBackwardButton { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; left:22px; background:url(../img/monthBackward_normal.gif) left top no-repeat; }
47
+ .JsDatePickBox .boxMainInner .monthBackwardButtonOver { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; left:22px; background:url(../img/monthBackward_over.gif) left top no-repeat; }
48
+ .JsDatePickBox .boxMainInner .monthBackwardButtonDown { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; left:22px; background:url(../img/monthBackward_down.gif) left top no-repeat; }
49
+
50
+ .JsDatePickBox .boxMainInner .yearForwardButton { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; right:0px; background:url(../img/yearForward_normal.gif) left top no-repeat; }
51
+ .JsDatePickBox .boxMainInner .yearForwardButtonOver { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; right:0px; background:url(../img/yearForward_over.gif) left top no-repeat; }
52
+ .JsDatePickBox .boxMainInner .yearForwardButtonDown { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; right:0px; background:url(../img/yearForward_down.gif) left top no-repeat; }
53
+
54
+ .JsDatePickBox .boxMainInner .yearBackwardButton { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; left:0px; background:url(../img/yearBackward_normal.gif) left top no-repeat; }
55
+ .JsDatePickBox .boxMainInner .yearBackwardButtonOver { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; left:0px; background:url(../img/yearBackward_over.gif) left top no-repeat; }
56
+ .JsDatePickBox .boxMainInner .yearBackwardButtonDown { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; left:0px; background:url(../img/yearBackward_down.gif) left top no-repeat; }
57
+
58
+ .JsDatePickBox .boxMainInner .skipDay { cursor:default; overflow:hidden; width:24px; height:25px; float:left; margin:4px 5px 0 0; padding:0; }
59
+ .JsDatePickBox .boxMainInner .dayNormal { -khtml-user-select: none; font-size:12px; cursor:pointer; overflow:hidden; color:#4c4c4c; width:24px; height:25px; float:left; margin:4px 5px 0 0; padding:0; text-align:center; line-height:25px; /*background:url(../img/dayNormal.gif) left top no-repeat;*/ }
60
+ .JsDatePickBox .boxMainInner .dayNormalToday { -khtml-user-select: none; font-size:12px; cursor:pointer; overflow:hidden; color:#f40f0f; font-weight:bold; width:24px; height:25px; float:left; margin:4px 5px 0 0; padding:0; text-align:center; line-height:25px; /*background:url(../img/dayNormal.gif) left top no-repeat;*/ }
61
+
62
+ .JsDatePickBox .boxMainInner .dayDisabled { -khtml-user-select: none; cursor:default; font-size:12px; overflow:hidden; color:#999999; width:24px; height:25px; float:left; margin:4px 5px 0 0; padding:0; text-align:center; line-height:25px; /*background:url(../img/dayNormal.gif) left top no-repeat;*/ }
63
+
64
+ .JsDatePickBox .boxMainInner .dayOver { -khtml-user-select: none; cursor:pointer; font-size:12px; overflow:hidden; color:#4c4c4c; width:24px; height:25px; float:left; margin:4px 5px 0 0; padding:0; text-align:center; line-height:25px; /*background:url(../img/dayOver.gif) left top no-repeat;*/ }
65
+ .JsDatePickBox .boxMainInner .dayOverToday { -khtml-user-select: none; cursor:pointer; font-size:12px; overflow:hidden; font-weight:bold; color:#f40f0f; width:24px; height:25px; float:left; margin:4px 5px 0 0; padding:0; text-align:center; line-height:25px; /*background:url(../img/dayOver.gif) left top no-repeat;*/ }
66
+
67
+ .JsDatePickBox .boxMainInner .dayDown { -khtml-user-select: none; cursor:pointer; font-size:12px; overflow:hidden; color:#F9F9F9; width:24px; height:25px; float:left; margin:4px 5px 0 0; padding:0; text-align:center; line-height:25px; /*background:url(../img/dayDown.gif) left top no-repeat; */ }
68
+ .JsDatePickBox .boxMainInner .dayDownToday { -khtml-user-select: none; cursor:pointer; font-size:12px; overflow:hidden; color:#f40f0f; font-weight:bold; width:24px; height:25px; float:left; margin:4px 5px 0 0; padding:0; text-align:center; line-height:25px; /* background:url(../img/dayDown.gif) left top no-repeat;*/ }
css/jsDatePick_ltr.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .JsDatePickBox{position:relative;width:212px;font-family:Arial;}.JsDatePickBox .jsDatePickCloseButton{cursor:pointer;position:absolute;z-index:1;top:1px;right:10px;width:33px;height:13px;background:url(../img/closeButton_normal.gif) left top no-repeat;}.JsDatePickBox .jsDatePickCloseButtonOver{cursor:pointer;position:absolute;z-index:1;top:1px;right:10px;width:33px;height:13px;background:url(../img/closeButton_over.gif) left top no-repeat;}.JsDatePickBox .jsDatePickCloseButtonDown{cursor:pointer;position:absolute;z-index:1;top:1px;right:10px;width:33px;height:13px;background:url(../img/closeButton_down.gif) left top no-repeat;}.JsDatePickBox .boxLeftWall{float:left;width:7px;margin:0;padding:0;}.JsDatePickBox .boxLeftWall .leftTopCorner{margin:0;padding:0;width:7px;height:8px;background:url(../img/boxTopLeftCorner.png) left top no-repeat;overflow:hidden;}.JsDatePickBox .boxLeftWall .leftBottomCorner{margin:0;padding:0;width:7px;height:8px;background:url(../img/boxBottomLeftCorner.png) left top no-repeat;overflow:hidden;}.JsDatePickBox .boxLeftWall .leftWall{margin:0;padding:0;width:7px;background:url(../img/boxSideWallPx.gif) #fff left top repeat-y;overflow:hidden;}.JsDatePickBox .boxRightWall{float:left;width:7px;margin:0;padding:0;}.JsDatePickBox .boxRightWall .rightTopCorner{margin:0;padding:0;width:7px;height:8px;background:url(../img/boxTopRightCorner.png) left top no-repeat;overflow:hidden;}.JsDatePickBox .boxRightWall .rightBottomCorner{margin:0;padding:0;width:7px;height:8px;background:url(../img/boxBottomRightCorner.png) left top no-repeat;overflow:hidden;}.JsDatePickBox .boxRightWall .rightWall{margin:0;padding:0;width:7px;background:url(../img/boxSideWallPx.gif) #fff right top repeat-y;overflow:hidden;}.JsDatePickBox .topWall{position:absolute;overflow:hidden;top:0;left:7px;width:198px;height:4px;background:url(../img/boxTopPx.gif) #fff left top repeat-x;}.JsDatePickBox .bottomWall{position:absolute;overflow:hidden;bottom:-1px;left:7px;width:198px;height:4px;background:url(../img/boxTopPx.gif) #fff left top repeat-x;}.JsDatePickBox .hiddenBoxLeftWall{float:left;width:0;overflow:hidden;overflow:hidden;}.JsDatePickBox .hiddenBoxRightWall{float:left;width:0;overflow:hidden;overflow:hidden;}.JsDatePickBox .boxMain{float:left;background-color:#fff;margin:0;padding:15px 0 5px 0;}.JsDatePickBox .boxMainStripped{background:#fff;border:none;}.JsDatePickBox .tooltip{height:12px;line-height:11px;overflow:hidden;font-size:10px;color:#666;text-align:left;padding:0;margin:2px 0 2px 0;}.JsDatePickBox .weekDaysRow{height:12px;overflow:hidden;line-height:11px;font-size:10px;color:#666;text-align:center;padding:0;margin:2px 0 0 0;}.JsDatePickBox .weekDaysRow .weekDay{float:left;height:14px;overflow:hidden;width:24px;margin:0 5px 0 0;padding:0;}.JsDatePickBox .boxMainInner{background:#fff;width:198px;float:left;margin:5px 0 0 0;padding:0;}.JsDatePickBox .boxMainCellsContainer{background-color:#fff;margin:0;padding:0;}.JsDatePickBox .boxMainInner .controlsBar{overflow:hidden;height:20px;position:relative;}.JsDatePickBox .boxMainInner .controlsBarText{overflow:hidden;height:20px;line-height:20px;color:#000;font-size:12px;text-align:center;}.JsDatePickBox .boxMainInner .monthForwardButton{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;right:22px;background:url(../img/monthForward_normal.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .monthForwardButtonOver{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;right:22px;background:url(../img/monthForward_over.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .monthForwardButtonDown{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;right:22px;background:url(../img/monthForward_down.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .monthBackwardButton{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;left:22px;background:url(../img/monthBackward_normal.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .monthBackwardButtonOver{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;left:22px;background:url(../img/monthBackward_over.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .monthBackwardButtonDown{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;left:22px;background:url(../img/monthBackward_down.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .yearForwardButton{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;right:0;background:url(../img/yearForward_normal.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .yearForwardButtonOver{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;right:0;background:url(../img/yearForward_over.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .yearForwardButtonDown{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;right:0;background:url(../img/yearForward_down.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .yearBackwardButton{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;left:0;background:url(../img/yearBackward_normal.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .yearBackwardButtonOver{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;left:0;background:url(../img/yearBackward_over.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .yearBackwardButtonDown{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;left:0;background:url(../img/yearBackward_down.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .skipDay{cursor:default;overflow:hidden;width:24px;height:25px;float:left;margin:4px 5px 0 0;padding:0;}.JsDatePickBox .boxMainInner .dayNormal{-khtml-user-select:none;font-size:12px;cursor:pointer;overflow:hidden;color:#4c4c4c;width:24px;height:25px;float:left;margin:4px 5px 0 0;padding:0;text-align:center;line-height:25px;}.JsDatePickBox .boxMainInner .dayNormalToday{-khtml-user-select:none;font-size:12px;cursor:pointer;overflow:hidden;color:#f40f0f;font-weight:bold;width:24px;height:25px;float:left;margin:4px 5px 0 0;padding:0;text-align:center;line-height:25px;}.JsDatePickBox .boxMainInner .dayDisabled{-khtml-user-select:none;cursor:default;font-size:12px;overflow:hidden;color:#999;width:24px;height:25px;float:left;margin:4px 5px 0 0;padding:0;text-align:center;line-height:25px;}.JsDatePickBox .boxMainInner .dayOver{-khtml-user-select:none;cursor:pointer;font-size:12px;overflow:hidden;color:#4c4c4c;width:24px;height:25px;float:left;margin:4px 5px 0 0;padding:0;text-align:center;line-height:25px;}.JsDatePickBox .boxMainInner .dayOverToday{-khtml-user-select:none;cursor:pointer;font-size:12px;overflow:hidden;font-weight:bold;color:#f40f0f;width:24px;height:25px;float:left;margin:4px 5px 0 0;padding:0;text-align:center;line-height:25px;}.JsDatePickBox .boxMainInner .dayDown{-khtml-user-select:none;cursor:pointer;font-size:12px;overflow:hidden;color:#F9F9F9;width:24px;height:25px;float:left;margin:4px 5px 0 0;padding:0;text-align:center;line-height:25px;}.JsDatePickBox .boxMainInner .dayDownToday{-khtml-user-select:none;cursor:pointer;font-size:12px;overflow:hidden;color:#f40f0f;font-weight:bold;width:24px;height:25px;float:left;margin:4px 5px 0 0;padding:0;text-align:center;line-height:25px;}
css/jsDatePick_rtl.css ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+
3
+ Copyright 2009 Itamar Arjuan
4
+ jsDatePick is distributed under the terms of the GNU General Public License.
5
+
6
+ */
7
+
8
+ .JsDatePickBox { position:relative; width:212px; font-family:Arial; }
9
+
10
+ .JsDatePickBox .jsDatePickCloseButton { cursor:pointer; position:absolute; z-index:1; top:1px; left:10px; width:33px; height:13px; background:url(../img/closeButton_normal.gif) left top no-repeat; }
11
+ .JsDatePickBox .jsDatePickCloseButtonOver { cursor:pointer; position:absolute; z-index:1; top:1px; left:10px; width:33px; height:13px; background:url(../img/closeButton_over.gif) left top no-repeat; }
12
+ .JsDatePickBox .jsDatePickCloseButtonDown { cursor:pointer; position:absolute; z-index:1; top:1px; left:10px; width:33px; height:13px; background:url(../img/closeButton_down.gif) left top no-repeat; }
13
+
14
+ .JsDatePickBox .boxLeftWall { float:left; width:7px; margin:0; padding:0; }
15
+ .JsDatePickBox .boxLeftWall .leftTopCorner{ margin:0; padding:0; width:7px; height:8px; background:url(../img/boxTopLeftCorner.png) left top no-repeat; overflow:hidden; }
16
+ .JsDatePickBox .boxLeftWall .leftBottomCorner{ margin:0; padding:0; width:7px; height:8px; background:url(../img/boxBottomLeftCorner.png) left top no-repeat; overflow:hidden; }
17
+ .JsDatePickBox .boxLeftWall .leftWall{ margin:0; padding:0; width:7px; background:url(../img/boxSideWallPx.gif) #ffffff left top repeat-y; overflow:hidden; }
18
+
19
+ .JsDatePickBox .boxRightWall { float:left; width:7px; margin:0; padding:0;}
20
+ .JsDatePickBox .boxRightWall .rightTopCorner{ margin:0; padding:0; width:7px; height:8px; background:url(../img/boxTopRightCorner.png) left top no-repeat; overflow:hidden; }
21
+ .JsDatePickBox .boxRightWall .rightBottomCorner{ margin:0; padding:0; width:7px; height:8px; background:url(../img/boxBottomRightCorner.png) left top no-repeat; overflow:hidden; }
22
+ .JsDatePickBox .boxRightWall .rightWall{ margin:0; padding:0; width:7px; background:url(../img/boxSideWallPx.gif) #ffffff right top repeat-y; overflow:hidden; }
23
+
24
+ .JsDatePickBox .topWall { position:absolute; overflow:hidden; top:0px; left:7px; width:198px; height:4px; background:url(../img/boxTopPx.gif) #ffffff left top repeat-x; }
25
+ .JsDatePickBox .bottomWall { position:absolute; overflow:hidden; bottom:-1px; left:7px; width:198px; height:4px; background:url(../img/boxTopPx.gif) #ffffff left top repeat-x; }
26
+
27
+ .JsDatePickBox .hiddenBoxLeftWall { float:left; width:0px; overflow:hidden; overflow:hidden;}
28
+ .JsDatePickBox .hiddenBoxRightWall { float:left; width:0px; overflow:hidden; overflow:hidden;}
29
+
30
+ .JsDatePickBox .boxMain { float:left; background-color:#ffffff; margin:0; padding:15px 0 5px 0; }
31
+ .JsDatePickBox .boxMainStripped { background:#ffffff; border:none; }
32
+ .JsDatePickBox .tooltip { height:12px; direction:rtl; text-align:right; line-height:11px; overflow:hidden; font-size:10px; color:#666666; padding:0px; margin:2px 0 2px 0; }
33
+ .JsDatePickBox .weekDaysRow { height:12px; overflow:hidden; line-height:11px; font-size:10px; color:#666666; text-align:center; padding:0px; margin:2px 0 0 0; }
34
+ .JsDatePickBox .weekDaysRow .weekDay { float:right; direction:rtl; height:14px; overflow:hidden; width:24px; margin:0 5px 0 0; padding:0; }
35
+
36
+ .JsDatePickBox .boxMainInner { background:#ffffff; width:198px; float:left; margin:5px 0 0 0; padding:0; }
37
+ .JsDatePickBox .boxMainCellsContainer { background-color:#ffffff; margin:0; padding:0; }
38
+
39
+ .JsDatePickBox .boxMainInner .controlsBar { overflow:hidden; height:20px; position:relative; }
40
+ .JsDatePickBox .boxMainInner .controlsBarText { overflow:hidden; height:20px; direction:rtl; line-height:20px; color:#000000; font-size:12px; text-align:center; }
41
+
42
+ .JsDatePickBox .boxMainInner .monthForwardButton { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; left:22px; background:url(../img/monthBackward_normal.gif) left top no-repeat; }
43
+ .JsDatePickBox .boxMainInner .monthForwardButtonOver { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; left:22px; background:url(../img/monthBackward_over.gif) left top no-repeat; }
44
+ .JsDatePickBox .boxMainInner .monthForwardButtonDown { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; left:22px; background:url(../img/monthBackward_down.gif) left top no-repeat; }
45
+
46
+ .JsDatePickBox .boxMainInner .monthBackwardButton { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; right:22px; background:url(../img/monthForward_normal.gif) left top no-repeat; }
47
+ .JsDatePickBox .boxMainInner .monthBackwardButtonOver { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; right:22px; background:url(../img/monthForward_over.gif) left top no-repeat; }
48
+ .JsDatePickBox .boxMainInner .monthBackwardButtonDown { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; right:22px; background:url(../img/monthForward_down.gif) left top no-repeat; }
49
+
50
+ .JsDatePickBox .boxMainInner .yearForwardButton { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; left:0px; background:url(../img/yearBackward_normal.gif) left top no-repeat; }
51
+ .JsDatePickBox .boxMainInner .yearForwardButtonOver { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; left:0px; background:url(../img/yearBackward_over.gif) left top no-repeat; }
52
+ .JsDatePickBox .boxMainInner .yearForwardButtonDown { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; left:0px; background:url(../img/yearBackward_down.gif) left top no-repeat; }
53
+
54
+ .JsDatePickBox .boxMainInner .yearBackwardButton { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; right:0px; background:url(../img/yearForward_normal.gif) left top no-repeat; }
55
+ .JsDatePickBox .boxMainInner .yearBackwardButtonOver { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; right:0px; background:url(../img/yearForward_over.gif) left top no-repeat; }
56
+ .JsDatePickBox .boxMainInner .yearBackwardButtonDown { overflow:hidden; cursor:pointer; width:20px; height:20px; position:absolute; top:0px; right:0px; background:url(../img/yearForward_down.gif) left top no-repeat; }
57
+
58
+ .JsDatePickBox .boxMainInner .skipDay { cursor:default; overflow:hidden; width:24px; height:25px; float:right; margin:4px 0 0 5px; padding:0; }
59
+ .JsDatePickBox .boxMainInner .dayNormal { -khtml-user-select: none; font-size:12px; cursor:pointer; overflow:hidden; color:#4c4c4c; width:24px; height:25px; float:right; margin:4px 0 0 5px; padding:0; text-align:center; line-height:25px; }
60
+ .JsDatePickBox .boxMainInner .dayNormalToday { -khtml-user-select: none; font-size:12px; cursor:pointer; overflow:hidden; color:#f40f0f; font-weight:bold; width:24px; height:25px; float:right; margin:4px 0 0 5px; padding:0; text-align:center; line-height:25px; }
61
+
62
+ .JsDatePickBox .boxMainInner .dayDisabled { -khtml-user-select: none; cursor:default; font-size:12px; overflow:hidden; color:#999999; width:24px; height:25px; float:right; margin:4px 0 0 5px; padding:0; text-align:center; line-height:25px; }
63
+
64
+ .JsDatePickBox .boxMainInner .dayOver { -khtml-user-select: none; cursor:pointer; font-size:12px; overflow:hidden; color:#4c4c4c; width:24px; height:25px; float:right; margin:4px 0 0 5px; padding:0; text-align:center; line-height:25px; }
65
+ .JsDatePickBox .boxMainInner .dayOverToday { -khtml-user-select: none; cursor:pointer; font-size:12px; overflow:hidden; font-weight:bold; color:#f40f0f; width:24px; height:25px; float:right; margin:4px 0 0 5px; padding:0; text-align:center; line-height:25px; }
66
+
67
+ .JsDatePickBox .boxMainInner .dayDown { -khtml-user-select: none; cursor:pointer; font-size:12px; overflow:hidden; color:#F9F9F9; width:24px; height:25px; float:right; margin:4px 0 0 5px; padding:0; text-align:center; line-height:25px; }
68
+ .JsDatePickBox .boxMainInner .dayDownToday { -khtml-user-select: none; cursor:pointer; font-size:12px; overflow:hidden; color:#f40f0f; font-weight:bold; width:24px; height:25px; float:right; margin:4px 0 0 5px; padding:0; text-align:center; line-height:25px; }
css/jsDatePick_rtl.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .JsDatePickBox{position:relative;width:212px;font-family:Arial;}.JsDatePickBox .jsDatePickCloseButton{cursor:pointer;position:absolute;z-index:1;top:1px;left:10px;width:33px;height:13px;background:url(../img/closeButton_normal.gif) left top no-repeat;}.JsDatePickBox .jsDatePickCloseButtonOver{cursor:pointer;position:absolute;z-index:1;top:1px;left:10px;width:33px;height:13px;background:url(../img/closeButton_over.gif) left top no-repeat;}.JsDatePickBox .jsDatePickCloseButtonDown{cursor:pointer;position:absolute;z-index:1;top:1px;left:10px;width:33px;height:13px;background:url(../img/closeButton_down.gif) left top no-repeat;}.JsDatePickBox .boxLeftWall{float:left;width:7px;margin:0;padding:0;}.JsDatePickBox .boxLeftWall .leftTopCorner{margin:0;padding:0;width:7px;height:8px;background:url(../img/boxTopLeftCorner.png) left top no-repeat;overflow:hidden;}.JsDatePickBox .boxLeftWall .leftBottomCorner{margin:0;padding:0;width:7px;height:8px;background:url(../img/boxBottomLeftCorner.png) left top no-repeat;overflow:hidden;}.JsDatePickBox .boxLeftWall .leftWall{margin:0;padding:0;width:7px;background:url(../img/boxSideWallPx.gif) #fff left top repeat-y;overflow:hidden;}.JsDatePickBox .boxRightWall{float:left;width:7px;margin:0;padding:0;}.JsDatePickBox .boxRightWall .rightTopCorner{margin:0;padding:0;width:7px;height:8px;background:url(../img/boxTopRightCorner.png) left top no-repeat;overflow:hidden;}.JsDatePickBox .boxRightWall .rightBottomCorner{margin:0;padding:0;width:7px;height:8px;background:url(../img/boxBottomRightCorner.png) left top no-repeat;overflow:hidden;}.JsDatePickBox .boxRightWall .rightWall{margin:0;padding:0;width:7px;background:url(../img/boxSideWallPx.gif) #fff right top repeat-y;overflow:hidden;}.JsDatePickBox .topWall{position:absolute;overflow:hidden;top:0;left:7px;width:198px;height:4px;background:url(../img/boxTopPx.gif) #fff left top repeat-x;}.JsDatePickBox .bottomWall{position:absolute;overflow:hidden;bottom:-1px;left:7px;width:198px;height:4px;background:url(../img/boxTopPx.gif) #fff left top repeat-x;}.JsDatePickBox .hiddenBoxLeftWall{float:left;width:0;overflow:hidden;overflow:hidden;}.JsDatePickBox .hiddenBoxRightWall{float:left;width:0;overflow:hidden;overflow:hidden;}.JsDatePickBox .boxMain{float:left;background-color:#fff;margin:0;padding:15px 0 5px 0;}.JsDatePickBox .boxMainStripped{background:#fff;border:none;}.JsDatePickBox .tooltip{height:12px;direction:rtl;text-align:right;line-height:11px;overflow:hidden;font-size:10px;color:#666;padding:0;margin:2px 0 2px 0;}.JsDatePickBox .weekDaysRow{height:12px;overflow:hidden;line-height:11px;font-size:10px;color:#666;text-align:center;padding:0;margin:2px 0 0 0;}.JsDatePickBox .weekDaysRow .weekDay{float:right;direction:rtl;height:14px;overflow:hidden;width:24px;margin:0 5px 0 0;padding:0;}.JsDatePickBox .boxMainInner{background:#fff;width:198px;float:left;margin:5px 0 0 0;padding:0;}.JsDatePickBox .boxMainCellsContainer{background-color:#fff;margin:0;padding:0;}.JsDatePickBox .boxMainInner .controlsBar{overflow:hidden;height:20px;position:relative;}.JsDatePickBox .boxMainInner .controlsBarText{overflow:hidden;height:20px;direction:rtl;line-height:20px;color:#000;font-size:12px;text-align:center;}.JsDatePickBox .boxMainInner .monthForwardButton{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;left:22px;background:url(../img/monthBackward_normal.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .monthForwardButtonOver{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;left:22px;background:url(../img/monthBackward_over.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .monthForwardButtonDown{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;left:22px;background:url(../img/monthBackward_down.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .monthBackwardButton{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;right:22px;background:url(../img/monthForward_normal.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .monthBackwardButtonOver{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;right:22px;background:url(../img/monthForward_over.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .monthBackwardButtonDown{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;right:22px;background:url(../img/monthForward_down.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .yearForwardButton{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;left:0;background:url(../img/yearBackward_normal.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .yearForwardButtonOver{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;left:0;background:url(../img/yearBackward_over.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .yearForwardButtonDown{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;left:0;background:url(../img/yearBackward_down.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .yearBackwardButton{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;right:0;background:url(../img/yearForward_normal.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .yearBackwardButtonOver{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;right:0;background:url(../img/yearForward_over.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .yearBackwardButtonDown{overflow:hidden;cursor:pointer;width:20px;height:20px;position:absolute;top:0;right:0;background:url(../img/yearForward_down.gif) left top no-repeat;}.JsDatePickBox .boxMainInner .skipDay{cursor:default;overflow:hidden;width:24px;height:25px;float:right;margin:4px 0 0 5px;padding:0;}.JsDatePickBox .boxMainInner .dayNormal{-khtml-user-select:none;font-size:12px;cursor:pointer;overflow:hidden;color:#4c4c4c;width:24px;height:25px;float:right;margin:4px 0 0 5px;padding:0;text-align:center;line-height:25px;}.JsDatePickBox .boxMainInner .dayNormalToday{-khtml-user-select:none;font-size:12px;cursor:pointer;overflow:hidden;color:#f40f0f;font-weight:bold;width:24px;height:25px;float:right;margin:4px 0 0 5px;padding:0;text-align:center;line-height:25px;}.JsDatePickBox .boxMainInner .dayDisabled{-khtml-user-select:none;cursor:default;font-size:12px;overflow:hidden;color:#999;width:24px;height:25px;float:right;margin:4px 0 0 5px;padding:0;text-align:center;line-height:25px;}.JsDatePickBox .boxMainInner .dayOver{-khtml-user-select:none;cursor:pointer;font-size:12px;overflow:hidden;color:#4c4c4c;width:24px;height:25px;float:right;margin:4px 0 0 5px;padding:0;text-align:center;line-height:25px;}.JsDatePickBox .boxMainInner .dayOverToday{-khtml-user-select:none;cursor:pointer;font-size:12px;overflow:hidden;font-weight:bold;color:#f40f0f;width:24px;height:25px;float:right;margin:4px 0 0 5px;padding:0;text-align:center;line-height:25px;}.JsDatePickBox .boxMainInner .dayDown{-khtml-user-select:none;cursor:pointer;font-size:12px;overflow:hidden;color:#F9F9F9;width:24px;height:25px;float:right;margin:4px 0 0 5px;padding:0;text-align:center;line-height:25px;}.JsDatePickBox .boxMainInner .dayDownToday{-khtml-user-select:none;cursor:pointer;font-size:12px;overflow:hidden;color:#f40f0f;font-weight:bold;width:24px;height:25px;float:right;margin:4px 0 0 5px;padding:0;text-align:center;line-height:25px;}
img/aqua/aqua_dayDown.gif ADDED
Binary file
img/aqua/aqua_dayNormal.gif ADDED
Binary file
img/aqua/aqua_dayOver.gif ADDED
Binary file
img/armygreen/armygreen_dayDown.gif ADDED
Binary file
img/armygreen/armygreen_dayNormal.gif ADDED
Binary file
img/armygreen/armygreen_dayOver.gif ADDED
Binary file
img/bananasplit/bananasplit_dayDown.gif ADDED
Binary file
img/bananasplit/bananasplit_dayNormal.gif ADDED
Binary file
img/bananasplit/bananasplit_dayOver.gif ADDED
Binary file
img/beige/beige_dayDown.gif ADDED
Binary file
img/beige/beige_dayNormal.gif ADDED
Binary file
img/beige/beige_dayOver.gif ADDED
Binary file
img/boxBottomLeftCorner.png ADDED
Binary file
img/boxBottomRightCorner.png ADDED
Binary file
img/boxSideWallPx.gif ADDED
Binary file
img/boxSideWallPx.png ADDED
Binary file
img/boxTopLeftCorner.png ADDED
Binary file
img/boxTopPx.gif ADDED
Binary file
img/boxTopPx.png ADDED
Binary file
img/boxTopRightCorner.png ADDED
Binary file
img/closeButton_down.gif ADDED
Binary file
img/closeButton_normal.gif ADDED
Binary file
img/closeButton_over.gif ADDED
Binary file
img/deepblue/deepblue_dayDown.gif ADDED
Binary file
img/deepblue/deepblue_dayNormal.gif ADDED
Binary file
img/deepblue/deepblue_dayOver.gif ADDED
Binary file
img/greenish/greenish_dayDown.gif ADDED
Binary file
img/greenish/greenish_dayNormal.gif ADDED
Binary file
img/greenish/greenish_dayOver.gif ADDED
Binary file
img/lightgreen/lightgreen_dayDown.gif ADDED
Binary file
img/lightgreen/lightgreen_dayNormal.gif ADDED
Binary file
img/lightgreen/lightgreen_dayOver.gif ADDED
Binary file
img/monthBackward_down.gif ADDED
Binary file
img/monthBackward_normal.gif ADDED
Binary file
img/monthBackward_over.gif ADDED
Binary file
img/monthForward_down.gif ADDED
Binary file
img/monthForward_normal.gif ADDED
Binary file
img/monthForward_over.gif ADDED
Binary file
img/oceanblue/ocean_blue_dayDown.gif ADDED
Binary file
img/oceanblue/ocean_blue_dayNormal.gif ADDED
Binary file
img/oceanblue/ocean_blue_dayOver.gif ADDED
Binary file
img/orange/orange_dayDown.gif ADDED
Binary file
img/orange/orange_dayNormal.gif ADDED
Binary file
img/orange/orange_dayOver.gif ADDED
Binary file
img/peppermint/peppermint_dayDown.gif ADDED
Binary file
img/peppermint/peppermint_dayNormal.gif ADDED
Binary file
img/peppermint/peppermint_dayOver.gif ADDED
Binary file
img/pink/pink_dayDown.gif ADDED
Binary file
img/pink/pink_dayNormal.gif ADDED
Binary file
img/pink/pink_dayOver.gif ADDED
Binary file
img/purple/purple_dayDown.gif ADDED
Binary file
img/purple/purple_dayNormal.gif ADDED
Binary file
img/purple/purple_dayOver.gif ADDED
Binary file
img/torqoise/torqoise_dayDown.gif ADDED
Binary file
img/torqoise/torqoise_dayNormal.gif ADDED
Binary file
img/torqoise/torqoise_dayOver.gif ADDED
Binary file
img/yearBackward_down.gif ADDED
Binary file
img/yearBackward_normal.gif ADDED
Binary file
img/yearBackward_over.gif ADDED
Binary file
img/yearForward_down.gif ADDED
Binary file
img/yearForward_normal.gif ADDED
Binary file
img/yearForward_over.gif ADDED
Binary file
js/jsDatePick.jquery.full.1.3.js ADDED
@@ -0,0 +1,1234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Copyright 2009 Itamar Arjuan
3
+ jsDatePick is distributed under the terms of the GNU General Public License.
4
+ This JsDatePick makes use of the jQuery library found at http://jquery.com/
5
+ */
6
+ /*
7
+ Configuration settings documentation:
8
+
9
+ useMode (Integer) – Possible values are 1 and 2 as follows:
10
+ 1 – The calendar's HTML will be directly appended to the field supplied by target
11
+ 2 – The calendar will appear as a popup when the field with the id supplied in target is clicked.
12
+
13
+ target (String) – The id of the field to attach the calendar to , usually a text input field when using useMode 2.
14
+
15
+ isStripped (Boolean) – When set to true the calendar appears without the visual design - usually used with useMode 1
16
+
17
+ selectedDate (Object) – When supplied , this object tells the calendar to open up with this date selected already.
18
+
19
+ yearsRange (Array) – When supplied , this array sets the limits for the years enabled in the calendar.
20
+
21
+ limitToToday (Boolean) – Enables you to limit the possible picking days to today's date.
22
+
23
+ cellColorScheme (String) – Enables you to swap the colors of the date's cells from a wide range of colors.
24
+ Available color schemes: torqoise,purple,pink,orange,peppermint,aqua,armygreen,bananasplit,beige,
25
+ deepblue,greenish,lightgreen, ocean_blue <-default
26
+
27
+ dateFormat (String) - Enables you to easily switch the date format without any hassle at all!
28
+ Should you not supply anything this field will default to: "%m-%d-%Y"
29
+
30
+ Possible values to use in the date format:
31
+
32
+ %d - Day of the month, 2 digits with leading zeros
33
+ %j - Day of the month without leading zeros
34
+
35
+ %m - Numeric representation of a month, with leading zeros
36
+ %M - A short textual representation of a month, three letters
37
+ %n - Numeric representation of a month, without leading zeros
38
+ %F - A full textual representation of a month, such as January or March
39
+
40
+ %Y - A full numeric representation of a year, 4 digits
41
+ %y - A two digit representation of a year
42
+
43
+ You can of course put whatever divider you want between them.
44
+
45
+ weekStartDay (Integer) : Enables you to change the day that the week starts on.
46
+ Possible values 0 (Sunday) through 6 (Saturday)
47
+ Default value is 1 (Monday)
48
+
49
+ Note: We have implemented a way to change the image path of the img folder should you decide you want to move it somewhere else.
50
+ Please read through the instructions on how to carefully accomplish that just in the next comment!
51
+
52
+ Thanks for using my calendar !
53
+ Itamar :-)
54
+
55
+ itamar.arjuan@gmail.com
56
+
57
+ */
58
+ // The language array - change these values to your language to better fit your needs!
59
+ g_l = [];
60
+ g_l["MONTHS"] = ["Janaury","February","March","April","May","June","July","August","September","October","November","December"];
61
+ g_l["DAYS_3"] = ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];
62
+ g_l["MONTH_FWD"] = "Move a month forward";
63
+ g_l["MONTH_BCK"] = "Move a month backward";
64
+ g_l["YEAR_FWD"] = "Move a year forward";
65
+ g_l["YEAR_BCK"] = "Move a year backward";
66
+ g_l["CLOSE"] = "Close the calendar";
67
+ g_l["ERROR_2"] = g_l["ERROR_1"] = "Date object invalid!";
68
+ g_l["ERROR_4"] = g_l["ERROR_3"] = "Target invalid!";
69
+
70
+ /* Changing the image path: WARNING! */
71
+ /*
72
+ The image path can be changed easily , however a few important
73
+ safety steps must take place!
74
+
75
+ CSS as a rule-of-thumb is always looking for relative image paths to where the CSS
76
+ file resides. Meaning , if we place the css document of JsDatePick somewhere else
77
+ Since some of the elements inside the CSS have background:url(img/someimage.png);
78
+
79
+ The system will try to look for a file under the same folder where the CSS file is.
80
+ So pay careful attention when moving the CSS file somewhere else as the images folder
81
+ must be relative to it. If you want to put the CSS document somewhere else and the images somewhere
82
+ else - you HAVE to look and replace each background:url(img/someimage.png); to the new path you desire.
83
+
84
+ That way you ensure risk free operation of images.
85
+ For any further questions or support about this issue - please consider the feedback form
86
+ at javascriptcalendar.org
87
+ Thank you!
88
+ */
89
+
90
+ g_arrayOfUsedJsDatePickCalsGlobalNumbers = [];
91
+ g_arrayOfUsedJsDatePickCals = [];
92
+ g_currentDateObject = {};
93
+ g_currentDateObject.dateObject = new Date();
94
+
95
+ g_currentDateObject.day = g_currentDateObject.dateObject.getDate();
96
+ g_currentDateObject.month = g_currentDateObject.dateObject.getMonth() + 1;
97
+ g_currentDateObject.year = g_currentDateObject.dateObject.getFullYear();
98
+
99
+ String.prototype.trim = function() {
100
+ return this.replace(/^\s+|\s+$/g,"");
101
+ };
102
+ String.prototype.ltrim = function() {
103
+ return this.replace(/^\s+/,"");
104
+ };
105
+ String.prototype.rtrim = function() {
106
+ return this.replace(/\s+$/,"");
107
+ };
108
+ String.prototype.strpad=function(){
109
+ return (!isNaN(this) && this.toString().length==1)?"0"+this:this;
110
+ };
111
+
112
+ JsDatePick = function(configurationObject){
113
+
114
+ if (document.all){
115
+ this.isie = true;
116
+ this.iever = JsDatePick.getInternetExplorerVersion();
117
+ } else {
118
+ this.isie = false;
119
+ }
120
+
121
+ this.oConfiguration = {};
122
+ this.oCurrentDay = g_currentDateObject;
123
+ this.monthsTextualRepresentation = g_l["MONTHS"];
124
+
125
+ this.lastPostedDay = null;
126
+
127
+ this.initialZIndex = 2;
128
+
129
+ this.globalNumber = this.getUnUsedGlobalNumber();
130
+ g_arrayOfUsedJsDatePickCals[this.globalNumber] = this;
131
+
132
+ this.setConfiguration(configurationObject);
133
+ this.makeCalendar();
134
+ };
135
+
136
+ JsDatePick.getCalInstanceById=function(id){ return g_arrayOfUsedJsDatePickCals[parseInt(id,10)]; };
137
+
138
+ JsDatePick.getInternetExplorerVersion=function(){
139
+ var rv = -1, ua, re;
140
+ if (navigator.appName == 'Microsoft Internet Explorer'){
141
+ ua = navigator.userAgent;
142
+ re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
143
+ if (re.exec(ua) != null){
144
+ rv = parseFloat( RegExp.$1 );
145
+ }
146
+ return rv;
147
+ }
148
+ };
149
+
150
+ JsDatePick.prototype.setC = function(obj, aClassName){
151
+ if (this.isie && this.iever > 7){
152
+ jQuery(obj).attr("class", aClassName);
153
+ } else {
154
+ obj.className = aClassName;
155
+ }
156
+ };
157
+
158
+ JsDatePick.prototype.getUnUsedGlobalNumber = function(){
159
+
160
+ var aNum = Math.floor(Math.random()*1000);
161
+
162
+ while ( ! this.isUnique_GlobalNumber(aNum) ){
163
+ aNum = Math.floor(Math.random()*1000);
164
+ }
165
+
166
+ return aNum;
167
+ };
168
+
169
+ JsDatePick.prototype.isUnique_GlobalNumber = function(aNum){
170
+ var i;
171
+ for (i=0; i<g_arrayOfUsedJsDatePickCalsGlobalNumbers.length; i++){
172
+ if (g_arrayOfUsedJsDatePickCalsGlobalNumbers[i] == aNum){
173
+ return false;
174
+ }
175
+ }
176
+ return true;
177
+ };
178
+
179
+ JsDatePick.prototype.addOnSelectedDelegate = function(aDelegatedFunction){
180
+ if (typeof(aDelegatedFunction) == "function"){
181
+ this.addonSelectedDelegate = aDelegatedFunction;
182
+ }
183
+ return false;
184
+ };
185
+
186
+ JsDatePick.prototype.setOnSelectedDelegate = function(aDelegatedFunction){
187
+ if (typeof(aDelegatedFunction) == "function"){
188
+ this.onSelectedDelegate = aDelegatedFunction;
189
+ return true;
190
+ }
191
+ return false;
192
+ };
193
+
194
+ JsDatePick.prototype.executeOnSelectedDelegateIfExists = function(){
195
+ if (typeof(this.onSelectedDelegate) == "function"){
196
+ this.onSelectedDelegate();
197
+ }
198
+ if (typeof(this.addonSelectedDelegate) == "function"){
199
+ this.addonSelectedDelegate();
200
+ }
201
+ };
202
+
203
+ JsDatePick.prototype.setRepopulationDelegate = function(aDelegatedFunction){
204
+ if (typeof(aDelegatedFunction) == "function"){
205
+ this.repopulationDelegate = aDelegatedFunction;
206
+ return true;
207
+ }
208
+ return false;
209
+ };
210
+
211
+ JsDatePick.prototype.setConfiguration = function(aConf){
212
+ this.oConfiguration.isStripped = (aConf["isStripped"] != null) ? aConf["isStripped"] : false;
213
+ this.oConfiguration.useMode = (aConf["useMode"] != null) ? aConf["useMode"] : 1;
214
+ this.oConfiguration.selectedDate = (aConf["selectedDate"] != null) ? aConf["selectedDate"] : null;
215
+ this.oConfiguration.target = (aConf["target"] != null) ? aConf["target"] : null;
216
+ this.oConfiguration.yearsRange = (aConf["yearsRange"] != null) ? aConf["yearsRange"] : [1971,2100];
217
+ this.oConfiguration.limitToToday = (aConf["limitToToday"] != null) ? aConf["limitToToday"] : false;
218
+ this.oConfiguration.field = (aConf["field"] != null) ? aConf["field"] : false;
219
+ this.oConfiguration.cellColorScheme = (aConf["cellColorScheme"] != null) ? aConf["cellColorScheme"] : "ocean_blue";
220
+ this.oConfiguration.dateFormat = (aConf["dateFormat"] != null) ? aConf["dateFormat"] : "%m-%d-%Y";
221
+ this.oConfiguration.imgPath = (aConf["imgPath"] != null) ? aConf["imgPath"] : "img/";
222
+ this.oConfiguration.weekStartDay = (aConf["weekStartDay"] != null) ? aConf["weekStartDay"] : 1;
223
+ this.oConfiguration.directionality = (aConf["directionality"] != null) ? aConf["directionality"] : "ltr";
224
+
225
+ this.selectedDayObject = {};
226
+ this.flag_DayMarkedBeforeRepopulation = false;
227
+ this.flag_aDayWasSelected = false;
228
+ this.lastMarkedDayObject = null;
229
+
230
+ if (!this.oConfiguration.selectedDate){
231
+ this.currentYear = this.oCurrentDay.year;
232
+ this.currentMonth = this.oCurrentDay.month;
233
+ this.currentDay = this.oCurrentDay.day;
234
+ }
235
+ };
236
+
237
+ JsDatePick.prototype.resizeCalendar = function(){
238
+ this.leftWallStrechedElement.style.height = "0px";
239
+ this.rightWallStrechedElement.style.height = "0px";
240
+
241
+ var totalHeight = this.JsDatePickBox.offsetHeight, newStrechedHeight = totalHeight-16;
242
+
243
+ if (newStrechedHeight < 0){
244
+ return;
245
+ }
246
+
247
+ this.leftWallStrechedElement.style.height = newStrechedHeight+"px";
248
+ this.rightWallStrechedElement.style.height = newStrechedHeight+"px";
249
+ return true;
250
+ };
251
+
252
+ JsDatePick.prototype.closeCalendar = function(){
253
+ this.JsDatePickBox.style.display = "none";
254
+ document.onclick=function(){};
255
+ };
256
+
257
+ JsDatePick.prototype.populateFieldWithSelectedDate = function(){
258
+ jQuery("#"+this.oConfiguration.target).val(this.getSelectedDayFormatted());
259
+ if (this.lastPickedDateObject){
260
+ delete(this.lastPickedDateObject);
261
+ }
262
+ this.lastPickedDateObject = {};
263
+ this.lastPickedDateObject.day = this.selectedDayObject.day;
264
+ this.lastPickedDateObject.month = this.selectedDayObject.month;
265
+ this.lastPickedDateObject.year = this.selectedDayObject.year;
266
+
267
+ this.closeCalendar();
268
+ };
269
+
270
+ JsDatePick.prototype.makeCalendar = function(){
271
+ var d = document, JsDatePickBox, clearfix, closeButton,leftWall,rightWall,topWall,bottomWall,topCorner,bottomCorner,wall,inputElement,aSpan,aFunc;
272
+
273
+ JsDatePickBox = d.createElement("div");
274
+ clearfix = d.createElement("div");
275
+ closeButton = d.createElement("div");
276
+
277
+ this.setC(JsDatePickBox, "JsDatePickBox");
278
+ this.setC(clearfix, "clearfix");
279
+ this.setC(closeButton, "jsDatePickCloseButton");
280
+ closeButton.setAttribute("globalNumber",this.globalNumber);
281
+
282
+ closeButton.onmouseover = function(){
283
+ var gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
284
+ gRef.setTooltipText(g_l["CLOSE"]);
285
+ gRef.setC(this, "jsDatePickCloseButtonOver");
286
+ };
287
+
288
+ closeButton.onmouseout = function(){
289
+ var gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
290
+ gRef.setTooltipText('');
291
+ gRef.setC(this, "jsDatePickCloseButton");
292
+ };
293
+
294
+ closeButton.onmousedown = function(){
295
+ var gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
296
+ gRef.setTooltipText(g_l["CLOSE"]);
297
+ gRef.setC(this, "jsDatePickCloseButtonDown");
298
+ };
299
+
300
+ closeButton.onmouseup = function(){
301
+ var gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
302
+ gRef.setTooltipText('');
303
+ gRef.setC(this, "jsDatePickCloseButton");
304
+ gRef.closeCalendar();
305
+ };
306
+
307
+ this.JsDatePickBox = JsDatePickBox;
308
+
309
+ leftWall = d.createElement("div");
310
+ rightWall = d.createElement("div");
311
+ topWall = d.createElement("div");
312
+ bottomWall = d.createElement("div");
313
+
314
+ this.setC(topWall, "topWall");
315
+ this.setC(bottomWall, "bottomWall");
316
+
317
+ if (this.isie && this.iever == 6){
318
+ bottomWall.style.bottom = "-2px";
319
+ }
320
+
321
+ topCorner = d.createElement("div");
322
+ bottomCorner = d.createElement("div");
323
+ wall = d.createElement("div");
324
+
325
+ this.setC(topCorner, "leftTopCorner");
326
+ this.setC(bottomCorner, "leftBottomCorner");
327
+ this.setC(wall, "leftWall");
328
+
329
+ this.leftWallStrechedElement = wall;
330
+ this.leftWall = leftWall;
331
+ this.rightWall = rightWall;
332
+
333
+ leftWall.appendChild(topCorner);
334
+ leftWall.appendChild(wall);
335
+ leftWall.appendChild(bottomCorner);
336
+
337
+ topCorner = d.createElement("div");
338
+ bottomCorner = d.createElement("div");
339
+ wall = d.createElement("div");
340
+
341
+ this.setC(topCorner, "rightTopCorner");
342
+ this.setC(bottomCorner, "rightBottomCorner");
343
+ this.setC(wall, "rightWall");
344
+
345
+ this.rightWallStrechedElement = wall;
346
+
347
+ rightWall.appendChild(topCorner);
348
+ rightWall.appendChild(wall);
349
+ rightWall.appendChild(bottomCorner);
350
+
351
+ if (this.oConfiguration.isStripped){
352
+ this.setC(leftWall, "hiddenBoxLeftWall");
353
+ this.setC(rightWall, "hiddenBoxRightWall");
354
+ } else {
355
+ this.setC(leftWall, "boxLeftWall");
356
+ this.setC(rightWall, "boxRightWall");
357
+ }
358
+
359
+ JsDatePickBox.appendChild(leftWall);
360
+ JsDatePickBox.appendChild(this.getDOMCalendarStripped());
361
+ JsDatePickBox.appendChild(rightWall);
362
+ JsDatePickBox.appendChild(clearfix);
363
+
364
+ if (!this.oConfiguration.isStripped){
365
+ JsDatePickBox.appendChild(closeButton);
366
+ JsDatePickBox.appendChild(topWall);
367
+ JsDatePickBox.appendChild(bottomWall);
368
+ }
369
+
370
+ if (this.oConfiguration.useMode == 2){
371
+ if (this.oConfiguration.target != false){
372
+ if (typeof(jQuery("#"+this.oConfiguration.target)) != null){
373
+ inputElement = document.getElementById(this.oConfiguration.target);
374
+
375
+ aSpan = document.createElement("span");
376
+ inputElement.parentNode.replaceChild(aSpan,inputElement);
377
+ aSpan.appendChild(inputElement);
378
+
379
+ inputElement.setAttribute("globalNumber",this.globalNumber);
380
+ inputElement.onclick = function(){ JsDatePick.getCalInstanceById(this.getAttribute("globalNumber")).showCalendar(); };
381
+ inputElement.onfocus = function(){ JsDatePick.getCalInstanceById(this.getAttribute("globalNumber")).showCalendar(); };
382
+
383
+ aSpan.style.position = "relative";
384
+ this.initialZIndex++;
385
+
386
+ JsDatePickBox.style.zIndex = this.initialZIndex.toString();
387
+ JsDatePickBox.style.position = "absolute";
388
+ JsDatePickBox.style.top = "18px";
389
+ JsDatePickBox.style.left = "0px";
390
+ JsDatePickBox.style.display = "none";
391
+ aSpan.appendChild(JsDatePickBox);
392
+
393
+ aFunc = new Function("g_arrayOfUsedJsDatePickCals["+this.globalNumber+"].populateFieldWithSelectedDate();");
394
+
395
+ this.setOnSelectedDelegate(aFunc);
396
+ } else {
397
+ alert(g_l["ERROR_3"]);
398
+ }
399
+ }
400
+ } else {
401
+ if (this.oConfiguration.target != null){
402
+ jQuery("#"+this.oConfiguration.target).append(JsDatePickBox);
403
+ jQuery("#"+this.oConfiguration.target).css("position","relative");
404
+ JsDatePickBox.style.position = "absolute";
405
+ JsDatePickBox.style.top = "0px";
406
+ JsDatePickBox.style.left = "0px";
407
+ this.resizeCalendar();
408
+ this.executePopulationDelegateIfExists();
409
+ } else {
410
+ alert(g_l["ERROR_4"]);
411
+ }
412
+ }
413
+ };
414
+
415
+ JsDatePick.prototype.determineFieldDate = function(){
416
+ var aField,divider,dateMold,array,array2,i,dI,yI,mI,tflag=false,fflag=false;
417
+ if (this.lastPickedDateObject){
418
+ this.setSelectedDay({
419
+ year:parseInt(this.lastPickedDateObject.year),
420
+ month:parseInt(this.lastPickedDateObject.month,10),
421
+ day:parseInt(this.lastPickedDateObject.day,10)
422
+ });
423
+ } else {
424
+ aField = jQuery("#"+this.oConfiguration.target);
425
+
426
+ if (jQuery.trim(aField.val()).length == 0){
427
+ this.unsetSelection();
428
+ if (typeof(this.oConfiguration.selectedDate) == "object" && this.oConfiguration.selectedDate){
429
+ this.setSelectedDay({
430
+ year:parseInt(this.oConfiguration.selectedDate.year),
431
+ month:parseInt(this.oConfiguration.selectedDate.month,10),
432
+ day:parseInt(this.oConfiguration.selectedDate.day,10)
433
+ });
434
+ }
435
+ } else {
436
+ if (jQuery.trim(aField.val()).length > 5){
437
+ divider = this.senseDivider(this.oConfiguration.dateFormat);
438
+ dateMold = this.oConfiguration.dateFormat;
439
+ array = jQuery.trim(aField.val()).split(divider);
440
+ array2 = dateMold.trim().split(divider);
441
+ i=dI=yI=mI=0;
442
+
443
+ for (i=0; i<array2.length; i++){
444
+ switch (array2[i]){
445
+ case "%d": case "%j": dI = i; break;
446
+ case "%m": case "%n": mI = i; break;
447
+ case "%M": mI = i; tflag=true; break;
448
+ case "%F": mI = i; fflag=true; break;
449
+ case "%Y": case "%y": yI = i;
450
+ }
451
+ }
452
+
453
+ if (tflag){
454
+ for (i=0; i<12; i++){
455
+ if (g_l["MONTHS"][i].substr(0,3).toUpperCase() == array[mI].toUpperCase()){
456
+ mI = i+1; break;
457
+ }
458
+ }
459
+ } else if (fflag){
460
+ for (i=0; i<12; i++){
461
+ if (g_l["MONTHS"][i].toLowerCase() == array[mI].toLowerCase()){
462
+ mI = i+1; break;
463
+ }
464
+ }
465
+ } else {
466
+ mI = parseInt(array[mI],10);
467
+ }
468
+
469
+ this.setSelectedDay({
470
+ year:parseInt(array[yI],10),
471
+ month:mI,
472
+ day:parseInt(array[dI],10)
473
+ });
474
+ } else {
475
+ this.unsetSelection();
476
+ return;
477
+ }
478
+ }
479
+ }
480
+ };
481
+
482
+ JsDatePick.prototype.senseDivider=function(aStr){return aStr.replace("%d","").replace("%j","").replace("%m","").replace("%M","").replace("%n","").replace("%F","").replace("%Y","").replace("%y","").substr(0,1);};
483
+
484
+ JsDatePick.prototype.showCalendar = function(){
485
+ if (this.JsDatePickBox.style.display == "none"){
486
+ this.determineFieldDate();
487
+ this.JsDatePickBox.style.display = "block";
488
+ this.resizeCalendar();
489
+ this.executePopulationDelegateIfExists();
490
+ jQuery(this.JsDatePickBox).mouseover(function(){ document.onclick=function(){}; });
491
+ jQuery(this.JsDatePickBox).attr("globalCalNumber", this.globalNumber);
492
+ jQuery(this.JsDatePickBox).mouseout(function(){
493
+ document.onclick = new Function("g_arrayOfUsedJsDatePickCals["+this.getAttribute("globalCalNumber")+"].closeCalendar();");
494
+ });
495
+ } else {
496
+ return;
497
+ }
498
+ };
499
+
500
+ JsDatePick.prototype.isAvailable = function(y, m, d){
501
+ if (y > this.oCurrentDay.year){
502
+ return false;
503
+ }
504
+
505
+ if (m > this.oCurrentDay.month && y == this.oCurrentDay.year){
506
+ return false;
507
+ }
508
+
509
+ if (d > this.oCurrentDay.day && m == this.oCurrentDay.month && y == this.oCurrentDay.year ){
510
+ return false;
511
+ }
512
+
513
+ return true;
514
+ };
515
+
516
+ JsDatePick.prototype.getDOMCalendarStripped = function(){
517
+ var d = document,boxMain,boxMainInner,clearfix,boxMainCellsContainer,tooltip,weekDaysRow,clearfix2;
518
+
519
+ boxMain = d.createElement("div");
520
+ if (this.oConfiguration.isStripped){
521
+ this.setC(boxMain, "boxMainStripped");
522
+ } else {
523
+ this.setC(boxMain, "boxMain");
524
+ }
525
+
526
+ this.boxMain = boxMain;
527
+
528
+ boxMainInner = d.createElement("div");
529
+ clearfix = d.createElement("div");
530
+ boxMainCellsContainer = d.createElement("div");
531
+ tooltip = d.createElement("div");
532
+ weekDaysRow = d.createElement("div");
533
+ clearfix2 = d.createElement("div");
534
+
535
+ this.setC(clearfix, "clearfix");
536
+ this.setC(clearfix2, "clearfix");
537
+ this.setC(boxMainInner, "boxMainInner");
538
+ this.setC(boxMainCellsContainer, "boxMainCellsContainer");
539
+ this.setC(tooltip, "tooltip");
540
+ this.setC(weekDaysRow, "weekDaysRow");
541
+
542
+ this.tooltip = tooltip;
543
+
544
+ boxMain.appendChild(boxMainInner);
545
+
546
+ this.controlsBar = this.getDOMControlBar();
547
+ this.makeDOMWeekDays(weekDaysRow);
548
+
549
+ boxMainInner.appendChild(this.controlsBar);
550
+ boxMainInner.appendChild(clearfix);
551
+ boxMainInner.appendChild(tooltip);
552
+ boxMainInner.appendChild(weekDaysRow);
553
+ boxMainInner.appendChild(boxMainCellsContainer);
554
+ boxMainInner.appendChild(clearfix2);
555
+
556
+ this.boxMainCellsContainer = boxMainCellsContainer;
557
+ this.populateMainBox(boxMainCellsContainer);
558
+
559
+ return boxMain;
560
+ };
561
+
562
+ JsDatePick.prototype.makeDOMWeekDays = function(aWeekDaysRow){
563
+ var i=0,d = document,weekDaysArray = g_l["DAYS_3"],textNode,weekDay;
564
+
565
+ for (i=this.oConfiguration.weekStartDay; i<7; i++){
566
+ weekDay = d.createElement("div");
567
+ textNode = d.createTextNode(weekDaysArray[i]);
568
+ this.setC(weekDay, "weekDay");
569
+
570
+ weekDay.appendChild(textNode);
571
+ aWeekDaysRow.appendChild(weekDay);
572
+ }
573
+
574
+ if (this.oConfiguration.weekStartDay > 0){
575
+ for (i=0; i<this.oConfiguration.weekStartDay; i++){
576
+ weekDay = d.createElement("div");
577
+ textNode = d.createTextNode(weekDaysArray[i]);
578
+ this.setC(weekDay, "weekDay");
579
+
580
+ weekDay.appendChild(textNode);
581
+ aWeekDaysRow.appendChild(weekDay);
582
+ }
583
+ }
584
+ weekDay.style.marginRight = "0px";
585
+ };
586
+
587
+ JsDatePick.prototype.repopulateMainBox = function(){
588
+ while (this.boxMainCellsContainer.firstChild){
589
+ this.boxMainCellsContainer.removeChild(this.boxMainCellsContainer.firstChild);
590
+ }
591
+
592
+ this.populateMainBox(this.boxMainCellsContainer);
593
+ this.resizeCalendar();
594
+ this.executePopulationDelegateIfExists();
595
+ };
596
+
597
+ JsDatePick.prototype.executePopulationDelegateIfExists = function(){
598
+ if (typeof(this.repopulationDelegate) == "function"){
599
+ this.repopulationDelegate();
600
+ }
601
+ };
602
+
603
+ JsDatePick.prototype.populateMainBox = function(aMainBox){
604
+ var d = document,aDayDiv,aTextNode,columnNumber = 1,disabledDayFlag = false,cmpMonth = this.currentMonth-1,oDay,iStamp,skipDays,i,currentColorScheme;
605
+
606
+ oDay = new Date(this.currentYear, cmpMonth, 1,1,0,0);
607
+ iStamp = oDay.getTime();
608
+
609
+ this.flag_DayMarkedBeforeRepopulation = false;
610
+ this.setControlBarText(this.monthsTextualRepresentation[cmpMonth] + ", " + this.currentYear);
611
+
612
+ skipDays = parseInt(oDay.getDay())-this.oConfiguration.weekStartDay;
613
+ if (skipDays < 0){
614
+ skipDays = skipDays + 7;
615
+ }
616
+
617
+ i=0;
618
+ for (i=0; i<skipDays; i++){
619
+ aDayDiv = d.createElement("div");
620
+ this.setC(aDayDiv, "skipDay");
621
+ aMainBox.appendChild(aDayDiv);
622
+ if (columnNumber == 7){
623
+ columnNumber = 1;
624
+ } else {
625
+ columnNumber++;
626
+ }
627
+ }
628
+
629
+ while (oDay.getMonth() == cmpMonth){
630
+ disabledDayFlag = false;
631
+ aDayDiv = d.createElement("div");
632
+
633
+ if (this.lastPostedDay){
634
+ if (this.lastPostedDay == oDay.getDate()){
635
+ aTextNode = parseInt(this.lastPostedDay,10)+1;
636
+ } else {
637
+ aTextNode = d.createTextNode(oDay.getDate());
638
+ }
639
+ } else {
640
+ aTextNode = d.createTextNode(oDay.getDate());
641
+ }
642
+
643
+ aDayDiv.appendChild(aTextNode);
644
+ aMainBox.appendChild(aDayDiv);
645
+
646
+ aDayDiv.setAttribute("globalNumber",this.globalNumber);
647
+
648
+ if (columnNumber == 7){
649
+ if (this.oConfiguration.directionality == "ltr"){
650
+ aDayDiv.style.marginRight = "0px";
651
+ } else {
652
+ aDayDiv.style.marginLeft = "0px";
653
+ }
654
+ }
655
+
656
+ if (this.isToday(oDay)){
657
+ aDayDiv.setAttribute("isToday",1);
658
+ }
659
+
660
+ if (this.oConfiguration.limitToToday){
661
+ if ( ! this.isAvailable(this.currentYear, this.currentMonth, parseInt(oDay.getDate()) ) ){
662
+ disabledDayFlag = true;
663
+ aDayDiv.setAttribute("isJsDatePickDisabled",1);
664
+ }
665
+ }
666
+
667
+ aDayDiv.onmouseover = function(){
668
+ var gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber")),currentColorScheme;
669
+ currentColorScheme = gRef.getCurrentColorScheme();
670
+
671
+ if (parseInt(this.getAttribute("isSelected")) == 1){
672
+ return;
673
+ }
674
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
675
+ return;
676
+ }
677
+ if (parseInt(this.getAttribute("isToday")) == 1){
678
+ gRef.setC(this, "dayOverToday");
679
+ this.style.background = "url(" + gRef.oConfiguration.imgPath + currentColorScheme + "_dayOver.gif) left top no-repeat";
680
+ } else {
681
+ gRef.setC(this, "dayOver");
682
+ this.style.background = "url(" + gRef.oConfiguration.imgPath + currentColorScheme + "_dayOver.gif) left top no-repeat";
683
+ }
684
+ };
685
+
686
+ aDayDiv.onmouseout = function(){
687
+ var gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber")),currentColorScheme;
688
+ currentColorScheme = gRef.getCurrentColorScheme();
689
+
690
+ if (parseInt(this.getAttribute("isSelected")) == 1){
691
+ return;
692
+ }
693
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
694
+ return;
695
+ }
696
+ if (parseInt(this.getAttribute("isToday")) == 1){
697
+ gRef.setC(this, "dayNormalToday");
698
+ this.style.background = "url(" + gRef.oConfiguration.imgPath + currentColorScheme + "_dayNormal.gif) left top no-repeat";
699
+ } else {
700
+ gRef.setC(this, "dayNormal");
701
+ this.style.background = "url(" + gRef.oConfiguration.imgPath + currentColorScheme + "_dayNormal.gif) left top no-repeat";
702
+ }
703
+ };
704
+
705
+ aDayDiv.onmousedown = function(){
706
+ var gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber")),currentColorScheme;
707
+ currentColorScheme = gRef.getCurrentColorScheme();
708
+
709
+ if (parseInt(this.getAttribute("isSelected")) == 1){
710
+ return;
711
+ }
712
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
713
+ return;
714
+ }
715
+ if (parseInt(this.getAttribute("isToday")) == 1){
716
+ gRef.setC(this, "dayDownToday");
717
+ this.style.background = "url(" + gRef.oConfiguration.imgPath + currentColorScheme + "_dayDown.gif) left top no-repeat";
718
+ } else {
719
+ gRef.setC(this, "dayDown");
720
+ this.style.background = "url(" + gRef.oConfiguration.imgPath + currentColorScheme + "_dayDown.gif) left top no-repeat";
721
+ }
722
+ };
723
+
724
+ aDayDiv.onmouseup = function(){
725
+ var gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber")),currentColorScheme;
726
+ currentColorScheme = gRef.getCurrentColorScheme();
727
+
728
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
729
+ return;
730
+ }
731
+ if (parseInt(this.getAttribute("isToday")) == 1){
732
+ gRef.setC(this, "dayNormalToday");
733
+ this.style.background = "url(" + gRef.oConfiguration.imgPath + currentColorScheme + "_dayNormal.gif) left top no-repeat";
734
+ } else {
735
+ gRef.setC(this, "dayNormal");
736
+ this.style.background = "url(" + gRef.oConfiguration.imgPath + currentColorScheme + "_dayNormal.gif) left top no-repeat";
737
+ }
738
+
739
+ gRef.setDaySelection(this);
740
+ gRef.executeOnSelectedDelegateIfExists();
741
+ };
742
+
743
+ if (this.isSelectedDay(oDay.getDate())){
744
+ aDayDiv.setAttribute("isSelected",1);
745
+ this.flag_DayMarkedBeforeRepopulation = true;
746
+ this.lastMarkedDayObject = aDayDiv;
747
+
748
+ if (parseInt(aDayDiv.getAttribute("isToday")) == 1){
749
+ this.setC(aDayDiv, "dayDownToday");
750
+ aDayDiv.style.background = "url(" + this.oConfiguration.imgPath + this.oConfiguration.cellColorScheme + "_dayDown.gif) left top no-repeat";
751
+ } else {
752
+ this.setC(aDayDiv, "dayDown");
753
+ aDayDiv.style.background = "url(" + this.oConfiguration.imgPath + this.oConfiguration.cellColorScheme + "_dayDown.gif) left top no-repeat";
754
+ }
755
+
756
+ } else {
757
+ currentColorScheme = this.getCurrentColorScheme();
758
+
759
+ if (parseInt(aDayDiv.getAttribute("isToday")) == 1){
760
+ if (disabledDayFlag){
761
+ this.setC(aDayDiv, "dayDisabled");
762
+ aDayDiv.style.background = "url(" + this.oConfiguration.imgPath + this.oConfiguration.cellColorScheme + "_dayNormal.gif) left top no-repeat";
763
+ } else {
764
+ this.setC(aDayDiv, "dayNormalToday");
765
+ aDayDiv.style.background = "url(" + this.oConfiguration.imgPath + this.oConfiguration.cellColorScheme + "_dayNormal.gif) left top no-repeat";
766
+ }
767
+ } else {
768
+ if (disabledDayFlag){
769
+ this.setC(aDayDiv, "dayDisabled");
770
+ aDayDiv.style.background = "url(" + this.oConfiguration.imgPath + this.oConfiguration.cellColorScheme + "_dayNormal.gif) left top no-repeat";
771
+ } else {
772
+ this.setC(aDayDiv, "dayNormal");
773
+ aDayDiv.style.background = "url(" + this.oConfiguration.imgPath + this.oConfiguration.cellColorScheme + "_dayNormal.gif) left top no-repeat";
774
+ }
775
+ }
776
+ }
777
+
778
+ if (columnNumber == 7){
779
+ columnNumber = 1;
780
+ } else {
781
+ columnNumber++;
782
+ }
783
+ iStamp += 86400000;
784
+ oDay.setTime(iStamp);
785
+ }
786
+
787
+ this.lastPostedDay = null;
788
+
789
+ return aMainBox;
790
+ };
791
+
792
+ JsDatePick.prototype.unsetSelection = function(){
793
+ this.flag_aDayWasSelected = false;
794
+ this.selectedDayObject = {};
795
+ this.repopulateMainBox();
796
+ };
797
+
798
+ JsDatePick.prototype.setSelectedDay = function(dateObject){
799
+ this.flag_aDayWasSelected = true;
800
+
801
+ this.selectedDayObject.day = parseInt(dateObject.day,10);
802
+ this.selectedDayObject.month = parseInt(dateObject.month,10);
803
+ this.selectedDayObject.year = parseInt(dateObject.year);
804
+
805
+ this.currentMonth = dateObject.month;
806
+ this.currentYear = dateObject.year;
807
+
808
+ this.repopulateMainBox();
809
+ };
810
+
811
+ JsDatePick.prototype.isSelectedDay = function(aDate){
812
+ if (this.flag_aDayWasSelected){
813
+ if (parseInt(aDate) == this.selectedDayObject.day &&
814
+ this.currentMonth == this.selectedDayObject.month &&
815
+ this.currentYear == this.selectedDayObject.year){
816
+ return true;
817
+ } else {
818
+ return false;
819
+ }
820
+ }
821
+ return false;
822
+ };
823
+
824
+ JsDatePick.prototype.getSelectedDay = function(){
825
+ if (this.flag_aDayWasSelected){
826
+ return this.selectedDayObject;
827
+ } else {
828
+ return false;
829
+ }
830
+ };
831
+
832
+ JsDatePick.prototype.getSelectedDayFormatted = function(){
833
+ if (this.flag_aDayWasSelected){
834
+
835
+ var dateStr = this.oConfiguration.dateFormat;
836
+
837
+ dateStr = dateStr.replace("%d", this.selectedDayObject.day.toString().strpad());
838
+ dateStr = dateStr.replace("%j", this.selectedDayObject.day);
839
+
840
+ dateStr = dateStr.replace("%m", this.selectedDayObject.month.toString().strpad());
841
+ dateStr = dateStr.replace("%M", g_l["MONTHS"][this.selectedDayObject.month-1].substr(0,3).toUpperCase());
842
+ dateStr = dateStr.replace("%n", this.selectedDayObject.month);
843
+ dateStr = dateStr.replace("%F", g_l["MONTHS"][this.selectedDayObject.month-1]);
844
+
845
+ dateStr = dateStr.replace("%Y", this.selectedDayObject.year);
846
+ dateStr = dateStr.replace("%y", this.selectedDayObject.year.toString().substr(2,2));
847
+
848
+ return dateStr;
849
+ } else {
850
+ return false;
851
+ }
852
+ };
853
+
854
+ JsDatePick.prototype.setDaySelection = function(anElement){
855
+ var currentColorScheme = this.getCurrentColorScheme();
856
+
857
+ if (this.flag_DayMarkedBeforeRepopulation){
858
+ /* Un mark last selected day */
859
+ jQuery(this.lastMarkedDayObject).attr("isSelected",0);
860
+
861
+ if (parseInt(this.lastMarkedDayObject.getAttribute("isToday")) == 1){
862
+ this.setC(this.lastMarkedDayObject, "dayNormalToday");
863
+ this.lastMarkedDayObject.style.background = "url(" + this.oConfiguration.imgPath + currentColorScheme + "_dayNormal.gif) left top no-repeat";
864
+ } else {
865
+ this.setC(this.lastMarkedDayObject, "dayNormal");
866
+ this.lastMarkedDayObject.style.background = "url(" + this.oConfiguration.imgPath + currentColorScheme + "_dayNormal.gif) left top no-repeat";
867
+ }
868
+ }
869
+
870
+ this.flag_aDayWasSelected = true;
871
+ this.selectedDayObject.year = this.currentYear;
872
+ this.selectedDayObject.month = this.currentMonth;
873
+ this.selectedDayObject.day = parseInt(anElement.innerHTML);
874
+
875
+ this.flag_DayMarkedBeforeRepopulation = true;
876
+ this.lastMarkedDayObject = anElement;
877
+
878
+ jQuery(anElement).attr("isSelected",1);
879
+
880
+ if (parseInt(anElement.getAttribute("isToday")) == 1){
881
+ this.setC(anElement, "dayDownToday");
882
+ anElement.style.background = "url(" + this.oConfiguration.imgPath + currentColorScheme + "_dayDown.gif) left top no-repeat";
883
+ } else {
884
+ this.setC(anElement, "dayDown");
885
+ anElement.style.background = "url(" + this.oConfiguration.imgPath + currentColorScheme + "_dayDown.gif) left top no-repeat";
886
+ }
887
+ };
888
+
889
+ JsDatePick.prototype.isToday = function(aDateObject){
890
+ var cmpMonth = this.oCurrentDay.month-1;
891
+ if (aDateObject.getDate() == this.oCurrentDay.day &&
892
+ aDateObject.getMonth() == cmpMonth &&
893
+ aDateObject.getFullYear() == this.oCurrentDay.year){
894
+ return true;
895
+ }
896
+ return false;
897
+ };
898
+
899
+ JsDatePick.prototype.setControlBarText = function(aText){
900
+ var aTextNode = document.createTextNode(aText);
901
+ jQuery(this.controlsBarTextCell).empty();
902
+ this.controlsBarTextCell.appendChild(aTextNode);
903
+ };
904
+
905
+ JsDatePick.prototype.setTooltipText = function(aText){
906
+ jQuery(this.tooltip).empty();
907
+ var aTextNode = document.createTextNode(aText);
908
+ this.tooltip.appendChild(aTextNode);
909
+ };
910
+
911
+ JsDatePick.prototype.moveForwardOneYear = function(){
912
+ var desiredYear = this.currentYear + 1;
913
+ if (desiredYear < parseInt(this.oConfiguration.yearsRange[1])){
914
+ this.currentYear++;
915
+ this.repopulateMainBox();
916
+ return true;
917
+ } else {
918
+ return false;
919
+ }
920
+ };
921
+
922
+ JsDatePick.prototype.moveBackOneYear = function(){
923
+ var desiredYear = this.currentYear - 1;
924
+
925
+ if (desiredYear > parseInt(this.oConfiguration.yearsRange[0])){
926
+ this.currentYear--;
927
+ this.repopulateMainBox();
928
+ return true;
929
+ } else {
930
+ return false;
931
+ }
932
+ };
933
+
934
+ JsDatePick.prototype.moveForwardOneMonth = function(){
935
+
936
+ if (this.currentMonth < 12){
937
+ this.currentMonth++;
938
+ } else {
939
+ if (this.moveForwardOneYear()){
940
+ this.currentMonth = 1;
941
+ } else {
942
+ this.currentMonth = 12;
943
+ }
944
+ }
945
+
946
+ this.repopulateMainBox();
947
+ };
948
+
949
+ JsDatePick.prototype.moveBackOneMonth = function(){
950
+
951
+ if (this.currentMonth > 1){
952
+ this.currentMonth--;
953
+ } else {
954
+ if (this.moveBackOneYear()){
955
+ this.currentMonth = 12;
956
+ } else {
957
+ this.currentMonth = 1;
958
+ }
959
+ }
960
+
961
+ this.repopulateMainBox();
962
+ };
963
+
964
+ JsDatePick.prototype.getCurrentColorScheme = function(){
965
+ return this.oConfiguration.cellColorScheme;
966
+ };
967
+
968
+ JsDatePick.prototype.getDOMControlBar = function(){
969
+ var d = document, controlsBar,monthForwardButton,monthBackwardButton,yearForwardButton,yearBackwardButton,controlsBarText;
970
+
971
+ controlsBar = d.createElement("div");
972
+ monthForwardButton = d.createElement("div");
973
+ monthBackwardButton = d.createElement("div");
974
+ yearForwardButton = d.createElement("div");
975
+ yearBackwardButton = d.createElement("div");
976
+ controlsBarText = d.createElement("div");
977
+
978
+ this.setC(controlsBar, "controlsBar");
979
+ this.setC(monthForwardButton, "monthForwardButton");
980
+ this.setC(monthBackwardButton, "monthBackwardButton");
981
+ this.setC(yearForwardButton, "yearForwardButton");
982
+ this.setC(yearBackwardButton, "yearBackwardButton");
983
+ this.setC(controlsBarText, "controlsBarText");
984
+
985
+ jQuery(controlsBar).attr("globalNumber",this.globalNumber);
986
+ jQuery(monthForwardButton).attr("globalNumber",this.globalNumber);
987
+ jQuery(monthBackwardButton).attr("globalNumber",this.globalNumber);
988
+ jQuery(yearBackwardButton).attr("globalNumber",this.globalNumber);
989
+ jQuery(yearForwardButton).attr("globalNumber",this.globalNumber);
990
+
991
+ this.controlsBarTextCell = controlsBarText;
992
+
993
+ controlsBar.appendChild(monthForwardButton);
994
+ controlsBar.appendChild(monthBackwardButton);
995
+ controlsBar.appendChild(yearForwardButton);
996
+ controlsBar.appendChild(yearBackwardButton);
997
+ controlsBar.appendChild(controlsBarText);
998
+
999
+ monthForwardButton.onmouseover = function(){
1000
+ var gRef,parentElement;
1001
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1002
+ return;
1003
+ }
1004
+ parentElement = this.parentNode;
1005
+ while (parentElement.className != "controlsBar"){
1006
+ parentElement = parentElement.parentNode;
1007
+ }
1008
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1009
+ gRef.setTooltipText(g_l["MONTH_FWD"]);
1010
+ gRef.setC(this, "monthForwardButtonOver");
1011
+ };
1012
+
1013
+ monthForwardButton.onmouseout = function(){
1014
+ var parentElement,gRef;
1015
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1016
+ return;
1017
+ }
1018
+ parentElement = this.parentNode;
1019
+ while (parentElement.className != "controlsBar"){
1020
+ parentElement = parentElement.parentNode;
1021
+ }
1022
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1023
+ gRef.setTooltipText('');
1024
+ gRef.setC(this, "monthForwardButton");
1025
+ };
1026
+
1027
+ monthForwardButton.onmousedown = function(){
1028
+ var gRef,parentElement;
1029
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1030
+ return;
1031
+ }
1032
+ parentElement = this.parentNode;
1033
+ while (parentElement.className != "controlsBar"){
1034
+ parentElement = parentElement.parentNode;
1035
+ }
1036
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1037
+ gRef.setTooltipText(g_l["MONTH_FWD"]);
1038
+ gRef.setC(this, "monthForwardButtonDown");
1039
+ };
1040
+
1041
+ monthForwardButton.onmouseup = function(){
1042
+ var parentElement,gRef;
1043
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1044
+ return;
1045
+ }
1046
+ parentElement = this.parentNode;
1047
+ while (parentElement.className != "controlsBar"){
1048
+ parentElement = parentElement.parentNode;
1049
+ }
1050
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1051
+ gRef.setTooltipText(g_l["MONTH_FWD"]);
1052
+ gRef.setC(this, "monthForwardButton");
1053
+ gRef.moveForwardOneMonth();
1054
+ };
1055
+
1056
+ /* Month backward button event handlers */
1057
+
1058
+ monthBackwardButton.onmouseover = function(){
1059
+ var parentElement,gRef;
1060
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1061
+ return;
1062
+ }
1063
+ parentElement = this.parentNode;
1064
+ while (parentElement.className != "controlsBar"){
1065
+ parentElement = parentElement.parentNode;
1066
+ }
1067
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1068
+ gRef.setTooltipText(g_l["MONTH_BCK"]);
1069
+ gRef.setC(this, "monthBackwardButtonOver");
1070
+ };
1071
+
1072
+ monthBackwardButton.onmouseout = function(){
1073
+ var parentElement,gRef;
1074
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1075
+ return;
1076
+ }
1077
+ parentElement = this.parentNode;
1078
+ while (parentElement.className != "controlsBar"){
1079
+ parentElement = parentElement.parentNode;
1080
+ }
1081
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1082
+ gRef.setTooltipText('');
1083
+ gRef.setC(this, "monthBackwardButton");
1084
+ };
1085
+
1086
+ monthBackwardButton.onmousedown = function(){
1087
+ var parentElement,gRef;
1088
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1089
+ return;
1090
+ }
1091
+ parentElement = this.parentNode;
1092
+ while (parentElement.className != "controlsBar"){
1093
+ parentElement = parentElement.parentNode;
1094
+ }
1095
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1096
+ gRef.setTooltipText(g_l["MONTH_BCK"]);
1097
+ gRef.setC(this, "monthBackwardButtonDown");
1098
+ };
1099
+
1100
+ monthBackwardButton.onmouseup = function(){
1101
+ var parentElement,gRef;
1102
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1103
+ return;
1104
+ }
1105
+ parentElement = this.parentNode;
1106
+ while (parentElement.className != "controlsBar"){
1107
+ parentElement = parentElement.parentNode;
1108
+ }
1109
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1110
+ gRef.setTooltipText(g_l["MONTH_BCK"]);
1111
+ gRef.setC(this, "monthBackwardButton");
1112
+ gRef.moveBackOneMonth();
1113
+ };
1114
+
1115
+ /* Year forward button */
1116
+
1117
+ yearForwardButton.onmouseover = function(){
1118
+ var parentElement,gRef;
1119
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1120
+ return;
1121
+ }
1122
+ parentElement = this.parentNode;
1123
+ while (parentElement.className != "controlsBar"){
1124
+ parentElement = parentElement.parentNode;
1125
+ }
1126
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1127
+ gRef.setTooltipText(g_l["YEAR_FWD"]);
1128
+ gRef.setC(this, "yearForwardButtonOver");
1129
+ };
1130
+
1131
+ yearForwardButton.onmouseout = function(){
1132
+ var parentElement,gRef;
1133
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1134
+ return;
1135
+ }
1136
+ parentElement = this.parentNode;
1137
+ while (parentElement.className != "controlsBar"){
1138
+ parentElement = parentElement.parentNode;
1139
+ }
1140
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1141
+ gRef.setTooltipText('');
1142
+ gRef.setC(this, "yearForwardButton");
1143
+ };
1144
+
1145
+ yearForwardButton.onmousedown = function(){
1146
+ var parentElement,gRef;
1147
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1148
+ return;
1149
+ }
1150
+ parentElement = this.parentNode;
1151
+ while (parentElement.className != "controlsBar"){
1152
+ parentElement = parentElement.parentNode;
1153
+ }
1154
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1155
+ gRef.setTooltipText(g_l["YEAR_FWD"]);
1156
+ gRef.setC(this, "yearForwardButtonDown");
1157
+ };
1158
+
1159
+ yearForwardButton.onmouseup = function(){
1160
+ var parentElement,gRef;
1161
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1162
+ return;
1163
+ }
1164
+ parentElement = this.parentNode;
1165
+ while (parentElement.className != "controlsBar"){
1166
+ parentElement = parentElement.parentNode;
1167
+ }
1168
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1169
+ gRef.setTooltipText(g_l["YEAR_FWD"]);
1170
+ gRef.setC(this, "yearForwardButton");
1171
+ gRef.moveForwardOneYear();
1172
+ };
1173
+
1174
+ /* Year backward button */
1175
+
1176
+ yearBackwardButton.onmouseover = function(){
1177
+ var parentElement,gRef;
1178
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1179
+ return;
1180
+ }
1181
+ parentElement = this.parentNode;
1182
+ while (parentElement.className != "controlsBar"){
1183
+ parentElement = parentElement.parentNode;
1184
+ }
1185
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1186
+ gRef.setTooltipText(g_l["YEAR_BCK"]);
1187
+ gRef.setC(this, "yearBackwardButtonOver");
1188
+ };
1189
+
1190
+ yearBackwardButton.onmouseout = function(){
1191
+ var parentElement,gRef;
1192
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1193
+ return;
1194
+ }
1195
+ parentElement = this.parentNode;
1196
+ while (parentElement.className != "controlsBar"){
1197
+ parentElement = parentElement.parentNode;
1198
+ }
1199
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1200
+ gRef.setTooltipText('');
1201
+ gRef.setC(this, "yearBackwardButton");
1202
+ };
1203
+
1204
+ yearBackwardButton.onmousedown = function(){
1205
+ var parentElement,gRef;
1206
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1207
+ return;
1208
+ }
1209
+ parentElement = this.parentNode;
1210
+ while (parentElement.className != "controlsBar"){
1211
+ parentElement = parentElement.parentNode;
1212
+ }
1213
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1214
+ gRef.setTooltipText(g_l["YEAR_BCK"]);
1215
+ gRef.setC(this, "yearBackwardButtonDown");
1216
+ };
1217
+
1218
+ yearBackwardButton.onmouseup = function(){
1219
+ var parentElement,gRef;
1220
+ if (parseInt(this.getAttribute("isJsDatePickDisabled")) == 1){
1221
+ return;
1222
+ }
1223
+ parentElement = this.parentNode;
1224
+ while (parentElement.className != "controlsBar"){
1225
+ parentElement = parentElement.parentNode;
1226
+ }
1227
+ gRef = JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));
1228
+ gRef.setTooltipText(g_l["YEAR_BCK"]);
1229
+ gRef.setC(this, "yearBackwardButton");
1230
+ gRef.moveBackOneYear();
1231
+ };
1232
+
1233
+ return controlsBar;
1234
+ };
js/jsDatePick.jquery.min.1.3.js ADDED
@@ -0,0 +1 @@
 
1
+ g_l=[];g_l["MONTHS"]=["Janaury","February","March","April","May","June","July","August","September","October","November","December"];g_l["DAYS_3"]=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];g_l["MONTH_FWD"]="Move a month forward";g_l["MONTH_BCK"]="Move a month backward";g_l["YEAR_FWD"]="Move a year forward";g_l["YEAR_BCK"]="Move a year backward";g_l["CLOSE"]="Close the calendar";g_l["ERROR_2"]=g_l["ERROR_1"]="Date object invalid!";g_l["ERROR_4"]=g_l["ERROR_3"]="Target invalid!";g_arrayOfUsedJsDatePickCalsGlobalNumbers=[];g_arrayOfUsedJsDatePickCals=[];g_currentDateObject={};g_currentDateObject.dateObject=new Date();g_currentDateObject.day=g_currentDateObject.dateObject.getDate();g_currentDateObject.month=g_currentDateObject.dateObject.getMonth()+1;g_currentDateObject.year=g_currentDateObject.dateObject.getFullYear();String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};String.prototype.ltrim=function(){return this.replace(/^\s+/,"");};String.prototype.rtrim=function(){return this.replace(/\s+$/,"");};String.prototype.strpad=function(){return(!isNaN(this)&&this.toString().length==1)?"0"+this:this;};JsDatePick=function(configurationObject){if(document.all){this.isie=true;this.iever=JsDatePick.getInternetExplorerVersion();}else{this.isie=false;}this.oConfiguration={};this.oCurrentDay=g_currentDateObject;this.monthsTextualRepresentation=g_l["MONTHS"];this.lastPostedDay=null;this.initialZIndex=2;this.globalNumber=this.getUnUsedGlobalNumber();g_arrayOfUsedJsDatePickCals[this.globalNumber]=this;this.setConfiguration(configurationObject);this.makeCalendar();};JsDatePick.getCalInstanceById=function(id){return g_arrayOfUsedJsDatePickCals[parseInt(id,10)];};JsDatePick.getInternetExplorerVersion=function(){var rv=-1,ua,re;if(navigator.appName=='Microsoft Internet Explorer'){ua=navigator.userAgent;re=new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");if(re.exec(ua)!=null){rv=parseFloat(RegExp.$1);}return rv;}};JsDatePick.prototype.setC=function(obj,aClassName){if(this.isie&&this.iever>7){jQuery(obj).attr("class",aClassName);}else{obj.className=aClassName;}};JsDatePick.prototype.getUnUsedGlobalNumber=function(){var aNum=Math.floor(Math.random()*1000);while(!this.isUnique_GlobalNumber(aNum)){aNum=Math.floor(Math.random()*1000);}return aNum;};JsDatePick.prototype.isUnique_GlobalNumber=function(aNum){var i;for(i=0;i<g_arrayOfUsedJsDatePickCalsGlobalNumbers.length;i++){if(g_arrayOfUsedJsDatePickCalsGlobalNumbers[i]==aNum){return false;}}return true;};JsDatePick.prototype.addOnSelectedDelegate=function(aDelegatedFunction){if(typeof(aDelegatedFunction)=="function"){this.addonSelectedDelegate=aDelegatedFunction;}return false;};JsDatePick.prototype.setOnSelectedDelegate=function(aDelegatedFunction){if(typeof(aDelegatedFunction)=="function"){this.onSelectedDelegate=aDelegatedFunction;return true;}return false;};JsDatePick.prototype.executeOnSelectedDelegateIfExists=function(){if(typeof(this.onSelectedDelegate)=="function"){this.onSelectedDelegate();}if(typeof(this.addonSelectedDelegate)=="function"){this.addonSelectedDelegate();}};JsDatePick.prototype.setRepopulationDelegate=function(aDelegatedFunction){if(typeof(aDelegatedFunction)=="function"){this.repopulationDelegate=aDelegatedFunction;return true;}return false;};JsDatePick.prototype.setConfiguration=function(aConf){this.oConfiguration.isStripped=(aConf["isStripped"]!=null)?aConf["isStripped"]:false;this.oConfiguration.useMode=(aConf["useMode"]!=null)?aConf["useMode"]:1;this.oConfiguration.selectedDate=(aConf["selectedDate"]!=null)?aConf["selectedDate"]:null;this.oConfiguration.target=(aConf["target"]!=null)?aConf["target"]:null;this.oConfiguration.yearsRange=(aConf["yearsRange"]!=null)?aConf["yearsRange"]:[1971,2100];this.oConfiguration.limitToToday=(aConf["limitToToday"]!=null)?aConf["limitToToday"]:false;this.oConfiguration.field=(aConf["field"]!=null)?aConf["field"]:false;this.oConfiguration.cellColorScheme=(aConf["cellColorScheme"]!=null)?aConf["cellColorScheme"]:"ocean_blue";this.oConfiguration.dateFormat=(aConf["dateFormat"]!=null)?aConf["dateFormat"]:"%m-%d-%Y";this.oConfiguration.imgPath=(aConf["imgPath"]!=null)?aConf["imgPath"]:"img/";this.oConfiguration.weekStartDay=(aConf["weekStartDay"]!=null)?aConf["weekStartDay"]:1;this.oConfiguration.directionality=(aConf["directionality"]!=null)?aConf["directionality"]:"ltr";this.selectedDayObject={};this.flag_DayMarkedBeforeRepopulation=false;this.flag_aDayWasSelected=false;this.lastMarkedDayObject=null;if(!this.oConfiguration.selectedDate){this.currentYear=this.oCurrentDay.year;this.currentMonth=this.oCurrentDay.month;this.currentDay=this.oCurrentDay.day;}};JsDatePick.prototype.resizeCalendar=function(){this.leftWallStrechedElement.style.height="0px";this.rightWallStrechedElement.style.height="0px";var totalHeight=this.JsDatePickBox.offsetHeight,newStrechedHeight=totalHeight-16;if(newStrechedHeight<0){return;}this.leftWallStrechedElement.style.height=newStrechedHeight+"px";this.rightWallStrechedElement.style.height=newStrechedHeight+"px";return true;};JsDatePick.prototype.closeCalendar=function(){this.JsDatePickBox.style.display="none";document.onclick=function(){};};JsDatePick.prototype.populateFieldWithSelectedDate=function(){jQuery("#"+this.oConfiguration.target).val(this.getSelectedDayFormatted());if(this.lastPickedDateObject){delete(this.lastPickedDateObject);}this.lastPickedDateObject={};this.lastPickedDateObject.day=this.selectedDayObject.day;this.lastPickedDateObject.month=this.selectedDayObject.month;this.lastPickedDateObject.year=this.selectedDayObject.year;this.closeCalendar();};JsDatePick.prototype.makeCalendar=function(){var d=document,JsDatePickBox,clearfix,closeButton,leftWall,rightWall,topWall,bottomWall,topCorner,bottomCorner,wall,inputElement,aSpan,aFunc;JsDatePickBox=d.createElement("div");clearfix=d.createElement("div");closeButton=d.createElement("div");this.setC(JsDatePickBox,"JsDatePickBox");this.setC(clearfix,"clearfix");this.setC(closeButton,"jsDatePickCloseButton");closeButton.setAttribute("globalNumber",this.globalNumber);closeButton.onmouseover=function(){var gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["CLOSE"]);gRef.setC(this,"jsDatePickCloseButtonOver");};closeButton.onmouseout=function(){var gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText('');gRef.setC(this,"jsDatePickCloseButton");};closeButton.onmousedown=function(){var gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["CLOSE"]);gRef.setC(this,"jsDatePickCloseButtonDown");};closeButton.onmouseup=function(){var gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText('');gRef.setC(this,"jsDatePickCloseButton");gRef.closeCalendar();};this.JsDatePickBox=JsDatePickBox;leftWall=d.createElement("div");rightWall=d.createElement("div");topWall=d.createElement("div");bottomWall=d.createElement("div");this.setC(topWall,"topWall");this.setC(bottomWall,"bottomWall");if(this.isie&&this.iever==6){bottomWall.style.bottom="-2px";}topCorner=d.createElement("div");bottomCorner=d.createElement("div");wall=d.createElement("div");this.setC(topCorner,"leftTopCorner");this.setC(bottomCorner,"leftBottomCorner");this.setC(wall,"leftWall");this.leftWallStrechedElement=wall;this.leftWall=leftWall;this.rightWall=rightWall;leftWall.appendChild(topCorner);leftWall.appendChild(wall);leftWall.appendChild(bottomCorner);topCorner=d.createElement("div");bottomCorner=d.createElement("div");wall=d.createElement("div");this.setC(topCorner,"rightTopCorner");this.setC(bottomCorner,"rightBottomCorner");this.setC(wall,"rightWall");this.rightWallStrechedElement=wall;rightWall.appendChild(topCorner);rightWall.appendChild(wall);rightWall.appendChild(bottomCorner);if(this.oConfiguration.isStripped){this.setC(leftWall,"hiddenBoxLeftWall");this.setC(rightWall,"hiddenBoxRightWall");}else{this.setC(leftWall,"boxLeftWall");this.setC(rightWall,"boxRightWall");}JsDatePickBox.appendChild(leftWall);JsDatePickBox.appendChild(this.getDOMCalendarStripped());JsDatePickBox.appendChild(rightWall);JsDatePickBox.appendChild(clearfix);if(!this.oConfiguration.isStripped){JsDatePickBox.appendChild(closeButton);JsDatePickBox.appendChild(topWall);JsDatePickBox.appendChild(bottomWall);}if(this.oConfiguration.useMode==2){if(this.oConfiguration.target!=false){if(typeof(jQuery("#"+this.oConfiguration.target))!=null){inputElement=document.getElementById(this.oConfiguration.target);aSpan=document.createElement("span");inputElement.parentNode.replaceChild(aSpan,inputElement);aSpan.appendChild(inputElement);inputElement.setAttribute("globalNumber",this.globalNumber);inputElement.onclick=function(){JsDatePick.getCalInstanceById(this.getAttribute("globalNumber")).showCalendar();};inputElement.onfocus=function(){JsDatePick.getCalInstanceById(this.getAttribute("globalNumber")).showCalendar();};aSpan.style.position="relative";this.initialZIndex++;JsDatePickBox.style.zIndex=this.initialZIndex.toString();JsDatePickBox.style.position="absolute";JsDatePickBox.style.top="18px";JsDatePickBox.style.left="0px";JsDatePickBox.style.display="none";aSpan.appendChild(JsDatePickBox);aFunc=new Function("g_arrayOfUsedJsDatePickCals["+this.globalNumber+"].populateFieldWithSelectedDate();");this.setOnSelectedDelegate(aFunc);}else{alert(g_l["ERROR_3"]);}}}else{if(this.oConfiguration.target!=null){jQuery("#"+this.oConfiguration.target).append(JsDatePickBox);jQuery("#"+this.oConfiguration.target).css("position","relative");JsDatePickBox.style.position="absolute";JsDatePickBox.style.top="0px";JsDatePickBox.style.left="0px";this.resizeCalendar();this.executePopulationDelegateIfExists();}else{alert(g_l["ERROR_4"]);}}};JsDatePick.prototype.determineFieldDate=function(){var aField,divider,dateMold,array,array2,i,dI,yI,mI,tflag=false,fflag=false;if(this.lastPickedDateObject){this.setSelectedDay({year:parseInt(this.lastPickedDateObject.year),month:parseInt(this.lastPickedDateObject.month,10),day:parseInt(this.lastPickedDateObject.day,10)});}else{aField=jQuery("#"+this.oConfiguration.target);if(jQuery.trim(aField.val()).length==0){this.unsetSelection();if(typeof(this.oConfiguration.selectedDate)=="object"&&this.oConfiguration.selectedDate){this.setSelectedDay({year:parseInt(this.oConfiguration.selectedDate.year),month:parseInt(this.oConfiguration.selectedDate.month,10),day:parseInt(this.oConfiguration.selectedDate.day,10)});}}else{if(jQuery.trim(aField.val()).length>5){divider=this.senseDivider(this.oConfiguration.dateFormat);dateMold=this.oConfiguration.dateFormat;array=jQuery.trim(aField.val()).split(divider);array2=dateMold.trim().split(divider);i=dI=yI=mI=0;for(i=0;i<array2.length;i++){switch(array2[i]){case"%d":case"%j":dI=i;break;case"%m":case"%n":mI=i;break;case"%M":mI=i;tflag=true;break;case"%F":mI=i;fflag=true;break;case"%Y":case"%y":yI=i;}}if(tflag){for(i=0;i<12;i++){if(g_l["MONTHS"][i].substr(0,3).toUpperCase()==array[mI].toUpperCase()){mI=i+1;break;}}}else if(fflag){for(i=0;i<12;i++){if(g_l["MONTHS"][i].toLowerCase()==array[mI].toLowerCase()){mI=i+1;break;}}}else{mI=parseInt(array[mI],10);}this.setSelectedDay({year:parseInt(array[yI],10),month:mI,day:parseInt(array[dI],10)});}else{this.unsetSelection();return;}}}};JsDatePick.prototype.senseDivider=function(aStr){return aStr.replace("%d","").replace("%j","").replace("%m","").replace("%M","").replace("%n","").replace("%F","").replace("%Y","").replace("%y","").substr(0,1);};JsDatePick.prototype.showCalendar=function(){if(this.JsDatePickBox.style.display=="none"){this.determineFieldDate();this.JsDatePickBox.style.display="block";this.resizeCalendar();this.executePopulationDelegateIfExists();jQuery(this.JsDatePickBox).mouseover(function(){document.onclick=function(){};});jQuery(this.JsDatePickBox).attr("globalCalNumber",this.globalNumber);jQuery(this.JsDatePickBox).mouseout(function(){document.onclick=new Function("g_arrayOfUsedJsDatePickCals["+this.getAttribute("globalCalNumber")+"].closeCalendar();");});}else{return;}};JsDatePick.prototype.isAvailable=function(y,m,d){if(y>this.oCurrentDay.year){return false;}if(m>this.oCurrentDay.month&&y==this.oCurrentDay.year){return false;}if(d>this.oCurrentDay.day&&m==this.oCurrentDay.month&&y==this.oCurrentDay.year){return false;}return true;};JsDatePick.prototype.getDOMCalendarStripped=function(){var d=document,boxMain,boxMainInner,clearfix,boxMainCellsContainer,tooltip,weekDaysRow,clearfix2;boxMain=d.createElement("div");if(this.oConfiguration.isStripped){this.setC(boxMain,"boxMainStripped");}else{this.setC(boxMain,"boxMain");}this.boxMain=boxMain;boxMainInner=d.createElement("div");clearfix=d.createElement("div");boxMainCellsContainer=d.createElement("div");tooltip=d.createElement("div");weekDaysRow=d.createElement("div");clearfix2=d.createElement("div");this.setC(clearfix,"clearfix");this.setC(clearfix2,"clearfix");this.setC(boxMainInner,"boxMainInner");this.setC(boxMainCellsContainer,"boxMainCellsContainer");this.setC(tooltip,"tooltip");this.setC(weekDaysRow,"weekDaysRow");this.tooltip=tooltip;boxMain.appendChild(boxMainInner);this.controlsBar=this.getDOMControlBar();this.makeDOMWeekDays(weekDaysRow);boxMainInner.appendChild(this.controlsBar);boxMainInner.appendChild(clearfix);boxMainInner.appendChild(tooltip);boxMainInner.appendChild(weekDaysRow);boxMainInner.appendChild(boxMainCellsContainer);boxMainInner.appendChild(clearfix2);this.boxMainCellsContainer=boxMainCellsContainer;this.populateMainBox(boxMainCellsContainer);return boxMain;};JsDatePick.prototype.makeDOMWeekDays=function(aWeekDaysRow){var i=0,d=document,weekDaysArray=g_l["DAYS_3"],textNode,weekDay;for(i=this.oConfiguration.weekStartDay;i<7;i++){weekDay=d.createElement("div");textNode=d.createTextNode(weekDaysArray[i]);this.setC(weekDay,"weekDay");weekDay.appendChild(textNode);aWeekDaysRow.appendChild(weekDay);}if(this.oConfiguration.weekStartDay>0){for(i=0;i<this.oConfiguration.weekStartDay;i++){weekDay=d.createElement("div");textNode=d.createTextNode(weekDaysArray[i]);this.setC(weekDay,"weekDay");weekDay.appendChild(textNode);aWeekDaysRow.appendChild(weekDay);}}weekDay.style.marginRight="0px";};JsDatePick.prototype.repopulateMainBox=function(){while(this.boxMainCellsContainer.firstChild){this.boxMainCellsContainer.removeChild(this.boxMainCellsContainer.firstChild);}this.populateMainBox(this.boxMainCellsContainer);this.resizeCalendar();this.executePopulationDelegateIfExists();};JsDatePick.prototype.executePopulationDelegateIfExists=function(){if(typeof(this.repopulationDelegate)=="function"){this.repopulationDelegate();}};JsDatePick.prototype.populateMainBox=function(aMainBox){var d=document,aDayDiv,aTextNode,columnNumber=1,disabledDayFlag=false,cmpMonth=this.currentMonth-1,oDay,iStamp,skipDays,i,currentColorScheme;oDay=new Date(this.currentYear,cmpMonth,1,1,0,0);iStamp=oDay.getTime();this.flag_DayMarkedBeforeRepopulation=false;this.setControlBarText(this.monthsTextualRepresentation[cmpMonth]+", "+this.currentYear);skipDays=parseInt(oDay.getDay())-this.oConfiguration.weekStartDay;if(skipDays<0){skipDays=skipDays+7;}i=0;for(i=0;i<skipDays;i++){aDayDiv=d.createElement("div");this.setC(aDayDiv,"skipDay");aMainBox.appendChild(aDayDiv);if(columnNumber==7){columnNumber=1;}else{columnNumber++;}}while(oDay.getMonth()==cmpMonth){disabledDayFlag=false;aDayDiv=d.createElement("div");if(this.lastPostedDay){if(this.lastPostedDay==oDay.getDate()){aTextNode=parseInt(this.lastPostedDay,10)+1;}else{aTextNode=d.createTextNode(oDay.getDate());}}else{aTextNode=d.createTextNode(oDay.getDate());}aDayDiv.appendChild(aTextNode);aMainBox.appendChild(aDayDiv);aDayDiv.setAttribute("globalNumber",this.globalNumber);if(columnNumber==7){if(this.oConfiguration.directionality=="ltr"){aDayDiv.style.marginRight="0px";}else{aDayDiv.style.marginLeft="0px";}}if(this.isToday(oDay)){aDayDiv.setAttribute("isToday",1);}if(this.oConfiguration.limitToToday){if(!this.isAvailable(this.currentYear,this.currentMonth,parseInt(oDay.getDate()))){disabledDayFlag=true;aDayDiv.setAttribute("isJsDatePickDisabled",1);}}aDayDiv.onmouseover=function(){var gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber")),currentColorScheme;currentColorScheme=gRef.getCurrentColorScheme();if(parseInt(this.getAttribute("isSelected"))==1){return;}if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}if(parseInt(this.getAttribute("isToday"))==1){gRef.setC(this,"dayOverToday");this.style.background="url("+gRef.oConfiguration.imgPath+currentColorScheme+"_dayOver.gif) left top no-repeat";}else{gRef.setC(this,"dayOver");this.style.background="url("+gRef.oConfiguration.imgPath+currentColorScheme+"_dayOver.gif) left top no-repeat";}};aDayDiv.onmouseout=function(){var gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber")),currentColorScheme;currentColorScheme=gRef.getCurrentColorScheme();if(parseInt(this.getAttribute("isSelected"))==1){return;}if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}if(parseInt(this.getAttribute("isToday"))==1){gRef.setC(this,"dayNormalToday");this.style.background="url("+gRef.oConfiguration.imgPath+currentColorScheme+"_dayNormal.gif) left top no-repeat";}else{gRef.setC(this,"dayNormal");this.style.background="url("+gRef.oConfiguration.imgPath+currentColorScheme+"_dayNormal.gif) left top no-repeat";}};aDayDiv.onmousedown=function(){var gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber")),currentColorScheme;currentColorScheme=gRef.getCurrentColorScheme();if(parseInt(this.getAttribute("isSelected"))==1){return;}if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}if(parseInt(this.getAttribute("isToday"))==1){gRef.setC(this,"dayDownToday");this.style.background="url("+gRef.oConfiguration.imgPath+currentColorScheme+"_dayDown.gif) left top no-repeat";}else{gRef.setC(this,"dayDown");this.style.background="url("+gRef.oConfiguration.imgPath+currentColorScheme+"_dayDown.gif) left top no-repeat";}};aDayDiv.onmouseup=function(){var gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber")),currentColorScheme;currentColorScheme=gRef.getCurrentColorScheme();if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}if(parseInt(this.getAttribute("isToday"))==1){gRef.setC(this,"dayNormalToday");this.style.background="url("+gRef.oConfiguration.imgPath+currentColorScheme+"_dayNormal.gif) left top no-repeat";}else{gRef.setC(this,"dayNormal");this.style.background="url("+gRef.oConfiguration.imgPath+currentColorScheme+"_dayNormal.gif) left top no-repeat";}gRef.setDaySelection(this);gRef.executeOnSelectedDelegateIfExists();};if(this.isSelectedDay(oDay.getDate())){aDayDiv.setAttribute("isSelected",1);this.flag_DayMarkedBeforeRepopulation=true;this.lastMarkedDayObject=aDayDiv;if(parseInt(aDayDiv.getAttribute("isToday"))==1){this.setC(aDayDiv,"dayDownToday");aDayDiv.style.background="url("+this.oConfiguration.imgPath+this.oConfiguration.cellColorScheme+"_dayDown.gif) left top no-repeat";}else{this.setC(aDayDiv,"dayDown");aDayDiv.style.background="url("+this.oConfiguration.imgPath+this.oConfiguration.cellColorScheme+"_dayDown.gif) left top no-repeat";}}else{currentColorScheme=this.getCurrentColorScheme();if(parseInt(aDayDiv.getAttribute("isToday"))==1){if(disabledDayFlag){this.setC(aDayDiv,"dayDisabled");aDayDiv.style.background="url("+this.oConfiguration.imgPath+this.oConfiguration.cellColorScheme+"_dayNormal.gif) left top no-repeat";}else{this.setC(aDayDiv,"dayNormalToday");aDayDiv.style.background="url("+this.oConfiguration.imgPath+this.oConfiguration.cellColorScheme+"_dayNormal.gif) left top no-repeat";}}else{if(disabledDayFlag){this.setC(aDayDiv,"dayDisabled");aDayDiv.style.background="url("+this.oConfiguration.imgPath+this.oConfiguration.cellColorScheme+"_dayNormal.gif) left top no-repeat";}else{this.setC(aDayDiv,"dayNormal");aDayDiv.style.background="url("+this.oConfiguration.imgPath+this.oConfiguration.cellColorScheme+"_dayNormal.gif) left top no-repeat";}}}if(columnNumber==7){columnNumber=1;}else{columnNumber++;}iStamp+=86400000;oDay.setTime(iStamp);}this.lastPostedDay=null;return aMainBox;};JsDatePick.prototype.unsetSelection=function(){this.flag_aDayWasSelected=false;this.selectedDayObject={};this.repopulateMainBox();};JsDatePick.prototype.setSelectedDay=function(dateObject){this.flag_aDayWasSelected=true;this.selectedDayObject.day=parseInt(dateObject.day,10);this.selectedDayObject.month=parseInt(dateObject.month,10);this.selectedDayObject.year=parseInt(dateObject.year);this.currentMonth=dateObject.month;this.currentYear=dateObject.year;this.repopulateMainBox();};JsDatePick.prototype.isSelectedDay=function(aDate){if(this.flag_aDayWasSelected){if(parseInt(aDate)==this.selectedDayObject.day&&this.currentMonth==this.selectedDayObject.month&&this.currentYear==this.selectedDayObject.year){return true;}else{return false;}}return false;};JsDatePick.prototype.getSelectedDay=function(){if(this.flag_aDayWasSelected){return this.selectedDayObject;}else{return false;}};JsDatePick.prototype.getSelectedDayFormatted=function(){if(this.flag_aDayWasSelected){var dateStr=this.oConfiguration.dateFormat;dateStr=dateStr.replace("%d",this.selectedDayObject.day.toString().strpad());dateStr=dateStr.replace("%j",this.selectedDayObject.day);dateStr=dateStr.replace("%m",this.selectedDayObject.month.toString().strpad());dateStr=dateStr.replace("%M",g_l["MONTHS"][this.selectedDayObject.month-1].substr(0,3).toUpperCase());dateStr=dateStr.replace("%n",this.selectedDayObject.month);dateStr=dateStr.replace("%F",g_l["MONTHS"][this.selectedDayObject.month-1]);dateStr=dateStr.replace("%Y",this.selectedDayObject.year);dateStr=dateStr.replace("%y",this.selectedDayObject.year.toString().substr(2,2));return dateStr;}else{return false;}};JsDatePick.prototype.setDaySelection=function(anElement){var currentColorScheme=this.getCurrentColorScheme();if(this.flag_DayMarkedBeforeRepopulation){jQuery(this.lastMarkedDayObject).attr("isSelected",0);if(parseInt(this.lastMarkedDayObject.getAttribute("isToday"))==1){this.setC(this.lastMarkedDayObject,"dayNormalToday");this.lastMarkedDayObject.style.background="url("+this.oConfiguration.imgPath+currentColorScheme+"_dayNormal.gif) left top no-repeat";}else{this.setC(this.lastMarkedDayObject,"dayNormal");this.lastMarkedDayObject.style.background="url("+this.oConfiguration.imgPath+currentColorScheme+"_dayNormal.gif) left top no-repeat";}}this.flag_aDayWasSelected=true;this.selectedDayObject.year=this.currentYear;this.selectedDayObject.month=this.currentMonth;this.selectedDayObject.day=parseInt(anElement.innerHTML);this.flag_DayMarkedBeforeRepopulation=true;this.lastMarkedDayObject=anElement;jQuery(anElement).attr("isSelected",1);if(parseInt(anElement.getAttribute("isToday"))==1){this.setC(anElement,"dayDownToday");anElement.style.background="url("+this.oConfiguration.imgPath+currentColorScheme+"_dayDown.gif) left top no-repeat";}else{this.setC(anElement,"dayDown");anElement.style.background="url("+this.oConfiguration.imgPath+currentColorScheme+"_dayDown.gif) left top no-repeat";}};JsDatePick.prototype.isToday=function(aDateObject){var cmpMonth=this.oCurrentDay.month-1;if(aDateObject.getDate()==this.oCurrentDay.day&&aDateObject.getMonth()==cmpMonth&&aDateObject.getFullYear()==this.oCurrentDay.year){return true;}return false;};JsDatePick.prototype.setControlBarText=function(aText){var aTextNode=document.createTextNode(aText);jQuery(this.controlsBarTextCell).empty();this.controlsBarTextCell.appendChild(aTextNode);};JsDatePick.prototype.setTooltipText=function(aText){jQuery(this.tooltip).empty();var aTextNode=document.createTextNode(aText);this.tooltip.appendChild(aTextNode);};JsDatePick.prototype.moveForwardOneYear=function(){var desiredYear=this.currentYear+1;if(desiredYear<parseInt(this.oConfiguration.yearsRange[1])){this.currentYear++;this.repopulateMainBox();return true;}else{return false;}};JsDatePick.prototype.moveBackOneYear=function(){var desiredYear=this.currentYear-1;if(desiredYear>parseInt(this.oConfiguration.yearsRange[0])){this.currentYear--;this.repopulateMainBox();return true;}else{return false;}};JsDatePick.prototype.moveForwardOneMonth=function(){if(this.currentMonth<12){this.currentMonth++;}else{if(this.moveForwardOneYear()){this.currentMonth=1;}else{this.currentMonth=12;}}this.repopulateMainBox();};JsDatePick.prototype.moveBackOneMonth=function(){if(this.currentMonth>1){this.currentMonth--;}else{if(this.moveBackOneYear()){this.currentMonth=12;}else{this.currentMonth=1;}}this.repopulateMainBox();};JsDatePick.prototype.getCurrentColorScheme=function(){return this.oConfiguration.cellColorScheme;};JsDatePick.prototype.getDOMControlBar=function(){var d=document,controlsBar,monthForwardButton,monthBackwardButton,yearForwardButton,yearBackwardButton,controlsBarText;controlsBar=d.createElement("div");monthForwardButton=d.createElement("div");monthBackwardButton=d.createElement("div");yearForwardButton=d.createElement("div");yearBackwardButton=d.createElement("div");controlsBarText=d.createElement("div");this.setC(controlsBar,"controlsBar");this.setC(monthForwardButton,"monthForwardButton");this.setC(monthBackwardButton,"monthBackwardButton");this.setC(yearForwardButton,"yearForwardButton");this.setC(yearBackwardButton,"yearBackwardButton");this.setC(controlsBarText,"controlsBarText");jQuery(controlsBar).attr("globalNumber",this.globalNumber);jQuery(monthForwardButton).attr("globalNumber",this.globalNumber);jQuery(monthBackwardButton).attr("globalNumber",this.globalNumber);jQuery(yearBackwardButton).attr("globalNumber",this.globalNumber);jQuery(yearForwardButton).attr("globalNumber",this.globalNumber);this.controlsBarTextCell=controlsBarText;controlsBar.appendChild(monthForwardButton);controlsBar.appendChild(monthBackwardButton);controlsBar.appendChild(yearForwardButton);controlsBar.appendChild(yearBackwardButton);controlsBar.appendChild(controlsBarText);monthForwardButton.onmouseover=function(){var gRef,parentElement;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["MONTH_FWD"]);gRef.setC(this,"monthForwardButtonOver");};monthForwardButton.onmouseout=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText('');gRef.setC(this,"monthForwardButton");};monthForwardButton.onmousedown=function(){var gRef,parentElement;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["MONTH_FWD"]);gRef.setC(this,"monthForwardButtonDown");};monthForwardButton.onmouseup=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["MONTH_FWD"]);gRef.setC(this,"monthForwardButton");gRef.moveForwardOneMonth();};monthBackwardButton.onmouseover=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["MONTH_BCK"]);gRef.setC(this,"monthBackwardButtonOver");};monthBackwardButton.onmouseout=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText('');gRef.setC(this,"monthBackwardButton");};monthBackwardButton.onmousedown=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["MONTH_BCK"]);gRef.setC(this,"monthBackwardButtonDown");};monthBackwardButton.onmouseup=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["MONTH_BCK"]);gRef.setC(this,"monthBackwardButton");gRef.moveBackOneMonth();};yearForwardButton.onmouseover=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["YEAR_FWD"]);gRef.setC(this,"yearForwardButtonOver");};yearForwardButton.onmouseout=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText('');gRef.setC(this,"yearForwardButton");};yearForwardButton.onmousedown=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["YEAR_FWD"]);gRef.setC(this,"yearForwardButtonDown");};yearForwardButton.onmouseup=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["YEAR_FWD"]);gRef.setC(this,"yearForwardButton");gRef.moveForwardOneYear();};yearBackwardButton.onmouseover=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["YEAR_BCK"]);gRef.setC(this,"yearBackwardButtonOver");};yearBackwardButton.onmouseout=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText('');gRef.setC(this,"yearBackwardButton");};yearBackwardButton.onmousedown=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["YEAR_BCK"]);gRef.setC(this,"yearBackwardButtonDown");};yearBackwardButton.onmouseup=function(){var parentElement,gRef;if(parseInt(this.getAttribute("isJsDatePickDisabled"))==1){return;}parentElement=this.parentNode;while(parentElement.className!="controlsBar"){parentElement=parentElement.parentNode;}gRef=JsDatePick.getCalInstanceById(this.getAttribute("globalNumber"));gRef.setTooltipText(g_l["YEAR_BCK"]);gRef.setC(this,"yearBackwardButton");gRef.moveBackOneYear();};return controlsBar;};
languages/contact-form-7-datepicker-ro_RO.mo ADDED
Binary file
languages/contact-form-7-datepicker-ro_RO.po ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: contact-form-7-datepicker\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-05-14 20:28+0200\n"
6
+ "PO-Revision-Date: 2011-05-14 20:33+0200\n"
7
+ "Last-Translator: Aurel Canciu <aurelcanciu@gmail.com>\n"
8
+ "Language-Team: \n"
9
+ "Language: \n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "Plural-Forms: nplurals=1; plural=0;\n"
16
+ "X-Poedit-Language: English\n"
17
+ "X-Poedit-SearchPath-0: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker\n"
18
+
19
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:93
20
+ msgid "Datepicker Settings"
21
+ msgstr "Setări Calendar"
22
+
23
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:155
24
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:223
25
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:249
26
+ msgid "true"
27
+ msgstr "adevărat"
28
+
29
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:155
30
+ msgid "false"
31
+ msgstr "fals"
32
+
33
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:157
34
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:275
35
+ msgid "Sunday"
36
+ msgstr "Duminică"
37
+
38
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:157
39
+ msgid "Monday"
40
+ msgstr "Luni"
41
+
42
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:158
43
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:300
44
+ msgid "Left to right"
45
+ msgstr "Stânga spre dreapta"
46
+
47
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:158
48
+ msgid "Right to left"
49
+ msgstr "Dreapta spre stânga"
50
+
51
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:163
52
+ msgid ""
53
+ "<p>This plugin implements a new <strong>[date]</strong> tag in <a href=\"http://wordpress.org/extend/plugins/contact-form-7/\">Contact Form 7</a> \n"
54
+ "\t\tthat adds a date field to a form. When clicking the field a calendar pops up enabling your site visitors to easily select any date.<br />\n"
55
+ "\t\tTo use it simply insert the <strong>[date your-field-name]</strong> or <strong>[date* your-requierd-field-name]</strong> if you want it to be mandatory,\n"
56
+ "\t\tin your Contact Form 7 edit section.</p>"
57
+ msgstr ""
58
+ "<p>Această extensie implementează o nouă etichetă <strong>[date]</strong> în <a href=\"http://wordpress.org/extend/plugins/contact-form-7/\">Contact Form 7</a> \n"
59
+ "\t\tcare adaugă un câmp dată formularului dumneavoastră. Când faceți click pe câmpul respectiv, apare un calendar care permite vizitatorilor site-ului să selecteze cu ușurință orice dată.<br />\n"
60
+ "\t\tPentru a-l folosi, introduceți eticheta <strong>[date numele-câmpului]</strong> sau <strong>[date* numele-câmpului-necesar]</strong> dacă doriți să fie obligatoriu,\n"
61
+ "\t\tîn zona de editare a Contact Form 7.</p>"
62
+
63
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:172
64
+ msgid "Color scheme"
65
+ msgstr "Schemă de culori"
66
+
67
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:196
68
+ msgid "Use Mode"
69
+ msgstr "Mod de utilizare"
70
+
71
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:211
72
+ msgid ""
73
+ "<p>1 – The calendar's HTML will be directly appended to the field supplied by target<br />\n"
74
+ "\t\t\t\t\t\t\t2 – The calendar will appear as a popup when the field with the id supplied in target is clicked.</p>"
75
+ msgstr ""
76
+ "<p>1 – Codul HTML al calendarului va fi atașat la câmpul text specificat de țintă<br />\n"
77
+ "\t\t\t\t\t\t\t2 – Calendarul va apărea ca și un popup când câmpul cu id-ul specificat ca target este activat.</p>"
78
+
79
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:218
80
+ msgid "Sripped"
81
+ msgstr "Fără decor"
82
+
83
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:238
84
+ msgid "<p>When set to true the calendar appears without the visual design - usually used with 'Use Mod' 1.</p>"
85
+ msgstr "<p>Când este setat ca și adevărat, calendarul apare fără design vizual - de obicei este folosit cu 'Modul de utilizare' 1.</p>"
86
+
87
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:244
88
+ msgid "Limit To Today"
89
+ msgstr "Limitează la ziua curentă"
90
+
91
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:264
92
+ msgid "<p>Enables you to limit the possible picking days to today's date.</p>"
93
+ msgstr "<p>Oferă posibilitatea de a limita ziele disponbile la alegere la ziua curentă.</p>"
94
+
95
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:270
96
+ msgid "Week Start Day"
97
+ msgstr "Prima zi a săptămânii"
98
+
99
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:295
100
+ msgid "Text Direction"
101
+ msgstr "Direcție text"
102
+
103
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:320
104
+ msgid "Date Format"
105
+ msgstr "Format dată"
106
+
107
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:326
108
+ msgid ""
109
+ "<p>Possible values to use in the date format:<br />\n"
110
+ "<br />\n"
111
+ "%d - Day of the month, 2 digits with leading zeros<br />\n"
112
+ "%j - Day of the month without leading zeros<br />\n"
113
+ "%m - Numeric representation of a month, with leading zeros<br />\n"
114
+ "%M - A short textual representation of a month, three letters<br />\n"
115
+ "%n - Numeric representation of a month, without leading zeros<br />\n"
116
+ "%F - A full textual representation of a month, such as January or March<br />\n"
117
+ "%Y - A full numeric representation of a year, 4 digits<br />\n"
118
+ "%y - A two digit representation of a year<br />\n"
119
+ "<br />\n"
120
+ "You can of course put whatever divider you want between them.<br /></p>"
121
+ msgstr ""
122
+ "<p>Valori posibile pentru formatul datei:<br />\n"
123
+ "<br />\n"
124
+ "%d - Ziua din lună, 2 cifre cu zero<br />\n"
125
+ "%j - Ziua din lună fără zero<br />\n"
126
+ "%m - Reprezentarea numerică a unei luni, cu zero<br />\n"
127
+ "%M - O reprezentare textuală scurtă a unei luni, trei litere<br />\n"
128
+ "%n - Reprezentarea numerică a unei luni, fără zero<br />\n"
129
+ "%F - O reprezentare textuală întreagă a unei luni, ca și Ianuarie sau Martie<br />\n"
130
+ "%Y - O reprezentare numerică întreagă a unui an, 4 cifre<br />\n"
131
+ "%y - O reprezentare a unui an din două cifre<br />\n"
132
+ "<br />\n"
133
+ "Puteți desigur să introduceți orice separator doriți între valori.<br /></p>"
134
+
135
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:346
136
+ msgid "Save Setting"
137
+ msgstr "Salvează setări"
138
+
139
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:369
140
+ msgid "Janaury"
141
+ msgstr "Ianuarie"
142
+
143
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:370
144
+ msgid "February"
145
+ msgstr "Februarie"
146
+
147
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:371
148
+ msgid "March"
149
+ msgstr "Martie"
150
+
151
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:372
152
+ msgid "April"
153
+ msgstr "Aprilie"
154
+
155
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:373
156
+ msgid "May"
157
+ msgstr "Mai"
158
+
159
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:374
160
+ msgid "June"
161
+ msgstr "Iunie"
162
+
163
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:375
164
+ msgid "July"
165
+ msgstr "Iulie"
166
+
167
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:376
168
+ msgid "August"
169
+ msgstr "August"
170
+
171
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:377
172
+ msgid "September"
173
+ msgstr "Septembrie"
174
+
175
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:378
176
+ msgid "October"
177
+ msgstr "Octombrie"
178
+
179
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:379
180
+ msgid "November"
181
+ msgstr "Noiembrie"
182
+
183
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:380
184
+ msgid "December"
185
+ msgstr "Decembrie"
186
+
187
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:381
188
+ msgid "Sun"
189
+ msgstr "Dum"
190
+
191
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:382
192
+ msgid "Mon"
193
+ msgstr "Lun"
194
+
195
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:383
196
+ msgid "Tue"
197
+ msgstr "Mar"
198
+
199
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:384
200
+ msgid "Wed"
201
+ msgstr "Mie"
202
+
203
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:385
204
+ msgid "Thu"
205
+ msgstr "Joi"
206
+
207
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:386
208
+ msgid "Fri"
209
+ msgstr "Vin"
210
+
211
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:387
212
+ msgid "Sat"
213
+ msgstr "Sâm"
214
+
215
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:388
216
+ msgid "Move a month forward"
217
+ msgstr "Înaintează cu o lună"
218
+
219
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:389
220
+ msgid "Move a month backward"
221
+ msgstr "Întoarce cu o lună"
222
+
223
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:390
224
+ msgid "Move a year forward"
225
+ msgstr "Înaintează cu un an"
226
+
227
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:391
228
+ msgid "Move a year backward"
229
+ msgstr "Întoarce cu un an"
230
+
231
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:392
232
+ msgid "Close the calendar"
233
+ msgstr "Închide calendarul"
234
+
235
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:393
236
+ msgid "Date object invalid!"
237
+ msgstr "Obiect dată invalid!"
238
+
239
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:394
240
+ msgid "Target invalid!"
241
+ msgstr "Țintă nevalidă!"
242
+
languages/contact-form-7-datepicker.pot ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: contact-form-7-datepicker\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-05-14 20:28+0200\n"
6
+ "PO-Revision-Date: 2011-05-14 20:28+0200\n"
7
+ "Last-Translator: Aurel Canciu <aurelcanciu@gmail.com>\n"
8
+ "Language-Team: \n"
9
+ "Language: \n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "Plural-Forms: nplurals=1; plural=0;\n"
16
+ "X-Poedit-Language: English\n"
17
+ "X-Poedit-SourceCharset: utf-8\n"
18
+ "X-Poedit-SearchPath-0: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker\n"
19
+
20
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:93
21
+ msgid "Datepicker Settings"
22
+ msgstr ""
23
+
24
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:155
25
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:223
26
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:249
27
+ msgid "true"
28
+ msgstr ""
29
+
30
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:155
31
+ msgid "false"
32
+ msgstr ""
33
+
34
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:157
35
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:275
36
+ msgid "Sunday"
37
+ msgstr ""
38
+
39
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:157
40
+ msgid "Monday"
41
+ msgstr ""
42
+
43
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:158
44
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:300
45
+ msgid "Left to right"
46
+ msgstr ""
47
+
48
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:158
49
+ msgid "Right to left"
50
+ msgstr ""
51
+
52
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:163
53
+ msgid ""
54
+ "<p>This plugin implements a new <strong>[date]</strong> tag in <a href=\"http://wordpress.org/extend/plugins/contact-form-7/\">Contact Form 7</a> \n"
55
+ "\t\tthat adds a date field to a form. When clicking the field a calendar pops up enabling your site visitors to easily select any date.<br />\n"
56
+ "\t\tTo use it simply insert the <strong>[date your-field-name]</strong> or <strong>[date* your-requierd-field-name]</strong> if you want it to be mandatory,\n"
57
+ "\t\tin your Contact Form 7 edit section.</p>"
58
+ msgstr ""
59
+
60
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:172
61
+ msgid "Color scheme"
62
+ msgstr ""
63
+
64
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:196
65
+ msgid "Use Mode"
66
+ msgstr ""
67
+
68
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:211
69
+ msgid ""
70
+ "<p>1 – The calendar's HTML will be directly appended to the field supplied by target<br />\n"
71
+ "\t\t\t\t\t\t\t2 – The calendar will appear as a popup when the field with the id supplied in target is clicked.</p>"
72
+ msgstr ""
73
+
74
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:218
75
+ msgid "Sripped"
76
+ msgstr ""
77
+
78
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:238
79
+ msgid "<p>When set to true the calendar appears without the visual design - usually used with 'Use Mod' 1.</p>"
80
+ msgstr ""
81
+
82
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:244
83
+ msgid "Limit To Today"
84
+ msgstr ""
85
+
86
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:264
87
+ msgid "<p>Enables you to limit the possible picking days to today's date.</p>"
88
+ msgstr ""
89
+
90
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:270
91
+ msgid "Week Start Day"
92
+ msgstr ""
93
+
94
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:295
95
+ msgid "Text Direction"
96
+ msgstr ""
97
+
98
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:320
99
+ msgid "Date Format"
100
+ msgstr ""
101
+
102
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:326
103
+ msgid ""
104
+ "<p>Possible values to use in the date format:<br />\n"
105
+ "<br />\n"
106
+ "%d - Day of the month, 2 digits with leading zeros<br />\n"
107
+ "%j - Day of the month without leading zeros<br />\n"
108
+ "%m - Numeric representation of a month, with leading zeros<br />\n"
109
+ "%M - A short textual representation of a month, three letters<br />\n"
110
+ "%n - Numeric representation of a month, without leading zeros<br />\n"
111
+ "%F - A full textual representation of a month, such as January or March<br />\n"
112
+ "%Y - A full numeric representation of a year, 4 digits<br />\n"
113
+ "%y - A two digit representation of a year<br />\n"
114
+ "<br />\n"
115
+ "You can of course put whatever divider you want between them.<br /></p>"
116
+ msgstr ""
117
+
118
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:346
119
+ msgid "Save Setting"
120
+ msgstr ""
121
+
122
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:369
123
+ msgid "Janaury"
124
+ msgstr ""
125
+
126
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:370
127
+ msgid "February"
128
+ msgstr ""
129
+
130
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:371
131
+ msgid "March"
132
+ msgstr ""
133
+
134
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:372
135
+ msgid "April"
136
+ msgstr ""
137
+
138
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:373
139
+ msgid "May"
140
+ msgstr ""
141
+
142
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:374
143
+ msgid "June"
144
+ msgstr ""
145
+
146
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:375
147
+ msgid "July"
148
+ msgstr ""
149
+
150
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:376
151
+ msgid "August"
152
+ msgstr ""
153
+
154
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:377
155
+ msgid "September"
156
+ msgstr ""
157
+
158
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:378
159
+ msgid "October"
160
+ msgstr ""
161
+
162
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:379
163
+ msgid "November"
164
+ msgstr ""
165
+
166
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:380
167
+ msgid "December"
168
+ msgstr ""
169
+
170
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:381
171
+ msgid "Sun"
172
+ msgstr ""
173
+
174
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:382
175
+ msgid "Mon"
176
+ msgstr ""
177
+
178
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:383
179
+ msgid "Tue"
180
+ msgstr ""
181
+
182
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:384
183
+ msgid "Wed"
184
+ msgstr ""
185
+
186
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:385
187
+ msgid "Thu"
188
+ msgstr ""
189
+
190
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:386
191
+ msgid "Fri"
192
+ msgstr ""
193
+
194
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:387
195
+ msgid "Sat"
196
+ msgstr ""
197
+
198
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:388
199
+ msgid "Move a month forward"
200
+ msgstr ""
201
+
202
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:389
203
+ msgid "Move a month backward"
204
+ msgstr ""
205
+
206
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:390
207
+ msgid "Move a year forward"
208
+ msgstr ""
209
+
210
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:391
211
+ msgid "Move a year backward"
212
+ msgstr ""
213
+
214
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:392
215
+ msgid "Close the calendar"
216
+ msgstr ""
217
+
218
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:393
219
+ msgid "Date object invalid!"
220
+ msgstr ""
221
+
222
+ #: /home/relu/public_html/wordpress/wp-content/plugins/contact-form-7-datepicker/contact-form-7-datepicker.php:394
223
+ msgid "Target invalid!"
224
+ msgstr ""
225
+
readme.txt ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Plugin Name ===
2
+ Contributors: shockware
3
+ Donate link:
4
+ Tags: wordpress, datepicker, calendar, contact form 7, forms
5
+ Requires at least: WordPress 2.9
6
+ Tested up to: WordPress 3.1.2
7
+ Stable tag: 0.1
8
+
9
+ Datepicker for Contact Form 7 Wordpress Plugin based on jsDatePick script.
10
+
11
+ == Description ==
12
+
13
+ Implements a new **[date]** tag in Contact Form 7 that adds a date field to a form. When clicking the field a calendar pops up enabling your site visitors to easily select any date.
14
+ To use, just insert the **[date your-field-name]** or **[date* your-required-field-name]** to any form in Contact Form 7 edit area where you want users to input a date.
15
+
16
+ This plugin is somewhat a fork of [Contact Form 7 Calendar](http://wordpress.org/extend/plugins/cf7-calendar/) by [harrysudana](http://profiles.wordpress.org/users/harrysudana/).
17
+
18
+ == Installation ==
19
+
20
+ Please follow the [standard installation procedure for WordPress plugins](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins).
21
+
22
+ == Frequently Asked Questions ==
23
+
24
+ = Where do I submit a bug? =
25
+
26
+ You can (open an issue on github)[https://github.com/relu/contact-form-7-datepicker/issues] or just contact me via email.
27
+
28
+ = I've translated this plugin, how can I share my translation? =
29
+
30
+ You can contact me anywhere and I'll add them to the project :)
31
+
32
+ == Screenshots ==
33
+
34
+ 1. The datepicker in action
35
+
36
+ == Changelog ==
37
+
38
+ = 0.1 =
39
+ First release
40
+
41
+ == Upgrade Notice ==
42
+
43
+ * Nothing yet
screenshot-1.png ADDED
Binary file