Exemplo n.º 1
0
 /**
  * PHP4 constructor.
  *
  * @access   public
  * @param    string   $name         the field name/identifier
  * @param    string   $insertValue  the default insert value value
  * @param    string   $updateValue  the default update value value
  * @return   void
  */
 function autoupdateField($name, $insertValue = null, $updateValue = null, $mode = null)
 {
     parent::objField("", $name);
     $this->mode = $mode;
     $this->insertValue = $insertValue;
     $this->updateValue = $updateValue;
 }
Exemplo n.º 2
0
 function dateField($label, $name, $format = RAPYD_DATE_FORMAT)
 {
     $format = locale_to_format($format);
     parent::objField($label, $name);
     $this->format = $format;
     $this->extra_output = '';
     //RAPYD_DATE_FORMAT;
 }
Exemplo n.º 3
0
 function radiogroupField($label, $name, $options = array(), $selected = "")
 {
     parent::objField($label, $name);
     if (count($this->options) > 0 && count($options) > 0) {
         $this->options = array_merge($this->options, $options);
     } else {
         $this->options = $options;
     }
 }
Exemplo n.º 4
0
 function freeField($label, $name, $content = "")
 {
     parent::objField($label, $name);
     $this->db_name = null;
     $this->content_pattern = $content;
     if (strpos($content, "#>") > 0) {
         $this->_parsePattern($content);
     }
 }
Exemplo n.º 5
0
 function dropdownField($label, $name, $options = array(), $selected = '')
 {
     parent::objField($label, $name);
     if (count($this->options) > 0 && count($options) > 0) {
         $this->options = array_merge($this->options, $options);
     } else {
         $this->options = $options;
     }
 }
Exemplo n.º 6
0
 function captchaField($label, $name)
 {
     parent::objField($label, $name);
     //MYFW install
     //Si la session n'est pas demare par la session rapyd (utilisation sans les session rapyd )
     if (session_id() == "") {
         session_start();
     }
     //$_SESSION['captcha_bg_path'] = $_SERVER["DOCUMENT_ROOT"].substr($this->rapyd->get_elements_path('captcha/background.png'),1);
 }
Exemplo n.º 7
0
 function iframeField($name, $uri, $height = "200", $scrolling = "auto", $frameborder = "0")
 {
     $label = $name;
     parent::objField($label, $name);
     $this->db_name = null;
     $this->iframe_uri = $uri;
     if (strpos($uri, "#>") > 0) {
         $this->_parsePattern($uri);
     }
     $this->iframe = '<IFRAME src="<##>" width="100%" height="' . $height . '" scrolling="' . $scrolling . '" frameborder="' . $frameborder . '" id="' . $name . '" name="' . $name . '" >iframe not supported</IFRAME>';
     $this->iframe_url = site_url($uri);
 }
Exemplo n.º 8
0
    function myiframeField($name, $uri, $auto_size = false, $height = "40", $scrolling = "auto", $frameborder = "0")
    {
        $label = $name;
        parent::objField($label, $name);
        $this->db_name = null;
        $this->iframe_uri = $uri;
        if (strpos($uri, "#>") > 0) {
            $this->_parsePattern($uri);
        }
        $this->iframe = '<IFRAME src="<##>" width="100%" height="' . $height . '" scrolling="' . $scrolling . '" frameborder="' . $frameborder . '" id="' . $name . '">iframe not supported</IFRAME>';
        if ($auto_size === true) {
            //A FAIRE PAr la suite cela poura etre site_url() qui rajoutera le frameid dans uri pour ici et dans les liens des components.....
            $uri .= "/frameid/" . $name;
            if (!isset($this->rapyd->script['auto_iframe'])) {
                $this->rapyd->script['auto_iframe'] = '
	    		function autofit_iframe(id,winref){
					 if(document.getElementById) {
					  	document.getElementById(id).style.height = "10px";
							document.getElementById(id).style.height = (winref.document.body.scrollHeight+30)+"px";}}';
            }
        }
        $this->iframe_url = site_url($uri);
    }
Exemplo n.º 9
0
 function colorpickerField($label, $name, $format = "us")
 {
     parent::objField($label, $name);
 }
Exemplo n.º 10
0
 function checkboxField($label, $name, $true_value, $false_value = "")
 {
     parent::objField($label, $name);
     $this->true_value = $true_value;
     $this->false_value = $false_value;
 }
Exemplo n.º 11
0
 function colorpickerField($label, $name, $format = "us")
 {
     $this->html = new Html();
     parent::objField($label, $name);
 }