:::

3-5 templates/index.tpl

<!DOCTYPE html>
<html lang="zh-Hant">
{include file='head.tpl'}

<body>
    <div class="container">
        <h1 class="page-header">{$page_title}</h1>
        <div class="row">
            <div class="col-sm-8 col-md-9">
                {if $op=="regist"}
                    <h2>註冊</h2>
                    {include file='regist_form.tpl'}

                {else}
                    <h2>主內容</h2>
                    {$content}
                {/if}
            </div>
            <div class="col-sm-4 col-md-3">
                <h2>嗨!{$my_name}</h2>
                {if $group=="admin"}
                    {*管理員工具列*}
                    {include file='side_tools.tpl'}
                {elseif $group=="user"}
                    {*使用者工具列*}
                    {include file='side_tools.tpl'}
                {else}
                    {include file='side_login.tpl'}
                {/if}
            </div>
        </div>
    </div>
    <!--BootStrap js-->
    <script src="class/bootstrap/js/bootstrap.min.js"></script>
</body>

</html>

 


:::

書籍目錄

展開 | 闔起

快速登入


http%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D770%26tbsn%3D28

計數器

今天: 1407140714071407
昨天: 4125412541254125
總計: 8044185804418580441858044185804418580441858044185