2013-08-04 10:59:25 +08:00
|
|
|
<!-- fq -->
|
2013-08-07 16:45:04 +08:00
|
|
|
<style>
|
|
|
|
input[type="submit"].bid_btn {
|
|
|
|
vertical-align: middle;
|
2013-09-02 13:29:46 +08:00
|
|
|
width: 60px;/*modified by ming*/
|
|
|
|
height: 25px;
|
2013-08-28 21:15:54 +08:00
|
|
|
line-height: 19px;
|
2013-08-07 16:45:04 +08:00
|
|
|
font-size: 14px;
|
2013-08-12 17:30:31 +08:00
|
|
|
color: rgb(0, 0, 0);
|
2013-08-28 21:15:54 +08:00
|
|
|
background: buttonface;/*url("/images/button/bg103.jpg") no-repeat scroll left top transparent;*/
|
2013-08-07 16:45:04 +08:00
|
|
|
padding: 0px 0px 4px 0px;
|
|
|
|
border-radius: 2px;
|
2013-08-09 16:26:26 +08:00
|
|
|
border: 1px solid rgb(148, 148, 148);
|
|
|
|
box-shadow: none;
|
|
|
|
text-shadow: none;
|
|
|
|
margin-top: -10px;
|
|
|
|
/*margin-right: -4px;*/
|
2013-08-07 16:45:04 +08:00
|
|
|
}
|
|
|
|
input[type="button"].bid_btn {
|
2013-09-02 13:29:46 +08:00
|
|
|
width: 60px;/*modified by ming*/
|
|
|
|
height: 25px;
|
2013-08-28 21:15:54 +08:00
|
|
|
line-height: 19px;
|
2013-08-07 16:45:04 +08:00
|
|
|
font-size: 14px;
|
2013-08-12 17:30:31 +08:00
|
|
|
color: rgb(0, 0, 0);
|
2013-08-28 21:15:54 +08:00
|
|
|
background: buttonface;/*url("/images/button/bg103.jpg") no-repeat scroll left top transparent;*/
|
2013-08-07 16:45:04 +08:00
|
|
|
padding: 0px 0px 4px 0px;
|
|
|
|
border-radius: 2px;
|
2013-08-09 16:26:26 +08:00
|
|
|
border: 1px solid rgb(148, 148, 148);
|
|
|
|
box-shadow: none;
|
|
|
|
text-shadow: none;
|
|
|
|
margin-top: -10px;
|
|
|
|
margin-right: -2px;
|
2013-08-07 16:45:04 +08:00
|
|
|
}
|
|
|
|
textarea:focus {
|
|
|
|
border: #d5dee9 1px solid;
|
|
|
|
}
|
|
|
|
</style>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
2013-08-07 16:45:04 +08:00
|
|
|
<script type="text/javascript" language="javascript">
|
2013-08-10 16:09:07 +08:00
|
|
|
function clearInfo(id, content) {
|
2013-08-09 16:26:26 +08:00
|
|
|
var text = $('#' + id);
|
2013-08-10 16:09:07 +08:00
|
|
|
if (text.val() == content) {
|
2013-08-09 16:26:26 +08:00
|
|
|
$('#' + id).val('');
|
|
|
|
}
|
|
|
|
}
|
2013-08-07 16:45:04 +08:00
|
|
|
|
2013-08-12 15:37:42 +08:00
|
|
|
function showInfo(id, content) {
|
2013-08-09 16:26:26 +08:00
|
|
|
var text = $('#' + id);
|
|
|
|
if (text.val() == '') {
|
2013-08-10 16:09:07 +08:00
|
|
|
$('#' + id).val(content);
|
2013-08-09 16:26:26 +08:00
|
|
|
}
|
|
|
|
}
|
2013-08-07 16:45:04 +08:00
|
|
|
</script>
|
|
|
|
|
2013-08-09 16:26:26 +08:00
|
|
|
<%= form_for('new_form', :remote => true, :method => :post,
|
|
|
|
:url => {:controller => 'words',
|
|
|
|
:action => 'create',
|
|
|
|
:user_id => user.id,
|
|
|
|
:sta => sta}) do |f|%>
|
2013-08-15 09:54:08 +08:00
|
|
|
|
|
|
|
<div id = 'pre_show'>
|
|
|
|
<%= render :partial => 'words/pre_show', :locals => {:content => @content} %>
|
|
|
|
</div>
|
|
|
|
|
2013-08-09 16:26:26 +08:00
|
|
|
<% if User.current.logged? %>
|
2013-08-07 16:45:04 +08:00
|
|
|
<table border="0" width="525px" align="center" >
|
|
|
|
<tr>
|
2013-08-10 16:09:07 +08:00
|
|
|
<td><%= f.text_area 'user_message', :rows => 3, :cols => 65, :value => "#{l(:label_leave_a_message)}", :onfocus => "clearInfo('new_form_user_message','#{l(:label_leave_a_message)}')", :onblur => "showInfo('new_form_user_message','#{l(:label_leave_a_message)}')", :style => "resize: none;", :class => 'noline'%></td>
|
2013-08-09 16:26:26 +08:00
|
|
|
</tr>
|
2013-08-07 16:45:04 +08:00
|
|
|
</table>
|
2013-08-09 16:26:26 +08:00
|
|
|
<%= f.text_field :reference_user_id, :style=>"display:none"%>
|
|
|
|
<table border="0" width="525px" align="center">
|
|
|
|
<tr>
|
2013-11-06 17:21:18 +08:00
|
|
|
<td align="right"> <%= submit_tag l(:button_leave_meassge), :name => nil , :class => "enterprise", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'"%>
|
|
|
|
<%= submit_tag l(:button_clear), :name => nil, :class => "enterprise", :onclick => "clearMessage('new_form_user_message');", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'" %> </td>
|
2013-08-09 16:26:26 +08:00
|
|
|
</tr>
|
|
|
|
</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 %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end %>
|