<script type="text/javascript">
    function searchUser(){
        var name = $("#name").val();
        if(name == "")
        {
            alert("搜索条件不能为空");
            return;
        }
        $("#search_softapplications").submit();
    }
</script>

<div class="top-content">
	<table>
		<tr>
			<td class="info_font" style="width: 240px; color: #15bccf" rowspan="2">
              <a href="http://<%= Setting.host_contest%>" style="color: #15bccf;">
                <%=l(:label_contest_innovate_community)%>
              </a>
            </td>
			<td style="width: 430px; color: #15bccf">
              <strong><%= l(:label_user_location) %> : </strong>
            </td>
			<td rowspan="2" width="305px">
				<div class="project-search" style="float: right">
                  <%= form_tag({:controller => 'softapplications', :action => 'search'}, :method => :get, :id => "search_softapplications") do %>
                      <%= text_field_tag 'name', params[:name], :size => 25 %>
                      <%= hidden_field_tag 'project_type', params[:project_type] %>
                      <input type="button" class="enterprise" value="<%= l(:label_search) %>" onclick="searchUser();"/>
                      <%#= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
                  <% end %>
				</div>
			</td>
		</tr>

		<tr>
			<td >
              <%=link_to l(:field_homepage), home_path %> >
			  <%=link_to l(:label_contest_work), :controller=>'softapplications', :action=>'index' %>
			</td>
		</tr>
	</table>
</div>