[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 require_once ('../../class2.php'); 3 require_once(e_HANDLER."calendar/calendar_class.php"); 4 $cal = new DHTML_Calendar(true); 5 function headerjs() 6 { 7 global $cal; 8 return $cal->load_files(); 9 } 10 require_once(HEADERF); 11 12 echo " 13 <table style='border:2px solid'> 14 <tr> 15 <td> 16 "; 17 echo $cal->make_input_field( 18 // calendar options go here; see the documentation and/or calendar-setup.js 19 array('firstDay' => 1, // show Monday first 20 'showsTime' => true, 21 'showOthers' => true, 22 'ifFormat' => '%Y/%m/%d %I:%M %P', 23 'weekNumbers' => false, 24 'timeFormat' => '12'), 25 // field attributes go here 26 array('style' => 'color: #840; background-color: #ff8; border: 1px solid #000; text-align: center', 27 'name' => 'date1', 28 'value' => strftime('%Y/%m/%d %I:%M %P', strtotime('now')))); 29 30 31 echo "</td></tr><tr><td>"; 32 unset($cal_options); 33 unset($cal_attrib); 34 $cal_options['firstDay'] = 0; 35 $cal_options['showsTime'] = false; 36 $cal_options['showOthers'] = false; 37 $cal_options['weekNumbers'] = true; 38 $cal_attrib['class'] = "tbox"; 39 $cal_attrib['name'] = "date2"; 40 $cal_attrib['value'] = "[select date]"; 41 echo $cal->make_input_field($cal_options, $cal_attrib); 42 echo " 43 </td> 44 </tr> 45 </table> 46 "; 47 require_once(FOOTERF); 48 49 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |