Source Coder c_demo/tpltag_main
  • /imcat/root/doc/c_demo/tpltag_main.htm - Source [Top]
  • {imp:"c_pub/alay_main"}<!--继承父模板-->

    {block:extop}<?php
    $key 
    = empty($this->key) ? 'tplbase' $this->key;
    $kar = array(
        
    'tplbase' => 'Tpl Base',
        
    'tplsuit' => 'Suit Tpl',
        
    'tagbase' => 'Tag Base',
        
    'tagjs'   => 'js-Tag',
    );
    $subs tex('texBase')->docer("d_tpltag/doc_$key"); 
    $sub req('sub',''); //include
    $titletop $kar[$key].'- Tpl/Tag';
    $titlesub $kar[$key]; 
    ?>{/block:extop}

    {block:exbar}{/block:exbar}

    {block:exmain}
        
        {if $key=='tplbase' }
        <p class="pa10">Notice: We use `Tpl` or `tpl` as the word `Template` in this system!</p>
        {/if}

        <?php foreach($subs as $k=>$v){ ?>
        <ul id="s_{=$k}" class="mod-section">
          <li class="type">{=$_cbase['sys_name']} {=$v[title]} <span class="right">--- <a href="#">[Top]</a></span></li>
          {=$v[detail]}
        </ul>
        <?php ?>
        
    {/block:exmain}

Notice: These pages at `/dev.php` is the Manual for Imcat, Welcome to `Faqs` Exchange experience!

QQGroup:607070548; Copyright © 2011-2018 txjia.com All rights reserved.

Run:0.000/28.457(ms); 0(sql)/1.754(MB); doc:c_page/info_coder; Upd:2024-04-18 22:45:47