kiai
Založený: 10.06.2015
Príspevky: 5
Zaslal: 2015-06-11 00:53
Návrat hore
Odpovedať s citátom
|
Figured out how to get the calendar function from HTML5 to appear in the Add and Change functions.
In the phpMyEdit.class.php doc, under display_add_record and display_change_field functions, add:
| Kód: |
elseif (isset ($this->fdd[$k]['date'])) {
echo '<input type="date" class="',$css_class_name,'" name="',$this->cgi['prefix']['data'].$this->fds[$k],'" >';
} |
Then, in the generated php doc, add 'date' as an option like this:
| Kód: |
$opts['fdd']['field_name'] = array(
'name' => 'Date',
'select' => 'T',
'date' => strtotime(),
'sort' => true,
); |
Haven't figured out how to get the date to format the way I want though.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|