|
|
@ -37,17 +37,17 @@
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
function clearInfo(id) {
|
|
|
|
function clearInfo(id, content) {
|
|
|
|
var text = $('#' + id);
|
|
|
|
var text = $('#' + id);
|
|
|
|
if (text.val() == "我要反馈") {
|
|
|
|
if (text.val() == content) {
|
|
|
|
$('#' + id).val('');
|
|
|
|
$('#' + id).val('');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function showInfo(id) {
|
|
|
|
function showInfo(id, content) {
|
|
|
|
var text = $('#' + id);
|
|
|
|
var text = $('#' + id);
|
|
|
|
if (text.val() == '') {
|
|
|
|
if (text.val() == '') {
|
|
|
|
$('#'+id).val('我要反馈');
|
|
|
|
$('#' + id).val(content);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
@ -57,13 +57,23 @@
|
|
|
|
:action => 'create',
|
|
|
|
:action => 'create',
|
|
|
|
:id => bid,
|
|
|
|
:id => bid,
|
|
|
|
:sta => sta}) do |f|%>
|
|
|
|
:sta => sta}) do |f|%>
|
|
|
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
<table border="0" width="525px" align="center" >
|
|
|
|
<table border="0" width="525px" align="center" >
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td><%= f.text_area 'message', :rows => 3, :cols => 65, :value => "我要反馈", :onfocus => "clearInfo('bid_message_message')", :onblur => "showInfo('bid_message_message')", :style => "resize: none;", :class => 'noline'%></td>
|
|
|
|
<td><%= f.text_area 'message', :rows => 3, :cols => 65, :value => "#{l(:label_my_respond)}", :onfocus => "clearInfo('bid_message_message', '#{l(:label_my_respond)}')", :onblur => "showInfo('bid_message_message', '#{l(:label_my_respond)}')", :style => "resize: none;", :class => 'noline'%></td>
|
|
|
|
</tr></table>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
<%= f.text_field :reference_user_id, :style=>"display:none"%>
|
|
|
|
<%= f.text_field :reference_user_id, :style=>"display:none"%>
|
|
|
|
<table border="0" width="525px" align="center">
|
|
|
|
<table border="0" width="525px" align="center">
|
|
|
|
<tr><td align="right"><%= submit_tag l(:button_leave_meassge), :name => nil , :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -30px'"%>
|
|
|
|
<tr>
|
|
|
|
<%= submit_tag l(:button_clear), :name => nil, :onclick => "clearMessage('bid_message_message');", :type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -30px'" %> </td></tr>
|
|
|
|
<td align="right"> <%= submit_tag l(:button_leave_meassge), :name => nil , :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -30px'"%>
|
|
|
|
|
|
|
|
<%= submit_tag l(:button_clear), :name => nil, :onclick => "clearMessage('bid_message_message');", :type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -30px'" %> </td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
|
|
|
|
<div style="font-size: 14px;margin:10px;">
|
|
|
|
|
|
|
|
<%= l(:label_user_login_tips) %>
|
|
|
|
|
|
|
|
<%= link_to l(:label_user_login_new), signin_path %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|