<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" style="_overflow-x: hidden; _overflow-y: auto;"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>分组讨论</title> <link type="text/css" rel="stylesheet" href="/css/teacher/pc.css" /> <script type="text/javascript" src="/js/class/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="/js/app/common.js"></script> <script> $(document).ready(function(){ $(".make_sure").click(function(){ $("#add").submit(); }); $(".back").click(function(){ location.href="/egroup/teacher/listegroup/"; }); }); function addstudent(obj){ if($(obj).attr("status") == 1) { alert("已添加"); return false; } $(obj).attr("bgcolor","#b5cc94"); $(obj).attr("status","1"); var msg = $(obj).html(); $(".to").children().each(function(i){ if(!$(this).html()&&$(this).attr('forbid')!=1) { var num = $(this).parent().prev().find("input").val(); $(this).html(msg); $(this).children("input").attr("name","uid_"+num+"[]"); return false; } }); } function kong(obj){ if($(obj).html()){ var uid=$(obj).children().val(); $(".stu_"+uid).attr("status",0); $(".stu_"+uid).attr("bgcolor","#f2f2f2"); $(obj).html(''); }else{ var num=$(obj).prevAll().length; if(num!=0){ if($(obj).attr('forbid') == 0){ $(obj).attr('forbid','1'); $(obj).attr("bgcolor","#B8B8B8"); }else{ $(obj).attr('forbid','0'); $(obj).attr("bgcolor","#F2F2F2"); } } } } </script> </head> <body style=""> <div class="resource_list"> <div class="border_1"> <div class="title"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr > <td width="100%" height="35" class="tongzhi"> <span class=" home_icon2"></span> 分组 > <em class="blue1"> 小组管理</em></td> </tr> </table> </div> </div> </div> <!--list--> <div class=" mr10 ml10 mt10"> <table width="100%" cellspacing="0" cellpadding="0" class="bbom_none form-table from_bottom" > <tr height="37"> <td height="37" align="left" class="cj_li font14_s fw"> 组信息</td> </tr> </table> <table width="100%" cellspacing="0" cellpadding="0" class="form-table" > <tr height="38" align="center" class="grey_70"> <td bgcolor="#f2f2f2" >分组名称</td> <td bgcolor="#f2f2f2" >总人数</td> <td bgcolor="#f2f2f2" > 小组个数</td> <td bgcolor="#f2f2f2" > 每小组人数</td> <td bgcolor="#f2f2f2" > 所属班级</td> <td bgcolor="#f2f2f2" >操作</td> </tr> <!--{if $aEgroup}--> <tr height="33" bgcolor="#f7f7f7" align="center" class="grey_70"> <td width="20%" class="blue " style="padding:10px;" ><!--{$aEgroup.name}--></td> <td width="15%"><span style="font-size:35px;color:red;"><!--{$aEgroup.total}--></span>人</td> <td width="15%"><span style="font-size:35px;color:red;"><!--{$aEgroup.membernu}--></span>个小组</td> <td width="15%"><span style="font-size:35px;color:red;"><!--{$aEgroup.per_team_num}--></span>人</td> <td width="15%"><!--{$aEgroup.classname}--></td> <td width="15%" class="red"> <a href="/egroup/teacher/listegroup/" title="返回分组列表">[返回分组列表]</a> </td> </tr> <!--{else}--> <tr height="33" bgcolor="#f7f7f7" align="center"><td colspan="4" align="center">对不起!暂无信息!</td></tr> <!--{/if}--> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"; style="margin-top:20px;"> <tr height="37"> <td align="left" class="cj_li font14_s fw"> 学生信息</td> </tr> </table> <table width="100%" cellspacing="0" cellpadding="0" class="form-table" > <!--{foreach key=key item=i from=$aListData name=foo}--> <!--{if $smarty.foreach.foo.index % $aEgroup.per_team_num == 0}--> <tr height="78" align="center" class="grey_70"> <td bgcolor="#f2f2f2" class="from stu_<!--{$i.uid}-->" status=0 οnclick="addstudent(this);" style="cursor:pointer;"><input type="hidden" name="uid" value=<!--{$i.uid}-->><!--{$i.realname}--> <img src="<!--{$i.photo}-->" width="60px" height="60px" /></td> <!--{elseif $smarty.foreach.foo.index % $aEgroup.per_team_num == ($aEgroup.per_team_num-1) || $smarty.foreach.foo.last}--> <td bgcolor="#f2f2f2" class="from stu_<!--{$i.uid}-->" status=0 οnclick="addstudent(this);" style="cursor:pointer;"><input type="hidden" name="uid" value=<!--{$i.uid}-->><!--{$i.realname}--> <img src="<!--{$i.photo}-->" width="60px" height="60px"/></td></tr> <!--{else}--> <td bgcolor="#f2f2f2" class="from stu_<!--{$i.uid}-->" status=0 οnclick="addstudent(this);" style="cursor:pointer;"><input type="hidden" name="uid" value=<!--{$i.uid}-->><!--{$i.realname}--> <img src="<!--{$i.photo}-->" width="60px" height="60px"/></td> <!--{/if}--> <!--{/foreach}--> </table> <form name="add" method="post" action="/egroup/teacher/addegteam" id="add" > <input type="hidden" value="<!--{$aEgroup.id}-->" name="egroup_id"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"; style="margin-top:20px;" class="form-table"> <tr height="37"> <td align="left" class="cj_li font14_s fw" colspan="<!--{$aEgroup.per_team_num}-->"> 分组情况</td> </tr> <!--{foreach key=key item=item from=$groupnu name=foo}--> <tr height="28" class="grey_70" ><td bgcolor="#f2f2f2" colspan="<!--{$aEgroup.per_team_num}-->"><input type="hidden" name="egteam_nu[]" value="<!--{$key+1}-->"><input type="text" name="egteam_name[]" value="第<!--{$key+1}-->小组"> <span style="color:#f8a185">(第一位默认为小组长)</span></td></tr> <tr height="78" align="center" class="to"> <!--{foreach key=k item=i from=$rownu name=f}--> <td width="5%" οnclick="kong(this);" forbid=0 <!--{if $k == 0}-->bgcolor="#b5cc94"<!--{else}-->bgcolor="#f2f2f2"<!--{/if}-->></td> <!--{/foreach}--> </tr> <!--{/foreach}--> </table> <div style="text-align: center; background: #fff; padding: 20px;"><input type="button" style="cursor:pointer;" class="make_sure"> <input type="button" style="cursor:pointer;" class="back"></div> </form> </div> </body> </html>
t_listegteam.tpl