/** * 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; }
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; }
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; } }
function freeField($label, $name, $content = "") { parent::objField($label, $name); $this->db_name = null; $this->content_pattern = $content; if (strpos($content, "#>") > 0) { $this->_parsePattern($content); } }
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; } }
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); }
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); }
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); }
function colorpickerField($label, $name, $format = "us") { parent::objField($label, $name); }
function checkboxField($label, $name, $true_value, $false_value = "") { parent::objField($label, $name); $this->true_value = $true_value; $this->false_value = $false_value; }
function colorpickerField($label, $name, $format = "us") { $this->html = new Html(); parent::objField($label, $name); }