﻿@model IEnumerable<Rbac.Entity.BaseJobTitle>
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>岗位列表</title>
    <link href="~/media/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="~/media/themes/blue/default.css" rel="stylesheet" />
    <link href="~/media/themes/blue/table.css" rel="stylesheet" />
    <link href="~/media/ztree/css/jquery.ztree.css" rel="stylesheet" />
    <script src="~/media/jquery/jquery.min.js"></script>
    <script src="~/media/jquery/jquery.form.js"></script>
    <script src="~/media/jquery/jquery.cookie.js"></script>
    <script src="~/media/jquery/jquery.scrollUp.min.js"></script>
    <script src="~/media/jquery/jquery.placeholder.min.js"></script>
    <script src="~/media/bootstrap/js/bootstrap.min.js"></script>
    <script src="~/media/noty/jquery.noty.js"></script>
    <script src="~/media/noty/layouts/center.js"></script>
    <script src="~/media/noty/themes/default.js"></script>
    <script src="~/media/easytabs/jquery.hashchange.min.js"></script>
    <script src="~/media/easytabs/jquery.easytabs.min.js"></script>
    <script src="~/media/artdialog/artDialog.js?skin=blue"></script>
    <script src="~/media/artdialog/plugins/iframeTools.js"></script>
    <script src="~/media/ztree/js/jquery.ztree.all-3.5.min.js"></script>
    <script src="~/media/ztree/js/jquery.ztree.exhide-3.5.min.js"></script>
    <script src="~/media/js/common.js"></script>
</head>
<body style="margin:0px;padding:0px">
    <form action="/SysManage/BaseJobTitle/JobTitleList" method="get" name="SearchForm" id="SearchForm" class="form-inline">
        <div class="input-prepend input-append">
            <div class="btn-group">
                <a class="btn" murphybuttonname="BaseJobTitle.Create" href="javascript: createJobTitle()">创建岗位</a>
            </div>
        </div>
        <div class="input-prepend input-append">
            <input class="input-medium" type="text" value="@ViewBag.JobTitleName" id="jobTitleName" name="jobTitleName" placeholder="请输入岗位名" />
            <button class="btn btn-danger" type="submit"><i class="icon-search icon-white"></i> 搜索</button>
            <button class="btn btn-warning" type="button" id="clean"><i class="icon-share-alt icon-white"></i> 清除</button>
        </div>
    </form>
    <table class="table table-hover">
        <thead>
            <tr>
                <th style="width:30px">状态</th>
                <th style="width: 22%; ">岗位名称</th>
                <th style="width: 20%; ">岗位编码</th>
                <th >岗位描述</th>
                <th style ="width: 10%; ">操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var jobTitle in Model)
            {
                <tr>
                    <td>
                        @if (jobTitle.Enabled == 1)
                        {
                            <img src="~/media/images/content_status_1.png" />
                        }
                        else
                        {
                            <img src="~/media/images/content_status_0.png" />
                        }
                    </td>
                    <td>@jobTitle.Name</td>
                    <td>@jobTitle.Code</td>
                    <td>@jobTitle.Description</td>
                    <td>
                        <div class="dropdown">
                            <a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);"> 操作 <span class="caret"></span> </a>
                            <ul class="dropdown-menu pull-right">
                                <li><a murphybuttonname="BaseJobTitle.Update" href="/SysManage/BaseJobTitle/Update?id=@jobTitle.Id">编辑</a></li>
                                <li><a murphybuttonname="BaseJobTitle.Delete" href="javascript: deleteJobTitle('@jobTitle.Id')">删除</a></li>
                            </ul>
                        </div>

                    </td>
                </tr>
            }
        </tbody>
    </table>
    @if (Model.Count() == 0)
    {
        <div class="alert">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            对不起，没有找到相匹配的记录
        </div>
    }
    @Html.Raw(ViewBag.Pager)
    <script type="text/javascript">
            $(document).ready(function () {
                parent.$("#cur_number").text(@ViewBag.TotalItems);
            })
    </script>
    <script src="~/media/js/jobtitle.js"></script>
</body>
</html>
