commit
77e48b6590
@ -0,0 +1,42 @@
|
|||||||
|
# encoding: utf-8
|
||||||
|
class StudentWorkTest < ActiveRecord::Base
|
||||||
|
attr_accessible :student_work_id, :homework_test_id
|
||||||
|
|
||||||
|
belongs_to :homework_test
|
||||||
|
belongs_to :student_work
|
||||||
|
|
||||||
|
def status_to_s
|
||||||
|
case self.result
|
||||||
|
when -1
|
||||||
|
'编译出错'
|
||||||
|
when -2
|
||||||
|
'答题错误'
|
||||||
|
when -3
|
||||||
|
'答案错误'
|
||||||
|
when 1
|
||||||
|
'运行出错'
|
||||||
|
when 2
|
||||||
|
'超时'
|
||||||
|
when 3
|
||||||
|
'内存超出'
|
||||||
|
when 4
|
||||||
|
'输出超出'
|
||||||
|
when 5
|
||||||
|
'禁用函数'
|
||||||
|
when 6
|
||||||
|
'其他错误'
|
||||||
|
when 0
|
||||||
|
'成功'
|
||||||
|
else
|
||||||
|
'未知错误'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_score
|
||||||
|
if self.result == 0
|
||||||
|
format("%.1f",100.0 / self.student_work.homework_common.homework_tests.count)
|
||||||
|
else
|
||||||
|
0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,3 @@
|
|||||||
|
class Visitor < ActiveRecord::Base
|
||||||
|
belongs_to :user
|
||||||
|
end
|
@ -1,4 +1,8 @@
|
|||||||
|
<% if @source_type=='User' %>
|
||||||
|
var imgSpan = $("img[nhname='avatar_image']");
|
||||||
|
imgSpan.attr({"src":'<%= "#{@urlfile.to_s}?#{Time.now.to_i}" %>'});
|
||||||
|
<% else %>
|
||||||
var imgSpan = jQuery('#avatar_image');
|
var imgSpan = jQuery('#avatar_image');
|
||||||
|
|
||||||
imgSpan.attr({"src":'<%= "#{@urlfile.to_s}?#{Time.now.to_i}" %>'});
|
imgSpan.attr({"src":'<%= "#{@urlfile.to_s}?#{Time.now.to_i}" %>'});
|
||||||
|
<% end %>
|
@ -1,10 +1,10 @@
|
|||||||
<!-- huang -->
|
<!--<!– huang –>-->
|
||||||
<h3><%=l(:label_newtype_contest)%></h3>
|
<!--<h3><%=l(:label_newtype_contest)%></h3>-->
|
||||||
|
|
||||||
<%= labelled_form_for @bid, :url => {:controller => 'bids', :action => 'create_contest'} do |f| %>
|
<!--<%= labelled_form_for @bid, :url => {:controller => 'bids', :action => 'create_contest'} do |f| %>-->
|
||||||
<div class="box tabular">
|
<!--<div class="box tabular">-->
|
||||||
<%= render :partial => 'form_contest', :locals => { :f => f } %>
|
<!--<%= render :partial => 'form_contest', :locals => { :f => f } %>-->
|
||||||
<%= submit_tag l(:button_create) %>
|
<!--<%= submit_tag l(:button_create) %>-->
|
||||||
<%= javascript_tag "$('#bid_name').focus();" %>
|
<!--<%= javascript_tag "$('#bid_name').focus();" %>-->
|
||||||
<% end %>
|
<!--<% end %>-->
|
||||||
</div>
|
<!--</div>-->
|
@ -0,0 +1,30 @@
|
|||||||
|
<%= javascript_include_tag "/assets/kindeditor/kindeditor" %>
|
||||||
|
<%= error_messages_for 'homework_common' %>
|
||||||
|
<div class="project_r_h">
|
||||||
|
<h2 class="project_h2">
|
||||||
|
<%= l(:label_course_homework_new)%>
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
<% if @homework_type == "1"%>
|
||||||
|
<div class="hwork_new">
|
||||||
|
<%= labelled_form_for @homework,:url => {:controller => 'homework_common',:action => 'create'} do |f| %>
|
||||||
|
<%= hidden_field_tag "course",@course.id%>
|
||||||
|
<%= render :partial => 'homework_common/homework_detail_manual_form', :locals => { :homework => @homework,:f => f,:edit_mode => false } %>
|
||||||
|
<a href="javascript:void(0)" class="blue_btn fl mr10" onClick="submit_homework('new_homework_common');" >提交</a>
|
||||||
|
<%= link_to "上一步", new_homework_common_path(:course => @course.id), :class => "orange_btn_homework fl"%>
|
||||||
|
<%= link_to '取消',homework_common_index_path(:course => @course.id),:class => 'grey_btn fl'%>
|
||||||
|
<% end%>
|
||||||
|
</div><!--hwork_new end-->
|
||||||
|
<% elsif @homework_type == "2"%>
|
||||||
|
<div class="hwork_new">
|
||||||
|
<%= labelled_form_for @homework,:url => {:controller => 'homework_common',:action => 'create'} do |f| %>
|
||||||
|
<%= hidden_field_tag "course",@course.id%>
|
||||||
|
<%= hidden_field_tag "homework_common[homework_type]","2"%>
|
||||||
|
<%= render :partial => 'homework_common/homework_detail_programing_form', :locals => { :homework => @homework,:f => f,:edit_mode => false } %>
|
||||||
|
<a href="javascript:void(0)" class="blue_btn fl mr10" onClick="submit_homework('new_homework_common');" >提交</a>
|
||||||
|
<%= link_to "上一步", new_homework_common_path(:course => @course.id), :class => "orange_btn_homework fl"%>
|
||||||
|
<%= link_to '取消',homework_common_index_path(:course => @course.id),:class => 'grey_btn fl'%>
|
||||||
|
<% end%>
|
||||||
|
</div><!--hwork_new end-->
|
||||||
|
<div class="cl"></div>
|
||||||
|
<% end%>
|
@ -0,0 +1,13 @@
|
|||||||
|
<div id="Footer">
|
||||||
|
<ul class="copyright" style="text-align:center;">
|
||||||
|
<li><%= @organizer.description.html_safe %></li>
|
||||||
|
</ul>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<ul class="footlogo">
|
||||||
|
<% @companies && @companies.each do |company| %>
|
||||||
|
<li class="fl" style="margin:0 8px;">
|
||||||
|
<a href="<%= company.url %>" target="_blank" title="<%=company.name%>"><img src="<%= url_to_avatar(company) %>" width="100" height="30" alt="<%=company.name%>" /></a>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
@ -0,0 +1,77 @@
|
|||||||
|
<div id="Header" >
|
||||||
|
<div class="logo fl" >
|
||||||
|
<%=link_to image_tag("/images/logo.png",weight:"35px", height: "30px")%>
|
||||||
|
</div>
|
||||||
|
<div id="TopNav" class="fl">
|
||||||
|
<%= render_dynamic_nav if User.current.logged? || !Setting.login_required? -%>
|
||||||
|
</div>
|
||||||
|
<div id="TopUser" class="fr">
|
||||||
|
<div id="menu">
|
||||||
|
<ul class="menu">
|
||||||
|
<% if User.current.logged? %>
|
||||||
|
<li>
|
||||||
|
<%=link_to_user(User.current)%><!--<a href="javascript:void(0);" class="parent">用户名称</a>-->
|
||||||
|
<ul>
|
||||||
|
<% hidden_non_project = Setting.find_by_name("hidden_non_project")
|
||||||
|
visiable = hidden_non_project && hidden_non_project.value == "0"%>
|
||||||
|
<% if @show_course == 1 && !visiable %>
|
||||||
|
<%# if User.current.user_extensions && [UserExtensions::TEACHER, UserExtensions::STUDENT].include?(User.current.user_extensions.identity) -%>
|
||||||
|
<% hasCourse=false %>
|
||||||
|
<% User.current.courses.each do |course| %>
|
||||||
|
<% if !course_endTime_timeout?(course) %>
|
||||||
|
<% hasCourse=true %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if hasCourse %>
|
||||||
|
<li>
|
||||||
|
<a href="<%= url_for(:controller => 'users', :action => 'user_courses', :id=>User.current.id, :host=>Setting.host_user) %>" class="parent">我的课程</a>
|
||||||
|
<ul>
|
||||||
|
<% User.current.courses.each do |course| %>
|
||||||
|
<% if !course_endTime_timeout?(course) %>
|
||||||
|
<li title="<%=course.name%>"><a href="<%= url_for(:controller => 'courses', :action=>"show", :id=>course.id, :host=>Setting.host_course) %>"><%= course.name %></a>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<%# end -%>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% if User.current.projects.count>0 %>
|
||||||
|
<li>
|
||||||
|
<a href="<%= url_for(:controller => 'users', :action => 'user_projects', :id=>User.current.id, :host=>Setting.host_user) %>" class="parent">我的项目</a>
|
||||||
|
<ul>
|
||||||
|
<% User.current.projects.each do |project| %>
|
||||||
|
<li title="<%=project.name%>"><a href="<%= url_for(:controller => 'projects', :action=>"show", :id=>project.id, :host=>Setting.host_name) %>"><%=project.name%></a></li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<li><a href="<%= url_for(:controller => 'my', :action => 'account') %>">编辑资料</a></li>
|
||||||
|
<!--<li><a href="javascript:void(0);" class="parent">我的课程</a>-->
|
||||||
|
<!--<ul>-->
|
||||||
|
<!--<li><a href="javascript:void(0);">新建课程</a></li>-->
|
||||||
|
<!--<li><a href="javascript:void(0);">我的课程0我的课程我的课程01我的课程011</a></li>-->
|
||||||
|
<!--<li><a href="javascript:void(0);">我的课程02</a></li>-->
|
||||||
|
<!--<li><a href="javascript:void(0);">我的课程02</a></li>-->
|
||||||
|
<!--</ul><!–-level3 end-–>-->
|
||||||
|
<!--</li><!–-level2 end-–>-->
|
||||||
|
<!--<li><a href="javascript:void(0);" class="parent">我的项目</a>-->
|
||||||
|
<!--<ul>-->
|
||||||
|
<!--<li><a href="javascript:void(0);">新建项目</a></li>-->
|
||||||
|
<!--<li><a href="javascript:void(0);">我的项目01</a></li>-->
|
||||||
|
<!--<li><a href="javascript:void(0);">我的项目0</a></li>-->
|
||||||
|
<!--<li><a href="javascript:void(0);">我的项目02</a></li>-->
|
||||||
|
<!--</ul><!–-level3 end-–>-->
|
||||||
|
<!--</li><!–-level2 end-–>-->
|
||||||
|
<!--<li><a href="javascript:void(0);">我的主页</a></li>-->
|
||||||
|
</ul>
|
||||||
|
</li><!---level1 end--->
|
||||||
|
<!--<li ><a href="javascript:void(0);">退出</a></li>-->
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
<%= render_menu :account_menu -%>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
@ -0,0 +1,12 @@
|
|||||||
|
<% fans_count,fans_list = get_fans_users(user) %>
|
||||||
|
<div id="fans_nav_list" class="leftbox mt10" style="display:<%= fans_count==0 ? 'none' : 'block' %>">
|
||||||
|
<h4 class="fl">粉丝</h4><a href="<%=url_for(:controller => 'users', :action => 'user_fanslist', :id=>user.id)%>" data-count="<%= fans_count %>" style="display:<%= fans_count>10 ? 'block' : 'block' %>" class="more fr mr10">更多</a>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="mt5">
|
||||||
|
<% for fans in fans_list %>
|
||||||
|
<%= link_to image_tag(url_to_avatar(fans), :style => "width:38px;height:38px;"), user_path(fans), :class => "pic_members", :title => "#{fans.name}" %>
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div><!--leftbox end-->
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
<% if(User.current.logged? && User.current!=target)%>
|
||||||
|
<%if(target.watched_by?(User.current))%>
|
||||||
|
<a id="user_watch_id" href="<%= watch_path(:object_type=>
|
||||||
|
'user',:object_id=>target.id,:target_id=>target.id) %>" class="fr qx_btn mr10" data-method="delete" data-remote="true" title="取消关注">取消</a>
|
||||||
|
<% else %>
|
||||||
|
<a id="user_watch_id" href="<%= watch_path(:object_type=>'user',:object_id=>target.id,:target_id=>target.id) %>" class="fr gz_btn mr10" data-method="post" data-remote="true" title="添加关注">关注</a>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
@ -0,0 +1,11 @@
|
|||||||
|
<% watcher_count,watcher_list = get_watcher_users(user) %>
|
||||||
|
<div id="watcher_nav_list" class="leftbox mt10" style="display:<%= watcher_count==0 ? 'none' : 'block' %>">
|
||||||
|
<h4 class="fl">关注</h4><a href="<%=url_for(:controller => 'users', :action => 'user_watchlist', :id=>user.id)%>" data-count="<%= watcher_count %>" style="display:<%= watcher_count>10 ? 'block' : 'block' %>" class="more fr mr10">更多</a>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="mt5">
|
||||||
|
<% for watcher in watcher_list %>
|
||||||
|
<%= link_to image_tag(url_to_avatar(watcher), :style => "width:38px;height:38px;"), user_path(watcher), :class => "pic_members", :title => "#{watcher.name}" %>
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div><!--leftbox end-->
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
$("img[nhname='avatar_image']").attr('src',$("#nh_user_tx").attr('src'));
|
||||||
|
$('#ajax-modal').html($("#nh_tx_dialog_html").html());
|
||||||
|
showModal('ajax-modal','460px');
|
||||||
|
$('#ajax-modal').siblings().hide();
|
||||||
|
$('#ajax-modal').parent().removeClass("alert_praise");
|
||||||
|
//$('#ajax-modal').parent().css("top","").css("left","");
|
||||||
|
$('#ajax-modal').parent().addClass("alert_box");
|
@ -0,0 +1,2 @@
|
|||||||
|
$("#nh_user_tx").replaceWith('<%= image_tag(url_to_avatar(@user), :id=>'nh_user_tx',:style=>"width:216px;height:216px;",:alt=>"头像") %>');
|
||||||
|
hideModal();
|
@ -0,0 +1,75 @@
|
|||||||
|
<div class="show_hwork_arrow"></div>
|
||||||
|
<div class="show_hwork">
|
||||||
|
<ul>
|
||||||
|
<li class="fl" >
|
||||||
|
<span class="tit_fb">
|
||||||
|
上交时间:
|
||||||
|
</span>
|
||||||
|
<%=format_time @work.created_at %>
|
||||||
|
</li>
|
||||||
|
<% if @work.user != User.current%>
|
||||||
|
<!-- 不是自己显示为点赞,编程作业不可编辑和删除 -->
|
||||||
|
<li class="fr" id="student_work_praise_<%= @work.id%>">
|
||||||
|
<%= render :partial => 'student_work_praise' %>
|
||||||
|
</li>
|
||||||
|
<% end%>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<li >
|
||||||
|
<span class="tit_fb ">
|
||||||
|
编程代码:
|
||||||
|
</span>
|
||||||
|
<div class="show_hwork_p break_word">
|
||||||
|
<%= text_format @work.description%>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</li>
|
||||||
|
<li ><span class="tit_fb ">测试结果:</span>
|
||||||
|
<table class="border_ce" cellpadding="0" cellspacing="0">
|
||||||
|
<tbody>
|
||||||
|
<!--<%#@work.student_work_test.each do |test|%>-->
|
||||||
|
<!--<tr class="<%#= cycle("", "b_grey") %>">-->
|
||||||
|
<!--<td class="td_tit">-->
|
||||||
|
<!--<%#= test.homework_test.input%>-->
|
||||||
|
<!--</td>-->
|
||||||
|
<!--<td class="td_tit">-->
|
||||||
|
<!--<%#= test.homework_test.output%>-->
|
||||||
|
<!--</td>-->
|
||||||
|
<!--<td class="td_50 c_red"><%#= test.status_to_s%></td>-->
|
||||||
|
<!--<td class="td_50 "><%#= test.test_score%></td>-->
|
||||||
|
<!--</tr>-->
|
||||||
|
<!--<%# end%>-->
|
||||||
|
|
||||||
|
<%@homework.homework_tests.each do |test|%>
|
||||||
|
<tr class="<%= cycle("", "b_grey") %>">
|
||||||
|
<td class="td_tit">
|
||||||
|
<%= test.input%>
|
||||||
|
</td>
|
||||||
|
<td class="td_tit">
|
||||||
|
<%= test.output%>
|
||||||
|
</td>
|
||||||
|
<td class="td_50 c_red"><%= test.student_work_test.nil? ? "正在编译" : test.student_work_test.status_to_s%></td>
|
||||||
|
<td class="td_50 "><%= test.student_work_test.nil? ? "0" : test.student_work_test.test_score%></td>
|
||||||
|
</tr>
|
||||||
|
<% end%>
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</li>
|
||||||
|
<% if @is_teacher%>
|
||||||
|
<!-- 编程作业老师才可以评分 -->
|
||||||
|
<div id="add_student_score_<%= @work.id%>" class="mt10 evaluation">
|
||||||
|
<%= render :partial => 'add_score',:locals => {:work => @work,:score => @score}%>
|
||||||
|
</div>
|
||||||
|
<% end%>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="ping_box mt10" id="score_list_<%= @work.id%>" style="<%= @work.student_works_scores.empty? ? 'padding:0px;' : ''%>">
|
||||||
|
<%@work.student_works_scores.order("updated_at desc").each do |score|%>
|
||||||
|
<div id="work_score_<%= score.id%>">
|
||||||
|
<%= render :partial => 'student_work_score',:locals => {:score => score}%>
|
||||||
|
</div>
|
||||||
|
<% end%>
|
||||||
|
</div><!---ping_box end--->
|
||||||
|
<a href="javascript:void(0);" class="fr c_blue mt5 mb5" onclick="$('#about_hwork_<%= @work.id%>').html('');">收起</a>
|
||||||
|
</div><!---show_hwork end--->
|
@ -0,0 +1 @@
|
|||||||
|
成功
|
@ -1,74 +1,46 @@
|
|||||||
<div class="content_frame">
|
<% can_edit_flag = User.current.allowed_to?(:as_teacher,item) || User.current.admin? %>
|
||||||
<ul class="user_course_sort">
|
<% course_end_flag = course_endTime_timeout?(item) %>
|
||||||
<% for membership in memberships %>
|
<div class="courses_list line" id="nh_course_<%=item.id%>">
|
||||||
<li>
|
<div class="courses_list_pic fl">
|
||||||
<table width="660" border="0" align="center" style="border-bottom: 1px dashed rgb(204, 204, 204); margin-bottom: 10px;font-size:14px;">
|
<a href="<%= url_for(:controller => 'courses', :action=>"show", :id=>item.id, :host=>Setting.host_course) %>" title="<%= item.name %>">
|
||||||
<tr>
|
<%= image_tag(url_to_avatar(item), :style => 'width:64px;height:64px;') %>
|
||||||
<td colspan="2" valign="top" width="50">
|
</a>
|
||||||
<%= image_tag(url_to_avatar(membership.course), :class => 'avatar') %>
|
</div>
|
||||||
</td>
|
<div class="courses_list_info fl ml10">
|
||||||
<td>
|
<a href="<%= url_for(:controller => 'courses', :action=>"show", :id=>item.id, :host=>Setting.host_course) %>" title="<%= item.name %>" class="courses_list_title f14 fb <%=course_end_flag ? 'c_dark' : 'c_blue02'%> fl"><%= item.name %></a>
|
||||||
<table width="580" border="0">
|
<% if(can_edit_flag) %>
|
||||||
<tr>
|
<% if(course_end_flag) %>
|
||||||
<td colspan="2" valign="top">
|
<a href="<%=restartcourse_course_path(item)%>" class="pic_eye_grey fl ml5" title="重开课程" data-confirm="确定要重开课程?" data-method="post" data-remote="true"></a>
|
||||||
<span>
|
<% else %>
|
||||||
<%= link_to_course(membership.course) %>
|
<a href="<%=finishcourse_course_path(item, format: :js)%>" class="pic_eye_blue fl ml5" title="关闭课程" data-confirm="确定要关闭课程?" data-method="post" data-remote="true"></a>
|
||||||
</span>
|
<% end %>
|
||||||
<span style="float: right">
|
|
||||||
<%= render :partial => 'courses/set_course_time', :locals => {:course => membership.course} %>
|
|
||||||
<% if (User.current == @user && (!@user.allowed_to?(:as_teacher,membership.course)))%>
|
|
||||||
<%= join_in_course(membership.course, User.current) %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
|
|
||||||
<%= l(:label_x_base_courses_member, :count => membership.course.members.count) %>
|
|
||||||
(<%= "#{membership.course.members.count}" %>)
|
|
||||||
|
|
||||||
<%= l(:label_homework) %>
|
|
||||||
(
|
|
||||||
<span class="">
|
|
||||||
<%= link_to (membership.course.homework_commons.count), homework_common_index_path(:course => membership.course.id) %>
|
|
||||||
</span>
|
|
||||||
)
|
|
||||||
|
|
||||||
<%= l(:label_course_news) %>
|
|
||||||
(
|
|
||||||
<span style="color: #ed8924">
|
|
||||||
<%= link_to (membership.course.news.count), {:controller => 'news', :action => 'index', :course_id => membership.course.id} %>
|
|
||||||
</span>)
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2" width="580" style="word-break:break-all;word-wrap: break-word;">
|
|
||||||
<p class="font_description">
|
|
||||||
<%= textilizable membership.course.short_description %>
|
|
||||||
</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
|
|
||||||
<% @course = Course.find_by_extra(membership.course.extra) %>
|
|
||||||
<% unless (@course.nil? || @course.teacher.nil? || @course.teacher.name.nil?) %>
|
|
||||||
<span class="font-lighter" style="float: left">
|
|
||||||
<%= l(:label_main_teacher) %>
|
|
||||||
: <%= link_to(@course.teacher.realname, user_path(@course.teacher)) %>
|
|
||||||
</span>
|
|
||||||
<span style="float: right; padding-left: 8px">
|
|
||||||
<%= l(:label_course_term) %>
|
|
||||||
: <%= @course.time %><%= get_course_term_locales @course %>
|
|
||||||
</span>
|
|
||||||
<% end %>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
<div class="cl"></div>
|
||||||
|
<div class="courses_list_table">
|
||||||
|
<table><tbody>
|
||||||
|
<tr>
|
||||||
|
<td class="td_w60 ">主讲老师:</td>
|
||||||
|
<td class="td_w70 ">
|
||||||
|
<a href="<%= user_path(item.teacher) %>" title="<%= item.teacher.show_name %>"><%= item.teacher.show_name %></a>
|
||||||
|
</td>
|
||||||
|
<td class="td_w60 ">课程作业:</td>
|
||||||
|
<td class="td_w110 "><a href="<%=url_for(:controller => 'homework_common', :action => 'index',:course=>item.id, :host=>Setting.host_course)%>"><%= item.homework_commons.count %></a></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>学生人数:</td>
|
||||||
|
<td><a href="<%= url_for(:controller => 'courses', :action=>"member", :id=>item.id,:role=>2, :host=>Setting.host_course) %>"><%= studentCount(item) %></a></td>
|
||||||
|
<td>开课学期:</td>
|
||||||
|
<td><%= item.time %><%= get_course_term_locales item %></td>
|
||||||
|
</tr>
|
||||||
|
</tbody></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% if(course_end_flag) %>
|
||||||
|
<span class="grey_n_btn fr mt20">课程结束</span>
|
||||||
|
<% elsif(can_edit_flag) %>
|
||||||
|
<a href="<%=url_for(:controller => 'homework_common', :action => 'new',:course=>item.id, :host=>Setting.host_course)%>" target="_blank" class="blue_n_btn fr mt20">发布作业</a>
|
||||||
|
<% else %>
|
||||||
|
<a href="<%=url_for(:controller => 'homework_common', :action => 'index',:course=>item.id, :host=>Setting.host_course)%>" target="_blank" class="blue_n_btn fr mt20">提交作品</a>
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
<%= call_hook :view_account_left_bottom, :user => @user %>
|
|
@ -0,0 +1,50 @@
|
|||||||
|
<div class="courses_list line" id="fans_item_<%=item.id%>">
|
||||||
|
<div class="courses_list_pic fl">
|
||||||
|
<a href="javascirpt:void();">
|
||||||
|
<%= image_tag(url_to_avatar(item), :style=>"width:64px;height:64px;",:alt=>"头像") %>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="courses_list_info fl ml10">
|
||||||
|
<a href="<%= user_path(item) %>" title="<%= item.show_name %>" class="courses_list_title f14 fb c_blue02 fl"><%= item.show_name %></a>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="courses_list_table ">
|
||||||
|
<% if item.user_extensions && !item.user_extensions.brief_introduction.nil? && !item.user_extensions.brief_introduction.empty? %>
|
||||||
|
<p class="fans_sign" title="<%= item.user_extensions.brief_introduction %>">个性签名:<%= item.user_extensions.brief_introduction %></p>
|
||||||
|
<% end %>
|
||||||
|
<table><tbody><tr>
|
||||||
|
<td class="td_w60 ">加入时间:</td>
|
||||||
|
<td class="td_w110 "><%= format_date(item.created_on) %></td>
|
||||||
|
<% if (item.user_extensions.identity == 0 || item.user_extensions.identity == 1) && !item.user_extensions.school.nil? %>
|
||||||
|
<td class="td_w60 ">工作单位:</td>
|
||||||
|
<td class="td_w110 ">
|
||||||
|
<li style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="<%= item.user_extensions.school.name %>">
|
||||||
|
<a href="<%= url_for(:controller=>'welcome',:action => 'course', :school_id => item.user_extensions.school.id,:host=>Setting.host_course) %>"><%= item.user_extensions.school.name %></a>
|
||||||
|
</li>
|
||||||
|
</td>
|
||||||
|
<% elsif item.user_extensions.identity == 3 && !item.user_extensions.occupation.nil? && !item.user_extensions.occupation.empty? %>
|
||||||
|
<td class="td_w60 ">工作单位:</td>
|
||||||
|
<td class="td_w110 ">
|
||||||
|
<li style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="<%= item.user_extensions.occupation %>">
|
||||||
|
<%= item.user_extensions.occupation %>
|
||||||
|
</li>
|
||||||
|
</td>
|
||||||
|
<% elsif item.user_extensions.identity == 2 %>
|
||||||
|
<td class="td_w60 ">工作单位:</td>
|
||||||
|
<td class="td_w110 ">
|
||||||
|
<li style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="<%= item.show_name %>">
|
||||||
|
<%= item.show_name %>
|
||||||
|
</li>
|
||||||
|
</td>
|
||||||
|
<% end %>
|
||||||
|
</tr></tbody></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% if(User.current.logged? && User.current != item )%>
|
||||||
|
<%if(item.watched_by?(User.current))%>
|
||||||
|
<a href="<%= watch_path(:object_type=>'user',:object_id=>item.id,:target_id=>target.id) %>" class="grey_n_btn fr mt20" data-method="delete" data-remote="true" title="取消关注">取消关注</a>
|
||||||
|
<% else %>
|
||||||
|
<a href="<%= watch_path(:object_type=>'user',:object_id=>item.id,:target_id=>target.id) %>" class="blue_n_btn fr mt20" data-method="post" data-remote="true" title="添加关注">添加关注</a>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
@ -1,3 +1,4 @@
|
|||||||
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'users/show_new_score') %>');
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'users/show_new_score') %>');
|
||||||
showModal('ajax-modal', '400px');
|
showModal('ajax-modal', '400px');
|
||||||
|
$('#ajax-modal').siblings().show();
|
||||||
$('#ajax-modal').addClass('new-watcher');
|
$('#ajax-modal').addClass('new-watcher');
|
||||||
|
@ -0,0 +1,19 @@
|
|||||||
|
<% for rec in @list %>
|
||||||
|
<div class="users_courses_list" nhname="rec" data-id="<%= rec[:item].id %>">
|
||||||
|
<span class="fl" style="width:180px;">
|
||||||
|
<a href="<%= get_activity_container_url(rec[:e]) %>" class=" fl users_coursename ml5" title="<%= rec[:e].name %>">
|
||||||
|
<%= rec[:e].name %>
|
||||||
|
</a>
|
||||||
|
<%# if( rec[:e].is_public == false || rec[:e].is_public == 0 ) %>
|
||||||
|
<!--<font class="img_private">私有</font>-->
|
||||||
|
<%# end %>
|
||||||
|
</span>
|
||||||
|
<a href="<%= user_path(rec[:item].user.id) %>" class="c_orange course_name fl mr5" title="<%= rec[:item].user.show_name %>"><%= rec[:item].user.show_name %></a>
|
||||||
|
<span class="fl mr5 c_grey"><%= get_activity_opt(rec[:item],rec[:e]) %></span>
|
||||||
|
<a href="<%= get_activity_url(rec[:item],rec[:e]) %>"
|
||||||
|
class="c_blue02 fl users_courses_txt hidepic" title="<%= get_activity_act_showname(rec[:item]) %>">
|
||||||
|
<%= get_activity_act_showname_htmlclear(rec[:item]) %>
|
||||||
|
</a>
|
||||||
|
<span class="fr c_grey mr10"><%= time_tag(get_activity_act_createtime(rec[:item])).html_safe %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
@ -1,33 +1,31 @@
|
|||||||
<% if @user.user_extensions.identity == UserExtensions::TEACHER %>
|
<div class="top_new">
|
||||||
<%= render :partial => 'my_course' %>
|
<span class="<%= (@user.user_extensions.identity == 0 && @user.allowed_to?(:add_course, nil, :global => true)) ? 'top_new_bg' : 'top_newcourses_bg'%> fl"></span>
|
||||||
<% else %> <!--for student-->
|
<% if @user.user_extensions.identity == 0 && @user.allowed_to?(:add_course, nil, :global => true) %>
|
||||||
<%= render :partial => 'my_joinedcourse' %>
|
<a href="<%= url_for(:controller => 'courses', :action => 'new',) %>" class="green_n_btn fr mt2" target="_blank">新建课程</a>
|
||||||
<% end %>
|
<% else %>
|
||||||
<script type="text/javascript" language="javascript">
|
<a href="<%= join_private_courses_courses_path %>" data-remote ="true" class="green_n_btn fr mt2">加入课程</a>
|
||||||
$(document).ready(function($) {
|
<% end %>
|
||||||
$("#content .content_frame").find("a").attr("target", "_blank");
|
<div class="cl"></div>
|
||||||
$("content-title-top p:first").find("a").attr("target", "_blank");
|
</div>
|
||||||
$("#content .content_frame [color=#666666]").find("a").removeAttr("target");
|
|
||||||
$('#content .content-title-top table[width=580] td:first span:eq(1)').find("a:first").removeAttr("target");
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<div id="RSide" class="fl">
|
||||||
$(document).ready(function() {
|
<div class="courses_box">
|
||||||
var $menu = $('.user_course_list .menu');
|
<div class="courses_top mb10">
|
||||||
var $li_tags = $menu.find('[mode]');
|
<h2 class="courses_h2 fl">所有课程</h2>
|
||||||
var $dyn_list = $('.dyn_list_wrapper');
|
<div class="courses_select fr">
|
||||||
|
<a href="<%= url_for(:controller => 'users', :action => 'user_courses')%>" class="select_btn <%= (@params['status']!='1' && @params['status']!='2') ? 'select_btn_select' : '' %> fl "> 全部</a>
|
||||||
$menu.find('[mode]').each(function(index, el) {
|
<a href="<%= url_for(:controller => 'users', :action => 'user_courses', :status=>'1')%>" class="select_btn <%= (@params['status']=='1') ? 'select_btn_select' : '' %> fl ">正在进行</a>
|
||||||
$(el).click(function() {
|
<a href="<%= url_for(:controller => 'users', :action => 'user_courses', :status=>'2')%>" class="select_btn <%= (@params['status']=='2') ? 'select_btn_select' : '' %> fl "> 已经结束</a>
|
||||||
mode = $(el).attr('mode');
|
</div>
|
||||||
$menu.find('[mode]').removeClass( "on" );
|
<div class="cl"></div>
|
||||||
$( this ).addClass( "on" );
|
</div>
|
||||||
var wrapper = $('[mode='+mode+']')
|
<% for item in @list %>
|
||||||
$dyn_list.addClass( "hidden" );
|
<%= render :partial => 'course_form', :locals => {:item => item} %>
|
||||||
wrapper.removeClass('hidden')
|
<% end %>
|
||||||
})
|
<p class="nodata" style="display:<%= @list.count > 0 ? 'none' : 'block' %>;"><%= l(:label_no_data) %></p>
|
||||||
});
|
</div>
|
||||||
});
|
<ul class="wlist" style=" border:none;">
|
||||||
</script>
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
|
||||||
<% html_title(l(:label_user_course)) -%>
|
</ul>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
@ -0,0 +1,16 @@
|
|||||||
|
<% for item in @list %>
|
||||||
|
|
||||||
|
<div class="home_courses_list fl" nhname="rec" data-id="<%= item.id %>" data-time="<%= item.updated_at %>">
|
||||||
|
<div class="courses_list_pic fl ml10 mr10">
|
||||||
|
<a href="<%= url_for(:controller => 'courses', :action=>"show", :id=>item.id, :host=>Setting.host_course) %>"><%= image_tag(url_to_avatar(item), :style => 'width:64px;height:64px;') %></a>
|
||||||
|
</div>
|
||||||
|
<span class="fl" style="width:260px;">
|
||||||
|
<a href="<%= url_for(:controller => 'courses', :action=>"show", :id=>item.id, :host=>Setting.host_course) %>" class="home_list_title c_blue02 fl mb10" title="<%= item.name %>"><%= item.name %></a>
|
||||||
|
</span>
|
||||||
|
<div class="fl c_dgrey">
|
||||||
|
<p>主讲老师:<a href="<%= user_path(item.teacher) %>" title="<%= item.teacher.show_name %>"><%= item.teacher.show_name %></a></p>
|
||||||
|
<p>课程作业:<a href="<%=url_for(:controller => 'homework_common', :action => 'index',:course=>item.id, :host=>Setting.host_course)%>"><%= item.homework_commons.count %></a> <span class="ml10"></span>学生:<a href="<%= url_for(:controller => 'courses', :action=>"member", :id=>item.id,:role=>2, :host=>Setting.host_course) %>"><%= studentCount(item) %></a></p>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
@ -0,0 +1,36 @@
|
|||||||
|
<% for item in feed_list %>
|
||||||
|
<div class="message_list" id="nh_jours_<%= item.id %>" nhname="rec" data-id="<%= item.id %>">
|
||||||
|
<a href="<%= user_path(item.user) %>" class="users_pic fl">
|
||||||
|
<%= image_tag url_to_avatar(item.user),:width => '27',:height => '27' %>
|
||||||
|
</a>
|
||||||
|
<a href="<%= user_path(item.user) %>" title="<%= item.user.show_name %>" class="course_name fl c_blue02 ml5 mt5"><%= item.user.show_name %></a>
|
||||||
|
<% if item.at_user %>
|
||||||
|
<span class="fl c_dark mt5"> 回复</span>
|
||||||
|
<a href="<%= user_path(item.at_user) %>" title="<%= item.at_user.show_name %>" class="course_name fl c_blue02 ml5 mt5"><%= item.at_user.show_name %></a>
|
||||||
|
<% end %>
|
||||||
|
<span class="fl c_dark mt5"> : </span>
|
||||||
|
<div class="massage_txt fl mt5"><%=item.notes.html_safe%></div>
|
||||||
|
<% if JournalsForMessage.create_by_user? User.current %>
|
||||||
|
<a href="javascript:void(0)" nhname='reply_btn' class="fl mt5 c_purple ml5">回复</a>
|
||||||
|
<% end %>
|
||||||
|
<% if User.current.admin? || item.user.id == User.current.id %>
|
||||||
|
<a href="<%= url_for(:controller => 'words', :action=>"destroy", :object_id=>item.id,:user_id=>item.user.id) %>" data-confirm="您确定要删除吗?" data-remote="true" data-method="delete" class="fl mt5 c_purple ml5">删除</a>
|
||||||
|
<% end %>
|
||||||
|
<span class="massage_time fr"><%= time_tag(item.created_on).html_safe %></span>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div nhname='div_form' class="mt10 ml80" style="display:none;">
|
||||||
|
<form action="<%= url_for(:controller => 'words', :action => 'create_reply') %>" data-remote="true" method="post">
|
||||||
|
<input id="reference_id" name="reference_id" type="hidden" value="<%= (item.m_parent_id.nil? || item.m_parent_id==0 ) ? item.id : item.m_parent_id %>">
|
||||||
|
<input id="reference_user_id" name="reference_user_id" type="hidden" value="<%= item.user.id %>">
|
||||||
|
<input id="reference_message_id" name="reference_message_id" type="hidden" value="<%= item.id %>">
|
||||||
|
<input id="show_name" name="show_name" type="hidden" value="true">
|
||||||
|
<textarea name='user_notes' style="display:none;"></textarea>
|
||||||
|
<p nhname='contentmsg'></p>
|
||||||
|
<div nhname='toolbar_container' style="float:left;padding-top:3px;"></div>
|
||||||
|
<a nhname="cancel_btn" href="javascript:;" class="grey_n_btn fr" style="margin-top:3px;">取消</a>
|
||||||
|
<a nhname="submit_btn" href="javascript:;" class="blue_n_btn fr mr5" style="margin-top:3px;">发布</a>
|
||||||
|
</form>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
@ -1,66 +1,56 @@
|
|||||||
<!--add by huang-->
|
<div class="top_new">
|
||||||
|
<span class="<%= (@user.user_extensions.identity == 0 && @user.allowed_to?(:add_course, nil, :global => true)) ? 'top_new_bg' : 'top_newcourses_bg'%> fl"></span>
|
||||||
<!--span class="font_lighter" >温馨提示:项目可以是一次作业,也可以是别人或者自己创建的一项小工程~</span-->
|
<% if @user.allowed_to?(:add_project, nil, :global => true) %>
|
||||||
<div class="menu-div">
|
<a href="<%= url_for(:controller => 'projects', :action => 'new') %>" class="bgreen_n_btn fr ml10 mt2" target="_blank">新建项目</a>
|
||||||
<div class="menu">
|
<% else %>
|
||||||
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => 0}, :class => 'icon icon-add') if(User.current.allowed_to?(:add_project, nil, :global => true) && @user == User.current)%>
|
<a href="<%= join_project_projects_path %>" data-remote ="true" class="green_n_btn fr mt2">加入项目</a>
|
||||||
<ul><%#链接绑定在页面最下方的jQuery%>
|
<% end %>
|
||||||
<li mode='take' class="<%= "on" if @state.eql?(0)%>"><%=l :label_project_take%></li>
|
<div class="cl"></div>
|
||||||
<li mode='watched' class="<%= "on" if @state.eql?(1)%>"><%=l :label_has_watched_project%></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div style="height:20px"></div>
|
|
||||||
|
|
||||||
<%#= watch_projects @state %>
|
|
||||||
<% unless @memberships.empty? %>
|
|
||||||
<div class="content_frame">
|
|
||||||
<ul class="user_project_sort">
|
|
||||||
<% for membership in @memberships %>
|
|
||||||
<li>
|
|
||||||
<table width="660" border="0" align="center" style="border-bottom: 1px dashed rgb(204, 204, 204); margin-bottom: 10px;font-size:14px;">
|
|
||||||
<tr>
|
|
||||||
<td colspan="2" valign="top" width="50" ><%= image_tag(url_to_avatar(membership.project), :class => 'avatar') %></td>
|
|
||||||
<td>
|
|
||||||
<table width="580" border="0">
|
|
||||||
<tr>
|
|
||||||
<td colspan="2" valign="top"><strong> <%= link_to_user(membership.user) if membership.respond_to?(:user) %></strong>
|
|
||||||
<span class="font_lighter"> <%= l(:label_project_take_in) %></span> <%= link_to_project(membership.project) %></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2" width="580" style="word-break:break-all;word-wrap: break-word;">
|
|
||||||
<p class="font_description">
|
|
||||||
<%= membership.project.short_description%>
|
|
||||||
</p></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left"><span class="font_lighter"><%= l(:label_create_time) %> : <%= format_time(membership.created_on) %></span></td><!-- modified by ming -->
|
|
||||||
<td align="right" ><%= h membership.roles.sort.collect(&:to_s).join(', ') %> </td>
|
|
||||||
</tr>
|
|
||||||
</table></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
<div id="RSide" class="fl">
|
||||||
|
<div class="courses_box">
|
||||||
</li>
|
<div class="courses_top mb10">
|
||||||
<% end %>
|
<h2 class="courses_h2 fl">全部项目</h2>
|
||||||
</ul>
|
<div class="courses_select fr">
|
||||||
<% else %>
|
<a href="<%= url_for(:controller => 'users', :action => 'user_projects')%>" class="select_btn <%= (@params['status']!='1' && @params['status']!='2') ? 'select_btn_select' : '' %> fl "> 全部</a>
|
||||||
<% if @user != User.current %>
|
<a href="<%= url_for(:controller => 'users', :action => 'user_projects', :status=>'1')%>" class="select_btn <%= (@params['status']=='1') ? 'select_btn_select' : '' %> fl ">我创建</a>
|
||||||
<p class="font_description"><%= l(:label_project_un) %></p>
|
<a href="<%= url_for(:controller => 'users', :action => 'user_projects', :status=>'2')%>" class="select_btn <%= (@params['status']=='2') ? 'select_btn_select' : '' %> fl "> 我参与</a>
|
||||||
<% else %>
|
</div>
|
||||||
<p class="font_description"><%= l(:label_project_unadd) %></p>
|
<div class="cl"></div>
|
||||||
<% end %>
|
</div>
|
||||||
|
<% for item in @list %>
|
||||||
<% end %>
|
<% creator = User.find(item.user_id)%>
|
||||||
<%= call_hook :view_account_left_bottom, :user => @user %>
|
<div class="courses_list line">
|
||||||
|
<div class="courses_list_pic fl"><a href="<%= url_for(:controller => 'projects', :action=>"show", :id=>item.id, :host=>Setting.host_name) %>"><%= image_tag(url_to_avatar(item), :style => 'width:64px;height:64px;') %></a></div>
|
||||||
|
<div class="courses_list_info fl ml10">
|
||||||
|
<a href="<%= url_for(:controller => 'projects', :action=>"show", :id=>item.id, :host=>Setting.host_name) %>" class="courses_list_title f14 fb c_blue02 fl" title="<%= item.name %>"><%= item.name %></a>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="courses_list_table ">
|
||||||
|
<table>
|
||||||
|
<tbody><tr>
|
||||||
|
<td class="td_w60 ">创建者:</td>
|
||||||
|
<td class="td_w70 "><a href="<%= user_path(creator) %>" title="<%= creator.show_name %>"><%= creator.show_name %></a></td>
|
||||||
|
<td class="td_w60 ">创建时间:</td>
|
||||||
|
<td class="td_w110 "><%= format_date(item.created_on) %></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>成员人数:</td>
|
||||||
|
<td><a href="<%= url_for(:controller => 'projects', :action=>"member", :id=>item.id, :host=>Setting.host_name) %>"><%= item.members.count %></a></td>
|
||||||
|
<td>项目类型:</td>
|
||||||
|
<td><%= item.project_new_type == 1 ? l(:label_development_team) : (item.project_new_type == 2 ? l(:label_research_group) : l(:label_friend_organization))%></td>
|
||||||
|
</tr>
|
||||||
|
</tbody></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="<%= url_for(:controller => 'issues', :action=>"new", :project_id=>item.id, :host=>Setting.host_name) %>" target="_blank" class="blue_n_btn fr mt20">发布问题</a>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<p class="nodata" style="display:<%= @list.count > 0 ? 'none' : 'block' %>;"><%= l(:label_no_data) %></p>
|
||||||
|
</div>
|
||||||
|
<ul class="wlist" style=" border:none;">
|
||||||
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
|
||||||
|
</ul>
|
||||||
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" language="javascript">
|
|
||||||
$(document).ready(function($) {
|
|
||||||
$("#content .tabs_new~").find("a").attr("target", "_blank");
|
|
||||||
$("#content .tabs_new~ .pagination").find("a").removeAttr("target");
|
|
||||||
$('[mode=take]').click(function(event) {window.location.href='<%=user_projects_user_url%>'; });
|
|
||||||
$('[mode=watched]').click(function(event) {window.location.href='<%=watch_projects_user_url(type: 1)%>'; });
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<% html_title(l(:label_user_project)) -%>
|
|
@ -0,0 +1,16 @@
|
|||||||
|
<% for item in @list %>
|
||||||
|
<div class="home_courses_list fl" nhname="rec" data-id="<%= item.id %>" data-time="<%= item.updated_on %>">
|
||||||
|
<div class="courses_list_pic fl ml10 mr10">
|
||||||
|
<a href="<%= url_for(:controller => 'projects', :action=>"show", :id=>item.id, :host=>Setting.host_name) %>"><%= image_tag(url_to_avatar(item), :style => 'width:64px;height:64px;') %></a>
|
||||||
|
</div>
|
||||||
|
<span class="fl" style="width:260px;">
|
||||||
|
<a href="<%= url_for(:controller => 'projects', :action=>"show", :id=>item.id, :host=>Setting.host_name) %>" class="home_list_title c_blue02 fl mb10" title="<%= item.name %>"><%= item.name %></a>
|
||||||
|
</span>
|
||||||
|
<div class="fl c_dgrey">
|
||||||
|
<!--<p>项目评分:<a href="<%#= url_for(:controller => 'projects', :action => 'show_projects_score', :id => item.id,:host=>Setting.host_name) %>" data-remote="true"><%#= format( "%.2f" , project_scores(item) ).to_i %></a></p>-->
|
||||||
|
<p>项目评分:<a href="<%= url_for(:controller => 'projects', :action => 'show_projects_score', :id => item.id) %>" data-remote="true"><%= format( "%.2f" , project_scores(item) ).to_i %></a></p>
|
||||||
|
<p>发布缺陷:<a href="<%= url_for(:controller => 'issues', :action=>"index", :project_id=>item.id, :host=>Setting.host_name) %>"><%= item.issues.count %></a> <span class="ml10"></span>成员:<a href="<%= url_for(:controller => 'projects', :action=>"member", :id=>item.id, :host=>Setting.host_name) %>"><%= item.members.count %></a></p>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
@ -1,11 +1,70 @@
|
|||||||
|
<% if( params[:object_type] == 'user') %>
|
||||||
|
<% if( params[:target_id] == params[:object_id] ) %>
|
||||||
|
<% target = User.find_by_id(params[:target_id]) %>
|
||||||
|
//btn
|
||||||
|
var btn_html = "<%= escape_javascript( render( :partial => 'layouts/user_watch_btn', :locals => {:target => target} ) )%>";
|
||||||
|
$('#user_watch_id').replaceWith(btn_html);
|
||||||
|
//count
|
||||||
|
$("*[nh_name='fans_count']").html("<%= target.watcher_users.count.to_s %>");
|
||||||
|
//left list
|
||||||
|
var list_left_html = "<%= escape_javascript( render( :partial => 'layouts/user_fans_list', :locals => {:user => target} ) )%>";
|
||||||
|
$('#fans_nav_list').replaceWith(list_left_html);
|
||||||
|
//list
|
||||||
|
if( $("#nh_fans_list") != undefined && $("#nh_fans_list").length != 0 ){
|
||||||
|
<% if( opt == 'add') %>
|
||||||
|
var list_html = "<%= escape_javascript( render( :partial => 'users/user_fans_item', :locals => {:item=>User.current,:target => target} ) )%>";
|
||||||
|
$("#nh_fans_list").after(list_html);
|
||||||
|
$("#nodata").hide();
|
||||||
|
<% else %>
|
||||||
|
$("#fans_item_<%= User.current.id %>",$("#nh_fans_list").parent('div')).remove();
|
||||||
|
if( $('>div',$("#nh_fans_list").parent('div')).length == 1 ){
|
||||||
|
$("#nodata").show();
|
||||||
|
}
|
||||||
|
<% end %>
|
||||||
|
}
|
||||||
|
|
||||||
|
<% elsif( params[:target_id] == User.current.id.to_s )%>
|
||||||
|
<% target = User.find_by_id(params[:target_id]) %>
|
||||||
|
<% item = User.find_by_id(params[:object_id]) %>
|
||||||
|
//count
|
||||||
|
$("*[nh_name='watcher_count']").html("<%= User.watched_by(target.id).count.to_s %>");
|
||||||
|
//left list
|
||||||
|
var list_left_html = "<%= escape_javascript( render( :partial => 'layouts/user_watch_list', :locals => {:user => target} ) )%>";
|
||||||
|
$('#watcher_nav_list').replaceWith(list_left_html);
|
||||||
|
//list
|
||||||
|
if( $("#nh_wacth_list") != undefined && $("#nh_wacth_list").length != 0 ){
|
||||||
|
<% if( opt == 'delete') %>
|
||||||
|
$("#fans_item_<%= item.id %>",$("#nh_wacth_list").parent('div')).remove();
|
||||||
|
if( $('>div',$("#nh_wacth_list").parent('div')).length == 1 ){
|
||||||
|
$("#nodata").show();
|
||||||
|
}
|
||||||
|
<% end %>
|
||||||
|
}else if($("#nh_fans_list") != undefined && $("#nh_fans_list").length != 0){
|
||||||
|
var list_html = "<%= escape_javascript( render( :partial => 'users/user_fans_item', :locals => {:item=>item,:target => target} ) )%>";
|
||||||
|
$('#fans_item_<%= item.id %>').replaceWith(list_html);
|
||||||
|
}
|
||||||
|
|
||||||
|
<% else %>
|
||||||
|
<% target = User.find_by_id(params[:target_id]) %>
|
||||||
|
<% item = User.find_by_id(params[:object_id]) %>
|
||||||
|
//list
|
||||||
|
var list_html = "<%= escape_javascript( render( :partial => 'users/user_fans_item', :locals => {:item=>item,:target => target} ) )%>";
|
||||||
|
$('#fans_item_<%= item.id %>').replaceWith(list_html);
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% else %>
|
||||||
|
|
||||||
<% selector = ".#{watcher_css(watched)}" %>
|
<% selector = ".#{watcher_css(watched)}" %>
|
||||||
<% id_selector = "#{watcher_css(watched)}" %>
|
<% id_selector = "#{watcher_css(watched)}" %>
|
||||||
if($("<%= selector %>").get(0) == undefined)
|
if($("<%= selector %>").get(0) == undefined)
|
||||||
{
|
{
|
||||||
$("#<%= id_selector %>").each(function(){$(this).replaceWith("<%= escape_javascript watcher_link_for_project(watched, user) %>")});
|
$("#<%= id_selector %>").each(function(){$(this).replaceWith("<%= escape_javascript watcher_link_for_project(watched, user) %>")});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$("<%= selector %>").each(function(){$(this).replaceWith("<%= escape_javascript watcher_link(watched, user) %>")});
|
$("<%= selector %>").each(function(){$(this).replaceWith("<%= escape_javascript watcher_link(watched, user) %>")});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
//$('#message').html('<#%= escape_javascript(render(:partial => 'words/message', :locals => {:jour => @jour, :state => false, :user => @user, :feedback_pages => @feedback_pages,:show_name => true})) %>');
|
//$('#message').html('<%#= escape_javascript(render(:partial => 'words/message', :locals => {:jour => @jour, :state => false, :user => @user, :feedback_pages => @feedback_pages,:show_name => true})) %>');
|
||||||
|
<% if !@jour.nil? && @jour.jour_type == 'Principal' %>
|
||||||
|
var html = $("<div>"+"<%= escape_javascript( render(:template => 'users/user_feedback4show',:locals => {:feed_list=>[@jour]} )) %>"+"</div>");
|
||||||
|
$("div[nhname='container']",$("#nh_messages")).prepend(html.html());
|
||||||
|
$('#new_message_cancel_btn').click();
|
||||||
|
var params = init_list_more_div_params($("#nh_messages"));
|
||||||
|
change_status_4_list_more_div(params);
|
||||||
|
|
||||||
|
<% else %>
|
||||||
$('#history').html('<%= escape_javascript(render(:partial => 'users/history',:locals => { :journals => @jour, :state => false})) %>')
|
$('#history').html('<%= escape_javascript(render(:partial => 'users/history',:locals => { :journals => @jour, :state => false})) %>')
|
||||||
$('#jour_count').html('<%= @obj_count%>')
|
$('#jour_count').html('<%= @obj_count%>')
|
||||||
$('#pre_show').html('<%= escape_javascript(render(:partial => 'pre_show', :locals => {:content => nil})) %>');
|
$('#pre_show').html('<%= escape_javascript(render(:partial => 'pre_show', :locals => {:content => nil})) %>');
|
||||||
$('#new_form_user_message').val("");
|
$('#new_form_user_message').val("");
|
||||||
if($('#new_message_cancel_btn') != undefined && $('#new_message_cancel_btn').length!=0){
|
|
||||||
$('#new_message_cancel_btn').click();
|
|
||||||
}
|
|
||||||
$('#new_form_reference_user_id').val("");
|
$('#new_form_reference_user_id').val("");
|
||||||
|
<% end %>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
class AddProportionToPrograming < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
add_column :homework_detail_programings, :ta_proportion, :float, :default => 0.1
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
remove_column :homework_detail_programings, :ta_proportion
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,9 @@
|
|||||||
|
class ChangeStudenWorkDesc < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
change_column :student_works,:description,:text,:limit => 4294967295
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
change_column :student_works,:description,:text
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,9 @@
|
|||||||
|
class AddQuestionIdToHomework < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
add_column :homework_detail_programings, :question_id, :integer
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
remove_column :homework_detail_programings, :question_id
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,9 @@
|
|||||||
|
class AddDescriptionToUserExtensions < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
add_column :user_extensions, :description, :string, default: ''
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
remove_column :user_extensions, :description
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,14 @@
|
|||||||
|
class CreateVisitors < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
create_table :visitors do |t|
|
||||||
|
t.integer :user_id
|
||||||
|
t.integer :master_id
|
||||||
|
t.datetime :updated_on
|
||||||
|
t.datetime :created_on
|
||||||
|
|
||||||
|
end
|
||||||
|
add_index "visitors", ["user_id"], :name => "index_visitors_user_id"
|
||||||
|
add_index "visitors", ["master_id"], :name => "index_visitors_master_id"
|
||||||
|
add_index "visitors", ["updated_on"], :name => "index_visitors_updated_on"
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,11 @@
|
|||||||
|
class AddActivityContainerTypeToActivities < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
add_column :activities, :activity_container_id, :int
|
||||||
|
add_column :activities, :activity_container_type, :string, default: ''
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
remove_column :activities, :activity_container_type
|
||||||
|
remove_column :activities, :activity_container_id
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,14 @@
|
|||||||
|
class CreateTestResult < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
create_table :student_work_tests do |t|
|
||||||
|
t.integer :student_work_id
|
||||||
|
t.integer :homework_test_id
|
||||||
|
t.integer :result
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
drop_table :student_work_tests
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,13 @@
|
|||||||
|
class ChangeActivitiesContainerType < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
activities = Activity.where("activity_container_type = ''")
|
||||||
|
activities.each do |activity|
|
||||||
|
activity.set_container_type_val
|
||||||
|
activity.save
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
Activity.where("activity_container_type <> ''").update_all(activity_container_type: '',activity_container_id:nil)
|
||||||
|
end
|
||||||
|
end
|
After Width: | Height: | Size: 9.7 KiB |
@ -0,0 +1,67 @@
|
|||||||
|
.topbar_info02{ margin:5px 10px;width:480px; }
|
||||||
|
.topbar_info02 p{color: #7f7f7f;}
|
||||||
|
.search{ margin-top:8px; float:right; margin-right:5px;}
|
||||||
|
/*信息*/
|
||||||
|
.project_info{ background:#fff; padding:10px; padding-right:0px;width:222px; padding-right:8px; margin-bottom:10px;}
|
||||||
|
.pr_info_id{ width:137px; color:#5a5a5a; font-size:14px; margin-top:5px;}
|
||||||
|
.pr_info_logo{ border:1px solid #eaeaea; width:60px; height:60px; padding:1px;}
|
||||||
|
.pr_info_logo:hover{ border:1px solid #64bdd9; }
|
||||||
|
.pr_info_join{}
|
||||||
|
a.pr_join_a{ color:#fff; display:block; padding:0 5px 0 3px; padding-top:2px; height:20px; margin-right:5px; float:left; text-align:center; background-color:#64bdd9; float:left; }
|
||||||
|
a:hover.pr_join_a{ background:#41a8c8;}
|
||||||
|
.pr_join_span{color: #fff; display:block; padding:0 5px; padding-top:2px; height:20px; margin-right:5px; float:left; text-align:center; background: #CCC;}
|
||||||
|
.pr_setting{ display:block; background:url(../images/leftside.png) -1px 0 no-repeat; width:11px; height:11px; margin-top:3px; float:left; }
|
||||||
|
.pr_copy{ display:block; background:url(../images/leftside.png) -1px -23px no-repeat; width:11px; height:11px; margin-top:3px; float:left; }
|
||||||
|
.pr_close{ display:block; background:url(../images/leftside.png) -1px -49px no-repeat; width:11px; height:11px; margin-top:3px; float:left; }
|
||||||
|
.pr_add{display:block; background:url(../images/leftside.png) 0px -71px no-repeat; width:11px; height:11px; margin-top:3px; float:left; }
|
||||||
|
.pr_arrow{display:block; background:url(../images/leftside.png) 0px -90px no-repeat; width:11px; height:11px; margin-top:3px; float:left; }
|
||||||
|
.pr_info_name{ color:#3e4040; font-size:14px; line-height:1.5;}
|
||||||
|
.pr_info_name:hover{ color:#3ca5c6;}
|
||||||
|
.pr_info_score{ font-size:14px; color:#3e4040; }
|
||||||
|
.pr_info_score a{ color:#ff7143;}
|
||||||
|
.pr_info_score a:hover{ color:#64bdd9;}
|
||||||
|
|
||||||
|
.img_private{ background:url(../images/new_project/img_project.png) 0 0 no-repeat; width:33px; height:16px; color:#fff; font-size:12px; padding-left:7px; }
|
||||||
|
/*.img_private{ background:url(../images/project/img_project.png) 0 0 no-repeat; width:33px; height:16px; color:#fff; font-size:12px; padding-left:7px; }*/
|
||||||
|
.info_foot_num{ color:#3ca5c6; }
|
||||||
|
.pr_info_foot{ color:#7f7f7f; margin-top:5px; }
|
||||||
|
.info_foot_num:hover{ color:#2390b2;}
|
||||||
|
.info_box{background:#fff; padding:10px;width:220px; }
|
||||||
|
.info_box ul li{ font-size:12px; color: #3e4040; line-height:1.7;}
|
||||||
|
|
||||||
|
/*左侧导航*/
|
||||||
|
.subNavBox{width:240px; background:#fff;margin:10px 10px 0 0;}
|
||||||
|
.subNav{border-bottom:solid 1px #e5e3da;cursor:pointer;font-weight:bold;font-size:14px;color:#3ca5c6; height:26px;padding-left:10px;background-color:#fff; padding-top:2px;}
|
||||||
|
.subNav_jiantou{background:url(../images/jiantou1.jpg) no-repeat;background-position:95% 50%; background-color:#fff;}
|
||||||
|
.subNav_jiantou:hover{color:#0781b4; }
|
||||||
|
.currentDd{color:#0781b4;}
|
||||||
|
.currentDt{background-color:#fff;}
|
||||||
|
.navContent{display: none;border-bottom:solid 1px #e5e3da; }
|
||||||
|
.navContent li a{display:block;width:240px;heigh:28px;text-align:center;font-size:12px;line-height:28px;color:#333}
|
||||||
|
.navContent li a:hover{color:#fff;background-color:#b3e0ee}
|
||||||
|
a.subnav_num{ font-weight:normal; color:#ff7143; font-size:12px;}
|
||||||
|
a.subnav_green{ background:#28be6c; color:#fff; font-size:12px; font-weight:normal;height:18px; padding:0px 5px; padding-top:2px; display:block; margin-top:2px; margin-bottom:5px; float:right; margin-right:5px;}
|
||||||
|
a:hover.subnav_green{ background:#14ad5a;}
|
||||||
|
|
||||||
|
|
||||||
|
/*简介*/
|
||||||
|
.project_intro{ width:220px; padding:10px; background:#fff; margin-top:10px; padding-top:5px; color:#6d6d6d; line-height:1.9;}
|
||||||
|
.course_description{max-height: 112px;overflow:hidden; word-break: break-all;word-wrap: break-word;}
|
||||||
|
.course_description_none{max-height: none;}
|
||||||
|
.lg-foot{ border:1px solid #e8eef2; color: #929598; text-align:center; width:220px; height:23px; cursor:pointer;}
|
||||||
|
.lg-foot:hover{ color:#787b7e; border:1px solid #d4d4d4;}
|
||||||
|
/****标签(和资源库的tag样式一致)***/
|
||||||
|
.project_Label{ width:220px; padding:10px; background:#fff; margin-top:10px; padding-top:5px; margin-bottom:10px;}
|
||||||
|
a.yellowBtn{ display:inline-block;color:#0d90c3; height:22px;}
|
||||||
|
.submit{height:21px;border:0; cursor:pointer; background:url(../images/btn.png) no-repeat 0 0;width:42px; margin-top:2px; margin-left:3px; }
|
||||||
|
.isTxt{background:#fbfbfb url(../images/inputBg.png) repeat-x left top;height:22px;line-height:22px;border:1px solid #c1c1c1;padding:0 5px;color:#666666;}
|
||||||
|
.re_tag{ width: auto; padding:0 5px; padding-top:2px; height:20px; border:1px solid #f8df8c; background:#fffce6; margin-right:5px; }
|
||||||
|
.re_tag a{ color:#0d90c3;}
|
||||||
|
.tag_h{ }
|
||||||
|
.tag_h span,.tag_h a{ margin-bottom:5px;}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,432 @@
|
|||||||
|
/* CSS Document */
|
||||||
|
/* 2015-06-26 */
|
||||||
|
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{ margin:0; padding:0;}
|
||||||
|
body,table,input,textarea,select,button { font-family: "微软雅黑","宋体"; font-size:12px;line-height:1.5; background:#eaebec;}
|
||||||
|
div,img,tr,td,table{ border:0;}
|
||||||
|
table,tr,td{border:0;cellspacing:0; cellpadding:0;}
|
||||||
|
ol,ul,li{ list-style-type:none}
|
||||||
|
a:link,a:visited{color:#7f7f7f;text-decoration:none;}
|
||||||
|
a:hover,a:active{color:#000;}
|
||||||
|
|
||||||
|
/*常用*/
|
||||||
|
select,input,textarea{ border:1px solid #64bdd9; background:#fff; color:#000; padding-left:5px; }
|
||||||
|
.sub_btn{ cursor:pointer; -moz-border-radius:3px; -webkit-border-radius:3px; border:1px solid #707070; color:#000; border-radius:3px; padding:1px 10px; background:#dbdbdb;}
|
||||||
|
.sub_btn:hover{ background:#b5e2fa; color:#000; border:1px solid #3c7fb1;}
|
||||||
|
table{ background:#fff;}
|
||||||
|
.more{ font-weight:normal; color:#999; font-size:12px;}
|
||||||
|
.no_line{ border-bottom:none;}
|
||||||
|
.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;}
|
||||||
|
|
||||||
|
/* font & color */
|
||||||
|
h2{ font-size:18px; color:#15bccf;}
|
||||||
|
h3{ font-size:14px; color:#e8770d;}
|
||||||
|
h4{ font-size:14px; color:#3b3b3b;}
|
||||||
|
.f12{font-size:12px; font-weight:normal;}
|
||||||
|
.f14{font-size:14px;}
|
||||||
|
.f16{font-size:16px;}
|
||||||
|
.f18{font-size:18px;}
|
||||||
|
.fb{font-weight:bold;}
|
||||||
|
.lh20{line-height:20px;}
|
||||||
|
.lh22{line-height:22px;}
|
||||||
|
.lh24{line-height:24px;}
|
||||||
|
.lh26{line-height:26px;}
|
||||||
|
.fmYh{font-family:"MicroSoft Yahei";}
|
||||||
|
.font999{ color:#999;}
|
||||||
|
.fontRed{color:#770000;}
|
||||||
|
.text_c{ text-align:center;}
|
||||||
|
|
||||||
|
/* Float & Clear */
|
||||||
|
.cl{ clear:both; overflow:hidden; }
|
||||||
|
.fl{float:left;display:inline;}
|
||||||
|
.fr{float:right;display:inline;}
|
||||||
|
.f_l{ float:left;}
|
||||||
|
.f_r{ float:right;}
|
||||||
|
.clearfix:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;visibility:hidden}
|
||||||
|
.clearfix{clear:both;zoom:1}
|
||||||
|
.break_word{ word-break:break-all; word-wrap: break-word;}
|
||||||
|
.white_space{white-space:nowrap;}
|
||||||
|
|
||||||
|
/* Spacing */
|
||||||
|
.ml2{ margin-left:2px;}
|
||||||
|
.ml3{ margin-left:3px;}
|
||||||
|
.ml4{ margin-left:4px;}
|
||||||
|
.ml5{ margin-left:5px;}
|
||||||
|
.ml8{ margin-left:8px;}
|
||||||
|
.ml10{ margin-left:10px;}
|
||||||
|
.ml15{ margin-left:15px;}
|
||||||
|
.ml20{ margin-left:20px;}
|
||||||
|
.ml40{ margin-left:40px;}
|
||||||
|
.ml45{ margin-left:45px;}
|
||||||
|
.ml55{ margin-left:55px;}
|
||||||
|
.ml30{ margin-left:30px;}
|
||||||
|
.ml60{ margin-left:60px;}
|
||||||
|
.ml80{ margin-left:80px;}
|
||||||
|
.ml90{ margin-left:90px;}
|
||||||
|
.ml100{ margin-left:100px;}
|
||||||
|
.ml110{ margin-left:110px;}
|
||||||
|
.mr5{ margin-right:5px;}
|
||||||
|
.mr10{ margin-right:10px;}
|
||||||
|
.mr20{ margin-right:20px;}
|
||||||
|
.mr30{ margin-right:30px;}
|
||||||
|
.mr40{ margin-right:40px;}
|
||||||
|
.mt3{ margin-top:3px;}
|
||||||
|
.mt5{ margin-top:5px;}
|
||||||
|
.mt8{ margin-top:8px;}
|
||||||
|
.mt10{ margin-top:10px;}
|
||||||
|
.mb5{ margin-bottom:5px;}
|
||||||
|
.mb10{ margin-bottom:10px;}
|
||||||
|
.mb20{ margin-bottom:20px;}
|
||||||
|
.pl15{ padding-left:15px;}
|
||||||
|
.w20{ width:20px;}
|
||||||
|
.w60{ width:60px;}
|
||||||
|
.w70{ width:70px;}
|
||||||
|
.w90{ width:90px;}
|
||||||
|
.w210{ width:210px;}
|
||||||
|
.w150{ width:150px;}
|
||||||
|
.w280{ width:280px;}
|
||||||
|
.w430{ width:470px;}
|
||||||
|
.w520{ width:520px;}
|
||||||
|
.w543{ width:543px;}
|
||||||
|
.w557{ width:557px;}
|
||||||
|
.w583{ width:583px;}
|
||||||
|
.w350{ width:350px;}
|
||||||
|
.w610{ width:610px;}
|
||||||
|
.w600{ width:600px;}
|
||||||
|
.h22{ height:22px;}
|
||||||
|
.h26{ height:26px;}
|
||||||
|
.h50{ height:50px;}
|
||||||
|
.h70{ height:70px;}
|
||||||
|
.h150{ height:150px;}
|
||||||
|
|
||||||
|
/* Font & background Color */
|
||||||
|
a.b_grey{ background: #F5F5F5;}
|
||||||
|
a.b_dgrey{ background: #CCC;}
|
||||||
|
a.c_orange{color:#ff5722;}
|
||||||
|
a:hover.c_orange{color: #d33503;}
|
||||||
|
a.c_lorange{color:#ff9900;}
|
||||||
|
a:hover.c_lorange{color:#fff;}
|
||||||
|
a.c_blue{ color:#15bccf;}
|
||||||
|
a.c_dblue{ color:#09658c;}
|
||||||
|
a:hover.c_dblue{ color:#15bccf;}
|
||||||
|
a.c_white{ color:#fff;}
|
||||||
|
a.c_dorange{ color:#fd6e2a;}
|
||||||
|
a.c_dark{color: #3e4040;}
|
||||||
|
a:hover.c_dark{color: #3ca5c6;}
|
||||||
|
a.b_blue{background: #64bdd9;}
|
||||||
|
a:hover.b_blue{background: #41a8c8;}
|
||||||
|
a.b_green{background:#28be6c;}
|
||||||
|
a:hover.b_green{background:#14ad5a;}
|
||||||
|
a.c_blue02{color: #3ca5c6;}
|
||||||
|
a:hover.c_blue02{color: #0781b4;}
|
||||||
|
a.c_red{ color:#F00;}
|
||||||
|
a:hover.c_red{ color: #C00;}
|
||||||
|
a.c_purple{color: #426e9a;}
|
||||||
|
a:hover.c_purple{color: #d33503;}
|
||||||
|
a.c_green{ color:#28be6c;}
|
||||||
|
|
||||||
|
.b_grey{ background: #F5F5F5;}
|
||||||
|
.b_dgrey{ background: #CCC;}
|
||||||
|
.c_orange{color:#e8770d;}
|
||||||
|
.c_dark{ color:#2d2d2d;}
|
||||||
|
.c_lorange{ color:#ff9900;}
|
||||||
|
.c_purple{color: #6883b6;}
|
||||||
|
.c_blue{ color:#15bccf;}
|
||||||
|
.c_red{ color:#F00;}
|
||||||
|
.c_green{ color:#28be6c;}
|
||||||
|
.c_dblue{ color:#09658c;}
|
||||||
|
.b_blue{background:#64bdd9;}
|
||||||
|
.b_green{background:#28be6c;}
|
||||||
|
.b_w{ background:#fff;}
|
||||||
|
|
||||||
|
/* commonBtn */
|
||||||
|
.grey_btn{ background:#d9d9d9; color:#656565;font-size:14px; font-weight:normal; text-align:center;padding:2px 10px;}
|
||||||
|
a.grey_btn{ background:#d9d9d9; color:#656565;font-size:14px; font-weight:normal; text-align:center;padding:2px 10px;}
|
||||||
|
a:hover.grey_btn{ background:#717171; color:#fff;}
|
||||||
|
.grey_n_btn{ background:#d9d9d9; color:#656565; font-weight:normal;padding:2px 10px; text-align:center;}
|
||||||
|
a.grey_n_btn{background:#d9d9d9; color:#656565;font-weight:normal; padding:2px 10px; text-align:center;}
|
||||||
|
a:hover.grey_n_btn{ background:#717171; color:#fff;}
|
||||||
|
.green_btn{ background:#28be6c; color:#fff; font-size:14px; font-weight:normal;padding:2px 10px; text-align:center;}
|
||||||
|
a.green_btn{background:#28be6c;color:#fff;font-size:14px; font-weight:normal; padding:2px 10px; text-align:center;}
|
||||||
|
a:hover.green_btn{ background:#14ad5a;}
|
||||||
|
.blue_btn{ background:#64bdd9; color:#fff; font-size:14px; font-weight:normal;padding:2px 10px; text-align:center;}
|
||||||
|
a.blue_btn{background:#64bdd9;color:#fff;font-size:14px; font-weight:normal; padding:2px 10px; text-align:center;}
|
||||||
|
a:hover.blue_btn{ background:#329cbd;}
|
||||||
|
a.orange_btn{ background:#ff5722;color:#fff;font-size:14px; font-weight:normal; padding:2px 10px; text-align:center; }
|
||||||
|
a:hover.orange_btn{ background:#d63502;}
|
||||||
|
|
||||||
|
.green_u_btn{border:1px solid #3cb761; padding:2px 10px; color:#3cb761;}
|
||||||
|
a.green_u_btn{border:1px solid #3cb761; padding:2px 10px; color:#3cb761;}
|
||||||
|
a:hover.green_u_btn{ background:#3cb761; color:#fff;}
|
||||||
|
.orange_u_btn{border:1px solid #ff5d31; padding:2px 10px; color:#ff5d31;}
|
||||||
|
a.orange_u_btn{border:1px solid #ff5d31; padding:2px 10px; color:#ff5d31;}
|
||||||
|
a:hover.orange_u_btn{background:#ff5d31; color:#fff;}
|
||||||
|
.bgreen_u_btn{border:1px solid #1abc9c; padding:2px 10px; color:#1abc9c;}
|
||||||
|
a.bgreen_u_btn{border:1px solid #1abc9c1; padding:2px 10px; color:#1abc9c;}
|
||||||
|
a:hover.bgreen_u_btn{background:#1abc9c; color:#fff;}
|
||||||
|
.blue_u_btn{border:1px solid #64bdd9; padding:2px 10px; color:#64bdd9;}
|
||||||
|
a.blue_u_btn{border:1px solid #64bdd9; padding:2px 10px; color:#64bdd9;}
|
||||||
|
a:hover.blue_u_btn{background:#64bdd9; color:#fff;}
|
||||||
|
.blue_n_btn{ background:#64bdd9; color:#fff; font-weight:normal;padding:2px 10px; text-align:center;}
|
||||||
|
a.blue_n_btn{background:#64bdd9;color:#fff;font-weight:normal; padding:2px 10px; text-align:center;}
|
||||||
|
a:hover.blue_n_btn{ background:#329cbd;}
|
||||||
|
.green_n_btn{background:#3cb761; padding:2px 10px; color:#fff;}
|
||||||
|
a.green_n_btn{background:#3cb761; padding:2px 10px; color:#fff;}
|
||||||
|
a:hover.green_n_btn{ background:#14ad5a;}
|
||||||
|
.orange_n_btn{background:#ff5d31; padding:2px 10px; color:#fff;}
|
||||||
|
a.orange_n_btn{background:#ff5d31; padding:2px 10px; color:#fff;}
|
||||||
|
a:hover.orange_n_btn{background:#d63502;}
|
||||||
|
.bgreen_n_btn{background:#1abc9c; padding:2px 10px; color:#fff;}
|
||||||
|
a.bgreen_n_btn{background:#1abc9c; padding:2px 10px; color:#fff;}
|
||||||
|
a:hover.bgreen_n_btn{background:#08a384;}
|
||||||
|
|
||||||
|
.nolink_btn{ background:#BCBCBC; color: #fff; padding:2px 5px;}
|
||||||
|
.more_btn{-moz-border-radius:3px; -webkit-border-radius:3px; border:1px solid #9DCEFF; color:#9DCEFF; border-radius:3px; padding:0px 3px;}
|
||||||
|
.upbtn{ margin:42px 0 0 10px; border:none; color:#999; width:150px;}
|
||||||
|
.red_btn_cir{ background:#e74c3c; padding:1px 10px; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; color:#fff; font-weight:normal;font-size:12px;}
|
||||||
|
.green_btn_cir{ background:#28be6c; padding:1px 10px; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; color:#fff; font-weight:normal;font-size:12px;}
|
||||||
|
.blue_btn_cir{ background:#3498db; padding:1px 10px; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; color:#fff; font-weight:normal;font-size:12px;}
|
||||||
|
.orange_btn_cir{ background:#e67e22; padding:1px 10px; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; color:#fff; font-weight:normal; font-size:12px;}
|
||||||
|
.bgreen_btn_cir{ background:#1abc9c; padding:1px 10px; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; color:#fff; font-weight:normal; font-size:12px;}
|
||||||
|
/* commonpic */
|
||||||
|
.pic_date{ display:block; background:url(../images/public_icon.png) -31px 0 no-repeat; width:16px; height:15px; float:left;}
|
||||||
|
.pic_add{ display:block; background:url(../images/public_icon.png) -31px -273px no-repeat; width:16px; height:15px; float:left;}
|
||||||
|
.pic_sch{ display:block; background:url(../images/public_icon.png) -31px -195px no-repeat; width:16px; height:15px; float:left;}
|
||||||
|
.pic_mes{ display:block; background:url(../images/public_icon.png) 0px -376px no-repeat; width:20px; height:15px; padding-left:18px;}
|
||||||
|
.pic_img{ display:block; background:url(../images/public_icon.png) -31px -419px no-repeat; width:20px; height:15px; }
|
||||||
|
.pic_del{ display:block; background:url(../images/public_icon.png) 0px -235px no-repeat; width:20px; height:15px; }
|
||||||
|
.pic_del:hover{ background:url(../images/public_icon.png) -32px -235px no-repeat; }
|
||||||
|
.pic_stats{display:block; background:url(../images/public_icon.png) 0px -548px no-repeat; width:20px; height:15px;}
|
||||||
|
.pic_files{display:block; background:url(../images/public_icon.png) 0px -578px no-repeat; width:20px; height:15px;}
|
||||||
|
.pic_text{display:block; background:url(../images/public_icon.png) 0px -609px no-repeat; width:20px; height:18px;}
|
||||||
|
.pic_text02{display:block; background:url(../images/public_icon.png) 0px -642px no-repeat; width:20px; height:19px;}
|
||||||
|
.pic_edit{display:block; background:url(../images/public_icon.png) 0px -32px no-repeat; width:20px; height:15px;}
|
||||||
|
.pic_edit:hover{display:block; background:url(../images/public_icon.png) -32px -32px no-repeat; width:20px; height:15px;}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*框架主类容*/
|
||||||
|
#Container{ width:1000px; margin:0 auto; }
|
||||||
|
|
||||||
|
/*头部导航*/
|
||||||
|
#Header{ margin:10px 0; background:#15bccf; height:40px; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; }
|
||||||
|
.logo{ margin:5px 10px; }
|
||||||
|
#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;}
|
||||||
|
#TopUser{}
|
||||||
|
#TopUser ul li{ margin-top:8px;}
|
||||||
|
.topuser_a a{ font-size:14px; font-weight:bold; color:#fff; margin-right:10px;}
|
||||||
|
.topuser_a a:hover{color: #a1ebff;}
|
||||||
|
#TopUser02{ }
|
||||||
|
#TopUser02 li{ float: left;}
|
||||||
|
#TopUser02 li a{ margin-right:10px;color: #FFF;text-align: center;}
|
||||||
|
#TopUser02 li a:hover{color: #a1ebff;}
|
||||||
|
#TopUser02 div{ position: absolute;visibility: hidden;background:#fff;border: 1px solid #15bccf;}
|
||||||
|
#TopUser02 div a{position: relative;display: block;white-space: nowrap;text-align: left; line-height:1.9; margin-left:5px;background: #fff;color:#15bccf; font-weight:normal;}
|
||||||
|
#TopUser02 div a:hover{ color:#e8770d; font-weight: bold;}
|
||||||
|
/*头部导航下拉*/
|
||||||
|
div#menu {height:41px; font-size:14px; font-weight:bold; }
|
||||||
|
div#menu ul {float: left;}
|
||||||
|
div#menu ul.menu { padding-left: 30px; }
|
||||||
|
div#menu li {position: relative; z-index: 9; margin: 0; display: block; float: left; }
|
||||||
|
div#menu li:hover>ul { left: -2px;}
|
||||||
|
div#menu a {position: relative;z-index: 10; height: 41px; display: block; float: left;line-height: 41px; text-decoration: none; font-size:14px; }
|
||||||
|
div#menu a:hover, div#menu a:hover span { color: #a1ebff; }
|
||||||
|
div#menu li.current a {}
|
||||||
|
div#menu {display: block; cursor: pointer; background-repeat: no-repeat;background-position: 95% 0;padding-right: 15px; _padding-right: 20px;}
|
||||||
|
div#menu ul a.parent {background: url(../images/item.png) -20px -30px no-repeat; width:60px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
div#menu ul a.parent:hover {background: url(../images/item.png) -20px -60px no-repeat;}
|
||||||
|
div#menu ul ul a.parent {background: url(../images/item.png) -20px 6px no-repeat;}
|
||||||
|
div#menu ul ul a.parent:hover {background: url(../images/item.png) -20px -11px no-repeat;}
|
||||||
|
/* menu::level1 */
|
||||||
|
div#menu a { padding: 5px 12px 0 10px;line-height: 30px; color: #fff;}
|
||||||
|
div#menu li { background: url(images/main-delimiter.png) 98% 4px no-repeat; }
|
||||||
|
div#menu li.last { background: none; }
|
||||||
|
/* menu::level2 */
|
||||||
|
div#menu ul ul li { background: none; }
|
||||||
|
div#menu ul ul { position: absolute;top: 38px; left: -999em; width: 90px; padding: 5px 0 0 0; background:#fff; border:1px solid #15bccf; margin-top:1px;}
|
||||||
|
div#menu ul ul a {padding: 0 0 0 15px; height: auto; float: none;display: block; line-height: 24px; font-size:12px; font-weight:normal;color:#15bccf;}
|
||||||
|
div#menu ul ul a:hover { color:#ff9900;}
|
||||||
|
div#menu ul ul li.last { margin-left:15px; }
|
||||||
|
div#menu ul ul li {width: 100%;}
|
||||||
|
/* menu::level3 */
|
||||||
|
div#menu ul ul ul {padding: 0;margin: -38px 0 0 92px !important; width:140px; }
|
||||||
|
div#menu ul ul ul li a{ width:125px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;color:#15bccf;}
|
||||||
|
|
||||||
|
/*主类容*/
|
||||||
|
#Main{ background:#fff; margin-bottom:10px;}
|
||||||
|
#content{}
|
||||||
|
#content02{ background:#fff; padding:10px; margin-bottom:10px;}
|
||||||
|
/*主类容搜索*/
|
||||||
|
#TopBar{ height:60px; margin-bottom:10px; background:#fff;}
|
||||||
|
.topbar_info02{ margin:5px 10px;width:480px; }
|
||||||
|
.topbar_info02 p{color: #7f7f7f;}
|
||||||
|
.search{ margin-top:8px; margin-left:71px;}
|
||||||
|
.search_form{margin-top:8px;margin-left:72px;}
|
||||||
|
.topbar_info{ width:350px; color:#5c5c5c; font-size:16px; margin-right:50px; line-height:1.3; padding-left:100px;}
|
||||||
|
a.search_btn{ display:block; background:#15bccf; color:#fff; width:60px; height:24px; text-align:center; padding-top:3px;}
|
||||||
|
a:hover.search_btn{ background: #0fa9bb;}
|
||||||
|
.search_text{ border:1px solid #15bccf; background:#fff; width:220px; height:25px; padding-left:5px; }
|
||||||
|
/*主类容左右分栏*/
|
||||||
|
#LSide{ width:240px; }
|
||||||
|
#RSide{ width:730px; margin-left:10px; background:#fff; padding:10px; margin-bottom:10px;}
|
||||||
|
|
||||||
|
|
||||||
|
/*底部*/
|
||||||
|
#Footer{ padding-top:10px; background:#fff; margin-bottom:10px;}
|
||||||
|
.copyright{ width:780px; margin:0 auto;height:30px; }
|
||||||
|
.footlogo{ width:580px; margin:0 auto;height:50px; }
|
||||||
|
/*意见反馈*/
|
||||||
|
html{ overflow-x:hidden;}
|
||||||
|
.scrollsidebar{ position: fixed; bottom:1px; right:1px; background:none; }
|
||||||
|
.side_content{width:154px; height:auto; overflow:hidden; float:left; }
|
||||||
|
.side_content .side_list {width:154px;overflow:hidden;}
|
||||||
|
.show_btn{ width:0; height:112px; overflow:hidden; float:left; margin-top:190px;cursor:pointer;}
|
||||||
|
.show_btn span { display:none;}
|
||||||
|
.close_btn{width:24px;height:24px;cursor:pointer;}
|
||||||
|
.side_title,.side_bottom,.close_btn,.show_btn {background:url(../images/sidebar_bg.png) no-repeat; }
|
||||||
|
.side_title {height:35px;}
|
||||||
|
.side_bottom { height:8px;}
|
||||||
|
.side_center {font-family:Verdana, Geneva, sans-serif; padding:0px 12px; font-size:12px;}
|
||||||
|
.close_btn { float:right; display:block; width:21px; height:16px; margin:9px 10px 0 0; _margin:16px 5px 0 0;}
|
||||||
|
.close_btn span { display:none;}
|
||||||
|
.side_center .custom_service p { text-align:center; padding:6px 0; margin:0; vertical-align:middle;}
|
||||||
|
.msgserver { margin-top:5px;}
|
||||||
|
/*.msgserver a { background:url(../images/sidebar_bg.png) no-repeat -119px -112px; padding-left:22px; height:21px; display:block; }*/
|
||||||
|
.msgserver a { height:21px; display:block; }
|
||||||
|
.opnionText{box-shadow:none; width:122px; height:180px; border-color: #DFDFDF; background:#fff; color:#999; padding:3px; font-size:12px;overflow:auto; background-attachment:fixed;border-style:solid;}
|
||||||
|
a.opnionButton{ display:block; background:#15bccf; width:130px; height:23px; margin-top:5px; text-align:center; padding-top:3px;}
|
||||||
|
a:hover.opnionButton{background: #0fa9bb; }
|
||||||
|
/* blue skin as the default skin */
|
||||||
|
.side_title {background-position:-195px 0;}
|
||||||
|
.side_center {background:url(../images/blue_line.png) repeat-y center; }
|
||||||
|
.side_bottom {background-position:-195px -50px;}
|
||||||
|
a.close_btn {background-position:-44px 0;}
|
||||||
|
a:hover.close_btn {background-position:-66px 0;}
|
||||||
|
.show_btn {background-position:-119px 0;}
|
||||||
|
.msgserver a {color:#15bccf; }
|
||||||
|
.msgserver a:hover { text-decoration:underline; }
|
||||||
|
|
||||||
|
|
||||||
|
/***** Ajax indicator ******/
|
||||||
|
#ajax-indicator {
|
||||||
|
position: absolute; /* fixed not supported by IE */
|
||||||
|
background-color:#eee;
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
top:35%;
|
||||||
|
left:40%;
|
||||||
|
width:20%;
|
||||||
|
font-weight:bold;
|
||||||
|
text-align:center;
|
||||||
|
padding:0.6em;
|
||||||
|
z-index:100000;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
html>body #ajax-indicator { position: fixed; }
|
||||||
|
|
||||||
|
#ajax-indicator span {
|
||||||
|
background-position: 0% 40%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-image: url(../images/loading.gif);
|
||||||
|
padding-left: 26px;
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.modal {
|
||||||
|
border-radius: 5px;
|
||||||
|
background: #fff;
|
||||||
|
z-index: 50;
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
.ui-widget-content {
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
.ui-widget {
|
||||||
|
font-family: Verdana, sans-serif;
|
||||||
|
font-size: 1.1em;
|
||||||
|
}
|
||||||
|
.ui-dialog .ui-dialog-content {
|
||||||
|
position: relative;
|
||||||
|
border: 0;
|
||||||
|
padding: .5em 1em;
|
||||||
|
background: none;
|
||||||
|
overflow: auto;
|
||||||
|
zoom: 1;
|
||||||
|
}
|
||||||
|
.ui-widget-overlay {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.ui-widget-overlay {
|
||||||
|
background: #666 url(http://forge.trustie.net/stylesheets/jquery/images/xui-bg_diagonals-thick_20_666666_40x40.png.pagespeed.ic.9mfuw_R0z1.png) 50% 50% repeat;
|
||||||
|
opacity: .5;
|
||||||
|
filter: Alpha(Opacity=50);
|
||||||
|
}
|
||||||
|
/***** end Ajax indicator ******/
|
||||||
|
|
||||||
|
/***** Flash & error messages ****/
|
||||||
|
#errorExplanation, div.flash, .nodata, .warning, .conflict {
|
||||||
|
padding: 4px 4px 4px 30px;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
font-size: 1.1em;
|
||||||
|
border: 2px solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.flash {margin-top: 8px;}
|
||||||
|
|
||||||
|
div.flash.error, #errorExplanation {
|
||||||
|
background: url(../images/exclamation.png) 8px 50% no-repeat;
|
||||||
|
background-color: #ffe3e3;
|
||||||
|
border-color: #dd0000;
|
||||||
|
color: #880000;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.flash.notice {
|
||||||
|
background: url(../images/true.png) 8px 5px no-repeat;
|
||||||
|
background-color: #dfffdf;
|
||||||
|
border-color: #9fcf9f;
|
||||||
|
color: #005f00;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.flash.warning, .conflict {
|
||||||
|
background: url(../images/warning.png) 8px 5px no-repeat;
|
||||||
|
background-color: #FFEBC1;
|
||||||
|
border-color: #FDBF3B;
|
||||||
|
color: #A6750C;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nodata, .warning {
|
||||||
|
text-align: center;
|
||||||
|
background-color: #FFEBC1;
|
||||||
|
border-color: #FDBF3B;
|
||||||
|
color: #A6750C;
|
||||||
|
}
|
||||||
|
|
||||||
|
#errorExplanation ul { font-size: 0.9em;}
|
||||||
|
#errorExplanation h2, #errorExplanation p { display: none; }
|
||||||
|
|
||||||
|
.conflict-details {font-size:80%;}
|
||||||
|
/***** end Flash & error messages ****/
|
||||||
|
|
||||||
|
|
||||||
|
/*弹出框*/
|
||||||
|
.black_overlay{display:none;position:fixed;top:0px;left:0px;width:100%;height:100%;background-color:black;z-index:1001;-moz-opacity:0.8;opacity:.80;filter:alpha(opacity=80);}
|
||||||
|
.white_content{display:none;position:fixed;top:15%;left:30%;width:420px;height: auto; margin-bottom:20px;padding:16px;border:3px solid #15bccf;background-color:white;z-index:1002;overflow:auto;}
|
||||||
|
.white_content02{display:none;position:fixed;top:15%;left:30%;width:200px;height: auto; margin-bottom:20px;padding:10px;border:3px solid #15bccf;background-color:white;z-index:1002;overflow:auto;}
|
||||||
|
.newhwork_content{ display:none;position:fixed;top:15%;left:30%;width:600px;height: auto; margin-bottom:20px;padding:16px;border:3px solid #15bccf;background-color:white;z-index:1002;overflow:auto;}
|
||||||
|
.floatbox{ width:420px; border:3px solid #15bccf; background:#fff; padding:5px;}
|
||||||
|
a.box_close{ display:block; float:right; width:16px; height:16px; background:url(../images/img_floatbox.png) 0 0 no-repeat;}
|
||||||
|
a:hover.box_close{background:url(../images/img_floatbox.png) -22px 0 no-repeat;}
|
||||||
|
|
||||||
|
div.ke-statusbar{height:1px; border-top:none;}
|
@ -0,0 +1,127 @@
|
|||||||
|
#RSide{ min-height:860px;}
|
||||||
|
/* 左侧信息*/
|
||||||
|
.users_info{background:#fff; padding:10px; width:230px; padding-right:0px; margin-bottom:10px; }
|
||||||
|
.pic_head{ width:214px; height:214px; border:1px solid #cbcbcb; padding:2px; position:relative;}
|
||||||
|
.pic_head:hover{border:1px solid #64bdd9;}
|
||||||
|
.usersphoto_edit{ position:absolute; left:198px; top:200px;}
|
||||||
|
.icon_male{ background:url(../images/pic_uersall.png) 0 0 no-repeat; width:15px; height:15px;}
|
||||||
|
.icon_female{ background:url(../images/pic_uersall.png) 0 -24px no-repeat; width:15px; height:15px;}
|
||||||
|
.pf_intro{ width:222px; margin-top:5px; color:#696969;word-break: break-all; }
|
||||||
|
.leftbox{ width:230px; padding:10px; padding-right:0px; padding-bottom:5px;background:#fff; margin-bottom:10px; margin-right:10px;}
|
||||||
|
.pic_members{ background:url(../images/pic_users.jpg) 0 0 no-repeat; display:block; width:38px; height:38px; border:1px solid #e9edf0; margin-right:5px; margin-bottom:5px;float:left;}
|
||||||
|
.pic_members:hover{border:1px solid #c9c9c9;}
|
||||||
|
/*新建*/
|
||||||
|
.top_new{ height:26px; border-bottom:10px solid #eaebed; padding:10px; background:#fff; float:left; margin-left:10px; width:730px; }
|
||||||
|
.top_new_bg{ background:url(../images/pic_uersall.png) -43px 3px no-repeat; height:26px; width:260px;}
|
||||||
|
.top_newcourses_bg{ background:url(../images/pic_uersall.png) -43px -29px no-repeat; height:28px; width:260px;}
|
||||||
|
.top_newproject_bg{ background:url(../images/pic_uersall.png) -43px -56px no-repeat; height:26px; width:260px;}
|
||||||
|
.newbtn{ height:24px; background:#18ca74; color:#fff; font-size:14px; padding:2px 12px 0 12px;}
|
||||||
|
.newbtn:hover{background: #14ad5a;}
|
||||||
|
a.newbtn_add{ display:block; background:url(../images/pic_uersall.png) -265px 3px no-repeat; height:20px; width:15px;}
|
||||||
|
a.newbtn_t{ font-size:14px; font-weight:bold; color:#fff;}
|
||||||
|
/*留言*/
|
||||||
|
a.icon_face{background:url(../images/public_icon.png) 0px -671px no-repeat; display:block; height:25px; width:40px; padding-left:25px; padding-top:3px; }
|
||||||
|
a:hover.icon_face{background:url(../images/public_icon.png) -79px -671px no-repeat; }
|
||||||
|
.inputUsers_message{ border:1px solid #d2d2d2; width:718px; height:48px; color:#666; padding:5px; margin-bottom:5px;}
|
||||||
|
.inputUsers_message02{ border:1px solid #d2d2d2; width:618px; height:26px; color:#666; padding:5px; margin-bottom:5px; }
|
||||||
|
.message_list_box{ background:#f5f5f5; padding:10px;}
|
||||||
|
.users_pic{ width:27px; height:27px; border:1px solid #e3e3e3;}
|
||||||
|
.users_pic:hover{ border:1px solid #a5a5a5;}
|
||||||
|
.massage_txt{ max-width:360px; color: #666;word-break:break-all;}
|
||||||
|
.massage_time{ color:#8d8d8d; margin-top:5px;}
|
||||||
|
.message_list{ border-bottom:1px dashed #c9c9c9; padding-bottom:10px; margin-bottom:10px;}
|
||||||
|
.message_list_more{ text-align:center; width:720px;}
|
||||||
|
/*课程动态*/
|
||||||
|
.line_box{ width:728px; border:1px solid #d9d9d9; padding-bottom:10px;}
|
||||||
|
.users_courses_list{ height:24px; border-bottom:1px dashed #CCC; margin-bottom:10px;}
|
||||||
|
.users_coursename{max-width:135px; font-weight:bold; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; margin-right:5px; }
|
||||||
|
.course_name{max-width:60px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
.c_grey{ color:#8d8d8d;}
|
||||||
|
.users_courses_txt{max-width:330px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
.users_top{ height:39px; border-bottom:1px solid #d9d9d9; margin-bottom:10px;}
|
||||||
|
.users_h4{border-bottom:1px solid #d9d9d9; height:29px; padding:10px 0 0 10px; margin-bottom:10px; }
|
||||||
|
/*弹框*/
|
||||||
|
.white_content_users{display:none;position:fixed;top:45%;left:45%;width:210px;height: auto; margin-bottom:20px;padding:10px;border:3px solid #15bccf;background-color:white;z-index:1002;overflow:auto;}
|
||||||
|
a.box_close{background:url(../images/img_floatbox.png) -22px 0 no-repeat;}
|
||||||
|
/*我的课程*/
|
||||||
|
.courses_top{ height:27px; border-bottom:3px solid #ebebeb;}
|
||||||
|
.courses_h2{ font-size:16px; font-weight:bold; color:#64bddb; border-bottom:3px solid #64bddb; padding-bottom:3px; padding-right:3px;}
|
||||||
|
.courses_select{}
|
||||||
|
a.select_btn{ border:1px solid #acacac; padding:0px 10px; color:#989898; display:block;}
|
||||||
|
a.select_btn:hover{ background:#64bddb; color:#fff;}
|
||||||
|
a.select_btn_select{ background:#64bddb; color:#fff;}
|
||||||
|
.courses_list_pic{ border:1px solid #ede7e9; width:64px; height:64px; padding:1px;}
|
||||||
|
.courses_list_pic:hover{border:1px solid #64bdd9;}
|
||||||
|
.courses_list_title{ max-width:500px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
.pic_eye_blue{display:block; background:url(../images/pic_uersall.png) -372px 3px no-repeat; width:16px; height:15px; }
|
||||||
|
.pic_eye_grey{display:block; background:url(../images/pic_uersall.png) -372px -10px no-repeat; width:16px; height:15px; }
|
||||||
|
.td_w70{ width:70px;}
|
||||||
|
.td_w60{ width:60px;}
|
||||||
|
.td_w110{ width:110px;}
|
||||||
|
.mt20{ margin-top:20px;}
|
||||||
|
.courses_list{ padding-bottom:10px; }
|
||||||
|
.courses_list_table{ color:#6e6e6e;}
|
||||||
|
/****翻页***/
|
||||||
|
.wlist{float:right;}
|
||||||
|
.wlist li{float:left;}
|
||||||
|
.wlist a{ float:left; border:1px solid #64bdd9; padding:0 5px; margin-left:3px; color:#64bdd9;}
|
||||||
|
.wlist a:hover{border:1px solid #64bdd9; background-color:#64bdd9; color:#fff; text-decoration:none;}
|
||||||
|
.wlist_select a { background-color:#48aac9; color:#fff;}
|
||||||
|
/* 设置 */
|
||||||
|
#users_setting{clear:both;width:730px;/*滑动门的宽度*/}
|
||||||
|
/* TAB 切换效果 */
|
||||||
|
.users_tb_{ border-bottom:3px solid #CCC; height:26px; }
|
||||||
|
.users_tb_ ul{height:26px; }
|
||||||
|
.users_tb_ li{float:left;height:26px;width: 90px;cursor:pointer; font-size:14px; text-align:center; }
|
||||||
|
/* 控制显示与隐藏css类 */
|
||||||
|
.users_normaltab { color:#666; }
|
||||||
|
.users_hovertab { color:#64bdd9; border-bottom:3px solid #64bdd9; font-weight:bold;}
|
||||||
|
.users_normaltab a { color:#64bdd9 ; }
|
||||||
|
.users_hovertab a{color:#fff; background-color:#64bdd9; text-decoration:none;}
|
||||||
|
.users_dis{display:block; }
|
||||||
|
.users_undis{display:none;}
|
||||||
|
.users_ctt{ font-size:14px; color:#666; margin-top:10px;}
|
||||||
|
.setting_left{ width:85px; text-align:right; float:left;}
|
||||||
|
.setting_left li{ height:28px;line-height:28px;}
|
||||||
|
.setting_right{width:500px; text-align:left; float:left; margin-left:8px;}
|
||||||
|
.setting_right li{ height:28px;line-height:28px;}
|
||||||
|
.users_ctt ul li{ margin-bottom:10px;}
|
||||||
|
.users_ctt input,.users_ctt select,.users_ctt textarea{ border:1px solid #CCC;}
|
||||||
|
.users_ctt input,.users_ctt select,.users_ctt option{ height:26px;}
|
||||||
|
.users_ctt input,.users_ctt textarea{ margin-left:2px;}
|
||||||
|
.users_ctt textarea{ margin-bottom:none;}
|
||||||
|
.w450{ width:450px;}
|
||||||
|
.w210{ width:200px;}
|
||||||
|
.w70{ width:70px;}
|
||||||
|
.h200{ height:200px;}
|
||||||
|
/* 个人主页*/
|
||||||
|
a.gz_btn{display:block; background:url(../images/pic_uersall.png) -318px -25px no-repeat; width:33px; height:18px; border:1px solid #cdcdcd; color:#333333; padding:0px 0 0 18px;}
|
||||||
|
a:hover.gz_btn{ color:#ff5722;}
|
||||||
|
a.qx_btn{display:block; background:url(../images/pic_uersall.png) -318px -47px no-repeat; width:33px; height:18px; border:1px solid #cdcdcd; color:#333333; padding:0px 0 0 18px;}
|
||||||
|
a:hover.qx_btn{color:#64bdd9;}
|
||||||
|
a.c_lgrey{ color:#CCC;}
|
||||||
|
a:hover.c_lgrey{ color:#3ca5c6;}
|
||||||
|
.leftbox_ul_left{ width:60px; float:left; text-align:right; }
|
||||||
|
.leftbox_ul_right{ width:155px; float:left; margin-left:10px; }
|
||||||
|
.leftbox_ul_left li,.leftbox_ul_right li{ margin-bottom:5px;}
|
||||||
|
.c_dgrey{ color:#696969;}
|
||||||
|
.home_courses_list{ width:364px; margin-bottom:10px; }
|
||||||
|
.home_list_title{ max-width:260px; font-size:14px; font-weight:bold;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
.users_list{ }
|
||||||
|
.users_course_intro{ width:530px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
|
||||||
|
/* 20150506上传头像*/
|
||||||
|
.uppicBox{ width:265px; height:265px; background:#f2f2f5; float:left; color:#666; text-align:center;}
|
||||||
|
.showpicBox{width:133px; height:250px; background:#f2f2f5; float:left; margin-left:20px; text-align:center; padding-top:15px; color:#666;}
|
||||||
|
.mr2{ margin-right:2px;}
|
||||||
|
.uppic_btn{border:none; width:150px; background:none; margin-bottom:5px; color:#666; margin-top:105px;}
|
||||||
|
/* 新建作品*/
|
||||||
|
.mr8{ margin-right:8px;}
|
||||||
|
.mt2{ margin-top:2px;}
|
||||||
|
.fans_sign{ width:560px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
.newhwork_div ul li{ margin-bottom:10px; font-size:14px; color:#666;}
|
||||||
|
.newhwork_div input,.newhwork_div select{ height:26px;border:1px solid #CCC; }
|
||||||
|
.newhwork_div textarea{border:1px solid #CCC;}
|
||||||
|
.w460{ width:460px;}
|
||||||
|
|
||||||
|
a.hidepic>img{display:none;}
|
Loading…
Reference in new issue