diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 3b58bdda4..72027a118 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -473,40 +473,16 @@ class UsersController < ApplicationController
end
end
+ #显示更多用户课程
def user_courses4show
- query = Course.joins("join members m on #{Course.table_name}.id=m.course_id")
- query = query.where("m.user_id = ?",@user.id).order("#{Course.table_name}.id desc")
- if User.current == @user #看自己
- else
- if @user.user_extensions!=nil && @user.user_extensions.identity == 0 #看老师
- query = query.joins("join member_roles r on m.id = r.member_id")
- query = query.where("r.role_id in(3,7,9)")
- end
- query = query.where(Course.table_name+".is_public = 1")
- end
-
- if params[:lastid]!=nil && !params[:lastid].empty?
- query = query.where(" #{Course.table_name}.id < ?",params[:lastid],)
- end
- @list = query.limit(8)
-
- render :layout=>nil
+ @page = params[:page].to_i + 1
+ @courses = @user.courses.visible.select("courses.*,(SELECT MAX(created_at) FROM `course_activities` WHERE course_activities.course_id = courses.id) AS a").order("a desc").limit(5).offset(@page * 5)
end
- def user_projects4show
- query = Project.joins("join members m on #{Project.table_name}.id=m.project_id")
- query = query.where("m.user_id = ? and #{Project.table_name}.project_type=?",@user.id,Project::ProjectType_project)
- if User.current == @user #看自己
- else
- query = query.where(Project.table_name+".is_public = 1")
- # TODO or exists (select 1 from project c2,members m2 where c2.id=m2.course_id and c2.id=#{Project.table_name}.id and m2.user_id= User.current.id)
- end
- if params[:lastid]!=nil && !params[:lastid].empty?
- query = query.where("( (#{Project.table_name}.updated_on=? and #{Project.table_name}.id < ?) or #{Project.table_name}.updated_on)",params[:lasttime],params[:lastid],params[:lasttime])
- end
- @list = query.order("#{Project.table_name}.updated_on desc,#{Project.table_name}.id desc").limit(8).all
-
- render :layout=>nil
+ #显示更多用户项目
+ def user_projects4show
+ @page = params[:page].to_i + 1
+ @projects = @user.projects.visible.select("projects.*,(SELECT MAX(created_at) FROM `forge_activities` WHERE forge_activities.project_id = projects.id) AS a").order("a desc").limit(5).offset(@page * 5)
end
def user_course_activities
diff --git a/app/views/layouts/_logined_header.html.erb b/app/views/layouts/_logined_header.html.erb
index 046dafa61..ee3f2f0ab 100644
--- a/app/views/layouts/_logined_header.html.erb
+++ b/app/views/layouts/_logined_header.html.erb
@@ -18,11 +18,34 @@
-
+
diff --git a/app/views/layouts/_unlogin_header.html.erb b/app/views/layouts/_unlogin_header.html.erb
index ac322f07f..b4423a713 100644
--- a/app/views/layouts/_unlogin_header.html.erb
+++ b/app/views/layouts/_unlogin_header.html.erb
@@ -1,40 +1,47 @@
- <%=link_to image_tag("../images/logo.png",weight:"51px", height: "45px",class: "mt3")%>
+ <%=link_to image_tag("../images/logo.png",width:"51px", height: "45px",class: "mt3"), "javascript:void(0);"%>
-
+
+
-
-
+
-
\ No newline at end of file
diff --git a/app/views/layouts/_user_courses.html.erb b/app/views/layouts/_user_courses.html.erb
new file mode 100644
index 000000000..d5f0507f1
--- /dev/null
+++ b/app/views/layouts/_user_courses.html.erb
@@ -0,0 +1,12 @@
+<% courses.each do |course|%>
+
+<% end %>
+
+<% if courses.size == 5%>
+
+<% end%>
\ No newline at end of file
diff --git a/app/views/layouts/_user_projects.html.erb b/app/views/layouts/_user_projects.html.erb
new file mode 100644
index 000000000..864b6888c
--- /dev/null
+++ b/app/views/layouts/_user_projects.html.erb
@@ -0,0 +1,11 @@
+<% projects.each do |project|%>
+
+<% end %>
+<% if projects.size == 5%>
+
+<% end%>
\ No newline at end of file
diff --git a/app/views/layouts/new_base_user.html.erb b/app/views/layouts/new_base_user.html.erb
index 419fa70ce..6f3ed0c67 100644
--- a/app/views/layouts/new_base_user.html.erb
+++ b/app/views/layouts/new_base_user.html.erb
@@ -102,18 +102,7 @@
-
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 02791d02d..4975229eb 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -213,9 +213,4 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/app/views/users/show_new_score.js.erb b/app/views/users/show_new_score.js.erb
index 40ef7d5c5..51f430fa9 100644
--- a/app/views/users/show_new_score.js.erb
+++ b/app/views/users/show_new_score.js.erb
@@ -1,4 +1,9 @@
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'users/show_new_score') %>');
showModal('ajax-modal', '400px');
-$('#ajax-modal').siblings().show();
-$('#ajax-modal').addClass('new-watcher');
+$('#ajax-modal').css('height','auto');
+$('#ajax-modal').siblings().remove();
+$('#ajax-modal').before("
" +
+"
");
+//$('#ajax-modal').parent().removeClass("alert_praise");
+$('#ajax-modal').parent().css("top","30%").css("left","35%");
+$('#ajax-modal').parent().addClass("alert_box");
diff --git a/app/views/users/user_courses4show.html.erb b/app/views/users/user_courses4show.html.erb
deleted file mode 100644
index 7aab1b2a5..000000000
--- a/app/views/users/user_courses4show.html.erb
+++ /dev/null
@@ -1,16 +0,0 @@
-<% for item in @list %>
-
-
-<% end %>
diff --git a/app/views/users/user_courses4show.js.erb b/app/views/users/user_courses4show.js.erb
new file mode 100644
index 000000000..12696e232
--- /dev/null
+++ b/app/views/users/user_courses4show.js.erb
@@ -0,0 +1 @@
+$("#user_show_more_course").replaceWith("<%= escape_javascript( render :partial => 'layouts/user_courses',:locals => {:courses => @courses,:user => @user, :page => @page} )%>");
diff --git a/app/views/users/user_projects4show.html.erb b/app/views/users/user_projects4show.html.erb
deleted file mode 100644
index 3c709bd5d..000000000
--- a/app/views/users/user_projects4show.html.erb
+++ /dev/null
@@ -1,16 +0,0 @@
-<% for item in @list %>
-
-<% end %>
diff --git a/app/views/users/user_projects4show.js.erb b/app/views/users/user_projects4show.js.erb
new file mode 100644
index 000000000..c19a79c81
--- /dev/null
+++ b/app/views/users/user_projects4show.js.erb
@@ -0,0 +1 @@
+$("#user_show_more_project").replaceWith("<%= escape_javascript( render :partial => 'layouts/user_projects',:locals => {:projects => @projects,:user => @user, :page => @page} )%>");
diff --git a/public/javascripts/new_user.js b/public/javascripts/new_user.js
index 44f719a0b..97894bd45 100644
--- a/public/javascripts/new_user.js
+++ b/public/javascripts/new_user.js
@@ -1,5 +1,6 @@
$(function(){
- $("#RSide").css("min-height",$("#LSide").height()-40).css("padding","10px");
+ //右侧最小高度 = 左侧高度 - 15px 保证两边高度基本一样,页面美观
+ $("#RSide").css("min-height",$("#LSide").height()-15);
//头像相关
$("#homepage_portrait_image").live("mouseover",function(){
@@ -9,6 +10,13 @@ $(function(){
$("#edit_user_file_btn").hide();
$("#watch_user_btn").hide();
});
+
+ //搜索相关
+ $("#navHomepageSearch").mouseover(function(){
+ $("#navHomepageSearchType").show();
+ }).mouseout(function(){
+ $("#navHomepageSearchType").hide();
+ });
});
//编辑个人简介
@@ -29,18 +37,39 @@ function edit_user_introduction(url){
);
}
-$(function(){
- $(".newsType").mouseover(function(){
- $(".resourcesIcon").css({background:"url(images/resource_icon_list.png) 0px -25px no-repeat"});
- });
- $(".newsType").mouseout(function(){
- $(".resourcesIcon").css({background:"url(images/resource_icon_list.png) 0px 0px no-repeat"});
- });
- $(".resourcesSelected").mouseover(function(){
- $(".resourcesIcon").css({background:"url(images/resource_icon_list.png) 0px -25px no-repeat"});
- });
- $(".resourcesSelected").mouseout(function(){
- $(".resourcesIcon").css({background:"url(images/resource_icon_list.png) 0px 0px no-repeat"});
- });
-});
+//显示更多的课程
+function show_more_course(url){
+ $.get(
+ url,
+ { page: $("#course_page_num").val() },
+ function (data) {
+ }
+ );
+}
+
+//显示更多的项目
+function show_more_project(url){
+ $.get(
+ url,
+ { page: $("#project_page_num").val() },
+ function (data) {
+
+ }
+ );
+}
+//
+//$(function(){
+// $(".newsType").mouseover(function(){
+// $(".resourcesIcon").css({background:"url(images/resource_icon_list.png) 0px -25px no-repeat"});
+// });
+// $(".newsType").mouseout(function(){
+// $(".resourcesIcon").css({background:"url(images/resource_icon_list.png) 0px 0px no-repeat"});
+// });
+// $(".resourcesSelected").mouseover(function(){
+// $(".resourcesIcon").css({background:"url(images/resource_icon_list.png) 0px -25px no-repeat"});
+// });
+// $(".resourcesSelected").mouseout(function(){
+// $(".resourcesIcon").css({background:"url(images/resource_icon_list.png) 0px 0px no-repeat"});
+// });
+//});
//个人动态 end
\ No newline at end of file
diff --git a/public/stylesheets/new_public.css b/public/stylesheets/new_public.css
index 838934375..de6cf696f 100644
--- a/public/stylesheets/new_public.css
+++ b/public/stylesheets/new_public.css
@@ -9,6 +9,7 @@ a:link,a:visited{color:#7f7f7f;text-decoration:none;}
a:hover,a:active{color:#000;}
/*常用*/
+#RSide{ background:#fff;}
.hidden{overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
.none{display: none;}
.rside_back{ width:670px; margin-left:10px; background:#fff; margin-bottom:10px;}
@@ -22,7 +23,7 @@ table{ background:#fff;}
.line{border-bottom:1px dashed #d4d4d4; padding-bottom:10px; margin-bottom:10px;}
.no_border{ border:none;background:none;}
.min_search{ width:150px; height:20px; border:1px solid #d0d0d0; color:#666; background:url(../images/public_icon.png) 135px -193px no-repeat; cursor:pointer;}
-
+.db {display:block;}
/* font & color */
h2{ font-size:18px; color:#15bccf;}
h3{ font-size:14px; color:#e8770d;}
@@ -70,6 +71,7 @@ h4{ font-size:14px; color:#3b3b3b;}
.ml90{ margin-left:90px;}
.ml100{ margin-left:100px;}
.ml110{ margin-left:110px;}
+.ml150 { margin-left:150px;}
.mr5{ margin-right:5px;}
.mr45 {margin-right:45px;}
.mr55{ margin-right:55px;}
@@ -82,7 +84,7 @@ h4{ font-size:14px; color:#3b3b3b;}
.mt3{ margin-top:3px;}
.mt5{ margin-top:5px;}
.mt8{ margin-top:8px;}
-.mt10{ margin-top:10px;}
+.mt10{ margin-top:10px !important;}
.mt15 {margin-top:15px;}
.mb4{ margin-bottom:4px;}
.mb5{ margin-bottom:5px;}
@@ -228,7 +230,7 @@ a:hover.bgreen_n_btn{background:#08a384;}
#TopNav{}
#TopNav ul li{ margin-top:8px;}
.topnav_a a{ font-size:14px; font-weight:bold; color:#fff; margin-right:10px;}
-.topnav_a a:hover{color: #a1ebff;;}
+.topnav_a a:hover{color: #a1ebff;}
#userInfo {float:right; display:inline-block; width:130px; padding-top:5px;}
.userInfoRow2 {margin-top:-5px;}
.myPractice {display:inline-block;}
@@ -284,101 +286,6 @@ a.search_btn{ display:block; background:#15bccf; color:#fff; width:60px; height:
a:hover.search_btn{ background: #0fa9bb;}
.search_text{ border:1px solid #15bccf; background:#fff; width:220px; height:25px; padding-left:5px; }
-/*资源库*/
-/*.resources {width:730px; background-color:#ffffff; padding:10px;}*/
-/*.resourcesBanner {width:730px; height:40px; background-color:#eaeaea; margin-bottom:10px;}*/
-/*.bannerName {background:#64bdd9; color:#ffffff; height:40px; line-height:40px; width:90px; text-align:center; font-weight:normal; vertical-align:middle; font-size: 16px; float:left;}*/
-/*.resourcesSelect {width:30px; height:34px; float:right; position:relative; margin-top:-6px;}*/
-/*.resourcesSelected {width:25px; height:20px; position:relative; background:url(images/resource_icon_list.png) 0px 0px no-repeat;}*/
-/*.resourcesSelected:hover { background:url(images/resource_icon_list.png) 0px -25px no-repeat;}*/
-/*.resourcesIcon {margin-top:15px; display:block; width:25px; height:20px;}*/
-/*.resourcesType {width:50px; background-color:#ffffff; float:left; list-style:none; position:absolute; border:1px solid #eaeaea; border-radius:5px; top:35px; padding:5px 10px; left:-30px; font-size:12px; color:#888888; display:none;}*/
-/*a.resourcesGrey {font-size:12px; color:#888888;}*/
-/*a.resourcesGrey:hover {font-size:12px; color:#15bccf;}*/
-/*.resourcesBanner ul li:hover ul.resourcesType {display:block;}*/
-/*ul li:hover ul {display:block;}*/
-/*.resourcesUploadBox {float:right; width:103px; height:34px; background-color:#64bdd9; line-height:34px; vertical-align:middle; text-align:center; margin-left:12px;}*/
-/*.uploadIcon {background:url(images/resource_icon_list.png) -35px 10px no-repeat; float:left; display:block; width:30px; height:30px; margin-left:-3px;}*/
-/*a.uploadText {color:#ffffff; font-size:14px;}*/
-/*.resourcesSearchloadBox {border:1px solid #e6e6e6; width:225px; float:right; background-color:#ffffff;}*/
-/*.searchResource {border:none; outline:none; background-color:#ffffff; width:184px; height:32px; padding-left:10px; display:block; float:left;}*/
-/*.searchIcon{width:31px; height:32px; background-color:#ffffff; background:url(images/resource_icon_list.png) -40px -15px no-repeat; display:block; float:left;}*/
-/*.resourcesSearchBanner {height:34px; margin-bottom:10px;}*/
-/*.resourcesListTab {width:730px; height:40px; background-color:#f6f6f6; border-bottom:1px solid #eaeaea; font-size:14px; color:#7a7a7a;}*/
-/*.resourcesListCheckbox {width:40px; height:40px; line-height:40px; text-align:center; vertical-align:middle;}*/
-/*.resourcesCheckbox {padding:0px; margin:0px; margin-top:14px; width:12px; height:12px;}*/
-/*.resourcesListName {width:135px; height:40px; line-height:40px; text-align:left;}*/
-/*.resourcesListSize {width:110px; height:40px; line-height:40px; text-align:center;}*/
-/*.resourcesListType {width:150px; height:40px; line-height:40px; text-align:center;}*/
-/*.resourcesListUploader {width:130px; height:40px; line-height:40px; text-align:center;}*/
-/*.resourcesListTime {width:165px; height:40px; line-height:40px; text-align:center;}*/
-/*.resourcesList {width:730px; height:39px; background-color:#ffffff; border-bottom:1px dashed #eaeaea; color:#9a9a9a; font-size:12px;}*/
-/*a.resourcesBlack {font-size:12px; color:#4c4c4c;}*/
-/*a.resourcesBlack:hover {font-size:12px; color:#000000;}*/
-/*.dropdown-menu {*/
- /*position: absolute;*/
- /*top: 100%;*/
- /*left: 0;*/
- /*z-index: 1000;*/
- /*display: none;*/
- /*float: left;*/
- /*min-width: 80px;*/
- /*padding: 5px 0;*/
- /*margin: 2px 0 0;*/
- /*font-size: 12px;*/
- /*text-align: left;*/
- /*background-color: #fff;*/
- /*-webkit-background-clip: padding-box;*/
- /*background-clip: padding-box;*/
- /*border: 1px solid #ccc;*/
- /*border-radius: 4px;*/
- /*-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);*/
- /*box-shadow: 0 6px 12px rgba(0, 0, 0, .175);*/
-/*}*/
-/*.dropdown-menu > li > a {*/
- /*display: block;*/
- /*padding: 3px 20px;*/
- /*clear: both;*/
- /*font-weight: normal;*/
- /*line-height: 1.5;*/
- /*color:#616060;*/
- /*white-space: nowrap;*/
-/*}*/
-/*.dropdown-menu > li > a:hover{*/
- /*color: #ffffff;*/
- /*text-decoration: none;*/
- /*background-color: #64bdd9;*/
- /*outline:none;*/
-/*}*/
-
-/*发送资源弹窗*/
-/*.resourceShareContainer {width:100%; height:100%; background:#666; filter:alpha(opacity=50); opacity:0.5; -moz-opacity:0.5; position:absolute; left:0; top:0; z-index:-999;}*/
-/*.resourceSharePopup {width:300px; height:auto; border:3px solid #15bccf; padding-left:16px; padding-bottom:16px; background-color:#ffffff; position:absolute; top:50%; left:50%; margin-left:-150px; z-index:1000;}*/
-/*.sendText {font-size:16px; color:#15bccf; line-height:16px; padding-top:20px; width:140px; display:inline-block;}*/
-/*.resourcePopupClose {width:20px; height:20px; display:inline-block; float:right;}*/
-/*.resourceClose {background:url(images/resource_icon_list.png) 0px -40px no-repeat; width:20px; height:20px; display:inline-block;}*/
-/*.resourcesSearchBox {border:1px solid #e6e6e6; width:225px; height:25px; background-color:#ffffff; margin-top:12px; margin-bottom:15px;}*/
-/*.searchResourcePopup {border:none; outline:none; background-color:#ffffff; width:184px; height:25px; padding-left:10px; display:inline-block; float:left;}*/
-/*.searchIconPopup{width:31px; height:25px; background-color:#ffffff; background:url(images/resource_icon_list.png) -40px -18px no-repeat; display:inline-block; float:left;}*/
-/*.courseSend {width:260px; height:15px; line-height:15px; margin-bottom:10px;}*/
-/*.courseSendCheckbox {padding:0px; margin:0px; width:12px; height:12px; margin-right:10px; display:inline-block; margin-top:2px;}*/
-/*.sendCourseName {font-size:12px; color:#5f6060;}*/
-/*.courseSendSubmit {width:50px; height:25px; line-height:25px; text-align:center; vertical-align:middle; background-color:#64bdd9; margin-right:25px; float:left;}*/
-/*.courseSendCancel {width:50px; height:25px; line-height:25px; text-align:center; vertical-align:middle; background-color:#c1c1c1; float:left}*/
-/*a.sendSourceText {font-size:14px; color:#ffffff;}*/
-
-/*上传资源弹窗*/
-/*.resourceUploadPopup {width:400px; height:auto; border:3px solid #15bccf; padding-left:16px; padding-bottom:16px; background-color:#ffffff; position:absolute; top:50%; left:50%; margin-left:-200px; z-index:1000;}*/
-/*.uploadText {font-size:16px; color:#15bccf; line-height:16px; padding-top:20px; width:140px; display:inline-block;}*/
-/*.uploadBoxContainer {height:33px; line-height:33px; margin-top:10px; position:relative;}*/
-/*.uploadBox {width:100px; height:33px; line-height:33px; text-align:center; vertical-align:middle; background-color:#64bdd9; border-radius:3px; float:left; margin-right:12px;}*/
-/*a.uploadIcon {background:url(images/resource_icon_list.png) 8px -60px no-repeat; width:100px; height:33px;}*/
-/*.chooseFile {color:#ffffff; display:block; margin-left:32px;}*/
-/*.uploadResourceIntr {width:250px; height:33px; float:left; line-height:33px; font-size:12px;}*/
-/*.uploadResourceName {width:250px; display:inline-block; line-height:15px; font-size:12px; color:#444444; margin-bottom:2px;}*/
-/*.uploadResourceIntr2 {width:250px; display:inline-block; line-height:15px; font-size:12px; color:#444444;}*/
-/*.uploadType {margin:10px 0; border:1px solid #e6e6e6; width:100px; height:30px; outline:none; font-size:12px; color:#888888;}*/
-/*.uploadKeyword {margin-bottom:10px; outline:none; border:1px solid #e6e6e6; height:30px; width:280px;}*/
/*资源库*/
.resources {width:728px; background-color:#ffffff; padding:10px; border:1px solid #dddddd;float: right}
@@ -501,6 +408,8 @@ a.uploadIcon {background:url(images/resource_icon_list.png) 8px -60px no-repeat;
/*.resourceSharePopup {width:300px; height:auto; border:3px solid #15bccf; padding-left:16px; padding-bottom:16px; background-color:#ffffff; position:absolute; top:50%; left:50%; margin-left:-150px; z-index:1000;}*/
.resourceSharePopup {width:300px; height:auto; border:3px solid #15bccf; padding-left:16px; padding-bottom:16px; background-color:#ffffff; position:absolute; top:50%; left:50%; margin-left:-150px; z-index:1000;}
.sendText {font-size:16px; color:#15bccf; line-height:16px; padding-top:20px; width:100px; display:inline-block;}
+.resourcesSendTo {float:left; height:20px; margin-top:15px;}
+.resourcesSendType {border:1px solid #e6e6e6; width:60px; height:24px; outline:none; font-size:14px; color:#888888;}
.resourcePopupClose {width:20px; height:20px; display:inline-block; float:right;}
.resourceClose {background:url(images/resource_icon_list.png) 0px -40px no-repeat; width:20px; height:20px; display:inline-block;}
.resourcesSearchBox {border:1px solid #e6e6e6; width:225px; height:25px; background-color:#ffffff; margin-top:12px; margin-bottom:15px;}
@@ -510,6 +419,7 @@ a.uploadIcon {background:url(images/resource_icon_list.png) 8px -60px no-repeat;
.courseSendCheckbox {padding:0px; margin:0px; width:12px; height:12px; margin-right:10px; display:inline-block; margin-top:2px;}
.sendCourseName {font-size:12px; color:#5f6060;}
.courseSendSubmit {width:50px; height:25px; line-height:25px; text-align:center; vertical-align:middle; background-color:#64bdd9; margin-right:25px; float:left;}
+.courseSendSubmit:hover {background-color:#0182bb;}
.courseSendCancel {width:50px; height:25px; line-height:25px; text-align:center; vertical-align:middle; background-color:#c1c1c1; float:left}
a.sendSourceText {font-size:14px; color:#ffffff;}
input.sendSourceText {font-size:14px;color:#ffffff;background-color:#64bdd9;}
@@ -517,6 +427,20 @@ input.sendSourceText {font-size:14px;color:#ffffff;background-color:#64bdd9;}
.resourcesSendType {border:1px solid #e6e6e6; width:60px; height:24px; outline:none; font-size:14px; color:#888888;}
.courseReferContainer {float:left; max-height:120px;margin-right:16px;margin-bottom:10px; overflow:scroll; overflow-x:hidden;}
+/*上传资源弹窗*/
+.resourceUploadPopup {width:400px; height:auto; border:3px solid #15bccf; padding-left:16px; padding-bottom:16px; background-color:#ffffff; position:absolute; top:50%; left:50%; margin-left:-200px; z-index:1000;}
+.uploadText {font-size:16px; color:#15bccf; line-height:16px; padding-top:20px; width:140px; display:inline-block;}
+.uploadBoxContainer {height:33px; line-height:33px; margin-top:10px; position:relative;}
+.uploadBox {width:100px; height:33px; line-height:33px; text-align:center; vertical-align:middle; background-color:#64bdd9; border-radius:3px; float:left; margin-right:12px;}
+.uploadBox:hover {background-color:#0182bb;}
+a.uploadIcon {background:url(images/resource_icon_list.png) 8px -60px no-repeat; width:100px; height:33px; display:block;}
+.chooseFile {color:#ffffff; display:block; margin-left:32px;}
+.uploadResourceIntr {width:250px; height:33px; float:left; line-height:33px; font-size:12px;}
+.uploadResourceName {width:250px; display:inline-block; line-height:15px; font-size:12px; color:#444444; margin-bottom:2px;}
+.uploadResourceIntr2 {width:250px; display:inline-block; line-height:15px; font-size:12px; color:#444444;}
+.uploadType {margin:10px 0; border:1px solid #e6e6e6; width:100px; height:30px; outline:none; font-size:12px; color:#888888;}
+.uploadKeyword {margin-bottom:10px; outline:none; border:1px solid #e6e6e6; height:30px; width:280px;}
+
/*新个人主页框架css*/
.navContainer {width:100%; margin:0 auto; background-color:#15bccf;}
@@ -525,10 +449,14 @@ input.sendSourceText {font-size:14px;color:#ffffff;background-color:#64bdd9;}
.navHomepage {width:1000px; height:54px; background-color:#15bccf; margin:0 auto;}
.navHomepageLogo {width:60px; height:54px; line-height:54px; vertical-align:middle; margin-left:2px; margin-right:40px;}
.navHomepageMenu {margin-right:40px;display:inline-block;height:54px; line-height:54px; vertical-align:middle;}
+.navHomepageMenu:hover {background-color:#0ea6b7;}
+.navHomepageSearchBoxcontainer {margin-top:11px; }
.navHomepageSearchBox {width:380px; border:none; outline:none; height:32px; margin-top:11px; background-color:#ffffff;}
.navHomepageSearchInput {width:345px; height:32px; outline:none; border:none; float:left; padding-left:5px;; margin:0;}
.homepageSearchIcon {width:30px; height:32px; background:url(../images/nav_icon.png) -8px 3px no-repeat; float:left;}
a.homepageSearchIcon:hover {background:url(../images/nav_icon.png) -49px 3px no-repeat;}
+.navSearchTypeBox {width:368px; height:35px; position:absolute; border:1px solid #98a1a6; background-color:#ffffff; padding-left:10px; display:none; color:#3e3e3e; font-size:14px;}
+#navSearchAlert {display:none;}
.navHomepageNews {width:30px; display:block; float:right; margin-top:12px; position:relative;}
.homepageNewsIcon {background:url(../images/nav_icon.png) -5px -85px no-repeat; width:30px; height:29px; display:block;}
.newsActive {width:10px; height:10px; border-radius:50%; border:2px solid #ffffff; background-color:#ff0000; position:absolute; left:17px; top:5px;}
@@ -540,14 +468,14 @@ a.homepageSearchIcon:hover {background:url(../images/nav_icon.png) -49px 3px no-
.homepageLeft {width:240px; float:left; margin-right:10px; margin-bottom:10px;}
.homepageRight {width:750px; float:left; margin-top:15px; margin-bottom:10px;}
.homepagePortraitContainer {width:238px; border:1px solid #dddddd; background-color:#ffffff; margin-top:15px; padding-bottom:15px;}
-.homepagePortraitImage {width:206px; height:206px; padding:2px; margin:15px 13px 5px 13px;; position:relative; border:1px solid #cbcbcb;}
+.homepagePortraitImage {width:206px; height:206px; padding:2px; margin:15px 14px 10px 14px; position:relative; border:1px solid #cbcbcb;}
.homepagePortraitImage:hover {border:1px solid #15bccf;}
.homepageFollow {background:url(../images/homepage_icon.png) -10px -8px no-repeat; width:20px; height:20px; position:absolute; right:9px; top:9px;}
.homepageFollowCancel {background:url(../images/homepage_icon.png) -178px -8px no-repeat; width:20px; height:20px; position:absolute; right:9px; top:9px;}
.homepageEditProfile {width:20px; height:20px; border-radius:2px; background-color:#888888; position:absolute; right:9px; bottom:9px; font-size:12px; filter:alpha(opacity=50); -moz-opacity:0.5; opacity: 0.5;}
.homepageEditProfileIcon {background:url(../images/homepage_icon.png) -11px -35px no-repeat; width:20px; height:20px; display:block;}
-.homepageImageName {font-size:16px; color:#484848; margin-left:15px; height:21px; float:left;max-width: 100px;}
-.homepageImageSexMan {width:20px; height:20px; background:url(../images/homepage_icon.png) -10px -112px no-repeat; float:left;}
+.homepageImageName {font-size:16px; color:#484848; margin-left:15px; margin-right:8px; height:20px; float:left;}
+.homepageImageSex {top:116px; left:5px; width:20px; height:20px; background:url(../images/homepage_icon.png) -10px -112px no-repeat; float:left;}
.homepageImageSexWomen {width: 20px;height: 20px;background: url(../images/homepage_icon.png) -10px -149px no-repeat;float: left;}
.homepageSignatureTextarea {width:207px; height:80px; max-width:207px; max-height:80px; border:1px solid #d9d9d9; outline:none; margin:0px 0px 12px 15px;;}
.homepageSignature {font-size:12px; color:#888888; margin-left:15px; margin-top:10px; margin-bottom:12px; width:208px;}
@@ -573,7 +501,7 @@ a.homepageMenuText {color:#484848; font-size:16px; margin-left:20px;}
.homepageRightBanner {width:720px; height:34px; margin:0px auto; border-bottom:1px solid #e9e9e9;}
.NewsBannerName {font-size:16px; color:#4b4b4b; display:block; background:url(../images/homepage_icon.png) -18px -230px no-repeat; width:150px; float:left; padding-left:15px; margin-top:4px;}
.newsType {width:60px; background-color:#ffffff; float:left; list-style:none; position:absolute; border:1px solid #eaeaea; border-radius:5px; top:15px; padding:5px 10px; left:-40px; font-size:12px; color:#888888; display:none; line-height:2; z-index:9999;}
-.homepageRightBlock {}
+.newsReadSetting {width:700px; background-color:#f6f6f6; border-bottom:1px solid #eeeeee; margin:10px auto; height:39px; line-height:39px; vertical-align:middle; font-size:14px; color:#7a7a7a; padding-left:10px;}
.homepageNewsList {width:710px; height:49px; line-height:49px; vertical-align:middle; border-bottom:1px dashed #eaeaea; margin-left:10px;}
.homepageNewsPortrait {width:40px; display:block; margin-top:7px;}
.homepageNewsPublisher {width:80px; max-width:80px; margin-right:10px; font-size:12px; color:#15bccf; display:block; padding-left:5px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; }
@@ -584,7 +512,7 @@ a.homepageWhite {color:#ffffff;}
a.homepageWhite:hover {color:#a1ebff}
a.newsGrey {color:#4b4b4b;}
a.newsGrey:hover {color:#000000;}
-a.replyGrey {color:#888888; display:block;}
+a.replyGrey {color:#888888; display:inline-block;}
a.replyGrey:hover {color:#4b4b4b;}
a.replyGrey1 {color:#888888;}
a.replyGrey1:hover {color:#4b4b4b;}
@@ -610,11 +538,11 @@ a.postTypeGrey:hover {color:#15bccf;}
.homepagePostPortrait {float:left; width:90px;}
.homepagePostDes {float:left; width:600px; margin-left:20px;}
.homepagePostTo {font-size:14px; color:#484848; margin-bottom:15px;}
-.homepagePostTitle {font-size:14px; color:#484848; margin-bottom:15px;}
+.homepagePostTitle {font-size:14px; color:#484848; margin-bottom:15px; font-weight:bold;}
.homepagePostSubmitContainer {height:30px; margin-bottom:15px;}
.homepagePostSubmit {font-size:14px; color:#888888; width:80px; height:30px; text-align:center; vertical-align:middle; line-height:30px; border:1px solid #dddddd; background-color:#eaeaea; float:left; margin-right:20px;}
.homepagePostSubmit:hover {background-color:#d8d8d8;}
-.homepagePostIntro {font-size:12px; color:#888888;}
+.homepagePostIntro {font-size:14px; color:#484848;}
.homepagePostDeadline {font-size:12px; color:#888888; float:left; height:30px; line-height:30px; vertical-align:middle;}
.homepagePostReply {width:710px; margin:0px auto; background-color:#f1f1f1; margin-top:15px;}
.homepagePostReplyBanner {width:708px; height:33px; border:1px solid #e4e4e4; line-height:33px; vertical-align:middle; font-size:12px; color:#888888;}
@@ -624,7 +552,7 @@ a.postTypeGrey:hover {color:#15bccf;}
.homepagePostReplyBannerMore{width:330px; display:inline-block; text-align:right;}
.homepagePostReplyInputContainer {width:670px; margin:0px auto;}
.homepagePostReplyInput {width:663px; height:45px; max-width:663px; max-height:45px; border:1px solid #d9d9d9; outline:none; margin:20px auto 10px auto;}
-.homepagePostReplyEmotion {background:url(../images/homepage_icon.png) -90px -88px no-repeat; width:70px; height:24px; float:left; padding-left:30px;}
+.homepagePostReplyEmotion {background:url(../images/homepage_icon.png) -90px -88px no-repeat; width:50px; height:24px; float:left; padding-left:30px;}
.homepagePostReplySubmit {float:right; width:45px; height:24px; text-align:center; line-height:24px; vertical-align:middle; font-size:12px; color:#ffffff; background-color:#15bccf;}
.homepagePostReplySubmit:hover {background-color:#329cbd;}
a.postReplySubmit {color:#ffffff; display:block;}
@@ -655,6 +583,9 @@ a.postGrey:hover {color:#000000;}
a.gz_btn{display:block; background:url(../images/pic_uersall.png) -318px -25px no-repeat; width:53px; height:18px; border:1px solid #cdcdcd; color:#333333; padding:0px 0 0 18px;margin-top: 2px;margin-right: 15px;}
a:hover.gz_btn{ color:#ff5722;}
+/*课程主页css*/
+.homepageCoursesType {width:75px; background-color:#ffffff; float:left; list-style:none; position:absolute; border:1px solid #eaeaea; border-radius:5px; top:15px; padding:5px 10px; left:-65px; font-size:12px; color:#4b4b4b; line-height:2; z-index:9999; display:none;}
+
/*注册登陆页面*/
#loginInBox {display:block; margin-top:143px;}
#signUpBox {display:none; margin-top:79px;}