<h2>可用页面  <span ng-show="categoryId>0"> - {{category.categoryName}}</span></h2>


分类：
<ul style="width: 980px"><li ng-repeat="c in cates" style="float:left;width:110px"><a style="color:blue" href="#/admin/page/{{c.ID}}"> {{c.categoryName}}</a></li></ul>


<div style="width:100%;float:right;" ng-show="categoryId>0">
    <input id="rowcount" type="hidden" value="0" />
    <input id="rowdel" type="hidden" value="" />
    <input type="button" value="添加" ng-click="addChild();" />

    <div id="sublist">

        <table id="sub" class="childTable" style="width:100%" tag="table_admin">
            <tr>
                <th>编号</th>
                <th>显示名称</th>
                <th>英文名称</th>
                <th>页面类型</th>
                <th>父页面</th>
                <th>排序</th>
                <th>操作</th>
            </tr>

            <tr class="hide">
                <td>
                    <div>
                        <input tag='edit' class="admin_text index" type='text' name='ID' disabled="disabled" />
                    </div>
                </td>


                <td>
                    <div>
                        <input tag='edit' class="admin_text" type='text' name='UIname'  req='true' vad='^[-\w\u4e00-\u9fa5]{2,20}$' />
                    </div>
                </td>

                <td>
                   <div>
                        <input tag='edit' class="admin_text" type='text' name='pageName' req='true' vad='^[-\w]{2,50}$' />
                   </div>
                </td>                


                <td>
                    <div>
                        <select name='pageType' tag="edit">
                            <option ng-repeat="obj in pageTypes" value="{{obj.id}}"> {{obj.name}} </option>
                        </select>
                    </div>
                </td>

                <td>
                    <div>
                        <select name='parentId' tag="edit">
                            <option ng-repeat="obj in pages" value="{{obj.ID}}"> {{obj.UIname}} </option>
                        </select>
                    </div>
                </td>

                <td>
                    <div>
                        <input tag='edit' class="admin_text index" type='text' name='pageOrder' vad='^\d+$' />
                    </div>
                </td>



                <td> <a style="color:blue;" href="javascript:void(0);" class="remove">删除</a></td>

            </tr>
            <tr ng-repeat="row in result" ng-show="result.length">
                <td>
                    <div>
                        <input tag='edit' class="admin_text index" type='text' name='ID' disabled="disabled" ng-model="row.ID" />
                    </div>
                </td>


                <td>
                    <div>
                        <input tag='edit' class="admin_text" type='text' name='UIname' req='true' vad='^[-\w\u4e00-\u9fa5]{2,20}$' ng-model="row.UIname" />
                    </div>
                </td>

                <td>
                    <div>
                        <input tag='edit' class="admin_text" type='text' name='pageName' req='true' vad='^[-\w]{2,50}$' ng-model="row.pageName" />
                    </div>
                </td>


                <td>
                    <div>
                        <select name='pageType' tag="edit">
                            <option ng-repeat="obj in pageTypes" value="{{obj.id}}" ng-selected="obj.id==row.pageType"> {{obj.name}} </option>
                        </select>
                    </div>
                </td>

                <td>
                    <div>
                        <select name='parentId' tag="edit">
                            <option ng-repeat="obj in pages" value="{{obj.ID}}" ng-selected="obj.ID==row.parentId"> {{obj.UIname}} </option>
                        </select>
                    </div>
                </td>

                <td>
                    <div>
                        <input tag='edit' class="admin_text index" type='text' name='pageOrder' vad='^\d+$' ng-model="row.pageOrder" />
                    </div>
                </td>





                <td> <a style="color:blue;" href="javascript:void(0);" class="remove">删除</a></td>


            </tr>



        </table>

    </div>
</div>







<input type="button" value="更新" ng-click="adapter();" ng-show="categoryId>0" />