menu.html 1.2 KB

123456789101112131415161718
  1. <div class="crumbs">
  2. {% if data['farm_cur'] == 'product' %}
  3. <h2><i class="icons ico-dt"></i>产品管理 <a style="margin-left:10px;" href="javascript:;" onclick="Farm.Page('添加产品', '/main/product_update')" class="btn">添加</a></h2>
  4. {% elif data['farm_cur'] == 'env' %}
  5. <h2><i class="icons ico-dt"></i>环境设置 <a style="margin-left:10px;" href="javascript:;" onclick="Farm.Page('添加环境', '/main/env_update')" class="btn">添加</a></h2>
  6. {% end %}
  7. <ul>
  8. <li {% if data['farm_cur'] == 'index' %}class="cur"{% end %}><a href="{{data['url']['info']}}">农场介绍</a></li>
  9. <li><span>/</span></li>
  10. <li {% if data['farm_cur'] == 'edit' %}class="cur"{% end %}><a href="{{data['url']['edit']}}">修改农场资料</a></li>
  11. <li><span>/</span></li>
  12. <li {% if data['farm_cur'] == 'product' %}class="cur"{% end %}><a href="{{data['url']['product']}}">农场产品管理</a></li>
  13. <li><span>/</span></li>
  14. <li {% if data['farm_cur'] == 'env' %}class="cur"{% end %}><a href="{{data['url']['env']}}">环境设置</a></li>
  15. <li><span>/</span></li>
  16. <li><a href="{{data['setting']['farmurl']}}{{data['setting']['farm']}}" target="_blank">农场网站</a></li>
  17. </ul>
  18. </div>