<script type="text/javascript" language="javascript">
    function HoverLi(url){
        window.location.href = url;
    }
</script>
<div class="hw_content mb10" >
  <ul id="hw_tab_nav">
    <li id="hw_tab_nav_1" onclick="HoverLi('<%= my_homeworks_user_path(@user) %>');">
      <a href="javascript:void(0);" class="hw_tab_type">我的作业</a>
    </li>
    <li id="hw_tab_nav_2" class="<%=@type == 1 ? 'hw_tab_hover' : '' %>" 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" class="<%=@type == 2 ? 'hw_tab_hover' : '' %>"  onclick="HoverLi('<%= manage_or_receive_homeworks_user_path(@user, :type =>2) %>');">
      <a href="javascript:void(0);" class="hw_tab_type" >我收到的作业</a>
    </li>
  </ul>
  <div class="hw_more_box" >
    <ul>
      <li class="hw_more_icons">
        <ul class="hw_more_txt">
          <li> <a href="<%= manage_or_receive_homeworks_user_path(@user, :type => @type, :property => 0) %>" id="homework_type_all" class="hw_more_li" data-method="get" data-remote="true">全部作业</a> </li>
          <li> <a href="<%= manage_or_receive_homeworks_user_path(@user, :type => @type, :property => 1) %>" id="homework_type_nor" class="hw_more_li" data-method="get" data-remote="true">普通作业</a> </li>
          <li> <a href="<%= manage_or_receive_homeworks_user_path(@user, :type => @type, :property => 2) %>" id="homework_type_pro" class="hw_more_li" data-method="get" data-remote="true">编程作业</a> </li>
          <li> <a href="<%= manage_or_receive_homeworks_user_path(@user, :type => @type, :property => 3) %>" id="homework_type_gro" class="hw_more_li" data-method="get" data-remote="true">分组作业</a> </li>
        </ul>
      </li>
    </ul>
  </div>

  <div id="hw_tab_con_2">
    <div class="sy_category" id="homework_search_input">
      <%=render :partial=>'my_homeworks_search', :locals=>{:type => @type,:property => nil,:order => @order, :search => ''} %>
    </div>

  <div class="sy_classbox" style="min-height:800px;" id="my_homework_list">
    <% if @type == 1 %>
      <%= render :partial => "manage_homework_list", :locals => {:homeworks => @homeworks, :is_manage => 1} %>
    <% else %>
      <%= render :partial => "receive_homework_list", :locals => {:homeworks => @homeworks} %>
    <% end %>
  </div>

  <div style="text-align:center;">
    <div class="pages" style="width:auto; display:inline-block;">
      <ul  id="homework_list_ref_pages">
        <%= pagination_links_full @hw_pages, @hw_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true%>
      </ul>
      <div class="cl"></div>
    </div>
  </div>
</div>
</div>