 <!-- 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 'adminReceiptMenu' -->
				</div>
					<legend>编辑讲师</legend><form method="post" action="/addCategory" name="group">
					<div class="control-group">
				     <div class="controls">
						 
				    </div>
				  </div>
				<table class="table table-striped">
              <thead>
                <tr>
                  <th width="30%">讲师类型</th>
                  <th>成员</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
              
              <!-- loop lecturerList -->
                <tr>
                  <td>{{execute' key}}</td>
                  <td>{{execute' value}}</td>
                  <td><a  <!-- if {{execute' key}}=='员工' --> href="#add" <!-- else -->  href="#addOutside" <!-- endif -->  data-toggle="modal" >添加</a></td>
                </tr>
               <!-- endloop -->
              
			  
              </tbody>
          	</table>
					</form>
			</div>
		</div>
	</div>
	<!--弹出（添加讲师）-->
	<div class="modal hide fade" id="add">
	
	<form action="/adminReceiptLecturerAddDo" id="iscs" method="post">
	<input type="hidden" id="mold" name="mold" value="员工">
		<div class="modal-dialog">
			<div class="modal-content">
		<div class="modal-header">
			<h3>添加讲师</h3>
		</div>
		<div class="modal-body">
			
			<div class="control-group">
			  <label class="control-label">员工</label>
			  <div class="controls">
			  
			  <select  style="width:190px" node='category' name="cidKey">
			  <option value="">请选择</option>
			    	<!-- 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>
	</div>
	
	</form>
	
	</div>
	<!--弹出-->
	
	
	
	<div class="modal hide fade" id="addOutside">
	<form action="/adminReceiptLecturerAddDo" id="iscs" method="post">
	<input type="hidden" id="mold" name="mold" value="外聘">
	
		<div class="modal-dialog">
			<div class="modal-content">
		<div class="modal-header">
			<h3>添加讲师</h3>
		</div>
		<div class="modal-body">
			
			
			<div class="control-group">
			  <label class="control-label">讲师名称</label>
			  <div class="controls">
			    <input type="text" name="staff">
			  </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>
	</div>
	
	</form>
	
	</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>