public function view() { $html = '<table cellpadding="5" cellspacing="0" border="0">'; foreach ($this->_datas['fieldsSave'] as $field) { $html .= '<tr><td style="border: solid 1px;"> ' . $field . '</td><td style="border: solid 1px;">' . Inflector::utf8($this->{$field}) . '</td></tr>'; } $html .= '</table>'; return $html; }
public static function display($str) { return Inflector::utf8($str); }
/** * Create a HTML page link. * * @param int $page * @param string $text * @param string $class * @return string */ protected function link($page, $text, $class) { $query = '?page=' . $page . $this->appendage($this->appends); return '<li' . Html::attributes(array('class' => $class)) . '><a href="#" onclick="paginationGoPage(' . $page . '); return false;">' . Inflector::utf8($text) . '</a></li>'; }
/** * Create a HTML page link. * * @param int $page * @param string $text * @param string $class * @return string */ protected function link($page, $text, $class) { $query = '?' . $this->var . '=' . $page . $this->appendage($this->appends); return '<li' . Html::attributes(array('class' => $class)) . '><a href="' . $query . '">' . Inflector::utf8($text) . '</a></li>'; }