|
|
|
@ -17,13 +17,13 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|
<td rowspan="2" >
|
|
|
|
|
<!--<td rowspan="2" >
|
|
|
|
|
<div class="project-search" style="float: right">
|
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 30 %>
|
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
|
|
|
|
<%#= text_field_tag 'name', params[:name], :size => 30 %>
|
|
|
|
|
<%#= hidden_field_tag 'project_type', params[:project_type] %>
|
|
|
|
|
<%#= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</td>-->
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-left: 8px"><a><%= link_to request.host() + "/projects", :controller => 'projects', :action => 'course', :project_type => 1 %> </a></td>
|
|
|
|
@ -44,14 +44,14 @@
|
|
|
|
|
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => @project_type}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|
<td rowspan="2" >
|
|
|
|
|
<!--<td rowspan="2" >
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function regexName()
|
|
|
|
|
{
|
|
|
|
|
var name = $.trim($("#name").val());
|
|
|
|
|
if(name.length == 0)
|
|
|
|
|
{
|
|
|
|
|
$("#project_name_span").text("<%= l(:label_search_conditions_not_null) %>");
|
|
|
|
|
$("#project_name_span").text("<%#= l(:label_search_conditions_not_null) %>");
|
|
|
|
|
$("#project_name_span").css('color','#ff0000');
|
|
|
|
|
$("#project_name_span").focus();
|
|
|
|
|
return false;
|
|
|
|
@ -69,16 +69,16 @@
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<div class="project-search" style="float: right">
|
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 30, :onkeyup => "regexName();" %>
|
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %> <!--修改项目搜索按钮的样式 -->
|
|
|
|
|
<!-- <a href="#" onclick="submitSerch();" class="ButtonColor m3p10" style="float:left;padding-top: 3px; margin: 0px;padding-bottom:0px;" >
|
|
|
|
|
<%= l(:label_search)%>
|
|
|
|
|
</a> -->
|
|
|
|
|
<%#= text_field_tag 'name', params[:name], :size => 30, :onkeyup => "regexName();" %>
|
|
|
|
|
<%#= hidden_field_tag 'project_type', params[:project_type] %>
|
|
|
|
|
<%#= submit_tag l(:label_search), :class => "enterprise", :name => nil %> <!–修改项目搜索按钮的样式 –>
|
|
|
|
|
<!– <a href="#" onclick="submitSerch();" class="ButtonColor m3p10" style="float:left;padding-top: 3px; margin: 0px;padding-bottom:0px;" >
|
|
|
|
|
<%#= l(:label_search)%>
|
|
|
|
|
</a> –>
|
|
|
|
|
<br />
|
|
|
|
|
<span id="project_name_span" style="float: left"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</td>-->
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-left: 8px">
|
|
|
|
|