diff --git a/app/controllers/homework_attach_controller.rb b/app/controllers/homework_attach_controller.rb
index d2d9a2360..e85f21517 100644
--- a/app/controllers/homework_attach_controller.rb
+++ b/app/controllers/homework_attach_controller.rb
@@ -6,7 +6,8 @@ class HomeworkAttachController < ApplicationController
###############################
before_filter :can_show_course,except: []
#判断当前角色权限时需先找到当前操作的project
- before_filter :find_course_by_bid_id, :only => [:new,:get_not_batch_homework,:get_batch_homeworks,:get_homeworks,:get_homework_jours]
+ before_filter :find_course_by_bid_id, :only => [:new]
+ before_filter :find_bid_and_course,:only => [:get_not_batch_homework,:get_batch_homeworks,:get_homeworks,:get_homework_jours]
before_filter :find_course_by_hoemwork_id, :only => [:edit,:update,:destroy,:show,:add_homework_users,:destory_homework_users]
#判断当前角色是否有操作权限
#勿删 before_filter :authorize, :only => [:new,:edit,:update,:destroy]
@@ -14,13 +15,13 @@ class HomeworkAttachController < ApplicationController
#获取未批作业列表
def get_not_batch_homework
sort, direction = params[:sort], params[:direction]
- order_by = sort == 'score'? "s_score #{direction}" : "created_at #{direction}"
-
+ order_by = sort == 'socre'? "s_score #{direction}" : "created_at #{direction}"
teachers = find_course_teachers @course
all_homework_list = HomeworkAttach.eager_load(:attachments,:user,:rate_averages).find_by_sql("SELECT * FROM (SELECT homework_attaches.*,
(SELECT AVG(stars) FROM seems_rateable_rates WHERE rateable_type = 'HomeworkAttach' AND rateable_id = homework_attaches.id AND rater_id IN #{teachers}) AS t_score,
(SELECT AVG(stars) FROM seems_rateable_rates WHERE rateable_type = 'HomeworkAttach' AND rateable_id = homework_attaches.id AND rater_id NOT IN #{teachers}) AS s_score
- FROM homework_attaches WHERE bid_id = #{@bid.id} ORDER BY #{order_by}) AS table1
+ FROM homework_attaches WHERE bid_id = #{@bid.id}
+ ORDER BY #{order_by}) AS table1
WHERE table1.t_score IS NULL")
@homework_list = paginateHelper all_homework_list,10
@@ -33,13 +34,14 @@ class HomeworkAttachController < ApplicationController
#获取已评作业列表
def get_batch_homeworks
sort, direction = params[:sort], params[:direction]
- teachers = find_course_teachers @course
teacher_proportion = get_teacher_proportion @bid
+ order_by = sort == 'socre'? "(CASE WHEN t_score IS NULL THEN 0 ELSE t_score * #{teacher_proportion} END + CASE WHEN s_score IS NULL THEN 0 ELSE s_score * #{1 - teacher_proportion} END) #{direction}" : "created_at #{direction}"
+ teachers = find_course_teachers @course
all_homework_list = HomeworkAttach.eager_load(:attachments,:user,:rate_averages).find_by_sql("SELECT * FROM (SELECT homework_attaches.*,
(SELECT AVG(stars) FROM seems_rateable_rates WHERE rateable_type = 'HomeworkAttach' AND rateable_id = homework_attaches.id AND rater_id IN #{teachers} and stars IS NOT NULL) AS t_score,
(SELECT AVG(stars) FROM seems_rateable_rates WHERE rateable_type = 'HomeworkAttach' AND rateable_id = homework_attaches.id AND rater_id NOT IN #{teachers}) AS s_score
FROM homework_attaches WHERE bid_id = #{@bid.id}
- ORDER BY (CASE WHEN t_score IS NULL THEN 0 ELSE t_score * #{teacher_proportion} END + CASE WHEN s_score IS NULL THEN 0 ELSE s_score * #{1 - teacher_proportion} END) DESC,created_at ASC) AS table1
+ ORDER BY #{order_by}) AS table1
WHERE table1.t_score IS NOT NULL")
@homework_list = paginateHelper all_homework_list,10
@direction = direction == 'asc'? 'desc' : 'asc'
@@ -51,13 +53,14 @@ class HomeworkAttachController < ApplicationController
#获取所有作业列表
def get_homeworks
sort, direction = params[:sort], params[:direction]
- teachers = find_course_teachers @course
teacher_proportion = get_teacher_proportion @bid
+ order_by = sort == 'socre'? "(CASE WHEN t_score IS NULL THEN 0 ELSE t_score * #{teacher_proportion} END + CASE WHEN s_score IS NULL THEN 0 ELSE s_score * #{1 - teacher_proportion} END) #{direction}" : "created_at #{direction}"
+ teachers = find_course_teachers @course
all_homework_list = HomeworkAttach.eager_load(:attachments,:user,:rate_averages).find_by_sql("SELECT homework_attaches.*,
(SELECT AVG(stars) FROM seems_rateable_rates WHERE rateable_type = 'HomeworkAttach' AND rateable_id = homework_attaches.id AND rater_id in #{teachers}) AS t_score,
(SELECT AVG(stars) FROM seems_rateable_rates WHERE rateable_type = 'HomeworkAttach' AND rateable_id = homework_attaches.id AND rater_id not in #{teachers}) AS s_score
FROM homework_attaches WHERE bid_id = #{@bid.id}
- ORDER BY (CASE WHEN t_score IS NULL THEN 0 ELSE t_score * #{teacher_proportion} END + CASE WHEN s_score IS NULL THEN 0 ELSE s_score * #{1 - teacher_proportion} END) DESC,created_at ASC")
+ ORDER BY #{order_by}")
@homework_list = paginateHelper all_homework_list,10
@direction = direction == 'asc'? 'desc' : 'asc'
respond_to do |format|
@@ -391,6 +394,13 @@ class HomeworkAttachController < ApplicationController
end
end
+ def find_bid_and_course
+ @bid = Bid.find(params[:bid_id])
+ @course = @bid.courses.first
+ rescue ActiveRecord::RecordNotFound
+ render_404
+ end
+
def find_course_by_bid_id
@bid = Bid.find(params[:id])
@course = @bid.courses.first
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 4be91c9b4..07d2dd4ba 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1896,13 +1896,13 @@ module ApplicationHelper
def sort_homework_path(bid, sort, direction)
case self.action_name
when 'show_courseEx'
- get_not_batch_homework_homework_attach_path(bid, sort: sort, direction: 'asc')
+ get_not_batch_homework_homework_attach_index_path(bid_id: bid.id, sort: sort, direction: 'asc')
when 'get_not_batch_homework'
- get_not_batch_homework_homework_attach_path(bid, sort: sort, direction: direction)
+ get_not_batch_homework_homework_attach_index_path(bid_id: bid.id, sort: sort, direction: direction)
when 'get_batch_homeworks'
- get_batch_homeworks_homework_attach_path(bid, sort: sort, direction: direction)
+ get_batch_homeworks_homework_attach_index_path(bid_id: bid.id, sort: sort, direction: direction)
when 'get_homeworks'
- get_homeworks_homework_attach_path(bid, sort: sort, direction: direction)
+ get_homeworks_homework_attach_index_path(bid_id: bid.id, sort: sort, direction: direction)
else
'#'
end
diff --git a/app/views/bids/_homework_list.html.erb b/app/views/bids/_homework_list.html.erb
index 960e3acff..ab067fdd0 100644
--- a/app/views/bids/_homework_list.html.erb
+++ b/app/views/bids/_homework_list.html.erb
@@ -14,17 +14,17 @@
-
- <%= link_to "未批作业", get_not_batch_homework_homework_attach_path(@bid), {:remote => true}%>
+ <%= link_to "未批作业", get_not_batch_homework_homework_attach_index_path(:bid_id => @bid.id), {:remote => true}%>
-
- <%= link_to "已改作业", get_batch_homeworks_homework_attach_path(@bid), {:remote => true}%>
+ <%= link_to "已改作业", get_batch_homeworks_homework_attach_index_path(:bid_id => @bid.id), {:remote => true}%>
-
- <%= link_to "全部作业", get_homeworks_homework_attach_path(@bid), {:remote => true}%>
+ <%= link_to "全部作业", get_homeworks_homework_attach_index_path(:bid_id => @bid.id), {:remote => true}%>
- 作业下载
-
- <%= link_to "留言", get_homework_jours_homework_attach_path(@bid), {:remote => true}%>
+ <%= link_to "留言", get_homework_jours_homework_attach_index_path(:bid_id => @bid.id), {:remote => true}%>
(23)
@@ -32,7 +32,7 @@
- <%= render :partial => 'homework_attach/homeworks_list', :locals => {:homeworks => @homework_list, :homework_count => @obj_count, :bid => @bid}%>
+ <%= render :partial => 'homework_attach/homeworks_list', :locals => {:homeworks => @homework_list, :homework_count => @obj_count, :bid => @bid, :remote => false}%>
diff --git a/app/views/homework_attach/_homeworks_list.html.erb b/app/views/homework_attach/_homeworks_list.html.erb
index 578c1f9e5..4d456c3ae 100644
--- a/app/views/homework_attach/_homeworks_list.html.erb
+++ b/app/views/homework_attach/_homeworks_list.html.erb
@@ -20,9 +20,10 @@
-
- <%= image_tag(url_to_avatar(homework.user), :width => "40", :height => "40")%>
+ <%= link_to image_tag(url_to_avatar(homework.user), :width => "40", :height => "40"), user_path(homework.user) %>
- <% user_name = is_teacher ? (homework.user.lastname + homework.user.firstname) : homework.user.login %>
+ <% user_realname = homework.user.lastname.to_s + homework.user.firstname.to_s %>
+ <% user_name = is_teacher ? (user_realname.empty? ? homework.user.login : user_realname) : homework.user.login %>
<%= link_to user_name, user_path(homework.user), :title => user_name %>
@@ -61,4 +62,5 @@
<% end %>
<% else %>
-<% end %>
\ No newline at end of file
+<% end %>
+
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => remote, :flag => true%>
\ No newline at end of file
diff --git a/app/views/homework_attach/_show.html.erb b/app/views/homework_attach/_show.html.erb
index 268b5a55e..3c2840dbc 100644
--- a/app/views/homework_attach/_show.html.erb
+++ b/app/views/homework_attach/_show.html.erb
@@ -15,12 +15,12 @@
-
+
+
+
科大校园助手最终提交文档及源码
diff --git a/app/views/homework_attach/edit.html.erb b/app/views/homework_attach/edit.html.erb
index 542fe5565..d122dfcf8 100644
--- a/app/views/homework_attach/edit.html.erb
+++ b/app/views/homework_attach/edit.html.erb
@@ -60,7 +60,7 @@
描 述 :
- <%= f.text_area :description, :rows => 8, :name => "homework_description", :class => 'wiki-edit', :maxlength => 65534, :style => "font-size:small;width:490px;margin-left:10px;" %>
+ <%= f.text_area :description, :rows => 8, :name => "homework_description", :class => 'wiki-edit', :maxlength => 3000, :style => "font-size:small;width:490px;margin-left:10px;" %>
diff --git a/app/views/homework_attach/get_batch_homeworks.js.erb b/app/views/homework_attach/get_batch_homeworks.js.erb
index d85a497e3..37c95ea81 100644
--- a/app/views/homework_attach/get_batch_homeworks.js.erb
+++ b/app/views/homework_attach/get_batch_homeworks.js.erb
@@ -1,3 +1,4 @@
-$('#tbc_01').html('<%= escape_javascript(render(:partial => 'homeworks_list', :locals => {:homeworks => @homework_list, :homework_count => @obj_count, :bid => @bid} )) %>');
+$('#tbc_01').html('<%= escape_javascript(render(:partial => 'homeworks_list',
+ :locals => {:homeworks => @homework_list, :homework_count => @obj_count, :bid => @bid, :remote => true} )) %>');
for(var i=1;i<=5;i++){$("#tb_"+i).removeClass().addClass("normaltab");}
$("#tb_2").removeClass().addClass("hovertab");
\ No newline at end of file
diff --git a/app/views/homework_attach/get_homeworks.js.erb b/app/views/homework_attach/get_homeworks.js.erb
index 2632d2a2b..8119bc5ec 100644
--- a/app/views/homework_attach/get_homeworks.js.erb
+++ b/app/views/homework_attach/get_homeworks.js.erb
@@ -1,4 +1,5 @@
-$('#tbc_01').html('<%= escape_javascript(render(:partial => 'homeworks_list', :locals => {:homeworks => @homework_list, :homework_count => @obj_count, :bid => @bid} )) %>');
+$('#tbc_01').html('<%= escape_javascript(render(:partial => 'homeworks_list',
+ :locals => {:homeworks => @homework_list, :homework_count => @obj_count, :bid => @bid, :remote => true} )) %>');
for(var i=1;i<=5;i++){$("#tb_"+i).removeClass().addClass("normaltab");}
$("#tb_3").removeClass().addClass("hovertab");
diff --git a/app/views/homework_attach/get_not_batch_homework.js.erb b/app/views/homework_attach/get_not_batch_homework.js.erb
index 246569e1c..91a7af542 100644
--- a/app/views/homework_attach/get_not_batch_homework.js.erb
+++ b/app/views/homework_attach/get_not_batch_homework.js.erb
@@ -1,3 +1,4 @@
-$('#tbc_01').html('<%= escape_javascript(render(:partial => 'homeworks_list', :locals => {:homeworks => @homework_list, :homework_count => @obj_count, :bid => @bid} )) %>');
+$('#tbc_01').html('<%= escape_javascript(render(:partial => 'homeworks_list',
+ :locals => {:homeworks => @homework_list, :homework_count => @obj_count, :bid => @bid, :remote => true} )) %>');
for(var i=1;i<=5;i++){$("#tb_"+i).removeClass().addClass("normaltab");}
$("#tb_1").removeClass().addClass("hovertab");
\ No newline at end of file
diff --git a/app/views/homework_attach/show.js.erb b/app/views/homework_attach/show.js.erb
index d55c24796..f4178c0f8 100644
--- a/app/views/homework_attach/show.js.erb
+++ b/app/views/homework_attach/show.js.erb
@@ -1,3 +1,3 @@
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'show') %>');
-showModal('ajax-modal', '510px');
-$('#ajax-modal').css('height','500px');
+showModal('ajax-modal', '503px');
+$('#ajax-modal').css('height','569px');
diff --git a/config/routes.rb b/config/routes.rb
index 535f9aa9e..8cc79cf9d 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -44,12 +44,12 @@ RedmineApp::Application.routes.draw do
match 'add_jour_reply', :via => [:get,:post]
match 'destroy_jour', :via => [:get,:post]
match 'comprehensive_evaluation_jour', :via => [:get,:post]
- end
- member do
get 'get_not_batch_homework'
get 'get_batch_homeworks'
get 'get_homeworks'
get 'get_homework_jours'
+ end
+ member do
match 'add_homework_users', :via => [:get,:post]
match 'destory_homework_users', :via => [:get,:post]
end
diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb
index fef8bfa23..189c15d36 100644
--- a/lib/redmine/pagination.rb
+++ b/lib/redmine/pagination.rb
@@ -219,50 +219,75 @@ module Redmine
#Added by Nie guanghui
#Designed for pagination.
def pagination_links_each(paginator, count=nil, options={}, &block)
- options.assert_valid_keys :per_page_links
+ #options.assert_valid_keys :per_page_links
- per_page_links = options.delete(:per_page_links)
+ #per_page_links = options.delete(:per_page_links)
+ per_page_links = options[:per_page_links]
+ remote = options[:remote] ? options[:remote] : false
+ flag = options[:flag] ? options[:flag] : false
per_page_links = false if count.nil?
page_param = paginator.page_param
html = ''
if paginator.previous_page
# \xc2\xab(utf-8) = «
- text = "\xc2\xab " + l(:label_previous)
- html << '
- ' << yield(text, {page_param => paginator.previous_page}, :class => 'previous') << '
' + ' '
+ if flag
+ text = l(:label_previous)
+ else
+ text = "\xc2\xab " + l(:label_previous)
+ end
+ html << '- ' << yield(text, {page_param => paginator.previous_page}, :class => 'previous', :remote => remote) << '
' + ' '
end
unless paginator.previous_page
if paginator.next_page
- text = "\xc2\xab " + l(:label_previous)
- html << '- ' << yield(text, {page_param => paginator.previous_page}, :class => 'previous') << '
' + ' '
+ if flag
+ text = l(:label_previous)
+ else
+ text = "\xc2\xab " + l(:label_previous)
+ end
+ html << '- ' << yield(text, {page_param => paginator.previous_page}, :class => 'previous', :remote => remote) << '
' + ' '
end
end
previous = nil
paginator.linked_pages.each do |page|
if previous && previous != page - 1
- html << '- ' << content_tag('span', '...', :class => 'spacer') << '
' + ' '
+ if flag
+ html << '- ' << content_tag('a', '...') << '
' + ' '
+ else
+ html << '- ' << content_tag('span', '...', :class => 'spacer') << '
' + ' '
+ end
end
if page == paginator.page
- html << '- ' << content_tag('span', page.to_s, :class => 'current-page') << '
'
+ if flag
+ html << '- ' << page.to_s << '
'
+ else
+ html << '- ' << content_tag('span', page.to_s, :class => 'current-page') << '
'
+ end
else
- html << '- ' << yield(page.to_s, {page_param => page}, :class => 'page') << '
'
+ html << '- ' << yield(page.to_s, {page_param => page}, :class => 'page', :remote => remote) << '
'
end
html << ' '
previous = page
end
if paginator.next_page
- # \xc2\xbb(utf-8) = »
- text = l(:label_next) + " \xc2\xbb"
- html << '- ' << yield(text, {page_param => paginator.next_page}, :class => 'next') << '
' + ' '
+ if flag
+ text = l(:label_next)
+ else
+ text = l(:label_next) + " \xc2\xbb"
+ end
+ html << '- ' << yield(text, {page_param => paginator.next_page}, :class => 'next', :remote => remote) << '
' + ' '
end
unless paginator.next_page
if paginator.previous_page
- # \xc2\xbb(utf-8) = »
- text = l(:label_front) + " \xc2\xbb"
- html << "- " << yield(text, {page_param => paginator.next_page}, :class => 'next') << "
" + ' '
+ if flag
+ text = l(:label_next)
+ else
+ text = l(:label_next) + " \xc2\xbb"
+ end
+ html << "- " << yield(text, {page_param => paginator.next_page}, :class => 'next', :remote => remote) << "
" + ' '
end
end
diff --git a/public/stylesheets/css.css b/public/stylesheets/css.css
index 88b0163dc..ff2c60886 100644
--- a/public/stylesheets/css.css
+++ b/public/stylesheets/css.css
@@ -1,7 +1,7 @@
/* CSS Document */
body{ font-size:12px; font-family:"微软雅黑","宋体"; line-height:1.9; background:#fff; font-style:normal;}
-div,html,img,ul,li,p,body,h1,h2,h3,h4,p,a,table,tr,td,fieldset,input,span{ margin:0; padding:0;}
-div,img,tr,td{ border:0;}
+div,html,img,ul,li,p,body,h1,h2,h3,h4,p,a,table,tr,td,fieldset,input,span,textarea{ margin:0; padding:0;}
+div,img,tr,td,textarea{ border:0;}
table,tr,td{border:0; cellspacing:0; cellpadding:0;}
ul,li{ list-style-type:none}
.cl{ clear:both; overflow:hidden; }
@@ -19,6 +19,8 @@ a:hover{ text-decoration:underline;}
.tb_{ background-color: #eaeaea; height:40px; }
.tb_ ul{height:40px; }
.tb_ li{float:left;height:35px;width: 90px;cursor:pointer; font-size:14px; padding-top:5px; text-align:center; }
+a.tb_all{ margin-left:235px; font-size:12px; display:block; height:23px; padding-top:4px; width:90px; color:#7a7a7a; border:1px solid #cbcbcb; background:#fff; text-align: center;}
+a:hover.tb_all{ background:#eaeaea; text-decoration:none;}
/* 控制显示与隐藏css类 */
.normaltab { color:#64bdd9 ; }
@@ -30,27 +32,33 @@ a:hover{ text-decoration:underline;}
.c_red{ color:#de030d;}
.f_12{ font-size:12px;}
+.w_40{ width:40px; border:1px solid red;}
.dis ul{ height:75px; border-bottom:1px dashed #64bdd9;}
.dis ul li{ float:left;}
-.dis ul li a{ display:block; color:#15bccf;}
-.pic_head{ width:40px; padding:8px 15px 0 8px; }
-.pic_head a{ text-align:center; width:40px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}
+.dis ul li a{ display:block; color:#15bccf; }
+.pic_head{ width:42px; padding:8px 15px 0 8px;}
+.pic_head a{ text-align:center; width:42px; overflow:hidden;text-overflow:ellipsis; white-space:nowrap;}
.pic_head img{ border:1px solid #fff;}
.pic_head img:hover{border:1px solid #15bccf;}
.dis ul li.wname a{ width:260px; font-size:14px; color:#595959; padding:20px 0 0 15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
-.dis ul li.wdown a{padding-top:22px; color:#3d7ec2; margin-right:43px;}
-.wscore{ padding-top:22px; color:#888888;width:96px;}
-.dis ul li.wping{margin-left:16px; }
+.dis ul li.wdown a{padding-top:22px; color:#3d7ec2; margin-right:35px;}
+.wscore{ padding-top:22px; color:#888888; width:96px;}
+.dis ul li.wping{margin-left:12px; }
.dis ul li.wping a{ margin-top:18px; margin-bottom:3px; width:43px; height:23px; background:#15bccf; color:#fff; text-align:center; padding-top:3px;}
.dis ul li.wping a:hover{ background-color:#03a1b3;}
ul.wlist{ float:right; border-bottom:none; height:30px; margin-top:20px; }
+.wlist span{ border:1px solid #15bccf; padding:0 5px; margin-left:3px;}
.wlist a{ border:1px solid #15bccf; padding:0 5px; margin-left:3px;}
.wlist a:hover{ background:#15bccf; color:#fff; text-decoration:none;}
+.wlist_select { background-color:#64bdd9; color:#fff; padding:0 5px; margin-left:3px; border:1px solid #64bdd9;}
.code_list{ float:right; font-size:12px; color:#484848; padding:5px 3px; border-bottom:2px solid #15bccf; width:687px; }
.code_list a{ color:#787878;}
.fr{ float:right;}
.c_grey{ color:#999; font-weight:normal;}
+.dis ul li.wname02 a{ width:200px; font-size:14px; color:#595959; padding:20px 0 0 15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
+.dis ul li.wmine{ margin:12px 0 0 10px;}
+.dis ul li.wmine a{ color:#3d7ec2; text-align:center; width:50px; font-weight: bold;}
.msg_box{ width:693px; height:170px; border-bottom:1px dashed #CCC; padding-top:20px;}
.msg_box h4{ margin-left:15px;border-style: none;}
@@ -99,6 +107,28 @@ a:hover.ping_sub{ background:#14a8b9;}
.ping_distop span a{ float:right; width:20px; height:20px; background:url(images/star.png) -24px 0 no-repeat; margin-right:3px;}
+/* 创建作业 */
+.Newwork{ width:918px; height:418px; border:1px solid #c3c3c3;}
+.N_top{ height:35px; background:#e5e5e5; border:1px solid #fff; width:891px; padding:5px 10px 0 15px;}
+.N_top h2{ color:#616161; font-size:14px; float:left;}
+.N_top a{ float:right; font-size:14px; color:#15bccf; display:block; background:url(images/pic_ad.png) 0 5px no-repeat; height:20px; width:60px; padding-left:16px;}
+.N_con{ color:#484747; font-weight:bold; width:720px; margin:15px auto;}
+.N_con p{ margin-bottom:15px;}
+
+.w430{ width:430px;}
+.w350{ width:350px;}
+.w620{ width:580px; height:160px; border:1px solid #CCC;}
+.bo{height:26px; border:1px solid #CCC; }
+a.tijiao{ height:28px; display:block; width:80px; color:#fff; background:#15bccf; text-align:center; padding-top:4px; float:left; margin-right:10px;}
+a:hover.tijiao{ background:#0f99a9;}
+
+/* 匿名评分弹框 */
+#popbox02{width:480px;height:200px;position:absolute;z-index:100;left:50%;top:50%;margin:-215px 0 0 -300px; background:#fff; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; box-shadow:0px 0px 8px #194a81; overflow:auto;}
+.alert .close02{width:26px;height:26px;overflow:hidden;position:absolute;top:-10px;right:-490px;background:url(images/close.png) no-repeat;cursor:pointer;}
+.ni_con { width:425px; margin:25px 30px;}
+.ni_con h2{ display:block; height:40px; width:188px; margin:0 auto;}
+.ni_con p{ color:#808181;}
+.ni_con a:hover{ text-decoration:none;}
diff --git a/public/stylesheets/images/pic_ad.png b/public/stylesheets/images/pic_ad.png
new file mode 100644
index 000000000..d3ef56d26
Binary files /dev/null and b/public/stylesheets/images/pic_ad.png differ
diff --git a/public/stylesheets/images/pic_ni.jpg b/public/stylesheets/images/pic_ni.jpg
new file mode 100644
index 000000000..d230397cc
Binary files /dev/null and b/public/stylesheets/images/pic_ni.jpg differ
diff --git a/public/stylesheets/images/pic_question.png b/public/stylesheets/images/pic_question.png
new file mode 100644
index 000000000..2e4813842
Binary files /dev/null and b/public/stylesheets/images/pic_question.png differ
diff --git a/public/stylesheets/images/pic_top.jpg b/public/stylesheets/images/pic_top.jpg
new file mode 100644
index 000000000..a9dd343b1
Binary files /dev/null and b/public/stylesheets/images/pic_top.jpg differ