Ejemplo n.º 1
0
 /**
  * Constructor Method.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_bookmarks($name)
 {
     // initialize core Widget settings
     parent::MF_Widget($name);
     // load Hidden, Text and Ref widgets, on which this widget depends
     $GLOBALS['loader']->import('saf.MailForm.Widget.Text');
 }
Ejemplo n.º 2
0
 /**
  * Constructor Method.  Also sets the $passover_isset property
  * to false.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_multiple($name)
 {
     // initialize core Widget settings
     parent::MF_Widget($name);
     // initialize custom widget settings
     $this->size = 3;
     $this->passover_isset = true;
 }
Ejemplo n.º 3
0
 function MF_Widget_xeditor($name)
 {
     parent::MF_Widget($name);
     if (@file_exists('inc/app/xed/conf/properties.php')) {
         include 'inc/app/xed/conf/properties.php';
         if (appconf('pspell_location')) {
             $this->spellchecker = 'true';
         }
     }
 }
Ejemplo n.º 4
0
 /**
  * Constructor Method.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_linker($name)
 {
     // initialize core Widget settings
     parent::MF_Widget($name);
     // load Hidden, Text and Ref widgets, on which this widget depends
     $GLOBALS['loader']->import('saf.MailForm.Widget.Hidden');
     $GLOBALS['loader']->import('saf.MailForm.Widget.Text');
     //$GLOBALS['loader']->import ('saf.MailForm.Widget.Ref');
     $GLOBALS['loader']->import('wffolderbrowser.Widget.Pagebrowser');
 }
Ejemplo n.º 5
0
 /**
  * Constructor Method.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_set($name)
 {
     // initialize core Widget settings
     parent::MF_Widget($name);
     // load Hidden and Select widgets, on which this widget depends
     $GLOBALS['loader']->import('saf.MailForm.Widget.Hidden');
     $GLOBALS['loader']->import('saf.MailForm.Widget.Text');
     $GLOBALS['loader']->import('saf.MailForm.Widget.Select');
     // initialize custom widget settings
     //$this->lowest_year = date ('Y') - 25;
     //$this->highest_year = date ('Y') + 1;
     /*
     		$this->data_value_YEAR = date ('Y');
     		$this->data_value_MONTH = date ('m');
     		$this->data_value_DAY = date ('d');*/
 }
Ejemplo n.º 6
0
 /**
  * Constructor Method.  This creates the first submit widget in
  * the list.  To retrieve a reference to this widget (to set it's value,
  * etc.), use the getButton() method before adding any additional buttons
  * with the addButton() method.  You can also set the value of the first
  * button immediately by passing a second parameter to the constructor.
  * 
  * @access	public
  * @param	string	$name
  * @param	string	$value
  * 
  */
 function MF_Widget_allowedbox($name = 'allowed_box', $value = '')
 {
     parent::MF_Widget($name);
     $this->passover_isset = true;
 }
Ejemplo n.º 7
0
 /**
  * Constructor Method.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_dirlist($name)
 {
     // initialize core Widget settings
     parent::MF_Widget($name);
     // load Hidden and Select widgets, on which this widget depends
     $GLOBALS['loader']->import('saf.MailForm.Widget.Hidden');
     $GLOBALS['loader']->import('saf.MailForm.Widget.Select');
     $GLOBALS['loader']->import('saf.File.Directory');
     // initialize custom widget settings
     $this->data_value_DIRLIST = '';
     $this->directory = '.';
     $this->show_viewbutton = false;
     $this->web_path = '';
     $this->formname = 'mainform';
     $this->recursive = 0;
 }
Ejemplo n.º 8
0
 /**
  * Constructor Method.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_time($name)
 {
     // initialize core Widget settings
     parent::MF_Widget($name);
     // load Hidden and Select widgets, on which this widget depends
     $GLOBALS['loader']->import('saf.MailForm.Widget.Hidden');
     $GLOBALS['loader']->import('saf.MailForm.Widget.Text');
     /*
     		// initialize custom widget settings
     		$this->data_value_HOUR = date ('H');
     		$this->data_value_MINUTE = date ('i');
     		$this->data_value_SECOND = date ('s');*/
 }
