parent
							
								
									2694611eed
								
							
						
					
					
						commit
						b78504a5f1
					
				@ -1,15 +1,69 @@
 | 
				
			||||
<!-- fq -->
 | 
				
			||||
<h3 class="title"><%= l(:label_leave_message_to, :name => "user") %></h3>
 | 
				
			||||
<style>
 | 
				
			||||
	input[type="submit"].bid_btn {
 | 
				
			||||
		vertical-align: middle;
 | 
				
			||||
		width: 60px;
 | 
				
			||||
		height: 30px;
 | 
				
			||||
		line-height: 18px;
 | 
				
			||||
		font-size: 14px;
 | 
				
			||||
		color: rgb(255, 255, 255);
 | 
				
			||||
		background: url("/images/button/bg104.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"].bid_btn {
 | 
				
			||||
		width: 60px;
 | 
				
			||||
		height: 30px;
 | 
				
			||||
		line-height: 18px;
 | 
				
			||||
		font-size: 14px;
 | 
				
			||||
		color: rgb(255, 255, 255);
 | 
				
			||||
		background: url("/images/button/bg104.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>
 | 
				
			||||
 | 
				
			||||
<%= form_for("new_form", :remote => true, :url => {:controller => 'words',
 | 
				
			||||
<script type="text/javascript" language="javascript">
 | 
				
			||||
 function clearInfo(id) {
 | 
				
			||||
 	var text = $('#'+id);
 | 
				
			||||
  if (text.val() == "给他留言") {
 | 
				
			||||
    $('#'+id).val('');
 | 
				
			||||
  }
 | 
				
			||||
 }
 | 
				
			||||
 | 
				
			||||
 function showInfo(id) {
 | 
				
			||||
 	var text = $('#'+id);
 | 
				
			||||
  if (text.val() == '') {
 | 
				
			||||
    $('#'+id).val('给他留言');
 | 
				
			||||
  }
 | 
				
			||||
 }
 | 
				
			||||
</script>
 | 
				
			||||
 | 
				
			||||
<%= form_for('new_form', :remote => true, :method => :post, 
 | 
				
			||||
			 :url => {:controller => 'words',
 | 
				
			||||
              :action => 'create',
 | 
				
			||||
              :user_id => user.id,
 | 
				
			||||
              :sta => sta}) do |f| %>
 | 
				
			||||
 | 
				
			||||
  <p><%= label_tag 'user_message', l(:label_leave_message) %><%= f.text_area 'user_message', :rows => 3  %></p>
 | 
				
			||||
   <%= f.text_field :reference_user_id, :style=>"display:none"%>
 | 
				
			||||
  <p class="buttons">
 | 
				
			||||
    <%= submit_tag l(:button_leave_meassge), :name => nil %>
 | 
				
			||||
    <%= submit_tag l(:button_clear), :name => nil, :onclick => "clearMessage('user_message');", :type => 'button' %>
 | 
				
			||||
  </p>
 | 
				
			||||
              :sta => sta}) do |f|%>
 | 
				
			||||
<table border="0" width="525px" align="center" >
 | 
				
			||||
	<tr>
 | 
				
			||||
		<td><%= f.text_area 'user_message', :rows => 3, :cols => 65, :value => "给他留言", :onfocus => "clearInfo('new_form_user_message')", :onblur => "showInfo('new_form_user_message')", :style => "resize: none;", :class => 'noline'%></td>
 | 
				
			||||
		</tr></table>
 | 
				
			||||
		<%= f.text_field :reference_user_id, :style=>"display:none"%>
 | 
				
			||||
		<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'"%>
 | 
				
			||||
    <%= 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>
 | 
				
			||||
<% end %>
 | 
				
			||||
 | 
				
			||||
					Loading…
					
					
				
		Reference in new issue