
分类：
<ul style="width: 980px">
    <li ng-repeat="c in catepages" style="float:left;display:inline-block;">

    <span style="width:80px;">{{c.category.categoryName}}</span>
     <div class="ele_sub_list">
    <u ng-repeat="p in c.pages">
        <a style=" padding: 3px 6px 3px 6px;" href="#/admin/element/{{c.category.ID}}/{{p.ID}}"> {{p.UIname}}</a>
    </u>  
         </div> 
    
    </li></ul>

<br/>
<br />

<h2 style="clear:both;padding-top:15px;">页面元素  <span ng-show="categoryId>0"> --> {{category.categoryName}} --> <i ng-show="pageId>0">{{page.UIname}}</i></span></h2>





<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>
            </tr>

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


                <td>
                    <div>
                        <select name='patternId' tag="edit">
                            <option value="0">请选择</option>
                            <optgroup ng-repeat="c in patterns" label="{{c.c.categoryName}}">
                                <option ng-repeat="s in c.p" value="{{s.ID}}" >{{s.pName}}</option>
                            </optgroup>  
                        </select>
                    </div>
                </td>

          
                <td>
                    <div>
                        <input tag='edit' class="admin_text index" type='text' name='eOrder' 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>
                        <select name='patternId' tag="edit">
                            <option value="0">请选择</option>
                            <optgroup ng-repeat="c in patterns" label="{{c.c.categoryName}}">
                                <option ng-repeat="s in c.p" value="{{s.ID}}" ng-selected="s.ID==row.patternId">{{s.pName}}</option>
                            </optgroup>  
                        </select>
                    </div>
                </td>


                <td>
                    <div>
                        <input tag='edit' class="admin_text index" type='text' name='eOrder' vad='^\d+$' ng-model="row.eorder" />
                    </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" />