|
|
|
@ -1,3 +1,15 @@
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function searchUser(){
|
|
|
|
|
var name = $("#name").val();
|
|
|
|
|
if(name == "")
|
|
|
|
|
{
|
|
|
|
|
alert("搜索条件不能为空");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$("#search_softapplications").submit();
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div class="top-content">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
@ -5,10 +17,11 @@
|
|
|
|
|
<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, :remote => true) do %>
|
|
|
|
|
<%= form_tag({:controller => 'softapplications', :action => 'search'}, :method => :get, :remote => true, :id => "search_softapplications") do %>
|
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 25 %>
|
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
|
|
|
|
<input type="button" class="enterprise" value="<%= l(:label_search) %>" onclick="searchUser();"/>
|
|
|
|
|
<%#= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|