2014-04-03 22:38:18 +08:00
|
|
|
|
|
|
|
<style>
|
|
|
|
input[type="submit"].contest_btn {
|
|
|
|
vertical-align: middle;
|
|
|
|
width: 60px;
|
|
|
|
height: 30px;
|
|
|
|
line-height: 18px;
|
|
|
|
font-size: 14px;
|
|
|
|
color: rgb(0, 0, 0);
|
|
|
|
background: url("/images/button/bg103.jpg") no-repeat scroll left top transparent;
|
|
|
|
padding: 0px 0px 4px 0px;
|
|
|
|
border-radius: 2px;
|
|
|
|
border: 1px solid rgb(148, 148, 148);
|
|
|
|
box-shadow: none;
|
|
|
|
text-shadow: none;
|
|
|
|
margin-top: -10px;
|
|
|
|
/*margin-right: -4px;*/
|
|
|
|
}
|
|
|
|
input[type="button"].contest_btn {
|
|
|
|
width: 60px;
|
|
|
|
height: 30px;
|
|
|
|
line-height: 18px;
|
|
|
|
font-size: 14px;
|
|
|
|
color: rgb(0, 0, 0);
|
|
|
|
background: url("/images/button/bg103.jpg") no-repeat scroll left top transparent;
|
|
|
|
padding: 0px 0px 4px 0px;
|
|
|
|
border-radius: 2px;
|
|
|
|
border: 1px solid rgb(148, 148, 148);
|
|
|
|
box-shadow: none;
|
|
|
|
text-shadow: none;
|
|
|
|
margin-top: -10px;
|
|
|
|
margin-right: -2px;
|
|
|
|
}
|
|
|
|
textarea:focus {
|
|
|
|
border: #d5dee9 1px solid;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
function clearInfo(id,content) {
|
|
|
|
var text = $('#' + id);
|
|
|
|
if (text.val() == content) {
|
|
|
|
$('#' + id).val('');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function showInfo(id,content) {
|
|
|
|
var text = $('#' + id);
|
|
|
|
if (text.val() == '') {
|
|
|
|
$('#' + id).val(content);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function cancel() {
|
|
|
|
$("#put-bid-form").hide();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
<!--我要竞标弹出框-->
|
|
|
|
<div id = 'flash' style="float:left; width: 100%; display: none" ></div>
|
|
|
|
<div id="put-bid-form" style="display: none">
|
|
|
|
<%= form_for "contest_for_save", :remote=>true, :url => {:controller => 'contests', :action => 'add'}, :update => "contesting_project_list", :complete => '$("#put-bid-form").hide();' do |f| %>
|
|
|
|
<table id="contesting_table" border="0" width="100%" style="margin-left: 40px;"> <!--该table为点击我要参加后弹出的-->
|
|
|
|
<tr>
|
|
|
|
<td><%= select_tag 'contest', options_for_select(select_option_helper(@option)), :name => 'contest', :class => 'grayline' %></td>
|
|
|
|
<div id="prompt_create_pro">
|
|
|
|
<td>
|
|
|
|
<p>
|
|
|
|
<div class="font_lighter" style="font-size: 13px;">
|
2014-05-24 10:56:58 +08:00
|
|
|
<%= link_to l(:label_create_new_projects), new_project_path(course: 0, project_type: 0), :target=>'_blank'%> <!--跳转到project的new.html.erb-->
|
2014-04-03 22:38:18 +08:00
|
|
|
</div>
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</div>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td><%= f.text_area :contest_message, :id => "contest_message", :required => true, :rows => 4, :cols => 40, :placeholder => l(:label_bid_reason), :style => "resize: none;", :class => 'noline'%></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td align="right">
|
|
|
|
<%= submit_tag l(:button_add), :name => nil , :class => "enterprise",
|
|
|
|
:onmouseout => "this.style.backgroundPosition = 'left top'",
|
|
|
|
:onmouseover => "this.style.backgroundPosition = 'left -30px'"%>
|
|
|
|
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "cancel();",
|
|
|
|
:type => 'button', :class => "enterprise", :onmouseout => "this.style.backgroundPosition = 'left top'",
|
|
|
|
:onmouseover => "this.style.backgroundPosition = 'left -30px'" %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2014-04-11 09:00:00 +08:00
|
|
|
</table>
|
2014-04-03 22:38:18 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<div id='contesting_project_list'>
|
|
|
|
<%= render :partial => 'project_list', :locals => {:contesting_project => @contesting_project,:contest => @contest} %>
|
|
|
|
</div>
|
2014-04-15 10:34:28 +08:00
|
|
|
|
2014-04-03 22:38:18 +08:00
|
|
|
|