Ejemplo n.º 9
0
 /**
  * Constructor Method.  Also sets the $passover_isset property
  * to false.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_hiddenswitch($name)
 {
     parent::MF_Widget($name);
     $this->passover_isset = true;
 }
Ejemplo n.º 10
0
 /**
  * Constructor Method.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_calendar($name)
 {
     // initialize core Widget settings
     parent::MF_Widget($name);
 }
Ejemplo n.º 11
0
 /**
  * Constructor Method.  Also sets the $passover_isset property
  * to false.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_pagebrowser($name)
 {
     parent::MF_Widget($name);
     $this->passover_isset = true;
 }
Ejemplo n.º 12
0
 /**
  * Constructor Method.  Also sets the $passover_isset property
  * to true.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_image($name)
 {
     parent::MF_Widget($name);
     $this->passover_isset = true;
 }
Ejemplo n.º 13
0
 /**
  * Constructor Method.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_joiner($name)
 {
     // initialize core Widget settings
     parent::MF_Widget($name);
     $this->passover_isset = true;
     $this->ignoreEmpty = true;
 }
Ejemplo n.º 14
0
 /**
  * Constructor Method.  This creates the first submit widget in
  * the list.  To retrieve a reference to this widget (to set it's value,
  * etc.), use the getButton() method before adding any additional buttons
  * with the addButton() method.  You can also set the value of the first
  * button immediately by passing a second parameter to the constructor.
  * 
  * @access	public
  * @param	string	$name
  * @param	string	$value
  * 
  */
 function MF_Widget_msubmit($name = 'submit_button', $value = '')
 {
     $this->addButton($name);
     if (!empty($value)) {
         $this->buttons[0]->setValues($value);
     }
     parent::MF_Widget($name);
 }
Ejemplo n.º 15
0
 /**
  * Constructor Method.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_security($name)
 {
     parent::MF_Widget($name);
     $this->addRule('func "mailform_widget_security_verify"', 'Your input does not match the letters and numbers shown in the security field.  Please try again.');
 }
Ejemplo n.º 16
0
 /**
  * Constructor Method.  This creates the first submit widget in
  * the list.  To retrieve a reference to this widget (to set it's value,
  * etc.), use the getButton() method before adding any additional buttons
  * with the addButton() method.  You can also set the value of the first
  * button immediately by passing a second parameter to the constructor.
  * 
  * @access	public
  * @param	string	$name
  * @param	string	$value
  * 
  */
 function MF_Widget_radiogroup($name = 'radio_group', $value = '')
 {
     parent::MF_Widget($name);
     $this->passover_isset = true;
 }
Ejemplo n.º 17
0
 /**
  * Constructor method.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_tie($name)
 {
     global $_SERVER;
     //echo dirname ($_SERVER['DOCUMENT_ROOT'] . '/index') . '<br />' . dirname (__FILE__);
     //exit;
     $this->jsFile = str_replace(dirname($_SERVER['DOCUMENT_ROOT'] . '/index'), '', dirname(__FILE__)) . '/tie.js';
     parent::MF_Widget($name);
 }
Ejemplo n.º 18
0
 /**
  * Constructor Method.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_folder($name)
 {
     // initialize core Widget settings
     parent::MF_Widget($name);
     $this->passover_isset = true;
 }
Ejemplo n.º 19
0
 /**
  * Constructor Method.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_datetimeinterval($name)
 {
     // initialize core Widget settings
     parent::MF_Widget($name);
     // load Hidden and Select widgets, on which this widget depends
     $GLOBALS['loader']->import('saf.MailForm.Widget.Hidden');
     $GLOBALS['loader']->import('saf.MailForm.Widget.Date');
     $GLOBALS['loader']->import('saf.MailForm.Widget.Timeinterval');
     /*
     		// initialize custom widget settings
     		$this->data_value_DATE = date ('Y-m-d');
     		list (
     			$this->data_value_DATE_YEAR,
     			$this->data_value_DATE_MONTH,
     			$this->data_value_DATE_DAY
     		) = split ('-', $this->data_value_DATE);
     		list (
     			$this->data_value_TIME_HOUR,
     			$this->data_value_TIME_MINUTE,
     			$this->data_value_TIME_AMPM
     		) = MF_Widget_timeinterval::parseTime (date ('H:i:s'));*/
 }
Ejemplo n.º 20
0
 /**
  * Constructor Method.  Also sets the $passover_isset property
  * to false.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_filechooser($name)
 {
     parent::MF_Widget($name);
     $this->passover_isset = true;
 }
Ejemplo n.º 21
0
 /**
  * Constructor Method.
  * 
  * @access	public
  * @param	string	$name
  * 
  */
 function MF_Widget_timeinterval($name)
 {
     // initialize core Widget settings
     parent::MF_Widget($name);
     // load Hidden and Select widgets, on which this widget depends
     $GLOBALS['loader']->import('saf.MailForm.Widget.Hidden');
     $GLOBALS['loader']->import('saf.MailForm.Widget.Select');
     // initialize custom widget settings
     /*
     		list (
     			$this->data_value_HOUR,
     			$this->data_value_MINUTE,
     			$this->data_value_AMPM
     		) = $this->parseTime (date ('H:i:s'));*/
 }