<!DOCTYPE html>
<html data-ng-app="CooWorkApp" data-ng-controller="movieStubController">

<head>
    <title ng-bind="title"> </title>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="css/bootstrap-multiselect.css" />
    <link rel="stylesheet" type="text/css" href="css/ngDialog.css" />
    <link rel="stylesheet" type="text/css" href="css/ngDialog-theme-default.css" />
    <link rel="stylesheet" type="text/css" href="css/ngDialog-theme-plain.css" />
    <link rel="stylesheet" type="text/css" href="css/ngDialog-theme-default-dialog.css" />    
    <link rel="stylesheet" type="text/css" href="css/jquery-te-1.4.0.css" />
    <link rel=" stylesheet" type="text/css" href="css/datePicker.css" />
    <link rel="stylesheet" type="text/css" href="css/CooWorkNode.css" />
    <link rel="stylesheet" type="text/css" href="css/jquery.jqplot.min.css">
    <link rel="stylesheet" type="text/css" href="css/app.css" />
    <script type="text/javascript" src="js/lib/jquery.min.js"></script>
    <script type="text/javascript" src="js/lib/angular.js"></script>
    <script type="text/javascript" src="js/lib/angular-resource.min.js"></script>
    <script type="text/javascript" src="js/lib/angular-route.min.js"></script>

    <script type="text/javascript" src="js/lib/jquery-te-1.4.0.min.js"></script>
    <script type="text/javascript" src="js/lib/ngDialog.js"></script>

    <script type="text/javascript" src="js/lib/underscore.js"></script>


    <script type="text/javascript" src="js/lib/date.js"></script>
    <script type="text/javascript" src="js/lib/jquery.datePicker.js"></script>

    <script type="text/javascript" src="js/lib/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/lib/bootstrap-multiselect.js"></script>
    <script src="js/lib/jqplot/jquery.jqplot.min.js" type="text/javascript"></script>
    <script src="js/lib/jqplot/jqplot.barRenderer.min.js" type="text/javascript"></script>
    <script src="js/lib/jqplot/jqplot.categoryAxisRenderer.min.js" type="text/javascript"></script>
    <script src="js/lib/jqplot/jqplot.pointLabels.min.js" type="text/javascript"></script>
    <script src="js/lib/jqplot/jqplot.pieRenderer.min.js" type="text/javascript"></script>
    <script src="js/lib/jqplot/jqplot.donutRenderer.min.js" type="text/javascript"></script>

    <script type="text/javascript" src="js/app.js"></script>
    <script type="text/javascript" src="js/service/services.js"></script>
    <script type="text/javascript" src="js/service/cooConfig.js"></script>

    <script type="text/javascript" src="js/service/rest.js"></script>
    <script type="text/javascript" src="js/service/locdbServices.js"></script>
    <script type="text/javascript" src="js/service/g.js"></script>

   
    <script type="text/javascript" src="js/controller/controllers.js"></script>
    <script type="text/javascript" src="js/controller/admincontrollers.js"></script>
    <script type="text/javascript" src="js/controller/basecontrollers.js"></script>
    <script type="text/javascript" src="js/controller/editcontrollers.js"></script>
    <script type="text/javascript" src="js/controller/reportcontrollers.js"></script>
    <script type="text/javascript" src="js/controller/complexcontrollers.js"></script>
    <script type="text/javascript" src="js/directive/directives.js"></script>
    <script type="text/javascript" src="js/router/routes.js"></script>
    <script type="text/javascript" src="js/service/login.js"></script>
    <!--custom--> 
</head>

