コード例 #1
0
ファイル: admin.acctexp.php プロジェクト: Ibrahim1/aec
 public function index()
 {
     $list = xJUtility::getFileArray(JPATH_SITE . '/components/com_acctexp/tmpl', '[*]', true);
     foreach ($list as $id => $name) {
         if ($name == 'default' || $name == 'classic') {
             unset($list[$id]);
         }
     }
     $nav = $this->getPagination(count($list));
     $names = array_slice($list, $this->state->limitstart, $this->state->limit);
     $rows = array();
     foreach ($names as $name) {
         $t = new configTemplate();
         $t->loadName($name);
         if (!$t->id) {
             $t->default = 0;
             if ($name == 'helix') {
                 continue;
             }
         }
         $rows[] = $t;
     }
     HTML_AcctExp::listTemplates($rows, $nav);
 }