2016-08-05 16:12:53 +08:00
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
//课程大纲tab
|
|
|
|
//function g(o){return document.getElementById(o);}
|
|
|
|
function HoverLi(url){
|
|
|
|
// for(var i=1;i<=3;i++){
|
|
|
|
// g('hw_tab_nav_'+i).className='hw_tab_nomal';
|
|
|
|
// }
|
|
|
|
// g('hw_tab_nav_'+n).className='hw_tab_hover';
|
|
|
|
window.location.href = url;
|
|
|
|
}
|
|
|
|
</script>
|
2016-09-09 15:49:31 +08:00
|
|
|
<div class="hw_content mb10" >
|
2016-08-05 16:12:53 +08:00
|
|
|
<ul id="hw_tab_nav">
|
|
|
|
<li id="hw_tab_nav_1" class="hw_tab_hover" onclick="HoverLi('<%= my_homeworks_user_path(@user) %>');">
|
|
|
|
<a href="javascript:void(0);" class="hw_tab_type">我的作业</a>
|
|
|
|
</li>
|
|
|
|
<li id="hw_tab_nav_2" onclick="HoverLi('<%= manage_or_receive_homeworks_user_path(@user) %>');">
|
|
|
|
<a href="javascript:void(0);" class="hw_tab_type">我管理的作业</a>
|
|
|
|
</li>
|
|
|
|
<li id="hw_tab_nav_3" onclick="HoverLi('<%= manage_or_receive_homeworks_user_path(@user, :type =>2) %>');">
|
|
|
|
<a href="javascript:void(0);" class="hw_tab_type" >我收到的作业</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div id="hw_tab_con_1">
|
|
|
|
<%=render :partial => 'my_homework_list' %>
|
|
|
|
</div> <!-- hw_tab_con_1 end-->
|
|
|
|
</div><!--sy_content end-->
|