本文整理汇总了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';
}
示例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'));
}
示例3:
function HTML_QuickForm_depselect($elementName = null, $elementLabel = null, $attributes = null, $properties = null)
{
parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
}