Example #1
0
File: Orm.php Project: schpill/thin
 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;
 }
Example #2
0
 public static function display($str)
 {
     return Inflector::utf8($str);
 }
Example #3
0
 /**
  * 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>';
 }
Example #4
0
 /**
  * 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>';
 }