<?php include pTemplate("header");?>
	<div id="loadingbar"></div>
     
	<div id="main" class="mainPanel wd txt_left">
    	<div class="company">
        	<aside class="left_panel" un="leftNavBar">
            	<ul class="sidetd">
               		<?php echo $left_menu_html;?>
            	</ul>
        	</aside>
        	<div class="right_panel">
				<div class="content_block">
					<h1 style="margin:0;">短信分配</h1>
				</div>
    			<form name="sms_form" action="<?php echo SITEURL;?>?mod=school&do=do" method="post">
    			<div name="status" class="content_table">
					<h1 style="padding-bottom:0; margin-bottom:0;">您还剩余短信 <span class="my_sms_balance" total="<?php echo $my_balance;?>" usable='<?php echo $my_balance;?>' style="color:red"><?php echo $my_balance;?></span> 条可供分配</h1><br/>
					<div style="width:100%;">
						<div class="caption" style="text-align:right; margin:0;"></div>
						<table cellspacing="0" align="center" class="infoTable domainInfo listTable" style="width:100%;table-layout:fixed;">
							<tbody>
								<tr>
									<th style="width:10%;">
										<a href="#">用户姓名</a>
									</th>
									<th style="width:35%;border-right:none;">
										<a href="#">所在部门</a>
									</th>
									<th style="width:15%;">
										<a href="#">所属用户组</a>
									</th>
									<th style="width:20%;border-right:none;">
										<a href="#">联系方式</a>
									</th>
									<th style="width:10%;"><a href="#">剩余条数</a></th>
									<th style="width:10%;"><a href="#">分配条数</a></th>
								</tr>
				
				<!-- <?php if(!empty($adminSub)) { ?> -->
					<!-- <?php foreach((array)$adminSub as $key=>$item) {?> -->
						<tr>
							<td><?php echo $item['realname'];?></td>
							<td><a href="<?php echo SITEURL;?>?mod=system&do=member&c=sch&bid=<?php echo $item['bid'];?>"><?php echo $item['bname'];?></a></td>
							<td style=" color: #5AAB04; font-weight:bold"><?php echo $item['groupname'];?></td>
							<td>
								<!-- <?php if($item['phonenum'] == '') { ?> -->
									未设置
								<!-- <?php } else { ?> -->
									<?php echo $item['phonenum'];?>
								<!-- <?php } ?> -->
							</td>
							<td>
								<?php echo $item['sms_balance'];?>
							</td>
							<td>
								<input type="text" name="sms_tiaoshu[<?php echo $item['uid'];?>]" op='sms_tiaoshu[]' onKeyUp="this.value=(this.value=this.value.replace(/\D/g,'').substring(0,10)).substring(0,10)"  value="0" style="width:55px;" uid="<?php echo $item['uid'];?>" class="sms_text"/>
								<input type="hidden" name="old_tiaoshu[<?php echo $item['uid'];?>]" value="<?php echo $item['sms_balance'];?>"/>
							</td>
						</tr>
					<!-- <?php }?> -->
				<!-- <?php } ?> -->
							</tbody>
						</table>
						<input type="hidden" name="action" value="sms_assign"/>
						<input type="hidden" name="my_balance" value="<?php echo $my_balance;?>"/>
						<input type="hidden" name="old_balance" value="<?php echo $my_balance;?>"/>
						<div class="right page_tool">
							<input type="submit" class="bt_compose" value="确定分配"/>
						</div>
					</div>
				</div>
				</form>
			<div class="content_table">
				<div class="clr"></div>
    		</div>
		</div>
    </div>
</div>

<?php include pTemplate("footer");?>

</body>
</html>