github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/themes/wind/templates/root/topic_table.html (about)

     1  <!DOCTYPE html>
     2  <html lang="zh-CN">
     3  <head>
     4    <title>{{SiteName}}管理系统</title>
     5    <meta charset="UTF-8" />
     6    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     7    <link rel="stylesheet" href="/root/css/bootstrap.min.css" />
     8    <link rel="stylesheet" href="/root/css/bootstrap-responsive.min.css" />
     9    <link rel="stylesheet" href="/root/css/uniform.css" />
    10    <link rel="stylesheet" href="/root/css/select2.css" />
    11    <link rel="stylesheet" href="/root/css/matrix-style.css" />
    12    <link rel="stylesheet" href="/root/css/matrix-media.css" />
    13  
    14    <link href="/root/font-awesome/css/font-awesome.css" rel="stylesheet"/>
    15    <link href='/root/css/opensans.css' rel='stylesheet' type='text/css'></head>
    16  <body>
    17    {% include "header.html" %}
    18  {% include "sidebar.html" %}
    19    <div id="content">
    20      <div id="content-header">
    21        <div id="breadcrumb">
    22          <a href="#" title="控制面板" class="tip-bottom"> <i class="icon-home"></i>
    23            控制面板
    24          </a>
    25          <a href="#" class="current">话题列表</a>
    26        </div>
    27        <h1>话题列表</h1>
    28      </div>
    29      <div class="container-fluid">
    30        <hr>
    31        <div class="row-fluid">
    32          <div class="span12">
    33            <form action="" method="POST" id="iform">
    34              <div class="widget-box">
    35                <div class="widget-title">
    36                  <span class="icon">
    37                    <input type="checkbox"/>
    38                  </span>
    39                  <h5>数据表格</h5>
    40                  <button class="label btn btn-danger btn-mini" id="delrows">批量删除</button>
    41                  <input type="hidden" id="delrowids" name="delrowids" />
    42                </div>
    43                {% include "msgerr.html" %}
    44                <div class="widget-content nopadding">
    45                  <table class="table table-bordered data-table">
    46                    <thead>
    47                      <tr>
    48                        <th> <i class="icon-remove"></i>
    49                        </th>
    50                        <th>#</th>
    51                        <th>标题</th>
    52                        <th>内容</th>
    53                        <th>节点</th>
    54                        <th>作者</th>
    55                        <th>日期</th>
    56                        <th>操作</th>
    57                      </tr>
    58                    </thead>
    59                    <tbody>
    60                      {% if topics %}
    61                {% for tp in topics %}
    62                      <tr class="gradeX">
    63                        <td>
    64                          <input data="{{tp.Id}}" type="checkbox" />
    65                        </td>
    66                        <td>{{tp.Id}}</td>
    67                        <td>
    68                          <a href="/root/read/topic/{{tp.Id}}/">
    69                            {% if tp.Title %}
    70                                                  {% with s=Htm2Str(tp.Title) %}
    71                                                    {%if not s %}
    72                                                      {{ tp.Author }} {{TimeSince(tp.Created)}} 发布了话题#{{tp.Id}}
    73                                                    {%else%}
    74                                                      {{Cropword(s,0,24,"...")}}
    75                                                    {%endif%}
    76                                                  {% endwith %}
    77                        {% endif %}
    78                          </a>
    79                        </td>
    80                        <td>
    81                          <a href='/topic/{% ifequal tp.Pid|escape "0" %}{{tp.Id}}{% else %}{{tp.Pid}}{% endifequal %}/' target="_blank">
    82                            {% if tp.Content %}
    83                                                  {% with s=Htm2Str(tp.Content) %}
    84                                                    {%if not s %}
    85                                                      {{ tp.Author }} {{TimeSince(tp.Created)}} 发布了话题#{{tp.Id}}
    86                                                    {%else%}
    87                                                      {{Cropword(s,0,48,"...")}}
    88                                                    {%endif%}
    89                                                  {% endwith %}
    90                        {% endif %}
    91                          </a>
    92                        </td>
    93                        <td>{% if tp.Node %}{{tp.Node}}{% endif %}</td>
    94                        <td>{% if tp.Author=="" %}游客{% else %}{{tp.Author}}{% endif %}</td>
    95                        <td>
    96                          {%if tp.Created%}{{Unix2Time(tp.Created,"2006.01.02 15:04")}}{%endif%}
    97                        </td>
    98                        <td>
    99                          <a href="/root/delete/topic/{{tp.Id}}/">删除</a>
   100                          {% if catpage=="RReadTopicHandlerlist" %} |
   101                          <a href="/root/read/{{tp.Id}}/topic/">列览</a>
   102                          {% endif %} |
   103                          <a href="/root/update/topic/{{tp.Id}}/">更新</a>
   104                          {% if catpage=="RReadTopicHandlerlist" %} |
   105                          <a href="/root/create/{{tp.Id}}/topic/">添加话题</a>
   106                          {% endif %} |
   107                          <a href="/root/update/topic/move/{{tp.Id}}/">移动</a>
   108                        </td>
   109                      </tr>
   110                      {% endfor %}
   111            {% else %}
   112                      <tr class="gradeC">
   113                        <td>
   114                          <input type="checkbox" />
   115                        </td>
   116                        <td>0</td>
   117  
   118                        <td>尚无标题</td>
   119                        <td>尚无内容</td>
   120                        <td>尚无节点</td>
   121                        <td>尚无作者</td>
   122                        <td>尚无日期</td>
   123                        <td>N/A</td>
   124                      </tr>
   125                      {% endif %}
   126                    </tbody>
   127                  </table>
   128                </div>
   129              </div>
   130            </form>
   131          </div>
   132        </div>
   133      </div>
   134    </div>
   135    {% include "footer.html" %}
   136    <script src="/root/js/jquery.min.js"></script>
   137    <script src="/root/js/jquery.ui.custom.js"></script>
   138    <script src="/root/js/bootstrap.min.js"></script>
   139    <script src="/root/js/jquery.uniform.js"></script>
   140    <script src="/root/js/select2.min.js"></script>
   141    <script src="/root/js/jquery.dataTables.min.js"></script>
   142    <script src="/root/js/matrix.js"></script>
   143    <script src="/root/js/matrix.tables.js"></script>
   144  </body>
   145  </html>