:::

1-5 admin/main.php

<?php
/*-----------引入檔案區--------------*/
$xoopsOption['template_main'] = "snews_adm_main.tpl";
include_once "header.php";
include_once "../function.php";

/*-----------function區--------------*/

//顯示預設頁面內容
function snews_list()
{
    global $xoopsTpl;

    $main = "後台頁面";
    $xoopsTpl->assign('content', $main);
}

//新增文章的表單
function snews_form()
{
    global $xoopsTpl;

}
/*-----------執行動作判斷區----------*/
include_once $GLOBALS['xoops']->path('/modules/system/include/functions.php');
$op = system_CleanVars($_REQUEST, 'op', '', 'string');
// $sn = system_CleanVars($_REQUEST, 'sn', 0, 'int');

switch ($op) {

    case "snews_form":
        snews_form();
        break;

    default:
        snews_list();
        $op = 'snews_list';
        $xoopsTpl->assign('content', $main);
        break;
}

$xoopsTpl->assign('now_op', $op);
include_once 'footer.php';

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1427%26tbsn%3D44

書籍目錄

展開 | 闔起

線上使用者

36人線上 (17人在瀏覽線上書籍)

會員: 0

訪客: 36

更多…