<div >
    <div class="relateText fl mb10 mr5">发送到</div>
    <div class="resourcesSendTo mr15">
      <% unless send_ids.blank? %>
          <% send_ids = send_ids.class == String ? send_ids : send_ids.join(",") %>
      <% end %>
      <select class="resourcesSendType" onclick="chooseSendType2('<%= send_id%>','<%= send_ids%>','<%= User.current.id %>','file', '<%= @type %>');">
        <option value="1">课程</option>
        <option value="2">项目</option>
        <option value="3" selected>组织</option>
      </select>
    </div>
  <%= form_tag  search_user_org_user_path(user, :type => @type),:method => 'get',
                :remote=>true,:id=>'search_user_org_form' do %>
      <%= hidden_field_tag(:send_id, send_id) %>
      <%= hidden_field_tag(:send_ids, send_ids) %>
    <input type="text" name="serach" id="search_org_input" value="<%=@search %>" placeholder="输入名称搜索" class="orgSendSearch mt15" />
      <script>
          observeSearchfieldOnInput('search_org_input','<%= search_user_org_user_path(user)%>','<%= send_id %>','<%= send_ids%>','file')
      </script>
  <% end %>
    <div class="cl"></div>
</div>
<div id="org_file_form">
  <%= render :partial => 'users/org_file_form', :locals => {:user => user, :orgs => @orgs, :send_id => send_id, :send_ids => send_ids, :type => @type} %>
</div>
