| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 require_once('limb/wact/src/tags/form/input.tag.php'); 10 require_once('limb/calendar/src/lmbCalendarWidget.class.php'); 11 12 /** 13 * @tag datetime 14 * @forbid_end_tag 15 * @package calendar 16 * @version $Id: datetime.tag.php 5959 2007-06-07 13:47:57Z pachanga $ 17 */ 18 class lmbDatetimeTag extends WactInputTag 19 { 20 function getRenderedTag() 21 { 22 return 'input'; 23 } 24 25 function prepare() 26 { 27 $this->setAttribute('type', 'text'); 28 parent :: prepare(); 29 } 30 31 function generateAfterCloseTag($code) 32 { 33 parent :: generateAfterCloseTag($code); 34 35 if(!$lang = $this->getAttribute('lang')) 36 $lang = 'en'; 37 38 if(!$this->hasAttribute('stripped')) 39 $stripped = true; 40 else 41 $stripped = $this->getBoolAttribute('stripped'); 42 43 $widget = new lmbCalendarWidget($lang, $stripped); 44 45 if($format = $this->getAttribute('format')) 46 { 47 $widget->setOption('ifFormat', $format); 48 $widget->setOption('daFormat', $format); 49 } 50 else 51 { 52 $widget->setOption('ifFormat', '%Y-%m-%d'); 53 $widget->setOption('daFormat', '%Y-%m-%d'); 54 } 55 56 $code->writeHTML($widget->loadFiles() . 57 $widget->makeButton($this->getAttribute('id'), 58 array(), 59 array('src' => $this->getAttribute('src')))); 60 61 } 62 63 } 64 65 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sat Nov 22 03:48:54 2008 | Cross-referenced by PHPXref 0.7 |