当前位置: 首页>>代码示例>>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;未经允许,请勿转载。