zoukankan      html  css  js  c++  java
  • velocity 教程

    1,<title>

    $!{product.name} - $!{title}

    $!{about.title} - $!{title}

    $!{news.title} - $!{title}

    新闻中心 - $!{title}

    $!{title}

    2,内容管理系统

    <div id="middle_banner"><img src="http://images.cnblogs.com/ibannerp.jpg" /></div>
    <div id="middle">
    <div id="middlei">
    <div id="left_bar">
    <div id="cate_name">
    <h2>创新</h2>
    </div>
    <ul id="left_nav">
    #foreach($info in $aboutlist)
    <li><a href="$!{info.href}" #if($velocityCount eq 1)class="current" #end>$!{info.title}</a></li>
    #end
    </ul>
    </div>
    <div id="right_content">
    <div id="path">首页 > 创新</div>
    <div id="content">
    $!{about.content}
    </div>
    </div>
    </div>
    </div>

    3,文档发布管理系统

    list:

    <ul id="left_nav">
    #foreach($info in $typelist)
    <li><a href="$!{info.href}" #if($velocityCount eq 1)class="current" #end>$!{info.name}</a></li>
    #end
    </ul>
    </div>
    <div id="right_content">
    <div id="path">首页 > 新闻动态</div>
    <div id="content">
    <div class="all_content">
    <ul id="news_list1">
    #foreach($info in $newslist)
    <li><span class="date">$!{info.time}</span><span class="title"><a href="$!{info.href}">$!{info.title}</a></span></li>
    #end
    </ul>
    <div id="page_list"> $!{pageBar} </div>
    </div>
    </div>
    </div>

    info:

    <ul id="left_nav">
    #foreach($info in $typelist)
    <li><a href="$!{info.href}" #if($velocityCount eq 1)class="current" #end>$!{info.name}</a></li>
    #end
    </ul>
    </div>
    <div id="right_content">
    <div id="path">首页 > 新闻动态</div>
    <div id="content">
    <div class="all_content">
    <h1 id="news_title">$!{news.title}</h1>
    <p id="news_date">$!{news.time}</p>
    <div id="news_content"> $!{news.content} </div>
    </div>
    </div>
    </div>

  • 相关阅读:
    HTTP && 缓存
    querySelector $() getElementBy区别
    Canvas 雾玻璃
    Github page
    Browserify
    关于布局和结构
    how to install flash
    kali update can’t found win7 loader
    arp spoofing
    How To Set Up Port Forwarding in Linux
  • 原文地址:https://www.cnblogs.com/iloveyou-sky/p/3387600.html
Copyright © 2011-2022 走看看