<div class="list_search fl">


  
    
        
    <ul id="searchConfig" style="position:absolute;z-index:2;">
        <li ng-repeat="element in searchConfigElements">
            <input type='checkbox' class='osc' id='__os{{element.item.ID}}' ng-checked="element.select" />  {{element.item.pName}}
        </li>
    </ul>
    <input type="button" value="设置" id="searchConfigButton" ng-click="searchConfig();" />


      <dl id="search" class="fl">

          <dd ng-repeat="element in sElements | limitTo: 18">

              <div ng-if="element.pTypeId == 5||element.pTypeId == 7">
                  <span class="lab_01"> {{element.pName }}:</span> <input id="__c{{element.ID}}" name="__c{{element.ID}}" tag="edit" />
              </div>

              <div ng-if="element.pTypeId == 1">
                  <span class="lab_01"> {{element.pName }}:</span> <input type="checkbox" id="__c{{element.ID}}" name="__c{{element.ID}}" tag="edit" />
              </div>

              <div ng-if="element.pTypeId == 3||element.pTypeId == 4">
                  <span class="lab_01"> {{element.pName }}:</span>
                  <input type="text" class="two_text" id="__c{{element.ID}}x1" name="__c{{element.ID}}x1" tag="edit" vad="{{element.validator}}" />
                  <input type="text" class="two_text" id="__c{{element.ID}}x2" name="__c{{element.ID}}x2" tag="edit" vad="{{element.validator}}" />
              </div>


              <div ng-if="element.pTypeId == 6">
                  <span class="lab_01"> {{element.pName }}:</span>
                  <input datepick class="date-pick two_text" type="text" id="__c{{element.ID}}x1" name="__c{{element.ID}}x1" tag="edit" />
                  <input datepick class="date-pick two_text" type="text" id="__c{{element.ID}}x2" name="__c{{element.ID}}x2" tag="edit" />
              </div>

              <div ng-if="element.pTypeId == 2||element.pTypeId == 13||element.pTypeId == 20">
                  <span class="lab_01"> {{element.pName }}:</span>
                  <select multiselectdropdown type="data" multiple="multiple" id="__c{{element.ID}}" name="__c{{element.ID}}"></select>
              </div>

              <div ng-if="element.pTypeId == 12||element.pTypeId == 19">
                  <span class="lab_01"> {{element.pName }}:</span>
                  <select multiselectdropdown type="user" multiple="multiple" id="__c{{element.ID}}" name="__c{{element.ID}}"></select>
              </div>

              <div ng-if="element.pTypeId == 16">
                  <span class="lab_01"> {{element.pName }}:</span>
                  <select id="__c{{element.ID}}_o" name="__c{{element.ID}}_o" tag="edit">  <option value="1">=</option><option value="3">&gt;</option><option value="2">&lt;</option> <option value="5">包含(in)</option></select>  <input placeholder="编号" class="two_text" tag="edit" vad="%5E%5B%5Cd%5D+$" type="text" id="__c{{element.ID}}" name="__c{{element.ID}}" /> <a href="javascript:void(0);" style="color:#808080" ng-click="dosm();">扫码</a> <div id="saomadiv">         <textarea id="idlist" rows="8" cols="30"></textarea>         <br />         <table><tr><td><input id="saomasubmit" type="button" value="提交" ng-click="saomasubmit();" /> </td>         <td>          <input type="button" id="saomacancel" value="取消" ng-click="saomacancel();" /> </td>         </tr></table>       </div>
              </div>

              <div ng-if="element.pTypeId == 18">
                  <span class="lab_01"> {{element.pName }}:</span>
                  <input type="checkbox" tag="edit" id="__c{{element.ID}}" name="__c{{element.ID}}" />  <input placeholder="根节点" type="text" tag="edit" id="__c{{element.ID}}x1" name="__c{{element.ID}}x1" class="two_text" />   <input class="two_text" placeholder="深度" type="text" tag="edit" id="__c{{element.ID}}x2" name="__c{{element.ID}}x2" />
              </div>
          </dd>

          <dd>
              <span class="lab_01">排序:</span> <select multiselectdropdown type="order" pageid="{{pageId}}" tag="edit" id="_order" name="_order"></select>
          </dd>

          <dd><input type='button' value=" 查 询 " id="searchSubmit" class="two_text" ng-click="dosearch()" /> <input type='button' class="two_text" value=" clear " id="searchClear" ng-click="searchClear();" />回收站<input id="_sys_status" type="checkbox" tag="edit" /></dd>

      </dl>
 

    <div class="vC clear" style="position:relative">

        <div class="menu_lev3">
            <div id="menu1" class="menusel" ng-show="workfls.length>0" >  
            <h2 class="point">  <span class="text">  <a href="javascript:void(0);">业务流程</a>  </span>  </h2>  
                <div class="position1">   
                <ul class="typeul">
                    <li ng-repeat="workfl in workfls"><a title="{{workfl.statusName}}" ng-click="updateWorkFlow(workfl.ID);">{{workfl.statusName}}</a></li>
                </ul>   
                 </div>             
            </div>


            <div id="menu9" class="menusel" ng-show="createpages.length&&hasParentPage.length">
                <h2 class="point">  <span class="text">  <a href="javascript:void(0);">创建子项</a>  </span>  </h2>
                <div class="position1">
                    <ul class="typeul">
                        <li ng-repeat="createpage in createpages">
                            <a ng-if="createpage.pageType==15" title="{{createpage.UIname}}" ng-click="createPop(createpage.ID)">{{createpage.UIname}}</a>
                            <!--<a ng-if="createpage.pageType==100" title="{{createpage.UIname}}" ng-click="complexEdit(editpage.ID)">{{editpage.UIname}}</a>-->
                        </li>
                    </ul>
                </div>
            </div>



            <div id="menu10" class="menusel" ng-show="joinpages.length">
                <h2 class="point">  <span class="text">  <a href="javascript:void(0);">创建关联项</a>  </span>  </h2>
                <div class="position1">
                    <ul class="typeul">
                        <li ng-repeat="joinpage in joinpages">
                            <a ng-if="joinpage.pageType==15" title="{{joinpage.UIname}}" ng-click="joinPop(joinpage.ID)">{{joinpage.UIname}}</a>
                            <!--<a ng-if="createpage.pageType==100" title="{{createpage.UIname}}" ng-click="complexEdit(editpage.ID)">{{editpage.UIname}}</a>-->
                        </li>
                    </ul>
                </div>
            </div>




            <div id="menu2" class="menusel" ng-show="editpages.length">
                <h2 class="point">  <span class="text">  <a href="javascript:void(0);">编辑单行</a>  </span>  </h2>
                <div class="position1">
                    <ul class="typeul">
                        <li ng-repeat="editpage in editpages">
                            <a ng-if="editpage.pageType==2" title="{{editpage.UIname}}" ng-click="editPop(editpage.ID)">{{editpage.UIname}}</a>
                            <a ng-if="editpage.pageType==100" title="{{editpage.UIname}}" ng-click="complexEdit(editpage.ID)">{{editpage.UIname}}</a>
                        </li>
                    </ul>
                </div>
            </div>



            <div id="menu3" class="menusel" ng-show="stateditpages.length">
                <h2 class="point">  <span class="text">  <a href="javascript:void(0);">状态编辑</a>  </span>  </h2>
                <div class="position1">
                    <ul class="typeul">
                        <li ng-repeat="page in stateditpages">
                            <a title="{{page.page.UIname}}">{{page.page.UIname}}</a><ul>
                                <li class="fli" ng-repeat="s in page.source"> <a href="javascript:void(0);" ng-click="updateStatus(page.page.ID, s.ID)">{{s.statusName}}</a>  </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>


            <div id="menu4" class="menusel" ng-show="bulkcreatepages.length">
                <h2 class="point">  <span class="text">  <a href="javascript:void(0);">批量导入</a>  </span>  </h2>  <div class="position1">
                    <ul class="typeul"><li ng-repeat="page in bulkcreatepages"><a title="{{page.UIname}}" ng-click="bulkCreate(page.ID)">{{page.UIname}}</a></li> </ul>
                </div>
            </div>

            <div id="menu5" class="menusel" ng-show="exportpages.length">
                <h2 class="point">  <span class="text">  <a href="javascript:void(0);">导出数据</a>  </span>  </h2>  <div class="position1">
                    <ul class="typeul">
                        <li ng-repeat="page in exportpages"><a title="{{page.UIname}}" href="javascript:void(0);" tag="export" target="_blank" ng-click="export(page.ID);">{{page.UIname}}</a></li>
                    </ul>
                </div>
            </div>



            <div id="menu6" class="menusel" ng-show="viewdetailpages.length">
                <h2 class="point">  <span class="text">  <a href="javascript:void(0);">展示页</a>  </span>  </h2>  <div class="position1">
                    <ul class="typeul">
                        <li ng-repeat="page in viewdetailpages"><a title="{{page.UIname}}" ng-click="pviewPop(page.ID)">{{page.UIname}}</a></li>
                    </ul>
                </div>
            </div>




            <div id="menu7" class="menusel">  <h2 class="point">  <span class="text">  <a href="javascript:void(0);">删除选中项</a>  </span>  </h2>  <div class="position1">   <ul class="typeul"> 
             
               <li><a href="javascript:void(0);" ng-click="fakeDel(true)" title="放入回收站">放入回收站</a></li>
               <li class="lli"><a href="javascript:void(0);" ng-click="fakeDel(false)" title="找回">找回</a></li>
              <li><a href="javascript:void(0);" ng-show="isadmin" ng-click="adminDel(true)" title="直接删除">直接删除</a></li> 
                </ul>    </div> </div>



            <div id="menu8" class="menusel">  <h2 class="point">  <span class="text">  <a href="javascript:void(0);">更多操作</a>  </span>  </h2>  <div class="position1">   <ul class="typeul">
             <li><a ng-click="datalogPop();">数据日志</a></li>
             <li class="lli"><a ng-click="workflowlogPop();">流程日志</a></li>
                 </ul>    </div> </div>


        </div>


        <input type="button" value="设置" id="viewConfigButton" ng-click="viewConfig();" />
        <ul id="viewConfig" style="position:absolute;z-index:2;">

            <li>
              <input type='button' class="two_text" value="清空选择" ng-click="clearListConfig();" /></li>
            <li ng-repeat="element in listConfigElements">
                <input type='checkbox' class='ovc' id='__ov{{element.item.ID}}' ng-checked="element.select" />  {{element.item.pName}}
            </li>


        </ul>
    </div>


    <div id="paging_right" class="clear">
        <div id="countdiv" >{{s}}</div>
        <ul class="fr" id="paging">
            <li class="first" ><a href="javascript:void(0);" ng-show="paging.first.n!=0" ng-click="pageNumber(paging.first.n);">{{paging.first.txt}} </a></li>
            <li>
                <span ng-repeat="page in paging.list" ng-switch on="page.n==startIndex" ng-click="pageNumber(page.n);">
                    <a ng-switch-when="false">{{page.txt}}</a>
                    <strong ng-switch-when="true">{{page.txt}}</strong>
                </span> 
                <i>...</i>
                <a href="javascript:void(0);" ng-show="paging.last.n!=0" ng-click="pageNumber(paging.last.n);">{{paging.last.txt}} </a>
            </li>
            <li class="last"><a href="javascript:void(0);" ng-show="paging.next.n!=0" ng-click="pageNumber(paging.next.n);">{{paging.next.txt}} </a></li>
            <li>         
                <select ng-model="pageSize" ng-change="pageSizeChange(pageSize);" ng-options="item.ID as item.Title for item in pages"></select>
            </li>
        </ul>
    </div>

       


    <table id="tb" class="ctltable" cellpadding="5" cellspacing="5" border="1" style="border:1px solid #dddddd">
        <tbody>
            <tr>
                <th><input id="selectAll" type="checkbox" ng-click="selectAll();"> 全选</th><th ng-repeat="element in vElements | limitTo: 15" class="c_{{element.pTypeId}}">   {{element.pName}} </th>
                <th>操作</th>
            </tr>
        </tbody>

        <tbody >
            <tr ng-repeat="row in vdata">
                <td><input id="checkbox_{{row.index}}" type="checkbox" name="mainCheckBox"> 
                    <!--<div ng-show="row.depth>0" >D：{{row.depth}}</div>-->  
                </td>
                <td ng-repeat="column in row" >   
                    
                    <div ng-if="column.pTypeId == 16">
                        <div class="level_{{row.depth}}"> {{column.val}} </div>
                    </div>
                    
                                                        
                    <div ng-if="column.pTypeId == 5||column.pTypeId == 1||column.pTypeId == 3||column.pTypeId == 4||column.pTypeId == 6||column.pTypeId == 21||column.pTypeId == 18">
                        {{column.val}}
                    </div>

                    <div ng-bind-html="column.val" ng-if="column.pTypeId == 7">
                    
                    </div>

                    <div ng-if="column.pTypeId == 2||column.pTypeId == 13">
                        {{column.val.statusName}}
                    </div>
                    <div class="image" ng-if="column.pTypeId == 11" >
                        <a href="{{column.val.RawFilePath}}" style="color:#15787e" target="_blank"><img  width='100px' ng-src='{{column.val.FilePath}}' /></a>
                    </div>
                    <div  ng-if="column.pTypeId == 10">
                       <div ng-repeat="att in column.val">
                           <a href="{{att.RawFilePath}}" style="color:#15787e" target="_blank">{{att.Filename}}</a>
                       </div>
                    </div>
                    <div ng-if="column.pTypeId == 12">
                        {{column.val.XingMing}}
                    </div>

                    <div ng-if="column.pTypeId == 19">
                        <span ng-repeat="user in column.val">
                            {{user.XingMing}},
                        </span>
                    </div>

                    <div ng-if="column.pTypeId == 20">
                        <span ng-repeat="stats in column.val">
                           {{stats.statusName}},
                        </span>
                    </div>

                </td>
                <td class="operation">

                    <a href="javascript:void(0);" style="color:#15787e;padding:6px 3px 6px 3px;" ng-show="editpages.length>0" ng-click="editPop2(row.index)"> 编辑 </a>
                    <a href="javascript:void(0);" style="color: #15787e; padding: 6px 3px 6px 3px;" ng-show="viewdetailpages.length>0" ng-click="pviewPop2(row.index)"> 查看 </a>
                    <a href="javascript:void(0);" style="color: #15787e; padding: 6px 3px 6px 3px;" ng-show="createpages.length>0&&hasParentPage.length" ng-click="createPop2(row.index)"> 子项 </a>
                    <a href="javascript:void(0);" style="color: #15787e; padding: 6px 3px 6px 3px;" ng-show="joinpages.length>0" ng-click="joinPop2(row.index)"> 关联项 </a>

                </td>
            </tr>
        </tbody>
    </table>








    </div>

