Ejemplo n.º 1
0
    $xoopsTpl->assign('uid_name', $uid_name);
    $xoopsTpl->assign('ActionCount', $ActionCount);
    $xoopsTpl->assign('pics', $pics);
    $xoopsTpl->assign('op', 'show_one_tad_web_action');
    $xoopsTpl->assign('ActionID', $ActionID);
    $xoopsTpl->assign('ActionInfo', sprintf(_MD_TCW_INFO, $uid_name, $ActionDate, $ActionCount));
    //取得單一分類資料
    $cate = $web_cate->get_tad_web_cate($CateID);
    $xoopsTpl->assign('cate', $cate);
}
/*-----------執行動作判斷區----------*/
include_once $GLOBALS['xoops']->path('/modules/system/include/functions.php');
$op = system_CleanVars($_REQUEST, 'op', '', 'string');
$ActionID = system_CleanVars($_REQUEST, 'ActionID', 0, 'int');
$CateID = system_CleanVars($_REQUEST, 'CateID', 0, 'int');
common_template($WebID);
switch ($op) {
    //新增資料
    case "insert_tad_web_action":
        $ActionID = insert_tad_web_action();
        header("location: {$_SERVER['PHP_SELF']}?WebID={$WebID}&ActionID={$ActionID}");
        exit;
        break;
        //更新資料
    //更新資料
    case "update_tad_web_action":
        update_tad_web_action($ActionID);
        header("location: {$_SERVER['PHP_SELF']}?WebID={$WebID}&ActionID={$ActionID}");
        exit;
        break;
        //輸入表格
Ejemplo n.º 2
0
 protected function handleJavascripts(&$params = array())
 {
     $params['javascripts'] = array_merge(common_template('javascripts'), $this->getJavascripts());
 }