<!DOCTYPE html>
<html lang=zh-cn>
    <head>
        <meta charset=utf-8>
        <title>纵横计量支付系统</title>
        <meta name=description content=计量支付>
        <meta name=copyright content=smartcost.com.cn>
        <link rel=stylesheet href={{rootUrl}}global/css/bootstrap.css>
        <link rel=stylesheet href={{rootUrl}}global/css/style.css>
        <script src={{rootUrl}}global/js/jquery-1.9.1.min.js></script>
        <script src={{rootUrl}}global/js/bootstrap.js></script>
        <script src={{rootUrl}}global/js/jl.js></script>
    </head>
    <body>
        <div class="wrapHeader">
            <h1 class="mainLogo" title="纵横计量支付"></h1>
            <div class="sysTools"><a title="返回首页" href="index.html"><i class="icon-circle-arrow-left icon-white"></i></a>&nbsp;&nbsp;&nbsp;<a title="纵横官网" target="_blank" href="http://smartcost.com.cn"><i class="icon-home icon-white"></i></a></div>
        </div>
        <!-- include "top" -->
        <div class="warpAdmin">
            <!-- include "menu" -->
            <div class="adminContent">
                <div class="adminMain">
                    <fieldset>
                        <legend>
                            <select id="dynamic_select">
                                <option selected value="0">请选择项目</option>
                                <!-- loop pArray -->
                                <option <!-- if {{pArray' value.pid}}=={{pid}} --> selected="selected" <!-- endif --> value="{{pArray' value.pid}}">{{pArray' value.pname}}</option>
                                <!-- endloop -->
                            </select>
                        </legend>
                        <table class="table table-striped table-hover">
                            <thead>
                                <tr>
                                    <th>标段名称</th>
                                    <th>标段类型</th>
                                    <th>标段总额</th>
                                    <th>标段状态</th>
                                    <th>审批人</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <!-- loop userlist -->
                                <tr>
                                    <td>{{userlist' value.pmname}}</td>
                                    <td>{{userlist' value.stname}}</td>
                                    <td>{{userlist' value.contracttotal}}</td>
                                    <th> <!-- if {{userlist' value.has}}==1  --><span class="{{userlist' value.color}}">#{{userlist' value.numpname}} {{userlist' value.status}}</span><!-- else --><span class="colGray">无标段数据</span><!-- endif --></th>
                                    <th><span class="colGreen">{{userlist' value.auditnum}} {{userlist' value.auditor}} {{userlist' value.auditstatus}} </span></th>
                                    <td><a href="javascript:if(confirm('确实要删除吗?'))location='/manage/item/del/{{userlist' value.pmid}}'" class="colGray" class="colGray" data-original-title="数据诚可贵，删除有风险" data-toggle="tooltip" data-placement="bottom">删除标段与数据</a></td>
                                </tr>
                                <!-- endloop -->
                            </tbody>
                        </table>
                    </fieldset>
                </div>
            </div>
        </div>
        <!--重置密码-->
        <div class="modal hide fade" id="sendpw">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h3>重置密码成功</h3>
            </div>
            <div class="modal-body">
                <p>系统已将新密码发送至该用户的登录邮箱：<b id="email"></b></p>
                <p>如果长时间无法接收到邮件，请确认该邮箱是否可以正常接收邮件；</p>
                <p>添加 postmaster@zhzd.sendcloud.org 至邮箱白名单，再重新操作<b>重置密码</b>。</p>
            </div>
            <div class="modal-footer">
            </div>
        </div>
        <!--重置密码-->
        <script type="text/javascript">autoFlashHeight();</script>
        <script type="text/javascript">
            $(function () {
                $('#dynamic_select').on('change', function () {
                    var url = $(this).val(); // get selected value
                    if (url) { // require a URL
                        window.location = '/manage/item/list/' + url + '/project'; // redirect
                    }
                    return false;
                });
            });
            function confirm_stop() {
                if (confirm('是否停用此用户？')) {
                    $('#myform').submit();
                }

            }
            function confirm_resetpasswd(uid) {
                $.get("{{rootUrl}}manage/user/repasswd/" + uid + "/uid", function (data) {
                    $('#email').html(data);
                });
            }
        </script>
    </body>
</html>