2013-08-04 10:59:25 +08:00
|
|
|
<!-- fq -->
|
2013-08-08 10:04:44 +08:00
|
|
|
|
|
|
|
<style>
|
|
|
|
input[type="submit"].bid_btn {
|
|
|
|
vertical-align: middle;
|
|
|
|
width: 80px;
|
|
|
|
height: 30px;
|
|
|
|
line-height: 18px;
|
|
|
|
font-size: 14px;
|
2013-08-12 17:30:31 +08:00
|
|
|
color: rgb(0, 0, 0);
|
2013-08-11 10:54:43 +08:00
|
|
|
background: url("../images/button/bg106.jpg") no-repeat scroll left top transparent;
|
2013-08-08 10:04:44 +08:00
|
|
|
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: -5px;
|
|
|
|
}
|
|
|
|
textarea:focus {
|
|
|
|
border: #d5dee9 1px solid;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2013-08-03 22:51:42 +08:00
|
|
|
<script type="text/javascript" language="javascript">
|
2013-08-07 16:45:04 +08:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
2013-08-03 22:51:42 +08:00
|
|
|
</script>
|
|
|
|
<%= form_tag({:controller => 'bids',
|
2013-08-04 10:11:38 +08:00
|
|
|
:action => 'new_bid',
|
2013-08-03 22:51:42 +08:00
|
|
|
:remote => true,
|
|
|
|
:method => :post,
|
|
|
|
:id => 'new-bid-form'}) do %>
|
2013-08-08 22:27:58 +08:00
|
|
|
|
2013-08-03 22:51:42 +08:00
|
|
|
<table border="0" width="600px" style="border-left: 1px solid #acaeb1; border-right: 1px solid #acaeb1;
|
2013-08-08 10:04:44 +08:00
|
|
|
border-top: 1px solid #acaeb1; border-bottom: 1px solid #acaeb1; margin-top: 30px; margin-left: 30px;">
|
2013-08-03 22:51:42 +08:00
|
|
|
<tr>
|
2013-08-10 10:03:37 +08:00
|
|
|
<td><%= text_field_tag 'bid_title', "#{l(:label_requirement_name)}", :class => 'noline', :required => true, :onfocus => "clearInfo('bid_title', '#{l(:label_requirement_name)}')", :onblur => "showInfo('bid_title', '#{l(:label_requirement_name)}')"%></td>
|
2013-08-03 22:51:42 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><div class="tableline"></div></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-08-10 10:03:37 +08:00
|
|
|
<td><%= text_area_tag 'bid_description', "#{l(:label_requirement_description)}", :class => 'noline', :required => true, :style => "resize: none;", :rows => 6,
|
|
|
|
:onfocus => "clearInfo('bid_description', '#{l(:label_requirement_description)}')", :onblur => "showInfo('bid_description', '#{l(:label_requirement_description)}')" %></td>
|
2013-08-03 22:51:42 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><div class="tableline"></div></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-08-10 10:03:37 +08:00
|
|
|
<td><%= text_field_tag 'bid_budget', "#{l(:label_requirement_bargain_money)}", :class => 'noline', :required => true,
|
|
|
|
:onfocus => "clearInfo('bid_budget', '#{l(:label_requirement_bargain_money)}')", :onblur => "showInfo('bid_budget', '#{l(:label_requirement_bargain_money)}')" %>
|
2013-08-08 10:04:44 +08:00
|
|
|
</td>
|
2013-08-03 22:51:42 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><div class="tableline"></div></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-08-10 10:03:37 +08:00
|
|
|
<td><%= text_field_tag 'bid_deadline', "#{l(:label_deadline)}", :class => 'noline', :required => true,
|
|
|
|
:onfocus => "clearInfo('bid_deadline', '#{l(:label_deadline)}')", :onblur => "showInfo('bid_deadline', '#{l(:label_deadline)}')"%>
|
2013-08-08 10:04:44 +08:00
|
|
|
<%= calendar_for('bid_deadline')%></td>
|
2013-08-03 22:51:42 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
2013-08-08 10:04:44 +08:00
|
|
|
<table id="bidding_table" border="0" width="600" style="margin-top: 10px; margin-left: 30px;">
|
2013-08-03 22:51:42 +08:00
|
|
|
<tr>
|
2013-08-11 10:54:43 +08:00
|
|
|
<td align="right"> <%= submit_tag l(:button_new_bid), :name => nil , :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'"%> </td>
|
2013-08-03 22:51:42 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<%end%>
|