 <!-- include 'header' -->
 <script type="text/javascript" >
  var invoiceStaff={{invoiceStaff}};
</script>
 <script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/admin.js"></script>

 
<body>
	<div class="mainLayout">
		<div class="mainMenu">
			<div class="menuItem">
				<a href="#" class="mLogo">CLD</a>
				<ul>
					<!-- include 'menu' -->
				</ul>
			</div>
		</div>
		<div class="warpContent">
			<div class="subMenu fL">
				<div class="menuItem">
					<ul>
						<!-- include 'admin_menu' -->
					</ul>
				</div>
			</div>
			<div class="adminContent autoHeight">
				<div class="subNav">
					<!-- include 'adminInvoiceMenu' -->
				</div>
					<form>
					<legend>添加办事处汇总权限</legend>
						<table class="table table-striped">
              <thead>
                <tr>
                  <th>办事处名称</th>
                  <th>可见</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
              <!-- loop categoryList -->
                <tr>
                  <td>{{categoryList' value.title}}</td>
                  <td>
                  {{categoryList' value.html}}
                  </td>
                  <td><a href="#add" node-iacd data-cidKey="{{categoryList' value.cidKey}}" data-toggle="modal">添加</a></td>
                </tr>
                <!-- endloop -->
                
              </tbody>
          	</table>
					</form>
			</div>
		</div>
	</div>
<!--弹出（添加可见人）-->
<div class="modal hide fade" id="add">

  <div class="modal-dialog">
  <form action="/addInvoiceCategoryManage" id="iscs" method="post">
  <input type="hidden" id="cidKey" name="cidKey" value="">
    <div class="modal-content">
    <div class="modal-header">
    <h3>添加可见人</h3>
    </div>
    <div class="modal-body">
    	<div class="control-group">
    		<div class="controls">
			    <select  style="width:190px" node='category'>
			    	<!-- loop categoryList -->
			    	<option value="{{categoryList' value.cidKey}}">{{categoryList' value.title}}</option>
			    	<!-- endloop -->
			    	
			    </select>
			    <select name="sidKey" node-category='staff' style="width:190px">
			    </select>
			</div>
		</div>
    </div>
	<div class="modal-footer">
	    <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
	    <button type="submit" class="button" data-toggle="modal">确定</button>
	    
	</div>
</div>
</form>
</div>
</div>
<!--弹出-->
<!--弹出（删除可见人）-->
<div class="modal hide fade" id="del">

  <div class="modal-dialog">
    <div class="modal-content">
    <div class="modal-header">
    <h3>确认删除</h3>
    </div>
    <div class="modal-body">
    	<p>删除后，该用户将不能看到办事处汇总页</p>
    </div>
	<div class="modal-footer">
	    <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a>
	    <a href="#" class="button" data-dismiss="modal" aria-hidden="true">确定</a>
	</div>
</div>
</div>
</div>
<!--弹出-->
<script type="text/javascript">autoFlashHeight();</script>
</body>
