/** * Display form that permits to add a new link * * @access private */ private function display_form() { Html::nl_form('o', $this->_link->_name, $this->_link->_link, $this->_link->_rss_link, $this->_link->_notes); foreach ($this->_levels as $key => $value) { Html::opt_priority($key, $value, $this->_link->_priority); } Html::nl_form('c'); if ($this->_view_type == 'edit') { Html::nl_update(); } else { Html::nl_add(); } }
/** * Display applicable action buttons * * @access private * @param string [$position] $position can only be 'top' or 'butt' */ private function display_actions($position) { if ($position == 'top') { Html::ml_actions('o'); foreach ($this->_levels as $key => $value) { Html::opt_priority($key, $value); } Html::ml_actions('c'); } elseif ($position == 'butt') { Html::ml_delete(); } }