| @@ 147-155 (lines=9) @@ | ||
| 144 | /** |
|
| 145 | * get date from a group of date |
|
| 146 | */ |
|
| 147 | function get_date_from_group($group) |
|
| 148 | { |
|
| 149 | return |
|
| 150 | $_POST[$group]['year'].'-'. |
|
| 151 | two_digits($_POST[$group]['month']).'-'. |
|
| 152 | two_digits($_POST[$group]['day']).' '. |
|
| 153 | two_digits($_POST[$group]['hour']).':'. |
|
| 154 | two_digits($_POST[$group]['minute']).':00'; |
|
| 155 | } |
|
| 156 | ||
| 157 | /** |
|
| 158 | * Create a group of select from a date |
|
| @@ 2381-2389 (lines=9) @@ | ||
| 2378 | * @return string |
|
| 2379 | * |
|
| 2380 | */ |
|
| 2381 | function get_date_from_select($prefix, $array = array()) |
|
| 2382 | { |
|
| 2383 | return |
|
| 2384 | $array[$prefix]['year'].'-'. |
|
| 2385 | two_digits($array[$prefix]['month']).'-'. |
|
| 2386 | two_digits($array[$prefix]['day']).' '. |
|
| 2387 | two_digits($array[$prefix]['hour']).':'. |
|
| 2388 | two_digits($array[$prefix]['minute']).':00'; |
|
| 2389 | } |
|
| 2390 | ||
| 2391 | /** |
|
| 2392 | * Check if a user is the author of a work document. |
|