2014-04-14 09:50:36 +08:00
|
|
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<%= form_for('softapplication_message',
|
|
|
|
:remote => true, :method => :post,
|
|
|
|
:url => {:controller => 'softapplications',
|
|
|
|
:action => 'create_message',
|
|
|
|
:id => softapplication,
|
|
|
|
:sta => sta}
|
|
|
|
) do |f|%>
|
|
|
|
|
|
|
|
<div id = 'pre_show'>
|
|
|
|
<%= render :partial => 'pre_show', :locals => {:content => @content} %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
<table border="0" width="525px" align="center" >
|
|
|
|
<tr>
|
|
|
|
<td><%= f.text_area 'message', :rows => 3, :cols => 65, :placeholder => l(:label_my_respond), :style => "resize: none;", :class => 'noline'%></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<%= f.text_field :reference_user_id, :style=>"display:none"%> <!--what function?-->
|
|
|
|
|
|
|
|
<!-- modified by bai -->
|
2014-04-14 21:54:54 +08:00
|
|
|
<table border="0" width="518px" align="center">
|
2014-04-14 09:50:36 +08:00
|
|
|
<tr>
|
2014-04-14 21:54:54 +08:00
|
|
|
<td align="right"> <%= submit_tag l(:label_button_ok), :name => nil , :class => "softapplication_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'"%>
|
|
|
|
<%= submit_tag l(:button_clear_requirement), :name => nil, :onclick => "clearMessage('softapplication_message_message');", :type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'" %> </td>
|
2014-04-14 09:50:36 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<!-- end -->
|
|
|
|
<% 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 %>
|