예제 #1
0
 public function __construct($engine)
 {
     Config::constants();
     if (!$this->install($engine)) {
         Site::run();
     }
 }
예제 #2
0
 public static function htmlTableRow($level, $row)
 {
     $html = '<tr>';
     $html .= '<td><input type="checkbox" class="i-checks" name="post_id[]" value="' . $row->id . '"></td>';
     $html .= '<td><a href="' . Site::$url . ADMIN_DIR . '/' . INDEX_FILE . '/pages/edit/' . $row->id . '">' . Site::htmlSymbol('&mdash; ', $level) . $row->title . '</a></td>';
     $html .= '<td><a href="' . Site::$url . ADMIN_DIR . '/' . INDEX_FILE . '/pages/?author=' . $row->author . '">' . $row->author . '</a></td>';
     $html .= '<td>1</td>';
     $html .= '<td>' . Localize::dateFormat($row->date) . '
             <br />' . (!$row->status ? Site::lang()['globals']['UNPUBLISHED'] : Site::lang()['globals']['PUBLISHED']) . '</td>';
     $html .= '</tr>';
     return $html;
 }
예제 #3
0
 private static function ddlOption($level, $selected, $row, $symbol, $value)
 {
     $html = '';
     if (!$symbol) {
         if ($row->id == $value) {
             $selected = 'selected';
         }
         $html .= '<option value="' . $row->id . '" ' . $selected . '>' . $row->name . '</option>';
     } else {
         if ($row->id != $value) {
             $html .= '<option value="' . $row->id . '" ' . $selected . '>' . Site::htmlSymbol('&nbsp;&nbsp;&nbsp;', $level) . $row->name . '</option>';
         }
     }
     return $html;
 }
예제 #4
0
 public static function lang()
 {
     return Site::lang();
 }