<%= form_tag send_homework_to_course_user_path(user), :remote => true, :id => 'choose_course_list_form' %>
<div>
  <%= hidden_field_tag(:send_id, send_id) %>
  <ul class="hw_sendpopup_searchli">
    <% if !courses.empty? %>
        <% courses.each do |course| %>
            <li>
              <input type="checkbox" name="course_ids[]" id="subcheck" onclick="setSelectAll();" value="<%= course.id %>" />
              <label><%=course.name + '（'+current_time_and_term_short(course) + '）'%></label>
            </li>
        <% end %>
    <% end %>
  </ul>
  <div>
    <p><input type="checkbox" name="check_all" id="SelectAll" onclick="selectAll();"/><label>全选</label></p>
    <p class="clear mt5">
      <label>&nbsp;</label>
      <a href="javascript:void(0);" onfocus='this.blur();' onclick="send_submit();" class="sy_btn_blue fl">发&nbsp;&nbsp;送</a>
      <a href="javascript:void(0);" onclick="hideModal();" class="sy_btn_grey fl ml10">取&nbsp;&nbsp;消</a>
    </p>
  </div>
  <span id="choose_courses_notice" class="c_red"></span>
</div>
<div class="cl"></div>
<span id="choose_courses_notice" class="c_red"></span>