2013-08-04 10:59:25 +08:00
|
|
|
<!-- fq -->
|
2013-08-07 16:45:04 +08:00
|
|
|
<script type="text/javascript" language="javascript">
|
2013-08-09 16:26:26 +08:00
|
|
|
function clearInfo(id, content) {
|
|
|
|
var text = $('#' + id);
|
|
|
|
if (text.val() == content) {
|
|
|
|
$('#' + id).val('');
|
|
|
|
}
|
|
|
|
}
|
2013-08-07 16:45:04 +08:00
|
|
|
|
2013-08-09 16:26:26 +08:00
|
|
|
function showInfo(id, content) {
|
|
|
|
var text = $('#' + id);
|
|
|
|
if (text.val() == '') {
|
|
|
|
$('#' + id).val(content);
|
|
|
|
}
|
|
|
|
}
|
2014-11-03 18:14:57 +08:00
|
|
|
function submit1(button)
|
|
|
|
{
|
|
|
|
$('#jours_submit').parent().submit();
|
|
|
|
// button.submit();
|
|
|
|
alert("d");
|
|
|
|
}
|
2013-08-07 16:45:04 +08:00
|
|
|
</script>
|
|
|
|
|
2014-11-03 18:14:57 +08:00
|
|
|
<%= form_for('bid_message', :id=>"bid_message_form",:remote => true, :method => :post,
|
2013-08-09 16:26:26 +08:00
|
|
|
:url => {:controller => 'bids',
|
|
|
|
:action => 'create',
|
|
|
|
:id => bid,
|
2014-11-03 18:14:57 +08:00
|
|
|
:sta => sta}) do |f|%>
|
2013-08-15 09:54:08 +08:00
|
|
|
|
|
|
|
<div id = 'pre_show'>
|
|
|
|
<%= render :partial => 'pre_show', :locals => {:content => @content} %>
|
|
|
|
</div>
|
|
|
|
|
2013-08-09 16:26:26 +08:00
|
|
|
<% if User.current.logged? %>
|
2013-08-06 21:43:06 +08:00
|
|
|
<table border="0" width="525px" align="center" >
|
2013-08-01 20:47:00 +08:00
|
|
|
<tr>
|
2013-09-16 08:49:39 +08:00
|
|
|
<% if @bid.reward_type ==3 %>
|
2014-10-31 20:39:09 +08:00
|
|
|
<td><%= f.text_area 'message', :rows => 3, :cols => 65, :placeholder => l(:label_max_length), :style => "resize: none;", :class => 'noline'%></td>
|
2013-09-16 08:49:39 +08:00
|
|
|
<% else %>
|
2014-10-31 20:39:09 +08:00
|
|
|
<td><%= f.text_area 'message', :rows => 3, :cols => 65, :placeholder => l(:label_max_length), :style => "resize: none;", :class => 'noline'%></td>
|
2013-09-16 08:49:39 +08:00
|
|
|
<% end %>
|
2013-08-09 16:26:26 +08:00
|
|
|
</tr>
|
2013-08-01 20:47:00 +08:00
|
|
|
</table>
|
2013-08-09 16:26:26 +08:00
|
|
|
<%= f.text_field :reference_user_id, :style=>"display:none"%>
|
2013-11-08 10:53:18 +08:00
|
|
|
|
2014-10-31 20:39:09 +08:00
|
|
|
<!-- modified by bai 525px -->
|
2014-11-03 18:14:57 +08:00
|
|
|
<a href="#" class="ping_sub" id="jours_submit" onclick="submit1();">留言</a>
|
|
|
|
<a href="#" class="ping_sub" onclick = "clearMessage('bid_message_message');"><%= l(:button_clear_meassge) %></a>
|
2013-11-08 10:53:18 +08:00
|
|
|
<!-- end -->
|
|
|
|
|
2013-08-09 16:26:26 +08:00
|
|
|
<% else %>
|
|
|
|
<div style="font-size: 14px;margin:10px;">
|
|
|
|
<%= l(:label_user_login_tips) %>
|
|
|
|
<%= link_to l(:label_user_login_new), signin_path %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end %>
|