當前位置: 首頁>>代碼示例>>PHP>>正文


PHP HTML_QuickForm_text::HTML_QuickForm_input方法代碼示例

本文整理匯總了PHP中HTML_QuickForm_text::HTML_QuickForm_input方法的典型用法代碼示例。如果您正苦於以下問題:PHP HTML_QuickForm_text::HTML_QuickForm_input方法的具體用法?PHP HTML_QuickForm_text::HTML_QuickForm_input怎麽用?PHP HTML_QuickForm_text::HTML_QuickForm_input使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在HTML_QuickForm_text的用法示例。


在下文中一共展示了HTML_QuickForm_text::HTML_QuickForm_input方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: time

 function HTML_QuickForm_lookup($elementName = null, $elementLabel = null, $attributes = null, $properties = null)
 {
     static $index = 1;
     $this->index = $index++;
     $this->index_prefix = time();
     if (!isset($attributes)) {
         $attributes = array();
     }
     $class = @$attributes['class'];
     $class .= ' xf-lookup xf-lookup-' . $this->index_prefix . '-' . $this->index;
     $attributes['class'] = $class;
     $attributes['df:cloneable'] = 1;
     parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
     $this->_type = 'lookup';
 }
開發者ID:promoso,項目名稱:HVAC,代碼行數:15,代碼來源:lookup.php

示例2: foreach

 function HTML_QuickForm_calendar($elementName = null, $elementLabel = null, $attributes = null, $properties = null)
 {
     parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
     $this->_type = 'calendar';
     // Default language is english
     if (!@$properties['lang']) {
         $properties['lang'] = 'en';
     }
     // Default theme is windows 2k.  This is the name of a css file (without the .css extension)
     if (!@$properties['theme']) {
         $properties['theme'] = 'calendar-win2k-2';
     }
     // Whether to load the stripped javascript files (i.e., the versions with spaces and whitespace stripped out).
     // for faster loading
     if (!isset($properties['stripped'])) {
         $properties['stripped'] = false;
     }
     // Default show Monday first (first day = 1)
     if (!isset($properties['firstDay'])) {
         $properties['firstDay'] = 1;
     }
     // Whether or not to show the time also
     if (!isset($properties['showsTime'])) {
         $properties['showsTime'] = true;
     }
     // Whether or not to show others (not sure what this means ... check jscalendar docs
     if (!isset($properties['showOthers'])) {
         $properties['showOthers'] = true;
     }
     // The Format to be placed in the input field.
     if (!isset($properties['ifFormat'])) {
         $properties['ifFormat'] = '%Y-%m-%d %I:%M %P';
     }
     // The time format
     if (!isset($properties['timeFormat'])) {
         $properties['timeFormat'] = '12';
     }
     foreach (array_keys($properties) as $key) {
         $this->setProperty($key, $properties[$key]);
     }
     $this->calendar = new DHTML_Calendar($GLOBALS['HTML_QuickForm_calendar']['jscalendar_BasePath'], $this->getProperty('lang'), $this->getProperty('theme'), $this->getProperty('stripped'));
 }
開發者ID:Zunair,項目名稱:xataface,代碼行數:42,代碼來源:calendar.php

示例3:

 function HTML_QuickForm_depselect($elementName = null, $elementLabel = null, $attributes = null, $properties = null)
 {
     parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
 }
開發者ID:shannah,項目名稱:xataface-module-depselect,代碼行數:4,代碼來源:depselect.php


注:本文中的HTML_QuickForm_text::HTML_QuickForm_input方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。