<?php
namespace imcat;

use \imcat\comm\texFaqs;

(!defined('RUN_INIT')) && die('No Init');
require dirname(__DIR__).'/binc/_pub_cfgs.php';

$tabid = 'bext_paras';
$view = empty($view) ? 'uset' : $view;

$linka = admPFunc::fileNav($view,'faqs'); $gname = admPFunc::fileNavTitle($view,'faqs');
glbHtml::tab_bar("{$gname}","$linka",30);

if($act){
    if($act=='_allt'){
        texFaqs::statTypes('upd');    
    }else{
        texFaqs::statTags('upd');
    }
    
}

glbHtml::fmt_head('fmlist',"?",'tblist');
$mcfg = read('faqs'); 
$ucfg = array('_allt'=>lang('flow.qa_alltype'),'_tags'=>lang('flow.qa_alltag'),);
$cfgs = texFaqs::statTypes();
foreach($cfgs as $key=>$v){
    $title = isset($ucfg[$key]) ? $ucfg[$key] : @$mcfg['i'][$key]['title'];
    $link = isset($ucfg[$key]) ? " &nbsp; -=> <a href='?$mkv&view=$view&act=$key'>".lang('flow.qa_reset')."</a>" : '';
    echo "\n<tr><td class='tc w150'>{$title}: </td>\n<td>$cfgs[$key] [$key] $link </td></tr>\n";
}
glbHtml::fmt_end(array("mod|$mod"));

if($view=='uset'){
    
}elseif($view=='list'){
    
}elseif($view=='form'){
    
}

?>