<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>KGCMS企业应用管理平台 - Powered by KGCMS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<!-- <meta http-equiv="cache-control" content="no-siteapp" /> -->
<link rel="stylesheet" href="{{ kg['tpl_url'] }}style/vote_sys_logs.css">
<script src="{{ kg['tpl_url'] }}script/jquery.min.js"></script>
<script src="{{ kg['server']['HTTP_HOST'] }}/tools/amazeui/js/amazeui.min.js"></script>
<script src="{{kg['tpl_url']}}script/common.js"></script>
<script src="{{kg['tpl_url']}}script/vote_sys_logs.js"></script>
</head>
<body data-type="generalComponents">
    {% include 'component_header.tpl' %}
    <div class="tpl-page-container tpl-page-header-fixed">
        {% include 'component_left.tpl' %}
        <div class="tpl-content-wrapper ngco-Osz-marginT">
            <div class="tpl-content-page-title">
                投票日志
            </div>
            <ol class="am-breadcrumb">
                <li><a href="./" class="am-icon-home">首页</a></li>
                <li class="am-active">投票日志</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span>&nbsp;投票日志
                    </div>
                    <div class="tpl-portlet-input tpl-fz-ml am-select-hover am-no-margintop ngsty-boxR">
                        <div class="portlet-input input-small input-inline ngar-xiugai-width" tyle="float: right;">
                            <div class="input-icon right am-fr top-1">
                                <div class="am-btn-group am-btn-group-xs">
                                    <a href="vote_sys_logs" class="am-btn am-btn-secondary ng-add-hightB"><span
                                            class="am-icon-search"></span>&nbsp;刷新</a>
                                    <!--<a class="am-btn am-btn-default am-btn-warning" href="vote_sys_update"><span class="am-icon-plus"></span>&nbsp;创建主题</a>-->
                                </div>
                            </div>
                            <div class="am-cf"></div>
                        </div>

                        <div class="portlet-input input-small input-inline am-fl">
                            <form action="" method="get" id="search">
                                <div class="input-icon right">
                                    <i class="am-icon-search log-search"></i>
                                    <input type="text" class="ngar-Vxiugai-radius form-control am-hover form-control-solid ngco-Alo-Noborder"
                                        placeholder="搜索..." name="word" value="" id="word">
                                </div>
                            </form>
                        </div>

                        <div class="am-form-group am-fl am-select-hover am-no-marginbtm am-no-outline" style="margin-right:10px;float: right;">
                            <form action="" method="get">
                                <select class="ngca-Ysj-change"  onchange="window.open(this.options[this.selectedIndex].value,'_self')" data-am-selected="{btnSize: 'sm'}">
                                    <option selected="selected" value="vote_sys_logs">主题筛选</option>
                                    {% if vote_list %}
                                        {% for row in vote_list %}
                                            <option {% if sorts_id == row.id %} selected="selected"  {% endif %} value="vote_sys_logs?sorts={{row.id}}">{{row.title}}</option>
                                        {% endfor %}
                                    {% endif %}
                                </select>
                            </form>
						</div>

                        {% if flag == 1 %}
                            <div class="am-form-group am-fl am-select-hover am-no-marginbtm am-no-outline" style="margin-right:10px;float: right;">
                                <form action="" method="get">
                                    <select class="ngca-Ysj-change"  onchange="window.open(this.options[this.selectedIndex].value,'_self')" data-am-selected="{btnSize: 'sm'}">
                                        <option selected="selected" value="{{kg['server']['WEB_URL']}}">候选项</option>
                                        {% for row in user_list['candtitle'] %}
                                            <option {% if type == row %} selected="selected" {% endif %} value="vote_sys_logs?sorts={{user_list.id}}&type={{row}}">{{row}}</option>
                                        {% endfor %}
                                    </select>
                                </form>
                            </div>
                        {% endif %}
                    </div>

                </div>
                <div class="am-g">
                    <div class="am-u-sm-12 ngALL-AFenyeFu-marginT ngco-No-paddingR">
                        <form class="am-form" id="id-form" action="#" method="post">
                            <input type="hidden" name="action" value="" id='action'>
                            <table class="am-table am-table-striped am-table-hover table-main ngco-Esz-mgibdr">
                                <thead>
                                    <tr>
                                        <th class="table-id">ID</th>
                                        <th class="table-head">头像</th>
                                        <th class="table-title">会员信息</th>
                                        <th class="table-type">粉丝信息</th>
                                        <th class="table-date am-hide-sm-only">投票主题</th>
                                        <th class="table-type">投票时间</th>
                                        <th class="table-set">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {% for row in data %}
                                    <tr>
                                        <td>{{row['id']}}</td>
                                        <td><img src="{{row.headurl}}" alt="" style="height:30px"></td>
                                        {% if row.username %}
                                        <td>
                                            <div>用户名:&nbsp;&nbsp;{{row.username}}</div>
                                            <div>手机号:&nbsp;&nbsp;{{row.phone}}</div>
                                        </td>
                                        {% else %}
                                        <td>
                                            <div>用户名:&nbsp;&nbsp;无</div>
                                            <div>手机号:&nbsp;&nbsp;无</div>
                                        </td>
                                        {% endif %}
                                        <td><div>昵称:&nbsp;&nbsp;{{row['nickname']}}</div>
                                            <div>openid:&nbsp;&nbsp;{{row.openid}}</div></td>
                                        <td class="am-hide-sm-only">
                                            <div>主题名:&nbsp;&nbsp;{{row['titlename']}}</div>
                                            <div>候选项:&nbsp;&nbsp;{{row.candtitle}}</div>
                                        </td>
                                        <td>{{row['votetime']}}</td>
                                        <td>
                                            <div class="am-btn-toolbar">
                                                <div class="am-btn-group am-btn-group-xs">
<!--                                                    <a href="vote_sys_logs?action=edit&id={{row['id']}}" class="am-btn am-btn-default am-btn-xs am-text-default am-hide-sm-only">-->
<!--                                                        <span class="am-icon-pencil-square-o"></span>&nbsp;编辑-->
<!--                                                    </a>-->
                                                    <a href="vote_sys_logs?action=del&id={{row['id']}}" class="am-btn am-btn-default am-btn-xs am-text-danger ngro-Jclick-shanchubi">
                                                        <span class="am-icon-trash-o"></span>&nbsp;删除
                                                    </a>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    {% endfor %}
                                </tbody>
                            </table>
                            {% if not data %}
                            <div class="no-data">
                                <ul>没有相关数据</ul>
                            </div>
                            {% endif %}


                        </form>
                    </div>
                </div>
            </div>
            {% include 'component_footer.tpl' %}
        </div>
    </div>
</body>
</html>