You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							30 lines
						
					
					
						
							767 B
						
					
					
				
			
		
		
	
	
							30 lines
						
					
					
						
							767 B
						
					
					
				<?php
 | 
						|
/* For licensing terms, see /license.txt */
 | 
						|
 | 
						|
require_once 'HTML/QuickForm/text.php';
 | 
						|
 | 
						|
/**
 | 
						|
 * Form element to select a date and hour (with popup datepicker)
 | 
						|
 *
 | 
						|
 * Class DatePicker
 | 
						|
 */
 | 
						|
class Number extends HTML_QuickForm_text
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * @param string $elementName
 | 
						|
     * @param string $elementLabel
 | 
						|
     * @param array  $attributes
 | 
						|
     */
 | 
						|
    public function Number($elementName = null, $elementLabel = null, $attributes = null)
 | 
						|
    {
 | 
						|
        if (!isset($attributes['id'])) {
 | 
						|
            $attributes['id'] = $elementName;
 | 
						|
        }
 | 
						|
        
 | 
						|
        $attributes['type'] = 'number';
 | 
						|
 | 
						|
        HTML_QuickForm_element::HTML_QuickForm_element($elementName, $elementLabel, $attributes);
 | 
						|
        $this->_appendName = true;
 | 
						|
        $this->_type = 'number';
 | 
						|
    }
 | 
						|
}
 | 
						|
 |