取消课程、项目、贴吧等独自的搜索条,搜索统一使用导航栏搜索条

sw_new_course
sw 10 years ago
parent 56a1283033
commit ad524f5a6c

@ -19,10 +19,10 @@
</td> </td>
<td rowspan="2" width="250px" > <td rowspan="2" width="250px" >
<div class="top-content-search"> <div class="top-content-search">
<%= form_tag(:controller => 'forums', :action => "search_forum", :method => :get) do %> <%#= form_tag(:controller => 'forums', :action => "search_forum", :method => :get) do %>
<%= text_field_tag 'name', params[:name], :size => 20 %> <%#= text_field_tag 'name', params[:name], :size => 20 %>
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %> <%#= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
<% end %> <%# end %>
</div> </div>
</td> </td>
</tr> </tr>

@ -51,16 +51,16 @@
<%= link_to @course.name, course_path(@course) %> <%= link_to @course.name, course_path(@course) %>
</p> </p>
</div> </div>
<div class="search fl"> <!--<div class="search fl">-->
<%= form_tag({:controller => 'courses', :action => 'search'},:id => "course_search_form", :method => :get, :class => "search_form") do %> <!--<%#= form_tag({:controller => 'courses', :action => 'search'},:id => "course_search_form", :method => :get, :class => "search_form") do %>-->
<input class="search_text fl" id="name" name="name" onkeyup="regexName('搜索条件不能为空');" placeholder="课程名称" type="text"> <!--<input class="search_text fl" id="name" name="name" onkeyup="regexName('搜索条件不能为空');" placeholder="课程名称" type="text">-->
<a href="javascript:void(0)" onclick="submitSerch('<%= l(:label_search_conditions_not_null) %>');" class="search_btn fl f14 c_white" > <!--<a href="javascript:void(0)" onclick="submitSerch('<%#= l(:label_search_conditions_not_null) %>');" class="search_btn fl f14 c_white" >-->
<%= l(:label_search)%> <!--<%#= l(:label_search)%>-->
</a> <!--</a>-->
<div class="cl"></div> <!--<div class="cl"></div>-->
<span id="project_name_span" style="float: left"></span> <!--<span id="project_name_span" style="float: left"></span>-->
<% end %> <!--<%# end %>-->
</div> <!--</div>-->
</div><!--TopBar end--> </div><!--TopBar end-->
<div class="cl"></div> <div class="cl"></div>
<div id="content"> <div id="content">
@ -185,9 +185,9 @@
</div><!--Content end--> </div><!--Content end-->
</div><!--Container end--> </div><!--Container end-->
<div class="cl"></div> <div class="cl"></div>
<%= render :partial => 'layouts/footer' %> <%= render :partial => 'layouts/footer' %>
<div class="cl"></div> <div class="cl"></div>
<%= render :partial => 'layouts/new_feedback' %> <%= render :partial => 'layouts/new_feedback' %>
<div id="ajax-indicator" style="display:none;"> <div id="ajax-indicator" style="display:none;">

@ -40,11 +40,11 @@
<td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td> <td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
<td rowspan="2" width="250px"> <td rowspan="2" width="250px">
<div class="top-content-search"> <div class="top-content-search">
<%= form_tag(:controller => 'forums', :action => "search_memo", :id => params[:id], :method => :get) do %> <%#= form_tag(:controller => 'forums', :action => "search_memo", :id => params[:id], :method => :get) do %>
<%= text_field_tag 'name', params[:name], :size => 20 %> <%#= text_field_tag 'name', params[:name], :size => 20 %>
<%= hidden_field_tag 'forum_id', params[:id] %> <%#= hidden_field_tag 'forum_id', params[:id] %>
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %> <%#= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
<% end %> <%# end %>
</div> </div>
</td> </td>
</tr> </tr>

@ -49,16 +49,16 @@
<%= link_to l(:field_homepage), home_path %> > <a href="http://<%= Setting.host_name %>"><%=l(:label_project_hosting_platform) %> </a>><%= link_to @project.name, project_path(@project.id) %> <%= link_to l(:field_homepage), home_path %> > <a href="http://<%= Setting.host_name %>"><%=l(:label_project_hosting_platform) %> </a>><%= link_to @project.name, project_path(@project.id) %>
</p> </p>
</div> </div>
<div class="search fl"> <!--<div class="search fl">-->
<%= form_tag(projects_search_path, :method => :get, :id => "project_search_form", :class => "search_form") do %> <!--<%#= form_tag(projects_search_path, :method => :get, :id => "project_search_form", :class => "search_form") do %>-->
<%= text_field_tag 'name', params[:name], :placeholder => "项目名称", :class => "search_text fl", :onkeyup => "regexName('#{l(:label_search_conditions_not_null)}');" %> <!--<%#= text_field_tag 'name', params[:name], :placeholder => "项目名称", :class => "search_text fl", :onkeyup => "regexName('#{l(:label_search_conditions_not_null)}');" %>-->
<a href="#" onclick="submitSerch('<%= l(:label_search_conditions_not_null) %>');" class="search_btn fl f14 c_white" > <!--<a href="#" onclick="submitSerch('<%#= l(:label_search_conditions_not_null) %>');" class="search_btn fl f14 c_white" >-->
<%= l(:label_search)%> <!--<%#= l(:label_search)%>-->
</a> <!--</a>-->
<div class="cl"></div> <!--<div class="cl"></div>-->
<span id="project_name_span" class="fl"></span> <!--<span id="project_name_span" class="fl"></span>-->
<% end %> <!--<%# end %>-->
</div> <!--</div>-->
</div><!--TopBar end--> </div><!--TopBar end-->
<div id="content"> <div id="content">

@ -28,14 +28,14 @@
<td rowspan="2"> <td rowspan="2">
</td> </td>
<td rowspan="2" > <td rowspan="2" >
<div class="project-search" style="float: right"> <!--<div class="project-search" style="float: right">-->
<!--label for="user_browse_label"><%#= l(:label_user_search_type) %></label--> <!--&lt;!&ndash;label for="user_browse_label"><%#= l(:label_user_search_type) %></label&ndash;&gt;-->
<%= select_tag(:search_by,options_for_select([["昵称","0"],["姓名","1"],["邮箱","2"]],@search_by), :onchange => "searchByChange();",:style=>'display:none;' ) %> <!--<%#= select_tag(:search_by,options_for_select([["昵称","0"],["姓名","1"],["邮箱","2"]],@search_by), :onchange => "searchByChange();",:style=>'display:none;' ) %>-->
<%= text_field_tag 'name', params[:name], :size => 30, :placeholder=>'昵称/姓名/邮箱' %> <!--<%#= text_field_tag 'name', params[:name], :size => 30, :placeholder=>'昵称/姓名/邮箱' %>-->
<input type="text" name="search_by_input" hidden="hidden;" id="search_by_input" value="0"> <!--<input type="text" name="search_by_input" hidden="hidden;" id="search_by_input" value="0">-->
<input type="button" class="enterprise" value="<%= l(:label_search) %>" onclick="searchUser();"/> <!--<input type="button" class="enterprise" value="<%= l(:label_search) %>" onclick="searchUser();"/>-->
<%#= submit_tag l(:label_search), :class => "enterprise", :name => nil %> <!--<%#= submit_tag l(:label_search), :class => "enterprise", :name => nil %>-->
</div> <!--</div> -->
</td> </td>
</tr> </tr>
<tr> <tr>

Loading…
Cancel
Save