<?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;">
        成绩查询
        <a class="btn btnNormal bt_newfloder" href="<?php echo SITEURL;?>?mod=school&do=exam" style="position:static;">返回</a>
        &nbsp;<a class="btn btnNormal bt_newfloder right" href="<?php echo SITEURL;?>?mod=school&do=exam&c=eidt_result&examid=<?php echo $examid;?>&authcode=<?php echo $authcode;?>" style="position: relative">
        <span class="btnCompose" style="top:6px;"></span>&nbsp;&nbsp;&nbsp;&nbsp;编辑成绩</a>
        &nbsp;<a class="btn btnNormal bt_newfloder right" href="<?php echo SITEURL;?>?mod=school&do=exam&c=import_result&examid=<?php echo $examid;?>&authcode=<?php echo $authcode;?>&examname=<?php echo $strexamid['examname'];?>" style="position: relative">
       导入成绩</a>
       
        &nbsp;<a class="btn btnNormal bt_newfloder right" href="javascript:;" ck="sendmark" examid="<?php echo $examid;?>"  subjectname="<?php echo $subject['subjectname'];?>" examname="<?php echo $strexamid['examname'];?>" style="position: relative">
       发送全部成绩</a>
        </h1>
		<div id="domainQuery" un="domainQuery" class="contentInner con_toolbar con_gk">
			<span un="datepick" style="display:block;">
							<span class="tool_li">
					<span class="addrtitle f_size">所属班级：</span>
					<span class="addrinput time_li"><input un="begin" ck="showCalendar" class="txt" date="2012-10-8" type="text" readonly=""><span class="arrow" ck="showCalendar"></span></span>
				</span>
				<span class="tool_li">
					<span class="addrtitle f_size">考试名称：</span>
					<span class="addrinput time_li"><input un="end" ck="showCalendar" class="txt time_li" date="2012-10-15" type="text" readonly=""><span class="arrow" ck="showCalendar"></span></span>
				</span>
			</span>
			<div class="tool_li">
				<span class="addrtitle f_size">考试课程：</span>
				<span class="addrinput time_li"><input un="end" ck="showCalendar" class="txt time_li" date="2012-10-15" type="text" readonly=""><span class="arrow" ck="showCalendar"></span></span>
				</span>
			</div>
			<div class="tool_li_btn left">
				<a un="btn_query" ck="domainQuery" class="btn btnNormal">&nbsp;查&nbsp;询&nbsp;</a>
			</div>
		</div>
	</div>
    
    <div name="status" class="content_table">
		<div style="width:100%;">
		  <div class="caption" style="text-align:right; margin:0;">
					
	
</div>
<div>发送成绩短信模版：<br />
<textarea id="smscontent" style="width:98%; height:50px; font-size:14px; margin:5px;">[realname]的家长您好，您的孩子在《[examname]》的[subjectname]成绩是：[mark]分。发送人：<?php echo $self_userinfo['realname'];?></textarea>
</div>
<table cellspacing="0" align="center" class="infoTable domainInfo listTable" style="width:100%;table-layout:fixed;">
          <tbody>
          <tr>
            <td width="15%" bgcolor="#F4F7FA"><a href="#">↑ 学生学号</a></td>
            <td width="7%" bgcolor="#F4F7FA">姓 名</td>
            <td width="25%" bgcolor="#F4F7FA">所属班级</td>
            <td width="20%" bgcolor="#F4F7FA">考试名称</td>
            <td width="13%" bgcolor="#F4F7FA">考试课程</td>
            <td width="10%" bgcolor="#F4F7FA">学生成绩</td>
            <td width="7%" bgcolor="#F4F7FA">短信</td>
          </tr>
          
      	<?php foreach((array)$arrMembers[1] as $key=>$item) {?>
            <tr>
              <td><a href="javascript:;" target="_blank"><?php echo $item['stu_num'];?></a></td>
              <td><?php echo $item['realname'];?></td>
              <td><a href="<?php echo SITEURL;?>?mod=school&do=member&c=sch&bid=<?php echo $item['branch'][bid];?>"><?php echo $item['branch'][bname];?></a></td>
              <td> <?php echo $strexamid['examname'];?></td>
              <td> <?php echo $subject['subjectname'];?></td>
              <td> <b><?php echo $item['mark'];?></b> 分</td>
              <td> <?php if($item['is_sms']==1) { ?><b style="color:#5AAB04;">已发送</b><?php } else { ?><a href="javascript:;" rid="<?php echo $item['rid'];?>" subjectname="<?php echo $subject['subjectname'];?>" examname="<?php echo $strexamid['examname'];?>" ck="sendmark" title="点击发送">未发送</a><?php } ?></td>
            </tr>
        <?php }?>
        
		</tbody></table>
		
		<div class="notice_page">
			<div class="pagination">
			<?php echo $pageinfo;?>
			</div>
		</div>
        
			<div class="caption" style="text-align:right; margin-top:10px;">

            <input type="button" class="btn btnNormal" value="下载Excel数据表" opt='export_excel' examid='<?php echo $examid;?>' />
            &nbsp;
            <input type="button" class="btn btnNormal" value="打印本页面" onclick="javascript:window.print()">

			</div>
		</div>
	</div>
	<div class="content_table">
						<div class="clr"></div>
                        
	</div>

	
</div>
    </div>
</div>

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

</body>
</html>