<body>

    <div data-ng-controller="headController" class="menu">
        <ul>
            <li id="nav_bg1"><div class="nav-title"><a href="#/center"></a> </div></li>

            <li ng-repeat="n in nav | limitTo: 8" class="submenu">
                <div class="nav-title"><a href="javascript:void(0);"> {{n.c.categoryName}} </a> </div>

                <div class="nav-content">
                    <dl>
                        <dd ng-repeat="pp in n.p" ng-switch on="pp.page.pageType">
                            <div ng-switch-when="10" ng-if="!pp.define" class="tb2"><a href="#/list/{{pp.page.categoryId}}/page/{{pp.page.ID}}">{{pp.page.UIname}} </a></div>
                            <div ng-switch-when="16" ng-if="!pp.define"> <a href="#/report/{{pp.page.categoryId}}/page/{{pp.page.ID}}"> {{pp.page.UIname}} </a> </div>
                            <div ng-switch-when="15" ng-if="!pp.define"> <a href=" #/create/{{pp.page.categoryId}}/page/{{pp.page.ID}}"> {{pp.page.UIname}} </a> </div>
                            <div ng-switch-when="99" ng-if="!pp.define"> <a href="#/complexcreate/{{pp.page.categoryId}}/page/{{pp.page.ID}}"> {{pp.page.UIname}} </a></div>

                            <div ng-switch-when="10" ng-if="pp.define"><a href="#/list/{{pp.page.categoryId}}/page_{{pp.page.ID}}"> {{pp.page.UIname}} </a></div>
                            <div ng-switch-when="16" ng-if="pp.define"> <a href="#/report/{{pp.page.categoryId}}/page_{{pp.page.ID}}"> {{pp.page.UIname}} </a> </div>
                            <div ng-switch-when="15" ng-if="pp.define"> <a href=" #/create/{{pp.page.categoryId}}/page_{{pp.page.ID}}"> {{pp.page.UIname}} </a> </div>
                            <div ng-switch-when="99" ng-if="pp.define"> <a href="#/complexcreate/{{pp.page.categoryId}}/page_{{pp.page.ID}}"> {{pp.page.UIname}} </a></div>


                        </dd>
                    </dl>
                </div>
            </li>
         </ul>
        <ul >
            <li id="" class="submenu" ng-show="isAdmin">
                <div class="nav-title"><a href="javascript:void(0);">系统管理</a> </div>
                <div class="nav-content">
                    <dl>
                        <dd>
                            <a href="#/admin/category"> 分类 </a>
                            </dd>
                        <dd>
                            <a href="#/admin/categoryauth"> 分类权限 </a>
                        </dd>
                        <dd>
                            <a href="#/admin/pattern"> 数据列 </a>
                         </dd>
                        <dd>  
                             <a href="#/admin/auth"> 行权限 </a>
                        </dd>
                        <dd>    
                            <a href="#/admin/columnauth"> 列权限 </a>
                       </dd>
                        <dd>     
                            <a href="#/admin/page"> 可用页面 </a>
                        </dd>
                        <dd>    
                            <a href="#/admin/pageauth"> 页面权限 </a>
                        </dd>
                        <dd>   
                             <a href="#/admin/element"> 页面元素 </a>
                        </dd>
                        <dd>    
                            <a href="#/admin/event"> 页面事件 </a>
                        </dd>
                        <dd>    
                            <a href="#/admin/status"> 状态数据 </a>
                        </dd>
                        <dd>    
                            <a href="#/admin/statusMap"> 状态数据映射 </a>
                        </dd>
                        <dd>    
                            <a href="#/admin/tag">多角色标签tag </a>
                         </dd>
                        <dd>

                            <a href="#/admin/role">角色设置 </a>
                        </dd>
                        <dd>    
                            <a href="#/admin/user">用户账号</a>
                       </dd>
                        <dd>     
                            <a href="#/admin/template"> 自定义文件模板 </a>
                       </dd>
                        <dd>    
                             <a href="#/admin/join"> 数据关联 </a>
                        </dd>

                        <dd>
                            <a href="#/admin/workflow"> 设置流程 </a>
                        </dd>
                    </dl>
                </div>

            </li>
            <li class="submenu" ng-show="XingMing!=''">
               你好，{{XingMing}} 
            </li>
            <li class="submenu">
                <div class="nav-title"><a href="javascript:void(0);" ng-show="XingMing!=''" ng-click="logout();" class="back">退出</a></div>
            </li>
           
</ul>


      


        <ul style="float:right;">
            <li class="submenu">
                <div class="nav-title"><a href="javascript:void(0);"   ng-click="clearCache();" class="clearcache">清空缓存</a></div>
     
            </li>
            <li class="submenu" id="nav_bg7">
             
                <div class="nav-title"><a href="javascript:void(0);">导航</a> </div>

                <div class="nav-content" id="dif_wid" >
                    <dl class="name" ng-repeat="n in nav">
                        <dt>
                            <a href="javascript:void(0);"> {{n.c.categoryName}} </a>
                        </dt>
                        <dd class="detail" ng-repeat="pp in n.p" ng-switch on="pp.page.pageType">
                            <span ng-switch-when="10" ng-if="!pp.define"> <a href="#/list/{{pp.page.categoryId}}/page/{{pp.page.ID}}"> {{pp.page.UIname}} </a> </span>
                            <span ng-switch-when="16" ng-if="!pp.define"> <a href="#/report/{{pp.page.categoryId}}/page/{{pp.page.ID}}"> {{pp.page.UIname}} </a> </span>
                            <span ng-switch-when="15" ng-if="!pp.define"> <a href=" #/create/{{pp.page.categoryId}}/page/{{pp.page.ID}}"> {{pp.page.UIname}} </a> </span>
                            <span ng-switch-when="99" ng-if="!pp.define"> <a href="#/complexcreate/{{pp.page.categoryId}}/page/{{pp.page.ID}}"> {{pp.page.UIname}} </a></span>


                            <div ng-switch-when="10" ng-if="pp.define"><a href="#/list/{{pp.page.categoryId}}/page_{{pp.page.ID}}"> {{pp.page.UIname}} </a></div>
                            <div ng-switch-when="16" ng-if="pp.define"> <a href="#/report/{{pp.page.categoryId}}/page_{{pp.page.ID}}"> {{pp.page.UIname}} </a> </div>
                            <div ng-switch-when="15" ng-if="pp.define"> <a href=" #/create/{{pp.page.categoryId}}/page_{{pp.page.ID}}"> {{pp.page.UIname}} </a> </div>
                            <div ng-switch-when="99" ng-if="pp.define"> <a href="#/complexcreate/{{pp.page.categoryId}}/page_{{pp.page.ID}}"> {{pp.page.UIname}} </a></div>
                        </dd>
                    </dl>
                    <dl>
                        <dd class="no_hover_bg">

                           
                            </dd><dd>
                            <a href="#/" target="_blank" style="float:right;"> 打开多窗口 </a>

                        </dd>
                        <dd>
                            <a href="#/password"  style="float:right;"> 修改密码 </a>
                        </dd>
                    </dl>
                </div>

            </li>
        </ul>

        <ul style="float:right;">
            <li class="submenu" id="nav_bg17">
                <div class="nav-title"><a href="http://www.bizsaas.com/app/task" target="_blank">使用说明</a> </div>
            </li>
            <li class="submenu" id="nav_bg17">
                <div class="nav-title"><a href="javascript:void(0);" ng-click="refresh();">刷新</a> </div>
            </li>
        </ul>

    </div>

    <div id="container" class="container">
        <div data-ng-view=""></div>
    </div>

    <div id="ajax"></div>

    <div class="script"></div>
</body>

</html>
