function render_attributes() { $this->_process_attributes(); if (!$this->path) { $action_path = $_SERVER['PHP_SELF']; $request = request::instance(); if ($node_id = $request->get_attribute('node_id')) { $action_path .= '?node_id=' . $node_id; } } else { $action_path = $this->path; } if (strpos($action_path, '?') === false) { $action_path .= '?'; } else { $action_path .= '&'; } if ($this->action) { $action_path .= 'action=' . $this->action; } if ((bool) $this->reload_parent) { $action_path .= '&reload_parent=1'; } $this->attributes['onclick'] = $this->onclick; $this->attributes['onclick'] .= "submit_form(this.form, '{$action_path}')"; parent::render_attributes(); unset($this->attributes['onclick']); }
function render_attributes() { if (!isset($this->attributes['path']) || !$this->attributes['path']) { $action_path = $_SERVER['PHP_SELF']; $request = request::instance(); if ($node_id = $request->get_attribute('node_id')) { $action_path .= '?node_id=' . $node_id; } } else { $action_path = $this->attributes['path']; } if (strpos($action_path, '?') === false) { $action_path .= '?'; } else { $action_path .= '&'; } if (isset($this->attributes['action'])) { $action_path .= 'action=' . $this->attributes['action']; } if (isset($this->attributes['reload_parent']) && $this->attributes['reload_parent']) { $action_path .= '&reload_parent=1'; unset($this->attributes['reload_parent']); } if (!isset($this->attributes['onclick'])) { $this->attributes['onclick'] = ''; } $this->attributes['onclick'] .= "submit_form(this.form, '{$action_path}')"; unset($this->attributes['path']); unset($this->attributes['action']); parent::render_attributes(); }
function render_attributes() { if (!isset($this->attributes['path']) || !$this->attributes['path']) { $action_path = $_SERVER['PHP_SELF']; if (isset($_REQUEST['node_id'])) { $action_path .= '?node_id=' . $_REQUEST['node_id']; } } else { $action_path = $this->attributes['path']; } if (strpos($action_path, '?') === false) { $action_path .= '?'; } else { $action_path .= '&'; } $parent_id = $this->parent->get_server_id(); if (isset($this->attributes['action'])) { $action_path .= 'action=' . $this->attributes['action']; } if (isset($this->attributes['reload_parent']) && $this->attributes['reload_parent']) { $action_path .= '&reload_parent=1'; unset($this->attributes['reload_parent']); } $this->attributes['onclick'] .= "submit_form('grid_form_{$parent_id}', '{$action_path}')"; unset($this->attributes['path']); unset($this->attributes['action']); parent::render_attributes(); }
/** * Overrides then calls with the parent render_attributes() method. Makes * sure there is always a value attribute, even if it's empty. * Called from within a compiled template render function. * * @return void * @access protected */ function render_attributes() { $value = $this->get_value(); if (!is_null($value)) { $this->attributes['value'] = $value; } parent::render_attributes(); }
/** * Overrides then calls with the parent render_attributes() method dealing * with the special case of the checked attribute * * @return void * @access protected */ function render_attributes() { $value = $this->get_value(); if ($value) { $this->attributes['checked'] = 1; } else { unset($this->attributes['checked']); } parent::render_attributes(); }
function render_attributes() { $this->_process_attributes(); if (!$this->path) { $action_path = $_SERVER['PHP_SELF']; $request = request :: instance(); if($node_id = $request->get_attribute('node_id')) $action_path .= '?node_id=' . $node_id; } else $action_path = $this->path; if (strpos($action_path, '?') === false) $action_path .= '?'; else $action_path .= '&'; if($this->action) $action_path .= 'action=' . $this->action; if ((bool)$this->reload_parent) { $action_path .= '&reload_parent=1'; } $window_name = ''; if($this->target) $window_name = ", '{$this->target}'"; $this->attributes['onclick'] = $this->onbeforeclick; $this->attributes['onclick'] .= $this->onclick; $this->attributes['onclick'] .= "submit_form(this.form, '{$action_path}'{$window_name});"; $this->attributes['onclick'] .= $this->onafterclick; parent :: render_attributes(); unset($this->attributes['onclick']); }