<?php include pTemplate("header");?>
     <div id="loadingbar"></div>
     
     <div id="main" class="mainPanel wd txt_left" listshowalias="off"><div class="paste_body">
     <?php include pTemplate("partytree");?> 
     
     <div id="rightMain" class="accountListPanel">
    <div class="top_tool" style="position:relative;">
        <span class="top_toolcon">
            <a href="<?php echo SITEURL;?>?mod=system&do=member&c=sch&d=member_import" class="btn  bt_home btn_first">
                <span class="ico_home">
                </span>
                返回
            </a>
			<!-- <?php if($dataArr != array()) { ?> -->
				&nbsp;&nbsp;
				<a href="javascript://" ac='save_import_data' class="btn  bt_home btn_first" import_data='<?php echo $import_data_string;?>' bid="<?php echo $bid;?>">
					保存数据
				</a>
			<!-- <?php } ?> -->
        </span>
    </div>
    
	<div class="content_con b_size">
		<h3 style="float:none;" class="p_title" id="addtostruct">批量导入成员到  <?php echo $bname;?></h3>
		<iframe style="display:none;" name="actionFrame" id="actionFrame"></iframe>
		<div un="import" id="preview">
			<div style="padding:0 15px 15px;" class="b_size">
				<input type="hidden" value="post" name="step">
				<p>导入总数为：<span class="bold"><?php echo $i;?></span>，有效数为：<span class="greentext"><?php echo count($dataArr);?></span>，无效数为：<span class="txt_red"><?php echo count($dataArrErr);?></span>，重复数为：<span class="txt_red"><?php echo count($repeat);?></span></p>
				<div class="table_scroll">
				<!-- <?php if($dataArrErr != array()) { ?> -->
					<table cellspacing="0" cellpadding="0" style="width:100%;margin:20px 0 0;" class="infoTable domainInfo listTable">
						<caption class="bold">
							无效成员预览&nbsp;<a style="font-weight:normal;" target="_blank" href="<?php echo SITEURL;?>?mod=system&do=member&d=export_excel_member&string=<?php echo $import_data_error_string;?>&type=no">点击下载列表</a>
						</caption>
						<thead>
							<tr>
								<th class="name" style=" text-align:center;">姓名</th>
								<th class="name" style="width:30px;text-align:center;">性别</th>
								<th class="operation" style="text-align:center;">学号</th>
								<th class="operation" style="text-align:center;">帐号</th>
								<th class="operation" style="text-align:center;">密码</th>
								<th style="text-align:center;">用户组</th>
								<th class="operation" style="text-align:left;">失败原因</th>
							</tr>
						</thead>
						<tfoot></tfoot>
						<tbody>
						<!-- <?php foreach((array)$dataArrErr as $key=>$item) {?> -->
							<tr>
								<td class="name"><?php echo $item['data'][0];?></td>
								<td class="name"><?php echo $item['data'][1];?></td>
								<td class="operation"><?php echo $item['data'][2];?></td>
								<td class="operation"><?php echo $item['data'][3];?></td>
								<td class="operation"><?php echo $item['data'][4];?></td>
								<td class="operation"><?php echo $item['data'][5];?></td>
								<td class="operation"><font color="red"><?php echo $item['error'];?></font></td>
							</tr>
						<!-- <?php }?> -->
						</tbody>
					</table>
				<!-- <?php } ?> -->
				
				<!-- <?php if($dataArr != array()) { ?> -->
					<table cellspacing="0" cellpadding="0" style="width:100%;margin:20px 0 0;" class="infoTable domainInfo listTable">
						<caption class="bold">
							有效成员预览&nbsp;<a style="font-weight:normal;" target="_blank" href="<?php echo SITEURL;?>?mod=system&do=member&d=export_excel_member&string=<?php echo $import_data_string;?>&type=yes">点击下载列表</a>
						</caption>
						<thead>
							<tr>
								<th class="name">姓名</th>
								<th class="name">性别</th>
								<th style="width:100px;" class="operation">学号</th>
								<th class="operation">帐号</th>
                                <th class="operation">手机号</th>
								<th style="width:60px;" class="operation">密码</th>
								<th style="">用户组</th>
							</tr>
						</thead>
						<tfoot></tfoot>
						<tbody>
						<!-- <?php foreach((array)$dataArr as $key=>$item) {?> -->
							<tr>
								<td class="name"><?php echo $item[0];?></td>
								<td class="name"><?php echo $item[1];?></td>
								<td class="operation"><?php echo $item[2];?></td>
								<td class="operation"><?php echo $item[3];?></td>
                                <td class="operation"><?php echo $item[6];?></td>
								<td class="operation"><?php echo $item[4];?></td>
								<td class="operation"><?php echo $item[5];?></td>
							</tr>
						<!-- <?php }?> -->
						</tbody>
					</table>
				<!-- <?php } ?> -->
				</div>
																																																						</div>

				<div style="padding-left:15px;" class="submitColumn">
					<div class="left"></div>
					<div class="cancelLink">
                    <!-- <?php if($dataArr != array()) { ?> -->
				&nbsp;&nbsp;
				<a href="javascript://" ac='save_import_data' class="btn  bt_home btn_first" import_data='<?php echo $import_data_string;?>' bid="<?php echo $bid;?>">
					保存数据
				</a>
			<!-- <?php } ?> -->
						<a onclick="history.back();">取消</a>
					</div>
				</div>

				</div><!--end content-->
			</div>
	
		</div>
	</div>
</div>

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

</body>
</html>