| 1 |
<?php |
<?php |
| 2 |
// $Id: webform2pdf.module,v 1.1.2.4 2009/09/23 14:26:38 york Exp $ |
// $Id: webform2pdf.module,v 1.1.2.5 2009/10/19 12:59:11 york Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Ha be van kapcsolva a PFD generalas akkor jelenik meg a menupont. |
* Ha be van kapcsolva a PFD generalas akkor jelenik meg a menupont. |
| 1164 |
break; |
break; |
| 1165 |
|
|
| 1166 |
case 'email': |
case 'email': |
| 1167 |
|
case 'date': |
| 1168 |
|
case 'time': |
| 1169 |
case 'hidden': |
case 'hidden': |
| 1170 |
case 'textarea': |
case 'textarea': |
| 1171 |
case 'textfield': |
case 'textfield': |
| 1205 |
if ( !empty($submission->data[$component['cid']]['value'] ) ) { |
if ( !empty($submission->data[$component['cid']]['value'] ) ) { |
| 1206 |
switch ($component['type']) { |
switch ($component['type']) { |
| 1207 |
case 'date': |
case 'date': |
| 1208 |
$timestamp = strtotime($submission->data[$component['cid']]['value'][2] .'-'. $submission->data[$component['cid']]['value'][0] .'-'. $submission->data[$component['cid']]['value'][1]); |
$timestamp = strtotime($submission->data[$component['cid']]['value'][0] .'/'. $submission->data[$component['cid']]['value'][1] .'/'. $submission->data[$component['cid']]['value'][2].' GMT'); |
| 1209 |
$format = variable_get('date_format_short', 'm/d/Y - H:i'); |
$format = webform_date_format('medium'); |
| 1210 |
$format = str_replace(array('D', 'l', 'S', 'w', 'z', 'W', 'a', 'A', 'B', 'g', 'h', 'H', 'i', 's', 'I', 'O', 'T', 'Z', ':'), '', $format); |
$date = format_date($timestamp, 'custom', $format, 0); |
| 1211 |
$format = trim($format, ' /-'); |
|
|
$date = format_date($timestamp, 'custom', $format); |
|
| 1212 |
$tokens['%'. $component['form_key']] = $date; |
$tokens['%'. $component['form_key']] = $date; |
| 1213 |
break; |
break; |
| 1214 |
|
|