@ -0,0 +1,10 @@
|
|||||||
|
<div class="por_footer_con">
|
||||||
|
<ul>
|
||||||
|
<li ><a href="<%= about_us_path %>" target="_blank" class="" >关于我们<span>|</span></a></li>
|
||||||
|
<li ><a href="<%= agreement_path %>" target="_blank" class="" >服务协议<span>|</span></a></li>
|
||||||
|
<li ><a href="http://forge.trustie.net/forums/1/memos/1168" target="_blank" class="" >帮助中心<span>|</span></a></li>
|
||||||
|
<li ><a href="<%= forums_path(:reorder_complex=>'desc')%>" target="_blank" class="" > 贴吧交流</a></li>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</ul>
|
||||||
|
<p>Copyright 2007~2016, All Rights Reserved 湘ICP备09019772</p>
|
||||||
|
</div>
|
@ -0,0 +1,43 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title><%= h html_title %></title>
|
||||||
|
<meta name="description" content="<%= Redmine::Info.app_name %>" />
|
||||||
|
<meta name="keywords" content="issue,bug,tracker" />
|
||||||
|
<%= csrf_meta_tag %>
|
||||||
|
<%= favicon %>
|
||||||
|
<%= javascript_heads %>
|
||||||
|
<%= heads_for_theme %>
|
||||||
|
<%= stylesheet_link_tag 'new_user', 'public', 'org_custom','jquery/jquery-ui-1.9.2' %>
|
||||||
|
<%= call_hook :view_layouts_base_html_head %>
|
||||||
|
<%= yield :header_tags -%>
|
||||||
|
<!-- MathJax的配置 -->
|
||||||
|
<%=render :partial => "math_js" %>
|
||||||
|
</head>
|
||||||
|
<body style="background: #fff">
|
||||||
|
<% update_visiti_count @organization %>
|
||||||
|
<header id="por_header">
|
||||||
|
<%= render :partial => 'org_custom_header', :locals => {:subfield_content => @subfield_content} %>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<%# 内容开始 %>
|
||||||
|
<div id="por_container">
|
||||||
|
<%= render_flash_messages %>
|
||||||
|
<%= yield %>
|
||||||
|
<%= call_hook :view_layouts_base_content %>
|
||||||
|
</div>
|
||||||
|
<%# 内容结束 %>
|
||||||
|
<%# 页面底部 %>
|
||||||
|
<footer class="por_footer"><%= render :partial => "layouts/org_custom_footer" %></footer>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<%# 弹框 %>
|
||||||
|
<div id="ajax-modal" style="display:none;"></div>
|
||||||
|
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
|
||||||
|
<%= call_hook :view_layouts_base_body_bottom %>
|
||||||
|
<%# JS提前加载 %>
|
||||||
|
<%= javascript_include_tag 'cookie','project', 'organization','header','prettify','select_list_move','org'%>
|
||||||
|
<%= javascript_include_tag 'attachments' %>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,34 @@
|
|||||||
|
<div>
|
||||||
|
<input class="postDetailInput fl mr15" name="org_document_comment[title]" id="document_title" style="resize:none;" onfocus = "$('#org_document_editor').show();" placeholder="请输入文章标题"></input>
|
||||||
|
</div>
|
||||||
|
<div id="doc_title_hint">
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="" >
|
||||||
|
<div class="mt10">
|
||||||
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" style="display: none" nhname='description_textarea' name="org_document_comment[content]"></textarea>
|
||||||
|
<%#= kindeditor_tag 'org_document_comment[content]','', :editor_id => 'org_document_description_editor', :height => "150px" %>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<p id="homework_course_id_span" class="c_red mt5"></p>
|
||||||
|
<p id="e_tip" class="c_grey"></p>
|
||||||
|
<p id="e_tips" class="c_grey"></p>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="f14 fontGrey2">置顶显示 :
|
||||||
|
<input type="checkbox" id="is_public" name="org_document_comment[status]" class="ml3" />(仅限模式二)
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="mt10">
|
||||||
|
<div class="fl" id="topic_attachments">
|
||||||
|
<%= render :partial => 'org_document_comments/attachment', :locals => {:container => nil} %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
|
||||||
|
<div class="mt5">
|
||||||
|
<a href="javascript:void(0);" class="BlueCirBtnMini fr" id="new_topic_submit_btn">确定</a>
|
||||||
|
<span class="fr mr10 mt3">或</span>
|
||||||
|
<a href="javascript:void(0);" onclick="cancel_create_org_document();" id="new_topic_cancel_btn" class="fr mr10 mt3">取消</a>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -1,10 +1,9 @@
|
|||||||
<% if @res %>
|
<% if @res %>
|
||||||
$("#org_subfield_list").html("");
|
$("#org_subfield_list").html("");
|
||||||
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list',
|
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list', :locals => {:subfields => subfield_to_addmin?(@organization)}) %>");
|
||||||
:locals => {:subfields => @organization.org_subfields.order("priority") }) %>");
|
|
||||||
$("#sub_field_left_lists").html("");
|
$("#sub_field_left_lists").html("");
|
||||||
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
||||||
$("#org_excellent_teachers").html("<%= escape_javascript(render :partial => 'organizations/setting_excellent_teachers') %>");
|
$("#org_custom_admin").html("<%= escape_javascript(render :partial => 'organizations/org_custom_admin') %>");
|
||||||
<% end %>
|
<% end %>
|
||||||
$("#subfield_name").val("");
|
$("#subfield_name").val("");
|
||||||
$("#sub_dir").val("");
|
$("#sub_dir").val("");
|
@ -1,6 +1,5 @@
|
|||||||
$("#org_subfield_list").html("");
|
$("#org_subfield_list").html("");
|
||||||
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list',
|
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list', :locals => {:subfields => subfield_to_addmin?(@organization)}) %>");
|
||||||
:locals => {:subfields => @organization.org_subfields.order("priority") }) %>");
|
|
||||||
$("#sub_field_left_lists").html("");
|
$("#sub_field_left_lists").html("");
|
||||||
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
||||||
$("#org_excellent_teachers").html("<%= escape_javascript(render :partial => 'organizations/setting_excellent_teachers') %>");
|
$("#org_custom_admin").html("<%= escape_javascript(render :partial => 'organizations/org_custom_admin') %>");
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
$("#subfield_show_<%= @subfield.id %>").html("<%= @subfield.name %>");
|
$("#subfield_show_<%= @subfield.id %>").html("<%= @subfield.name %>");
|
||||||
$("#sub_field_left_lists").html("");
|
$("#sub_field_left_lists").html("");
|
||||||
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
||||||
|
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list', :locals => {:subfields => subfield_to_addmin?(@organization)}) %>");
|
@ -1,2 +1,2 @@
|
|||||||
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list',:locals => {:subfields => @organization.org_subfields.order("priority")}) %>");
|
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list', :locals => {:subfields => subfield_to_addmin?(@organization)}) %>");
|
||||||
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<% if !field.subfield_subdomain_dir.nil? %> <!--讨论帖子-->
|
<% if !field.subfield_subdomain_dir.nil? %> <!--讨论帖子-->
|
||||||
<% if !request.local? and Secdomain.where("sub_type=2 and pid=?", @organization.id).count > 0 and Secdomain.where("sub_type=2 and pid=?", @organization.id).map(&:subname).include?(request.subdomain) %>
|
<% if !request.local? and Secdomain.where("sub_type=2 and pid=?", @organization.id).count > 0 and Secdomain.where("sub_type=2 and pid=?", @organization.id).map(&:subname).include?(request.subdomain) %>
|
||||||
<%= link_to "更多", show_subfield_without_id_path(:sub_dir_name => field.subfield_subdomain_dir.name), :class => "more" , :target => "_blank" %>
|
<%= link_to "更多", show_subfield_without_id_path(:sub_dir_name => field.subfield_subdomain_dir.name), :class => "f12 fontGrey2 fr" , :target => "_blank" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to "更多", show_org_subfield_organization_path(:id => @organization.id, :sub_dir_name => field.subfield_subdomain_dir.name), :class => "more" , :target => "_blank" %>
|
<%= link_to "更多", show_org_subfield_organization_path(:id => @organization.id, :sub_dir_name => field.subfield_subdomain_dir.name), :class => "f12 fontGrey2 fr" , :target => "_blank" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to "更多", organization_path(@organization, :org_subfield_id => field.id), :class => "more" , :target => "_blank" %>
|
<%= link_to "更多", organization_path(@organization, :org_subfield_id => field.id), :class => "f12 fontGrey2 fr" , :target => "_blank" %>
|
||||||
<% end %>
|
<% end %>
|
@ -0,0 +1,8 @@
|
|||||||
|
<% if @org_logo_attchment.blank? || !User.current.logged? %>
|
||||||
|
<img src="/images/org_new_style/logo.jpg" width="367" height="63" class="sn-mt13 sn-fl" alt=""/>
|
||||||
|
<% else %>
|
||||||
|
<img src="/attachments/<%= @org_logo_attchment.id %>/<%= @org_logo_attchment.filename %>" width="367" height="63" class="sn-mt13 sn-fl" alt="">
|
||||||
|
<% end %>
|
||||||
|
<% if User.current.admin_of_org?(@organization) %>
|
||||||
|
<a href="#" class="sn-logo-add" title="点击替换LOGO" onclick="org_new_files_upload();"></a>
|
||||||
|
<% end %>
|
@ -0,0 +1,24 @@
|
|||||||
|
<% containers.each do |container| %>
|
||||||
|
<div class="teacher-list-row">
|
||||||
|
<div>
|
||||||
|
<div class="teacher-avatar">
|
||||||
|
<%= link_to image_tag(url_to_avatar(container), :width => "90", :height => "90"), container.class == Course ? course_path(container) : project_path(container) %>
|
||||||
|
</div>
|
||||||
|
<div class="fl">
|
||||||
|
<div class="ml25 mb20"><span class="teacher-name"><%=link_to container.name, container.class == Course ? course_path(container) : project_path(container) %></span></div>
|
||||||
|
<div class="teacher-social-block">
|
||||||
|
<div class="block-num"><%= container.members.count %></div>
|
||||||
|
<div class="block-title">成员</div>
|
||||||
|
</div>
|
||||||
|
<div class="block-slice"></div>
|
||||||
|
<div class="teacher-social-block">
|
||||||
|
<div class="block-num"><%= container.attachments.count %></div>
|
||||||
|
<div class="block-title">资源</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" class="fr teacher-select" onclick="admin_hide_org($(this),'<%= container.id %>');" id="hide_<%= container.id %>"><%= container.class == Course ? (container.is_excellent == 0 ? "设为精品" : "取消精品") : (container.hot ==0 ? "设为热门" : "取消热门") %></a>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
<% if allow_to_create?(@organization, "Comptec") %>
|
||||||
|
<li class="fl mr15">
|
||||||
|
<input type="radio" id="orgTec" value="Comptec" name="field_type" />
|
||||||
|
<label for="Comptec">教师</label>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% if allow_to_create?(@organization, "Compstu") %>
|
||||||
|
<li class="fl mr15">
|
||||||
|
<input type="radio" id="orgStu" value="Compstu" name="field_type" />
|
||||||
|
<label for="Comptec">学生</label>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% if allow_to_create?(@organization, "Comppro") %>
|
||||||
|
<li class="fl mr15">
|
||||||
|
<input type="radio" id="orgPro" value="Comppro" name="field_type" />
|
||||||
|
<label for="Comppro">热门项目</label>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% if allow_to_create?(@organization, "Compcou") %>
|
||||||
|
<li class="fl mr15">
|
||||||
|
<input type="radio" id="orgCou" value="Compcou" name="field_type" />
|
||||||
|
<label for="Compcou">精品课程</label>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% if allow_to_create?(@organization, "Compact") %>
|
||||||
|
<li class="fl mr15">
|
||||||
|
<input type="radio" id="orgAct" value="Compact" name="field_type" />
|
||||||
|
<label for="Compact">最新动态</label>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
@ -0,0 +1,96 @@
|
|||||||
|
<div class="por_header_top">
|
||||||
|
<div class="por_header_con" >
|
||||||
|
<%= image_tag(url_to_avatar(@organization), width:"67", height: "61", :id => 'nh_user_tx', :class => "por_logo fl ", :target => "_blank") %>
|
||||||
|
<% if User.current.logged? %>
|
||||||
|
<div class="navHomepageProfile" id="navHomepageProfile">
|
||||||
|
<ul>
|
||||||
|
<li class="homepageProfileMenuIcon fr mt15" id="homepageProfileMenuIcon">
|
||||||
|
<%= link_to "<div class='user-img' id='user_avatar'>#{image_tag(url_to_avatar(User.current), :width =>"40", :height => "40", :class => "portraitRadius",:alt=>"头像", :id => "nh_user_logo")}</div>".html_safe, user_activities_path(User.current.id) %>
|
||||||
|
<ul class="topnav_login_list none sn-f12" id="topnav_login_list" style="text-align:left;">
|
||||||
|
<li><%= link_to "修改资料", my_account_path, :class => "menuGrey"%></li>
|
||||||
|
<li><%= link_to "我的组织", user_organizations_user_path(:id => User.current.id), :class => "menuGrey"%></li>
|
||||||
|
<li><%= link_to "新建组织", new_organization_path, :class => "menuGrey"%></li>
|
||||||
|
<li><%= link_to "退出", logout_url_without_domain, :class => "menuGrey", :method => "post"%></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<ul class="por_login fr">
|
||||||
|
<li><a href="<%= signin_url_without_domain %>" target="_blank" class=" ">登录</a></li>
|
||||||
|
<li><a href="<%= register_url_without_domain %>" target="_blank" class=" ">注册</a></li>
|
||||||
|
</ul>
|
||||||
|
<% end %>
|
||||||
|
<div class="por_search fr">
|
||||||
|
<input type="text" class="pro_input_search fl" value="00000" />
|
||||||
|
<a href="javascript:void(0);" class="por_search_btn fl"></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="por_nav" >
|
||||||
|
<ul >
|
||||||
|
<% subfield_content.each do |field| %>
|
||||||
|
<% if is_default_field?(field) %>
|
||||||
|
<% case field.name %>
|
||||||
|
<% when 'activity' %>
|
||||||
|
<li style="display:<%= field.hide == 0 ? 'block':'none' %>;">
|
||||||
|
<%= link_to "首页", organization_path(@organization), :class => "por_index_act" %>
|
||||||
|
</li>
|
||||||
|
<% when 'course' %>
|
||||||
|
<% when 'project' %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% else %>
|
||||||
|
<% if field.field_type == "Post" && field.hide == 0 %>
|
||||||
|
<li>
|
||||||
|
<% if !field.subfield_subdomain_dir.nil? %> <!--讨论帖子-->
|
||||||
|
<% if !request.local? and Secdomain.where("sub_type=2 and pid=?", @organization.id).count > 0 and Secdomain.where("sub_type=2 and pid=?", @organization.id).map(&:subname).include?(request.subdomain) %>
|
||||||
|
<%= link_to field.name, show_subfield_without_id_path(:sub_dir_name => field.subfield_subdomain_dir.name), :class => "sn-link-white", :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to field.name, show_org_subfield_organization_path(:id => @organization.id, :sub_dir_name => field.subfield_subdomain_dir.name), :class => "sn-link-white", :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to field.name, organization_path(@organization, :org_subfield_id => field.id), :class => "sn-link-white", :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
</li>
|
||||||
|
<!--二级目录-->
|
||||||
|
<div class="sn-row sn-subnav-position sn-grey-opacity" style="display:none;">
|
||||||
|
<ul class="sn-sub-nav" style="display:<%= if_hidden_subdomain( field) ? 'block':'none' %>;">
|
||||||
|
<% field.sub_domains.each do |subdomain| %>
|
||||||
|
<li><%=link_to subdomain.name, org_subfield_sub_domain_sub_document_comments_path(subdomain, :org_subfield_id => field.id), :class => "sn-link-grey" %></li>
|
||||||
|
<li class="sn-subnav-slice">|</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<% elsif field.field_type == "Resource" && field.hide == 0 %>
|
||||||
|
<li class="nav-element">
|
||||||
|
<%= link_to field.name, org_subfield_files_path(field), :class => "sn-link-white", :target => "_blank" %>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
<% if User.current.admin_of_org?(@organization) %>
|
||||||
|
<a href="<%= setting_organization_path(@organization) %>" class="link-black fr por_edit_index" target="_blank">配置</a>
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div><!--por_nav end-->
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
$("#navHomepageProfile").mouseenter(function(){
|
||||||
|
$("#homepageProfileMenuIcon").addClass("homepageProfileMenuIconhover");
|
||||||
|
$("#topnav_login_list").show();
|
||||||
|
});
|
||||||
|
$("#navHomepageProfile").mouseleave(function(){
|
||||||
|
$("#homepageProfileMenuIcon").removeClass("homepageProfileMenuIconhover");
|
||||||
|
$("#topnav_login_list").hide();
|
||||||
|
});
|
||||||
|
function signout(){
|
||||||
|
$.post(
|
||||||
|
'<%= signout_path%>',
|
||||||
|
{}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
</script>
|
@ -0,0 +1,170 @@
|
|||||||
|
<div class="por_hotbar clear" style="display:<%= field.hide == 0 ? 'block':'none' %>;">
|
||||||
|
<% if acts.blank? %>
|
||||||
|
<h2 class="por_h2_index clear"><%= field.name %></h2>
|
||||||
|
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||||
|
<% else %>
|
||||||
|
<h2 class="por_h2_index clear"><%= field.name %>
|
||||||
|
<%= render :partial => 'organizations/link_subfield_more', :locals => {:field => field} %>
|
||||||
|
</h2>
|
||||||
|
<ul class="por_hotbar_left fl">
|
||||||
|
<% if acts.count > 1 %>
|
||||||
|
<% acts[1..2].each do |activity| %>
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<li>
|
||||||
|
<%= link_to "<span class='por_icons_hot fl'>热门推荐</span>#{document.title}".html_safe, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), class: 'por_hot_title link-black', :target => "_blank", :title => document.title %>
|
||||||
|
<p class="mt5 mb5"><span class="por_time mr10"><%= time_from_now(document.created_at) %></span>
|
||||||
|
<%= link_to document.creator.show_name, user_path(document.creator), :class => "por_hot_name link-blue", :target => "_blank" %>
|
||||||
|
</p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => document.id, :content=> document.content, :maxheight => 60, :maxwordsnum => 80, :maxwidth => 0, :cl => "por_hot_txt"} %>
|
||||||
|
</li>
|
||||||
|
<% else activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = activity.org_act %>
|
||||||
|
<% content = message.parent_id.nil? ? message.content : message.parent.content %>
|
||||||
|
<% title = message.parent_id.nil? ? message.subject : message.parent.subject %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<li>
|
||||||
|
<%= link_to "<span class='por_icons_hot fl'>热门推荐</span>#{title}".html_safe, board_message_url_in_org(message.board.id,message.id), class: 'por_hot_title link-black', :target => "_blank", :title => title %>
|
||||||
|
<p class="mt5 mb5"><span class="por_time mr10"><%= time_from_now(message.created_on) %></span>
|
||||||
|
<%= link_to message.author.show_name, user_path(message.author), :class => "por_hot_name link-blue", :target => "_blank" %>
|
||||||
|
</p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> content, :maxheight => 60, :maxwordsnum => 80, :maxwidth => 0, :cl => "por_hot_txt"} %>
|
||||||
|
</li>
|
||||||
|
<% else %>
|
||||||
|
<li>
|
||||||
|
<%= link_to "<span class='por_icons_hot fl'>热门推荐</span>#{title}".html_safe, board_message_path(message.board.id,message.id), class: 'por_hot_title link-black', :target => "_blank", :title => title %>
|
||||||
|
<p class="mt5 mb5"><span class="por_time mr10"><%= time_from_now(message.created_on) %></span>
|
||||||
|
<%= link_to message.author.show_name, user_path(message.author), :class => "por_hot_name link-blue", :target => "_blank" %>
|
||||||
|
</p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> content, :maxheight => 60, :maxwordsnum => 80, :maxwidth => 0, :cl => "por_hot_txt"} %>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = activity.org_act %>
|
||||||
|
<li>
|
||||||
|
<%= link_to "<span class='por_icons_hot fl'>热门推荐</span>#{news.title}".html_safe, news_path(news), class: 'por_hot_title link-black', :target => "_blank", :title => news.title %>
|
||||||
|
<p class="mt5 mb5"><span class="por_time mr10"><%= time_from_now(news.created_on) %></span>
|
||||||
|
<%= link_to news.author.show_name, user_path(news.author), :class => "por_hot_name link-blue", :target => "_blank" %>
|
||||||
|
</p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => news.id, :content=> news.description, :maxheight => 60, :maxwordsnum => 80, :maxwidth => 0, :cl => "por_hot_txt"} %>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% if acts.count > 3 %>
|
||||||
|
<% activity = acts[3] %>
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<li>
|
||||||
|
<%= link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), class: 'por_hot_title link-black', :target => "_blank", :title => document.title %>
|
||||||
|
<p class="mt5 mb5"><span class="por_time mr10"><%= time_from_now(document.created_at) %></span>
|
||||||
|
<%= link_to document.creator.show_name, user_path(document.creator), :class => "por_hot_name link-blue", :target => "_blank" %>
|
||||||
|
</p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => document.id, :content=> document.content, :maxheight => 60, :maxwordsnum => 80, :maxwidth => 0, :cl => "por_hot_txt"} %>
|
||||||
|
</li>
|
||||||
|
<% else activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = activity.org_act %>
|
||||||
|
<% content = message.parent_id.nil? ? message.content : message.parent.content %>
|
||||||
|
<% title = message.parent_id.nil? ? message.subject : message.parent.subject %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<li>
|
||||||
|
<%= link_to title, board_message_url_in_org(message.board.id,message.id), class: 'por_hot_title link-black', :target => "_blank", :title => title %>
|
||||||
|
<p class="mt5 mb5"><span class="por_time mr10"><%= time_from_now(message.created_on) %></span>
|
||||||
|
<%= link_to message.author.show_name, user_path(message.author), :class => "por_hot_name link-blue", :target => "_blank" %>
|
||||||
|
</p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> content, :maxheight => 60, :maxwordsnum => 80, :maxwidth => 0, :cl => "por_hot_txt"} %>
|
||||||
|
</li>
|
||||||
|
<% else %>
|
||||||
|
<li>
|
||||||
|
<%= link_to title, board_message_path(message.board.id,message.id), class: 'por_hot_title link-black', :target => "_blank", :title => title %>
|
||||||
|
<p class="mt5 mb5"><span class="por_time mr10"><%= time_from_now(message.created_on) %></span>
|
||||||
|
<%= link_to message.author.show_name, user_path(message.author), :class => "por_hot_name link-blue", :target => "_blank" %>
|
||||||
|
</p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> content, :maxheight => 60, :maxwordsnum => 80, :maxwidth => 0, :cl => "por_hot_txt"} %>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = activity.org_act %>
|
||||||
|
<li>
|
||||||
|
<%= link_to news.title, news_path(news), class: 'por_hot_title link-black', :target => "_blank", :title => news.title %>
|
||||||
|
<p class="mt5 mb5"><span class="por_time mr10"><%= time_from_now(news.created_on) %></span>
|
||||||
|
<%= link_to news.author.show_name, user_path(news.author), :class => "por_hot_name link-blue", :target => "_blank" %>
|
||||||
|
</p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => news.id, :content=> news.description, :maxheight => 60, :maxwordsnum => 80, :maxwidth => 0, :cl => "por_hot_txt"} %>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<%# if acts.count > 3 %>
|
||||||
|
<% activity = acts.first %>
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<div class="por_hotbar_right fl">
|
||||||
|
<% if get_image_path_from_content(document.content).nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-1.jpg", :width => "299", :height => "246"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{get_image_path_from_content(document.content)}", :width => "299", :height => "246"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<%= link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :class => 'por_hot_title link-black_r', :target => "_blank", :title => document.title %>
|
||||||
|
<p class="mt5 mb5"><span class="por_time mr10"><%= time_from_now(document.created_at) %></span><%= link_to document.creator.show_name, user_path(document.creator), :class => "por_hot_name link-blue", :target => "_blank" %></p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => document.id, :content=> document.content, :maxheight => 80, :maxwordsnum => 90, :maxwidth => 0, :cl => "por_hot_txt_r"} %>
|
||||||
|
</div>
|
||||||
|
<% else activity.container_type == 'OrgSubfield' %>
|
||||||
|
<!--发送过来的帖子-->
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = activity.org_act %>
|
||||||
|
<% content = message.parent_id.nil? ? message.content : message.parent.content %>
|
||||||
|
<% title = message.parent_id.nil? ? message.subject : message.parent.subject %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<div class="por_hotbar_right fl">
|
||||||
|
<% if get_image_path_from_content(content).nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-1.jpg", :width => "299", :height => "246"), board_message_url_in_org(message.board.id, message.id), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{get_image_path_from_content(content)}", :width => "299", :height => "246"), board_message_url_in_org(message.board.id, message.id), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<%= link_to title, board_message_url_in_org(message.board.id, message.id), :class => 'por_hot_title link-black_r', :target => "_blank", :title => title %>
|
||||||
|
<p class="mt5 mb5"><span class="por_time mr10"><%= time_from_now(message.created_on) %></span><%= link_to message.author.show_name, user_path(message.author), :class => "por_hot_name link-blue", :target => "_blank" %></p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> content, :maxheight => 80, :maxwordsnum => 90, :maxwidth => 0, :cl => "por_hot_txt_r"} %>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<div class="por_hotbar_right fl">
|
||||||
|
<% if get_image_path_from_content(document.content).nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-1.jpg", :width => "299", :height => "246"), board_message_path(message.board.id, message.id), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{get_image_path_from_content(content)}", :width => "299", :height => "246"), board_message_path(message.board.id, message.id), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<%= link_to title, board_message_path(message.board.id, message.id), :class => 'por_hot_title link-black_r', :target => "_blank", :title => title %>
|
||||||
|
<p class="mt5 mb5"><span class="por_time mr10"><%= time_from_now(message.created_on) %></span><%= link_to message.author.show_name, user_path(message.author), :class => "por_hot_name link-blue", :target => "_blank" %></p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> content, :maxheight => 80, :maxwordsnum => 90, :maxwidth => 0, :cl => "por_hot_txt_r"} %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = activity.org_act %>
|
||||||
|
<% path = get_image_path_from_content(news.description) %>
|
||||||
|
<div class="por_hotbar_right fl">
|
||||||
|
<% if path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-1.jpg", :width => "299", :height => "246"), news_path(news), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{path}", :width => "299", :height => "246"), news_path(news), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<%= link_to news.title, news_path(news), :class => 'por_hot_title link-black_r', :target => "_blank", :title => news.title %>
|
||||||
|
<p class="mt5 mb5"><span class="por_time mr10"><%= time_from_now(news.created_on) %></span><%= link_to news.author.show_name, user_path(news.author), :class => "por_hot_name link-blue", :target => "_blank" %></p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => news.id, :content=> news.description, :maxheight => 80, :maxwordsnum => 90, :maxwidth => 0, :cl => "por_hot_txt_r"} %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<%# end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div><!--por_hotbar end-->
|
@ -0,0 +1,212 @@
|
|||||||
|
<div class="por_course mt10 clear" style="display:<%= field.hide == 0 ? 'block':'none' %>;">
|
||||||
|
<% if is_default_field?(field) %>
|
||||||
|
<% case field.name %>
|
||||||
|
<% when 'course' %>
|
||||||
|
<h2 class="por_h2_index clear">课程动态</h2>
|
||||||
|
<% if @course_acts.blank? %>
|
||||||
|
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||||
|
<% else %>
|
||||||
|
<% @course_acts.first(4).each do |act| %>
|
||||||
|
<% if act.org_act_type == "HomeworkCommon" %>
|
||||||
|
<% activity = act.org_act %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="por_course_bar fl clear">
|
||||||
|
<%= link_to activity.name.to_s, student_work_index_url_in_org(activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.name.to_s %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), student_work_index_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% end %>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => activity.id, :content=> activity.description, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
||||||
|
<span class=" por_course_time"><%= time_from_now(activity.updated_at) %></span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Message" %>
|
||||||
|
<% activity = act.org_act %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
||||||
|
<div class="por_course_bar fl clear">
|
||||||
|
<%= link_to activity.parent_id.nil? ? activity.subject : activity.parent.subject, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.parent_id.nil? ? activity.subject : activity.parent.subject %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% end %>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => activity.id, :content=> activity.description, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
||||||
|
<span class=" por_course_time"><%= time_from_now activity.updated_on %></span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "News" %>
|
||||||
|
<% activity = News.find(act.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="por_course_bar fl clear">
|
||||||
|
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.title %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), news_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), news_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% end %>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => activity.id, :content=> activity.description, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
||||||
|
<span class=" por_course_time"><%= time_from_now activity.created_on %></span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Poll" %>
|
||||||
|
<% activity = act.org_act %>
|
||||||
|
<% has_commit = has_commit_poll?(activity.id ,User.current)%>
|
||||||
|
<% poll_name = activity.polls_name.empty? ? l(:label_poll_new) : activity.polls_name%>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.polls_description) %>
|
||||||
|
<% if ( activity.polls_status==2) %>
|
||||||
|
<div class="por_course_bar fl clear">
|
||||||
|
<% if has_commit %>
|
||||||
|
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank', :class => "por_course_title link-black", :title => poll_name %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to poll_name, Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => '_blank', :class => "por_course_title link-black", :title => poll_name %>
|
||||||
|
<% end %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), Setting.protocol + "://" + Setting.host_name + "/poll/" + activity.id.to_s + "/poll_result", :target => "_blank", :class =>"fl" %>
|
||||||
|
<% end %>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => activity.id, :content=> activity.polls_description, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
||||||
|
<span class=" por_course_time"><%= time_from_now activity.published_at %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% when 'project' %>
|
||||||
|
<h2 class="por_h2_index clear">项目动态</h2>
|
||||||
|
<% if @project_acts.blank? %>
|
||||||
|
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||||
|
<% else %>
|
||||||
|
<% @project_acts.first(4).each do |act| %>
|
||||||
|
<% if act.org_act_type == "Issue" %>
|
||||||
|
<% activity = act.org_act %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="por_course_bar fl clear">
|
||||||
|
<%= link_to activity.subject, issue_url_in_org(activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.subject %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), issue_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), issue_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% end %>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => activity.id, :content=> activity.description, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
||||||
|
<span class=" por_course_time"><%= time_from_now activity.updated_on %></span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "Message" %>
|
||||||
|
<% activity = act.org_act %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.content) %>
|
||||||
|
<% subject = activity.parent_id.nil? ? activity.subject : activity.parent.subject %>
|
||||||
|
<div class="por_course_bar fl clear">
|
||||||
|
<%= link_to subject, board_message_url_in_org(activity.board_id, activity.id), :target => '_blank', :class => "por_course_title link-black", :title => subject %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), board_message_url_in_org(activity.board_id, activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% end %>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => activity.id, :content=> activity.content, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
||||||
|
<span class=" por_course_time"><%= time_from_now activity.updated_on %></span>
|
||||||
|
</div>
|
||||||
|
<% elsif act.org_act_type == "News" %>
|
||||||
|
<% activity = act.org_act %>
|
||||||
|
<% iamge_path = get_image_path_from_content(activity.description) %>
|
||||||
|
<div class="por_course_bar fl clear">
|
||||||
|
<%= link_to activity.title.to_s, news_url_in_org(activity.id), :target => '_blank', :class => "por_course_title link-black", :title => activity.title %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), news_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), news_url_in_org(activity.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% end %>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => activity.id, :content=> activity.description, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
||||||
|
<span class=" por_course_time"><%= time_from_now activity.created_on %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% if field.field_type == "Post" %>
|
||||||
|
<% org_acts = get_subfield_acts field %>
|
||||||
|
<% if org_acts.blank? %>
|
||||||
|
<h2 class="por_h2_index clear"><%= field.name %></h2>
|
||||||
|
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||||
|
<% else %>
|
||||||
|
<h2 class="por_h2_index clear"><%= field.name %>
|
||||||
|
<%= render :partial => 'organizations/link_subfield_more', :locals => {:field => field} %>
|
||||||
|
</h2>
|
||||||
|
<% org_acts.first(4).each do |activity| %>
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<% org_subfield_id = params[:org_subfield_id] %>
|
||||||
|
<% iamge_path = get_image_path_from_content(document.content) %>
|
||||||
|
<div class="por_course_bar fl clear">
|
||||||
|
<%= link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => '_blank', :class => "por_course_title link-black", :title => document.title %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% end %>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => document.id, :content=> document.content, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
||||||
|
<span class=" por_course_time"><%= time_from_now document.created_at %></span>
|
||||||
|
</div>
|
||||||
|
<% else activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where(:id => activity.org_act_id).count > 0 %>
|
||||||
|
<% message = activity.org_act %>
|
||||||
|
<% title = message.parent_id.nil? ? message.subject : message.parent.subject %>
|
||||||
|
<% content = message.parent_id.nil? ? message.content : message.parent.content%>
|
||||||
|
<% iamge_path = get_image_path_from_content(content) %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<div class="por_course_bar fl clear">
|
||||||
|
<%= link_to title, board_message_url_in_org(message.board.id, message.id), :target => '_blank', :class => "por_course_title link-black", :title => title %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), board_message_url_in_org(message.board.id, message.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), board_message_url_in_org(message.board.id, message.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% end %>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> content, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
||||||
|
<span class=" por_course_time"><%= time_from_now message.created_on %></span>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<div class="por_course_bar fl clear">
|
||||||
|
<%= link_to title, board_message_path(message.board, message.id), :target => '_blank', :class => "por_course_title link-black", :title => title %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), board_message_path(message.board.id, message.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), board_message_path(message.board.id, message.id), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% end %>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> content, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
||||||
|
<span class=" por_course_time"><%= time_from_now message.created_on %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where(:id => activity.org_act_id).count > 0 %>
|
||||||
|
<% news = activity.org_act %>
|
||||||
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
||||||
|
<div class="por_course_bar fl clear">
|
||||||
|
<%= link_to news.title, news_path(news), :target => '_blank', :class => "por_course_title link-black", :title => news.title %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-2.jpg", :width => "140", :height => "100"), news_path(news), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "140", :height => "100"), news_path(news), :target => "_blank", :class =>"fl" %>
|
||||||
|
<% end %>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => news.id, :content=> news.description, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
||||||
|
<span class=" por_course_time"><%= time_from_now news.created_on %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% elsif 'Compcou' %>
|
||||||
|
<h2 class="por_h2_index clear"><%= field.name %></h2>
|
||||||
|
<% if @excellent_courses.blank? %>
|
||||||
|
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||||
|
<% else %>
|
||||||
|
<% @excellent_courses.first(4).each do |course| %>
|
||||||
|
<div class="por_course_bar fl clear">
|
||||||
|
<%= link_to course.name, course_path(course.id), :target => '_blank', :class => "por_course_title link-black", :title => course.name %>
|
||||||
|
<%= link_to image_tag(url_to_avatar(course),:width => "140", :height => "100"), course_path(course), :target => "_blank", :class => "fl" %>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => course.id, :content=> course.description, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
||||||
|
<span class=" por_course_time"><%= current_time_and_term course %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div><!--por_course end-->
|
@ -0,0 +1,150 @@
|
|||||||
|
<div class="por_post mt10" style="display:<%= field.hide == 0 ? 'block':'none' %>;">
|
||||||
|
<% if acts.blank? %>
|
||||||
|
<h2 class="por_h2_index clear"><%= field.name %></h2>
|
||||||
|
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||||
|
<% else %>
|
||||||
|
<h2 class="por_h2_index clear"><%= field.name %>
|
||||||
|
<%= render :partial => 'organizations/link_subfield_more', :locals => {:field => field} %>
|
||||||
|
</h2>
|
||||||
|
<div class="por_post_left fl">
|
||||||
|
<div class="por_post_leftbar ">
|
||||||
|
<% activity = acts.first %>
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<% if get_image_path_from_content(document.content).nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-3.jpg", :width => "299", :height => "246"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{get_image_path_from_content(document.content)}", :width => "299", :height => "246"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<%= link_to document.title, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => '_blank', :class => "por_post_title link-black", :title => document.title %>
|
||||||
|
<p class="mt5 mb5">
|
||||||
|
<span class="por_time mr10"><%= time_from_now(document.created_at) %> </span>
|
||||||
|
<%= link_to document.creator.show_name, user_path(document.creator), :class => "por_hot_name link-blue", :target => "_blank" %>
|
||||||
|
</p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => acts.first.org_act.id, :content=> acts.first.org_act.content, :maxheight => 40, :maxwordsnum => 60, :maxwidth => 0, :cl => "por_post_txt"} %>
|
||||||
|
<% else activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = activity.org_act %>
|
||||||
|
<% content = message.parent_id.nil? ? message.content : message.parent.content %>
|
||||||
|
<% title = message.parent_id.nil? ? message.subject : message.parent.subject %>
|
||||||
|
<% iamge_path = get_image_path_from_content(content) %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-3.jpg", :width => "299", :height => "246"), board_message_url_in_org(message.board.id,message.id), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "299", :height => "246"), board_message_url_in_org(message.board.id,message.id), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<%= link_to title, board_message_url_in_org(message.board.id,message.id), :target => '_blank', :class => "por_post_title link-black", :title => title %>
|
||||||
|
<p class="mt5 mb5">
|
||||||
|
<span class="por_time mr10"><%= time_from_now(message.created_on) %> </span>
|
||||||
|
<%= link_to message.author.show_name, user_path(message.author), :class => "por_hot_name link-blue", :target => "_blank" %>
|
||||||
|
</p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> message.content, :maxheight => 40, :maxwordsnum => 60, :maxwidth => 0, :cl => "por_post_txt"} %>
|
||||||
|
<% else %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-3.jpg", :width => "299", :height => "246"), board_message_path(message.board, message), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "299", :height => "246"), board_message_path(message.board, message), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<%= link_to title, board_message_path(message.board, message), :target => '_blank', :class => "por_post_title link-black", :title => title %>
|
||||||
|
<p class="mt5 mb5">
|
||||||
|
<span class="por_time mr10"><%= time_from_now(message.created_on) %> </span>
|
||||||
|
<%= link_to message.author.show_name, user_path(message.author), :class => "por_hot_name link-blue", :target => "_blank" %>
|
||||||
|
</p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => message.id, :content=> message.content, :maxheight => 40, :maxwordsnum => 60, :maxwidth => 0, :cl => "por_post_txt"} %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = News.find(activity.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
||||||
|
<% if iamge_path.nil? %>
|
||||||
|
<%= link_to image_tag("/images/default_blank/mo-3.jpg", :width => "299", :height => "246"), news_path(news), :target => "_blank" %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "299", :height => "246"), news_path(news), :target => "_blank" %>
|
||||||
|
<% end %>
|
||||||
|
<%= link_to news.title, news_path(news), :target => '_blank', :class => "por_post_title link-black", :title => news.title %>
|
||||||
|
<p class="mt5 mb5">
|
||||||
|
<span class="por_time mr10"><%= time_from_now(news.created_on) %> </span>
|
||||||
|
<%= link_to news.author.show_name, user_path(news.author), :class => "por_hot_name link-blue", :target => "_blank" %>
|
||||||
|
</p>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => news.id, :content=> news.description, :maxheight => 40, :maxwordsnum => 60, :maxwidth => 0, :cl => "por_post_txt"} %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% unless acts[1..5].nil? %>
|
||||||
|
<% acts[1..5].each do |activity| %>
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<ul class="por_post_list">
|
||||||
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{document.title}".html_safe, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), class: 'por_hidden_w390 link-black', :target => "_blank" %></li>
|
||||||
|
</ul>
|
||||||
|
<% else activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = Message.find(activity.org_act_id) %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<ul class="por_post_list">
|
||||||
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.subject}".html_safe, board_message_url_in_org(message.board.id, message.id), class: 'por_hidden_w390 link-black', :target => "_blank" %></li>
|
||||||
|
<% else %>
|
||||||
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.parent.subject}".html_safe, board_message_url_in_org(message.board.id, message.id), class: 'por_hidden_w390 link-black', :target => "_blank" %></li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
<% else %>
|
||||||
|
<ul class="por_post_list">
|
||||||
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.subject}".html_safe, board_message_path(message.board,message), class: 'por_hidden_w390 link-black', :target => "_blank" %></li>
|
||||||
|
<% else %>
|
||||||
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.parent.subject}".html_safe, board_message_path(message.board, message), class: 'por_hidden_w390 link-black', :target => "_blank" %></li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = News.find(activity.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
||||||
|
<ul class="por_post_list">
|
||||||
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{news.title}".html_safe, news_path(news), class: 'por_hidden_w390 link-black', :target => "_blank" %></li>
|
||||||
|
</ul>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% unless acts[6..19].nil? %>
|
||||||
|
<div class="fl">
|
||||||
|
<ul class="por_post_right por_post_list">
|
||||||
|
<% acts[6..19].each do |activity| %>
|
||||||
|
<% if activity.container_type == 'Organization' && activity.org_act_type == 'OrgDocumentComment' && activity.org_act_id != @organization.home_id %>
|
||||||
|
<% document = activity.org_act %>
|
||||||
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{document.title}".html_safe, org_document_comment_path(:id => document.id, :organization_id => document.organization.id), class: 'por_hidden_w270 link-black', :target => "_blank" %></li>
|
||||||
|
<% else activity.container_type == 'OrgSubfield' %>
|
||||||
|
<% if activity.org_act_type == 'Message' and activity.org_act_id and Message.where("id=#{activity.org_act_id}").count > 0 %>
|
||||||
|
<% message = Message.find(activity.org_act_id) %>
|
||||||
|
<% if message.board.org_subfield_id %>
|
||||||
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.subject}".html_safe, board_message_url_in_org(message.board.id, message.id), class: 'por_hidden_w270 link-black', :target => "_blank" %></li>
|
||||||
|
<% else %>
|
||||||
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.parent.subject}".html_safe, board_message_url_in_org(message.board.id, message.id), class: 'por_hidden_w270 link-black', :target => "_blank" %></li>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% if message.parent_id.nil? %> <!--+"(帖子标题)"-->
|
||||||
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.subject}".html_safe, board_message_path(message.board,message), class: 'por_hidden_w270 link-black', :target => "_blank" %></li>
|
||||||
|
<% else %>
|
||||||
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{message.parent.subject}".html_safe, board_message_path(message.board, message), class: 'por_hidden_w270 link-black', :target => "_blank" %></li>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if activity.org_act_type == 'News' and News.where("id=?", activity.org_act_id).count > 0 %>
|
||||||
|
<% news = News.find(activity.org_act_id) %>
|
||||||
|
<% iamge_path = get_image_path_from_content(news.description) %>
|
||||||
|
<li><%= link_to "<span class='post_icons_grey fl'></span>#{news.title}".html_safe, news_path(news), class: 'por_hidden_w270 link-black', :target => "_blank" %></li>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<% end %>
|
||||||
|
</div><!--por_post end-->
|
@ -0,0 +1,37 @@
|
|||||||
|
<div class="por_news" style="display:<%= field.hide == 0 ? 'block':'none' %>;">
|
||||||
|
<h2 class="por_h2_index clear"><%= field.name %></h2>
|
||||||
|
<% if @acts.blank? %>
|
||||||
|
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||||
|
<% else %>
|
||||||
|
<ul class="por_news_list clear">
|
||||||
|
<% @acts.each do |obj| %>
|
||||||
|
<% user = org_user_by_type(obj) %>
|
||||||
|
<% title = org_title_by_type(obj) %>
|
||||||
|
<% content = org_content_by_type(obj) %>
|
||||||
|
<% time = org_time_by_type(obj) %>
|
||||||
|
<li>
|
||||||
|
<%= link_to image_tag(url_to_avatar(user),:width => "43", :height => "43", :class => "por_users_img"), user_path(user), :target => "_blank", :class => "fl" %>
|
||||||
|
<div class="por_news_txt fl">
|
||||||
|
<p class="por_news_p fl">
|
||||||
|
<%= link_to user.show_name, user_path(user), :class => "por_hot_name link-blue fl", :target => "_blank" %>
|
||||||
|
<span class="fl"> : </span>
|
||||||
|
<% if obj.act_type == "Message" %>
|
||||||
|
<%= link_to title, board_message_path(obj.act.board.id, obj.act.id) %>
|
||||||
|
<% elsif obj.act_type == "News" %>
|
||||||
|
<%= link_to title, news_path(obj.act.id) %>
|
||||||
|
<% elsif obj.act_type == "HomeworkCommon" %>
|
||||||
|
<%= link_to title, student_work_index_url_in_org(obj.act.id) %>
|
||||||
|
<% elsif obj.act_type == "Issue" %>
|
||||||
|
<%= link_to title, issue_path(obj.act.id) %>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
|
<p><span class="por_time fl"><%= time_from_now(time) %> </span>
|
||||||
|
<!--<a href="javascript:void(0);" target="_blank" class="por_zan fr">50</a>-->
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
<% end %>
|
||||||
|
</div><!--por_news end-->
|
@ -0,0 +1,22 @@
|
|||||||
|
<div class="por_projects" style="display:<%= field.hide == 0 ? 'block':'none' %>;">
|
||||||
|
<h2 class="por_h2_index clear">热点项目</h2>
|
||||||
|
<% if containers.blank? %>
|
||||||
|
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||||
|
<% else %>
|
||||||
|
<% container = containers.first %>
|
||||||
|
<li class="por_project_li">
|
||||||
|
<%= link_to "<span class='post_icons_grey fl'></span>#{container.name}".html_safe, project_path(container), :class => "por_hidden_w205 link-black fl", :title => container.name, :target => "_blank" %>
|
||||||
|
<p class="fr por_time">活跃度<a class="ml5" ><%= static_project_score(container.project_score) %></a></p>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => container.id, :content=> container.description, :maxheight => 40, :maxwordsnum => 48, :maxwidth => 0, :cl => "por_project_p"} %>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<% containers[1..4].each do |container| %>
|
||||||
|
<li>
|
||||||
|
<%= link_to "<span class='post_icons_grey fl'></span>#{container.name}".html_safe, project_path(container), :class => "por_hidden_w205 link-black fl", :title => container.name, :target => "_blank" %>
|
||||||
|
<p class="fr por_time">活跃度<a class="ml5" ><%= static_project_score(container.project_score) %></a></p>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div><!--por_projects end-->
|
@ -0,0 +1,105 @@
|
|||||||
|
<% if field.field_type == "Resource" %>
|
||||||
|
<div class="por_teachers" style="display:<%= field.hide == 0 ? 'block' : 'none' %>;">
|
||||||
|
<h2 class="por_h2_index clear"><%= field.name %><%= link_to "更多>", org_subfield_files_path(field), :target => "_blank", :class => "f12 fontGrey2 fr" %></h2>
|
||||||
|
<div>
|
||||||
|
<ul class="por_teachers_li">
|
||||||
|
<% get_attach_org2(field).each do |attach| %>
|
||||||
|
<li >
|
||||||
|
<%= link_to image_tag(url_to_avatar(attach.author),:width => "43", :height => "43", :class => "por_teachers_img fl mr15"), user_path(attach.author), :target => "_blank", :class => "fl" %>
|
||||||
|
<!--<a href="javascript:void(0);" target="_blank" class="fl"><img src="/images/org_custom/homepageImage.jpg" width="43" height="43" alt="" class="por_teachers_img fl mr15"/></a>-->
|
||||||
|
<div class="por_teachers_txt fl mt5">
|
||||||
|
<%= link_to attach.author, user_path(attach.author), :class => " por_teachers_name link-black fl", :target => "_blank" %>
|
||||||
|
<p class="por_teachers_p fr">
|
||||||
|
<%= link_to truncate(attach.filename,length: 20, omission: '...'),
|
||||||
|
download_named_attachment_path(attach.id, attach.filename),
|
||||||
|
:title => attach.filename+"\n"+attach.description.to_s, :style => "overflow: hidden; white-space: nowrap;text-overflow: ellipsis;" %>
|
||||||
|
</p>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<p class="por_teachers_span ">
|
||||||
|
<span class="mr10">类型:<span><%= attach.tag_list[0] %></span></span>
|
||||||
|
<span class="mr10">下载:<span><%= attach.downloads %></span></span>
|
||||||
|
<span class="mr10">引用:<span><%= attach.quotes.nil? ? 0 : attach.quotes %></span></span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% elsif field.field_type == "Comptec" || field.field_type == "Compstu" %>
|
||||||
|
<div class="por_teachers" style="display:<%= field.hide == 0 ? 'block' : 'none' %>;">
|
||||||
|
<ul id="por_teachers_nav">
|
||||||
|
<li id="por_teachers_nav_1" class="por_teachers_hover" onclick="HoverLi(1);">
|
||||||
|
<a href="javascript:void(0);" class="por_teachers_type">名师风采</a>
|
||||||
|
</li>
|
||||||
|
<li id="por_teachers_nav_2" onclick="HoverLi(2);">
|
||||||
|
<a href="javascript:void(0);" class="por_teachers_type">学生英雄榜</a>
|
||||||
|
</li>
|
||||||
|
<!--<a href="javascript:void(0);" target="_blank" class="f12 fontGrey2 fr mt5">更多></a>-->
|
||||||
|
<div class="cl"></div>
|
||||||
|
</ul>
|
||||||
|
<div id="por_teachers_content_1">
|
||||||
|
<ul class="por_teachers_li">
|
||||||
|
<% excellent_teachers.each do |teacher| %>
|
||||||
|
<li >
|
||||||
|
<%= link_to image_tag(url_to_avatar(teacher), :width => "43", :height => "43", :class => "por_teachers_img fl mr15"), user_path(teacher), :alt => "用户头像", :target => '_blank', :class => "fl" %>
|
||||||
|
<div class="por_teachers_txt fl mt5">
|
||||||
|
<%=link_to teacher.try(:realname) ? teacher.try(:realname) :teacher.try(:login), user_path(teacher), :class => "por_teachers_name link-black fl", :target => '_blank' %>
|
||||||
|
<p class="por_teachers_p fr" title="<%= teacher.my_workplace %>"><%= teacher.my_workplace %></p>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<p class="por_teachers_span ">
|
||||||
|
<% unless teacher.my_blogs_count == 0 %>
|
||||||
|
<span class=" mr10">博客 <%= teacher.my_blogs_count %></span>
|
||||||
|
<% end %>
|
||||||
|
<% unless teacher.courses.count == 0 %>
|
||||||
|
<span class="mr10">课程 <%= teacher.courses.count %></span>
|
||||||
|
<% end %>
|
||||||
|
<% unless teacher.my_students == 0 %>
|
||||||
|
<span class="mr10">学生 <%= teacher.my_students %></span>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div id="por_teachers_content_2" class="undis">
|
||||||
|
<ul class="por_teachers_li">
|
||||||
|
<% excellent_students.each do |student| %>
|
||||||
|
<li >
|
||||||
|
<%= link_to image_tag(url_to_avatar(student), :width => "43", :height => "43", :class => "por_teachers_img fl mr15"), user_path(student), :alt => "用户头像", :target => '_blank', :class => "fl" %>
|
||||||
|
<div class="por_teachers_txt fl mt5">
|
||||||
|
<%=link_to student.try(:realname) ? student.try(:realname) :student.try(:login), user_path(student), :class => "por_teachers_name link-black fl", :target => '_blank' %>
|
||||||
|
<p class="por_teachers_p fr" title="<%= student.my_workplace %>"><%= student.my_workplace %></p>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<p class="por_teachers_span ">
|
||||||
|
<% unless student.my_blogs_count == 0 %>
|
||||||
|
<span class=" mr10">博客 <%= student.my_blogs_count %></span>
|
||||||
|
<% end %>
|
||||||
|
<% unless student.courses.count == 0 %>
|
||||||
|
<span class="mr10">课程 <%= student.courses.count %></span>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
//名师列表
|
||||||
|
function g(o){return document.getElementById(o);}
|
||||||
|
function HoverLi(n){
|
||||||
|
for(var i=1;i<=2;i++){
|
||||||
|
g('por_teachers_nav_'+i).className='por_teachers_nomal';
|
||||||
|
g('por_teachers_content_'+i).className='undis';
|
||||||
|
}
|
||||||
|
g('por_teachers_content_'+n).className='dis';
|
||||||
|
g('por_teachers_nav_'+n).className='por_teachers_hover';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<% end %>
|
@ -0,0 +1,44 @@
|
|||||||
|
<ul class="sn-nav">
|
||||||
|
<% subfield_content.each do |field| %>
|
||||||
|
<% if is_default_field?(field) %>
|
||||||
|
<% case field.name %>
|
||||||
|
<% when 'activity' %>
|
||||||
|
<li class="nav-element-default" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<%= link_to "首页", organization_path(@organization), :class => "sn-link-white" %>
|
||||||
|
</li>
|
||||||
|
<% when 'course' %>
|
||||||
|
<li class="nav-element-default" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<a href="#course_<%= field.id %>" class="sn-link-white"> 课程动态</a>
|
||||||
|
</li>
|
||||||
|
<% when 'project' %>
|
||||||
|
<li class="nav-element-default" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<a href="#project_<%= field.id %>" class="sn-link-white">项目动态</a>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% if field.field_type == "Post" && field.hide == 0 %>
|
||||||
|
<li class="nav-element">
|
||||||
|
<a href="#message_<%= field.id %>" class="sn-link-white"><%= field.name %></a>
|
||||||
|
</li>
|
||||||
|
<!--二级目录-->
|
||||||
|
<div class="sn-row sn-subnav-position sn-grey-opacity" style="display:none;">
|
||||||
|
<ul class="sn-sub-nav" style="display:<%= if_hidden_subdomain( field) ? 'block':'none' %>;">
|
||||||
|
<% field.sub_domains.each do |subdomain| %>
|
||||||
|
<li><%=link_to subdomain.name, org_subfield_sub_domain_sub_document_comments_path(subdomain, :org_subfield_id => field.id), :class => "sn-link-grey" %></li>
|
||||||
|
<li class="sn-subnav-slice">|</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<% elsif field.field_type == "Resource" && field.hide == 0 %>
|
||||||
|
<li class="nav-element">
|
||||||
|
<a href="#resource_<%= field.id %>" class="sn-link-white"><%= field.name %></a>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if User.current.admin_of_org?(@organization) %>
|
||||||
|
<li class="nav-element">
|
||||||
|
<a href="<%= setting_organization_path(@organization) %>" class="sn-link-white">配置</a>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
@ -0,0 +1,45 @@
|
|||||||
|
<% org_students.each do |org_student| %>
|
||||||
|
<% school = School.where("id =?", org_student.school_id).first %>
|
||||||
|
<div class="teacher-list-row">
|
||||||
|
<div>
|
||||||
|
<div class="teacher-avatar">
|
||||||
|
<%= link_to image_tag(url_to_avatar(org_student), :width => "90", :height => "90"), user_url_in_org(org_student), :alt => "用户头像" %>
|
||||||
|
</div>
|
||||||
|
<div class="fl">
|
||||||
|
<div class="ml25 mb20"><span class="teacher-name"><%=link_to org_student.try(:realname).nil? ? org_student.try(:login) : org_student.try(:realname), user_url_in_org(org_student) %></span>
|
||||||
|
<% unless school.nil? %>
|
||||||
|
<span class="f12 fontGrey2 mr15"><%= school.name %></span>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="teacher-social-block">
|
||||||
|
<div class="block-num"><%= org_student.courses.count %></div>
|
||||||
|
<div class="block-title">课程数</div>
|
||||||
|
</div>
|
||||||
|
<div class="block-slice"></div>
|
||||||
|
<div class="teacher-social-block">
|
||||||
|
<div class="block-num"><%= org_teacher_resource_count(org_student) %></div>
|
||||||
|
<div class="block-title">资源数</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% if User.current.admin_of_org?(@organization) %>
|
||||||
|
<a href="javascript:void(0);" class="fr teacher-select" onclick="hide($(this),'<%= org_student.id %>');" id="hide_<%= org_student.id %>"><%= org_student.excellent_student ==0 ? "设为学霸" : "取消设置" %></a>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function hide(content, id){
|
||||||
|
if (content.text() == '设为学霸')
|
||||||
|
$.ajax({
|
||||||
|
url: "/organizations/set_excellent_teacher?user=" + id + "&type=student",
|
||||||
|
type: "post"
|
||||||
|
});
|
||||||
|
else
|
||||||
|
$.ajax({
|
||||||
|
url: "/organizations/reset_excellent_teacher?user=" + id + "&type=student",
|
||||||
|
type: "post"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
@ -0,0 +1,24 @@
|
|||||||
|
<div class="<%= cl %>" id="activity_description_<%= user_activity_id %>">
|
||||||
|
<span id="intro_content_<%= user_activity_id%>">
|
||||||
|
<%= content.to_s.html_safe%>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
$("#intro_content_<%= user_activity_id %>").hide();
|
||||||
|
$(function() {
|
||||||
|
var heightType = <%= maxheight %>;
|
||||||
|
|
||||||
|
if (heightType > 0) {
|
||||||
|
$("#activity_description_<%= user_activity_id %>").css("max-height", heightType + "px");
|
||||||
|
}
|
||||||
|
|
||||||
|
var maxWidth = <%= maxwidth %>
|
||||||
|
if (maxWidth > 0) {
|
||||||
|
$("#intro_content_<%= user_activity_id%>").css("max-width", maxWidth + "px");
|
||||||
|
}
|
||||||
|
|
||||||
|
description_showwords_ellipsis(<%= user_activity_id %>,<%= maxwordsnum %>);
|
||||||
|
});
|
||||||
|
</script>
|
@ -0,0 +1,12 @@
|
|||||||
|
<% if @organization.allow_set_teachers && !org_subfield_had_created?(@organization, "Comptec") %>
|
||||||
|
<li class="fl mr15">
|
||||||
|
<input type="radio" id="orgTec" value="Comptec" name="field_type" />
|
||||||
|
<label for="Comptec">教师</label>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% if User.current.admin? && !org_subfield_had_created?(@organization, "Compstu") %>
|
||||||
|
<li class="fl mr15">
|
||||||
|
<input type="radio" id="orgStu" value="Compstu" name="field_type" />
|
||||||
|
<label for="Comptec">学生</label>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
@ -0,0 +1,24 @@
|
|||||||
|
<div class="por_left">
|
||||||
|
<% @subfield_content.each do |field| %>
|
||||||
|
<% if field.status.to_i == 1 %>
|
||||||
|
<%= render :partial => 'organizations/org_custom_left1', :locals => {:field => field, :acts => get_subfield_acts(field) } %>
|
||||||
|
<% elsif field.status.to_i == 2 %>
|
||||||
|
<%= render :partial => 'organizations/org_custom_left2', :locals => {:field => field} %>
|
||||||
|
<% elsif field.status.to_i == 3 %>
|
||||||
|
<%= render :partial => 'organizations/org_custom_left3', :locals => {:field => field, :acts => get_subfield_acts(field) }%>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<!--右侧-->
|
||||||
|
<div class="por_right">
|
||||||
|
<% @subfield_content.each do |field| %>
|
||||||
|
<% if field.status.to_i == 4 %>
|
||||||
|
<%= render :partial => 'organizations/org_custom_right1', :locals => {:field => field} %>
|
||||||
|
<% elsif field.status.to_i == 5 %>
|
||||||
|
<%= render :partial => 'organizations/org_custom_right2', :locals => {:field => field, :containers => @excellent_projects} %>
|
||||||
|
<% elsif field.status.to_i == 6 %>
|
||||||
|
<%= render :partial => 'organizations/org_custom_right3', :locals => {:field => field} %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
@ -0,0 +1,33 @@
|
|||||||
|
<div class="sn-content-left fl sn-mt15">
|
||||||
|
<% @subfield_content.each do |field| %>
|
||||||
|
<% if field.status.to_i == 1 %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftT', :locals => {:field => field} %>
|
||||||
|
<% elsif field.status.to_i == 3 %>
|
||||||
|
<%#= render :partial => 'organizations/org_subfield_leftM', :locals => {:field => field} %>
|
||||||
|
<div class="sn-index-leftbox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftM1', :locals => {:field => field} %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftM2', :locals => {:field => field} %>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% elsif field.status.to_i == 4 %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftMD', :locals => {:field => field} %>
|
||||||
|
<% elsif field.status.to_i == 5 %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_leftD', :locals => {:field => field} %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<!--右侧-->
|
||||||
|
<div class="sn-content-right fr sn-mt15">
|
||||||
|
<% @subfield_content.each do |field| %>
|
||||||
|
<% if field.status.to_i == 6 %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_rightT', :locals => {:field => field} %>
|
||||||
|
<% elsif field.status.to_i == 7 %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_rightM', :locals => {:field => field} %>
|
||||||
|
<% elsif field.status.to_i == 8 %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_rightD', :locals => {:field => field} %>
|
||||||
|
<% elsif field.status.to_i == 23 %>
|
||||||
|
<%= render :partial => 'organizations/org_subfield_rightM2', :locals => {:field => field} %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
@ -0,0 +1,30 @@
|
|||||||
|
<div class="homepageRightBanner">
|
||||||
|
<div class="f16 fontGrey3">
|
||||||
|
<% if @type == "famous" %>
|
||||||
|
精品课程
|
||||||
|
<% else %>
|
||||||
|
<%= @field.name %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="resources mt10">
|
||||||
|
<div class="function-row" id="org_student_search">
|
||||||
|
<%= form_tag(url_for(:controller => 'organizations', :action => 'courses', :type => @type), :remote => true , :method => 'get', :id => 'resource_search_form') do %>
|
||||||
|
<input type="text" name="search" placeholder="输入项目名进行搜索" class="teacher-list-search fl" />
|
||||||
|
<%= submit_tag '', :class => 'homepageSearchIcon', :onfocus => 'this.blur();', :class => "teacher-search-icon fl" %>
|
||||||
|
<!--<a href="javascript:void(0);" onclick='this.parent.submit();return false;' class="searchIcon"></a>-->
|
||||||
|
<% end %>
|
||||||
|
<div class="sn-font-grey fr">
|
||||||
|
<%= link_to "精品课程", courses_organization_path(@organization, :type => "famous", :org_subfield_id => @field.id), :class => "fontGrey2" %>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<div id="org_container_list">
|
||||||
|
<%=render 'organizations/org_container', :containers => @containers %>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="wlist" id="pages" style="margin-top: 15px;">
|
||||||
|
<%= pagination_links_full @atta_pages, @containers_count, :per_page_links => false, :flag => true %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,3 @@
|
|||||||
|
$("#org_container_list").html('<%= escape_javascript( render :partial => 'organizations/org_container', :locals => {:containers => @containers})%>');
|
||||||
|
$("#pages").html('<%= pagination_links_full @atta_pages, @container_count, :per_page_links => false, :remote => @is_remote, :flag => true %>');
|
||||||
|
$("#org_student_search").attr('href','<%= courses_organization_path(@organization, :type => @type) %>');
|
@ -0,0 +1,30 @@
|
|||||||
|
<div class="homepageRightBanner">
|
||||||
|
<div class="f16 fontGrey3">
|
||||||
|
<% if @type == "famous" %>
|
||||||
|
热门项目
|
||||||
|
<% else %>
|
||||||
|
<%= @field.name %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="resources mt10">
|
||||||
|
<div class="function-row" id="org_student_search">
|
||||||
|
<%= form_tag(url_for(:controller => 'organizations', :action => 'projects', :type => @type), :remote => true , :method => 'get', :id => 'resource_search_form') do %>
|
||||||
|
<input type="text" name="search" placeholder="输入项目名进行搜索" class="teacher-list-search fl" />
|
||||||
|
<%= submit_tag '', :class => 'homepageSearchIcon', :onfocus => 'this.blur();', :class => "teacher-search-icon fl" %>
|
||||||
|
<!--<a href="javascript:void(0);" onclick='this.parent.submit();return false;' class="searchIcon"></a>-->
|
||||||
|
<% end %>
|
||||||
|
<div class="sn-font-grey fr">
|
||||||
|
<%= link_to "热门项目", projects_organization_path(@organization, :type => "famous", :org_subfield_id => @field.id), :class => "fontGrey2" %>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<div id="org_container_list">
|
||||||
|
<%=render 'organizations/org_container', :containers => @containers %>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="wlist" id="pages" style="margin-top: 15px;">
|
||||||
|
<%= pagination_links_full @atta_pages, @containers_count, :per_page_links => false, :flag => true %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,3 @@
|
|||||||
|
$("#org_container_list").html('<%= escape_javascript( render :partial => 'organizations/org_container', :locals => {:containers => @containers})%>');
|
||||||
|
$("#pages").html('<%= pagination_links_full @atta_pages, @container_count, :per_page_links => false, :remote => @is_remote, :flag => true %>');
|
||||||
|
$("#org_student_search").attr('href','<%= projects_organization_path(@organization, :type => @type) %>');
|
@ -1 +1 @@
|
|||||||
$("#hide_<%= @ex_teacher.id %>").text("设为名师");
|
$("#hide_<%= @ex_teacher.id %>").text(<%= params[:type]== "student" ? "设为学霸" : "设为名师"%>);
|
@ -0,0 +1,30 @@
|
|||||||
|
<div class="homepageRightBanner">
|
||||||
|
<div class="f16 fontGrey3">
|
||||||
|
<% if @type == "famous" %>
|
||||||
|
学霸列表
|
||||||
|
<% else %>
|
||||||
|
<%= @field.name %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="resources mt10">
|
||||||
|
<div class="function-row" id="org_student_search">
|
||||||
|
<%= form_tag(url_for(:controller => 'organizations', :action => 'students', :type => @type), :remote => true , :method => 'get', :id => 'resource_search_form') do %>
|
||||||
|
<input type="text" name="search" placeholder="输入学生名进行搜索" class="teacher-list-search fl" />
|
||||||
|
<%= submit_tag '', :class => 'homepageSearchIcon', :onfocus => 'this.blur();', :class => "teacher-search-icon fl" %>
|
||||||
|
<!--<a href="javascript:void(0);" onclick='this.parent.submit();return false;' class="searchIcon"></a>-->
|
||||||
|
<% end %>
|
||||||
|
<div class="sn-font-grey fr">
|
||||||
|
<%= link_to "学霸列表", students_organization_path(@organization, :type => "famous", :org_subfield_id => @field.id), :class => "fontGrey2" %>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<div id="org_students_list">
|
||||||
|
<%=render 'organizations/org_students_list', :org_students => @org_students %>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<ul class="wlist" id="pages" style="margin-top: 15px;">
|
||||||
|
<%= pagination_links_full @atta_pages, @students_count, :per_page_links => false, :flag => true %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,3 @@
|
|||||||
|
$("#org_students_list").html('<%= escape_javascript( render :partial => 'organizations/org_students_list', :locals => {:org_students => @org_students})%>');
|
||||||
|
$("#pages").html('<%= pagination_links_full @atta_pages, @students_count, :per_page_links => false, :remote => @is_remote, :flag => true %>');
|
||||||
|
$("#org_student_search").attr('href','<%= students_organization_path(@organization, :type => @type) %>');
|
@ -0,0 +1,5 @@
|
|||||||
|
<% if @type == "course" %>
|
||||||
|
$("#hide_<%= @container.id %>").text("<%= (@status == 'reset' ? '设为精品' : '取消精品') %>");
|
||||||
|
<% elsif @type == "project" %>
|
||||||
|
$("#hide_<%= @container.id %>").text("<%= (@status == 'reset' ? '设为热门' : '取消热门') %>");
|
||||||
|
<% end %>
|
@ -1,8 +1,5 @@
|
|||||||
<% if @res %>
|
<% if @res %>
|
||||||
$("#org_subfield_list").html("");
|
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list', :locals => {:subfields => subfield_to_addmin?(@organization)}) %>");
|
||||||
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list', :locals => {:subfields => @organization.org_subfields.order("priority") }) %>");
|
|
||||||
$("#sub_field_left_lists").html("");
|
$("#sub_field_left_lists").html("");
|
||||||
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
||||||
<% end %>
|
<% end %>
|
||||||
$("#subfield_name").val("");
|
|
||||||
$("#sub_dir").val("");
|
|
@ -1,4 +1,4 @@
|
|||||||
$("#org_subfield_list").html("");
|
$("#org_subfield_list").html("");
|
||||||
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list', :locals => {:subfields => @organization.org_subfields.order("priority") }) %>");
|
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list', :locals => {:subfields => subfield_to_addmin?(@organization)}) %>");
|
||||||
$("#sub_field_left_lists").html("");
|
$("#sub_field_left_lists").html("");
|
||||||
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
@ -1,2 +1,2 @@
|
|||||||
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list',:locals => {:subfields => @organization.org_subfields.order("priority")}) %>");
|
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list', :locals => {:subfields => subfield_to_addmin?(@organization)}) %>");
|
||||||
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
@ -1,3 +1,4 @@
|
|||||||
$("#subsubdomain_show_<%= @subdomain.id %>").html("<%= @subdomain.name %>");
|
$("#subsubdomain_show_<%= @subdomain.id %>").html("<%= @subdomain.name %>");
|
||||||
$("#sub_field_left_lists").html("");
|
$("#sub_field_left_lists").html("");
|
||||||
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
$("#sub_field_left_lists").html("<%= escape_javascript(render :partial => 'organizations/org_left_subfield_list', :locals => {:organization => @organization}) %>");
|
||||||
|
$("#org_subfield_list").html("<%= escape_javascript(render :partial => 'organizations/subfield_list', :locals => {:subfields => subfield_to_addmin?(@organization)}) %>");
|
@ -1,3 +1 @@
|
|||||||
<% if @type != "2" %>
|
<div class="resourcesUploadBox mt10" ><a href="javascript:void(0);" onclick="show_upload();" class="uploadBoxIcon">上传资源</a></div>
|
||||||
<div class="resourcesUploadBox mt10" ><a href="javascript:void(0);" onclick="show_upload();" class="uploadBoxIcon">上传资源</a></div>
|
|
||||||
<% end %>
|
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddStatusToOrgDocumentComment < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :org_document_comments, :status, :integer, :default => false
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddExcellentStudentToUser < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :users, :excellent_student, :integer, :default => false
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddHotToProject < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :projects, :hot, :integer, :default => false
|
||||||
|
end
|
||||||
|
end
|
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 21 KiB |
@ -1,354 +1,354 @@
|
|||||||
/*
|
/*
|
||||||
# Code Review plugin for Redmine
|
# Code Review plugin for Redmine
|
||||||
# Copyright (C) 2009-2013 Haruyuki Iida
|
# Copyright (C) 2009-2013 Haruyuki Iida
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
# as published by the Free Software Foundation; either version 2
|
# as published by the Free Software Foundation; either version 2
|
||||||
# of the License, or (at your option) any later version.
|
# of the License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var topZindex = 1000;
|
var topZindex = 1000;
|
||||||
var action_type = '';
|
var action_type = '';
|
||||||
var rev = '';
|
var rev = '';
|
||||||
var rev_to = '';
|
var rev_to = '';
|
||||||
var path = '';
|
var path = '';
|
||||||
var urlprefix = '';
|
var urlprefix = '';
|
||||||
var review_form_dialog = null;
|
var review_form_dialog = null;
|
||||||
var add_form_title = null;
|
var add_form_title = null;
|
||||||
var review_dialog_title = null;
|
var review_dialog_title = null;
|
||||||
var repository_id = null;
|
var repository_id = null;
|
||||||
var filenames = [];
|
var filenames = [];
|
||||||
|
|
||||||
var ReviewCount = function(total, open, progress){
|
var ReviewCount = function(total, open, progress){
|
||||||
this.total = total;
|
this.total = total;
|
||||||
this.open = open;
|
this.open = open;
|
||||||
this.closed = total - open;
|
this.closed = total - open;
|
||||||
this.progress = progress
|
this.progress = progress
|
||||||
};
|
};
|
||||||
|
|
||||||
var CodeReview = function(id) {
|
var CodeReview = function(id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.path = '';
|
this.path = '';
|
||||||
this.line = 0;
|
this.line = 0;
|
||||||
this.url = '';
|
this.url = '';
|
||||||
this.is_closed = false;
|
this.is_closed = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
var review_counts = new Array();
|
var review_counts = new Array();
|
||||||
var code_reviews_map = new Array();
|
var code_reviews_map = new Array();
|
||||||
var code_reviews_dialog_map = new Array();
|
var code_reviews_dialog_map = new Array();
|
||||||
|
|
||||||
function UpdateRepositoryView(title) {
|
function UpdateRepositoryView(title) {
|
||||||
var header = $("table.changesets thead tr:first");
|
var header = $("table.changesets thead tr:first");
|
||||||
var th = $('<th></th>');
|
var th = $('<th></th>');
|
||||||
th.html(title);
|
th.html(title);
|
||||||
header.append(th);
|
header.append(th);
|
||||||
$('tr.changeset td.id a').each(function(i){
|
$('tr.changeset td.id a').each(function(i){
|
||||||
var revision = this.getAttribute("href");
|
var revision = this.getAttribute("href");
|
||||||
revision = revision.substr(revision.lastIndexOf("/") + 1);
|
revision = revision.substr(revision.lastIndexOf("/") + 1);
|
||||||
var review = review_counts['revision_' + revision];
|
var review = review_counts['revision_' + revision];
|
||||||
var td = $('<td/>',{
|
var td = $('<td/>',{
|
||||||
'class':'progress'
|
'class':'progress'
|
||||||
});
|
});
|
||||||
td.html(review.progress);
|
td.html(review.progress);
|
||||||
$(this.parentNode.parentNode).append(td);
|
$(this.parentNode.parentNode).append(td);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//add function $.down
|
//add function $.down
|
||||||
if(! $.fn.down)
|
if(! $.fn.down)
|
||||||
(function($) {
|
(function($) {
|
||||||
$.fn.down = function() {
|
$.fn.down = function() {
|
||||||
var el = this[0] && this[0].firstChild;
|
var el = this[0] && this[0].firstChild;
|
||||||
while (el && el.nodeType != 1)
|
while (el && el.nodeType != 1)
|
||||||
el = el.nextSibling;
|
el = el.nextSibling;
|
||||||
return $(el);
|
return $(el);
|
||||||
};
|
};
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
function UpdateRevisionView() {
|
function UpdateRevisionView() {
|
||||||
$('li.change').each(function(){
|
$('li.change').each(function(){
|
||||||
var li = $(this);
|
var li = $(this);
|
||||||
if (li.hasClass('folder')) return;
|
if (li.hasClass('folder')) return;
|
||||||
|
|
||||||
var a = li.down('a');
|
var a = li.down('a');
|
||||||
if (a.size() == 0) return;
|
if (a.size() == 0) return;
|
||||||
var path = a.attr('href').replace(urlprefix, '').replace(/\?.*$/, '');
|
var path = a.attr('href').replace(urlprefix, '').replace(/\?.*$/, '');
|
||||||
|
|
||||||
var reviewlist = code_reviews_map[path];
|
var reviewlist = code_reviews_map[path];
|
||||||
if (reviewlist == null) return;
|
if (reviewlist == null) return;
|
||||||
|
|
||||||
var ul = $('<ul></ul>');
|
var ul = $('<ul></ul>');
|
||||||
for (var j = 0; j < reviewlist.length; j++) {
|
for (var j = 0; j < reviewlist.length; j++) {
|
||||||
var review = reviewlist[j];
|
var review = reviewlist[j];
|
||||||
var icon = review.is_closed? 'icon-closed-review': 'icon-review';
|
var icon = review.is_closed? 'icon-closed-review': 'icon-review';
|
||||||
var item = $('<li></li>', {
|
var item = $('<li></li>', {
|
||||||
'class': 'icon ' + icon + ' code_review_summary'
|
'class': 'icon ' + icon + ' code_review_summary'
|
||||||
});
|
});
|
||||||
item.html(review.url);
|
item.html(review.url);
|
||||||
ul.append(item);
|
ul.append(item);
|
||||||
}
|
}
|
||||||
li.append(ul);
|
li.append(ul);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function setAddReviewButton(url, change_id, image_tag, is_readonly, is_diff, attachment_id){
|
function setAddReviewButton(url, change_id, image_tag, is_readonly, is_diff, attachment_id){
|
||||||
var filetables = [];
|
var filetables = [];
|
||||||
var j = 0;
|
var j = 0;
|
||||||
$('table').each(function(){
|
$('table').each(function(){
|
||||||
if($(this).hasClass('filecontent')){
|
if($(this).hasClass('filecontent')){
|
||||||
filetables[j++] = this;
|
filetables[j++] = this;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
j = 0;
|
j = 0;
|
||||||
$('table.filecontent th.filename').each(function(){
|
$('table.filecontent th.filename').each(function(){
|
||||||
filenames[j] = $.trim($(this).text());
|
filenames[j] = $.trim($(this).text());
|
||||||
j++;
|
j++;
|
||||||
});
|
});
|
||||||
addReviewUrl = url + '?change_id=' + change_id + '&action_type=' + action_type +
|
addReviewUrl = url + '?change_id=' + change_id + '&action_type=' + action_type +
|
||||||
'&rev=' + rev + '&rev_to=' + rev_to +
|
'&rev=' + rev + '&rev_to=' + rev_to +
|
||||||
'&attachment_id=' + attachment_id + '&repository_id=' + encodeURIComponent(repository_id);
|
'&attachment_id=' + attachment_id + '&repository_id=' + encodeURIComponent(repository_id);
|
||||||
if (path != null && path.length > 0) {
|
if (path != null && path.length > 0) {
|
||||||
addReviewUrl = addReviewUrl + '&path=' + encodeURIComponent(path);
|
addReviewUrl = addReviewUrl + '&path=' + encodeURIComponent(path);
|
||||||
}
|
}
|
||||||
var num = 0;
|
var num = 0;
|
||||||
if (is_diff) {
|
if (is_diff) {
|
||||||
num = 1;
|
num = 1;
|
||||||
}
|
}
|
||||||
var i, l, tl;
|
var i, l, tl;
|
||||||
for (i = 0, tl = filetables.length; i < tl; i++) {
|
for (i = 0, tl = filetables.length; i < tl; i++) {
|
||||||
var table = filetables[i];
|
var table = filetables[i];
|
||||||
var trs = table.getElementsByTagName('tr');
|
var trs = table.getElementsByTagName('tr');
|
||||||
|
|
||||||
for (j = 0,l = trs.length; j < l; j++) {
|
for (j = 0,l = trs.length; j < l; j++) {
|
||||||
var tr = trs[j];
|
var tr = trs[j];
|
||||||
var ths = tr.getElementsByTagName('th');
|
var ths = tr.getElementsByTagName('th');
|
||||||
|
|
||||||
var th = ths[num];
|
var th = ths[num];
|
||||||
if (th == null) {
|
if (th == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var th_html = th.innerHTML;
|
var th_html = th.innerHTML;
|
||||||
|
|
||||||
var line = th_html.match(/[0-9]+/);
|
var line = th_html.match(/[0-9]+/);
|
||||||
if (line == null) {
|
if (line == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var span_html = '<span white-space="nowrap" id="review_span_' + line + '_' + i + '">';
|
var span_html = '<span white-space="nowrap" id="review_span_' + line + '_' + i + '">';
|
||||||
|
|
||||||
if (!is_readonly) {
|
if (!is_readonly) {
|
||||||
span_html += image_tag;
|
span_html += image_tag;
|
||||||
}
|
}
|
||||||
span_html += '</span>';
|
span_html += '</span>';
|
||||||
th.innerHTML = th_html + span_html;
|
th.innerHTML = th_html + span_html;
|
||||||
|
|
||||||
var img = th.getElementsByTagName('img')[0];
|
var img = th.getElementsByTagName('img')[0];
|
||||||
if (img != null ) {
|
if (img != null ) {
|
||||||
img.id = 'add_revew_img_' + line + '_' + i;
|
img.id = 'add_revew_img_' + line + '_' + i;
|
||||||
$(img).click(clickPencil);
|
$(img).click(clickPencil);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function clickPencil(e)
|
function clickPencil(e)
|
||||||
{
|
{
|
||||||
// alert('$(e.target).attr("id") = ' + $(e.target).attr("id"));
|
// alert('$(e.target).attr("id") = ' + $(e.target).attr("id"));
|
||||||
var result = $(e.target).attr("id").match(/([0-9]+)_([0-9]+)/);
|
var result = $(e.target).attr("id").match(/([0-9]+)_([0-9]+)/);
|
||||||
var line = result[1];
|
var line = result[1];
|
||||||
var file_count = eval(result[2]);
|
var file_count = eval(result[2]);
|
||||||
var url = addReviewUrl + '&line=' + line + '&file_count=' + file_count;
|
var url = addReviewUrl + '&line=' + line + '&file_count=' + file_count;
|
||||||
|
|
||||||
if (path == null || path.length == 0) {
|
if (path == null || path.length == 0) {
|
||||||
url = url + '&path=' + encodeURIComponent(filenames[file_count]) + '&diff_all=true';
|
url = url + '&path=' + encodeURIComponent(filenames[file_count]) + '&diff_all=true';
|
||||||
}
|
}
|
||||||
addReview(url);
|
addReview(url);
|
||||||
formPopup(e.pageX, e.pageY);
|
formPopup(e.pageX, e.pageY);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
var addReviewUrl = null;
|
var addReviewUrl = null;
|
||||||
var showReviewUrl = null;
|
var showReviewUrl = null;
|
||||||
var showReviewImageTag = null;
|
var showReviewImageTag = null;
|
||||||
var showClosedReviewImageTag = null;
|
var showClosedReviewImageTag = null;
|
||||||
|
|
||||||
function setShowReviewButton(line, review_id, is_closed, file_count) {
|
function setShowReviewButton(line, review_id, is_closed, file_count) {
|
||||||
//alert('file_count = ' + file_count);
|
//alert('file_count = ' + file_count);
|
||||||
var span = $('#review_span_' + line + '_' + file_count);
|
var span = $('#review_span_' + line + '_' + file_count);
|
||||||
if (span.size() == 0) {
|
if (span.size() == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var innerSpan = $('<span></span>',{id: 'review_' + review_id});
|
var innerSpan = $('<span></span>',{id: 'review_' + review_id});
|
||||||
span.append(innerSpan);
|
span.append(innerSpan);
|
||||||
innerSpan.html(is_closed? showClosedReviewImageTag : showReviewImageTag);
|
innerSpan.html(is_closed? showClosedReviewImageTag : showReviewImageTag);
|
||||||
var div = $('<div></div>', {
|
var div = $('<div></div>', {
|
||||||
'class':'draggable',
|
'class':'draggable',
|
||||||
id: 'show_review_' + review_id
|
id: 'show_review_' + review_id
|
||||||
});
|
});
|
||||||
$('#code_review').append(div);
|
$('#code_review').append(div);
|
||||||
innerSpan.down('img').click(function(e) {
|
innerSpan.down('img').click(function(e) {
|
||||||
var review_id = $(e.target).parent().attr('id').match(/[0-9]+/)[0];
|
var review_id = $(e.target).parent().attr('id').match(/[0-9]+/)[0];
|
||||||
var span = $('#review_' + review_id); // span element of view review button
|
var span = $('#review_' + review_id); // span element of view review button
|
||||||
var pos = span.offset();
|
var pos = span.offset();
|
||||||
showReview(showReviewUrl, review_id, pos.left + 10 + 5, pos.top + 25);
|
showReview(showReviewUrl, review_id, pos.left + 10 + 5, pos.top + 25);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function popupReview(review_id) {
|
function popupReview(review_id) {
|
||||||
var span = $('#review_' + review_id); // span element of view review button
|
var span = $('#review_' + review_id); // span element of view review button
|
||||||
var pos = span.offset();
|
var pos = span.offset();
|
||||||
$('html,body').animate({ scrollTop: pos.top },
|
$('html,body').animate({ scrollTop: pos.top },
|
||||||
{duration: 'fast',
|
{duration: 'fast',
|
||||||
complete: function(){showReview(showReviewUrl, review_id, pos.left + 10 + 5, pos.top)}});
|
complete: function(){showReview(showReviewUrl, review_id, pos.left + 10 + 5, pos.top)}});
|
||||||
// position and show popup dialog
|
// position and show popup dialog
|
||||||
// create popup dialog
|
// create popup dialog
|
||||||
//var win = showReview(showReviewUrl, review_id, pos.left + 10 + 5, pos.top);
|
//var win = showReview(showReviewUrl, review_id, pos.left + 10 + 5, pos.top);
|
||||||
// win.toFront();
|
// win.toFront();
|
||||||
}
|
}
|
||||||
|
|
||||||
function showReview(url, review_id, x, y) {
|
function showReview(url, review_id, x, y) {
|
||||||
if (code_reviews_dialog_map[review_id] != null) {
|
if (code_reviews_dialog_map[review_id] != null) {
|
||||||
var cur_win = code_reviews_dialog_map[review_id];
|
var cur_win = code_reviews_dialog_map[review_id];
|
||||||
cur_win.hide();
|
cur_win.hide();
|
||||||
code_reviews_dialog_map[review_id] = null;
|
code_reviews_dialog_map[review_id] = null;
|
||||||
}
|
}
|
||||||
$('#show_review_' + review_id).load(url, {review_id: review_id});
|
$('#show_review_' + review_id).load(url, {review_id: review_id});
|
||||||
var review = getReviewObjById(review_id);
|
var review = getReviewObjById(review_id);
|
||||||
|
|
||||||
var win = $('#show_review_' + review_id).dialog({
|
var win = $('#show_review_' + review_id).dialog({
|
||||||
show: {effect:'scale'},// ? 'top-left'
|
show: {effect:'scale'},// ? 'top-left'
|
||||||
//position: [x, y + 5],
|
//position: [x, y + 5],
|
||||||
width:640,
|
width:640,
|
||||||
zIndex: topZindex,
|
zIndex: topZindex,
|
||||||
title: review_dialog_title
|
title: review_dialog_title
|
||||||
});
|
});
|
||||||
// win.getContent().style.color = "#484848";
|
// win.getContent().style.color = "#484848";
|
||||||
// win.getContent().style.background = "#ffffff";
|
// win.getContent().style.background = "#ffffff";
|
||||||
topZindex++;
|
topZindex++;
|
||||||
code_reviews_dialog_map[review_id] = win;
|
code_reviews_dialog_map[review_id] = win;
|
||||||
return win
|
return win
|
||||||
}
|
}
|
||||||
|
|
||||||
function getReviewObjById(review_id) {
|
function getReviewObjById(review_id) {
|
||||||
for (var reviewlist in code_reviews_map) {
|
for (var reviewlist in code_reviews_map) {
|
||||||
for (var i = 0; i < reviewlist.length; i++) {
|
for (var i = 0; i < reviewlist.length; i++) {
|
||||||
var review = reviewlist[i];
|
var review = reviewlist[i];
|
||||||
if (review.id == review_id) {
|
if (review.id == review_id) {
|
||||||
return review;
|
return review;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
function formPopup(x, y){
|
function formPopup(x, y){
|
||||||
//@see http://docs.jquery.com/UI/Effects/Scale
|
//@see http://docs.jquery.com/UI/Effects/Scale
|
||||||
var win = $('#review-form-frame').dialog({
|
var win = $('#review-form-frame').dialog({
|
||||||
show: {effect:'scale', direction: 'both'},// ? 'top-left'
|
show: {effect:'scale', direction: 'both'},// ? 'top-left'
|
||||||
// position: [x, y + 5],
|
// position: [x, y + 5],
|
||||||
width:640,
|
width:640,
|
||||||
zIndex: topZindex,
|
zIndex: topZindex,
|
||||||
title: add_form_title
|
title: add_form_title
|
||||||
});
|
});
|
||||||
// win.getContent().style.background = "#ffffff";
|
// win.getContent().style.background = "#ffffff";
|
||||||
if (review_form_dialog != null) {
|
if (review_form_dialog != null) {
|
||||||
review_form_dialog.destroy();
|
review_form_dialog.destroy();
|
||||||
review_form_dialog = null;
|
review_form_dialog = null;
|
||||||
}
|
}
|
||||||
review_form_dialog = win;
|
review_form_dialog = win;
|
||||||
topZindex += 10;
|
topZindex += 10;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function hideForm() {
|
function hideForm() {
|
||||||
if (review_form_dialog == null) {
|
if (review_form_dialog == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
review_form_dialog.dialog('close');
|
review_form_dialog.dialog('close');
|
||||||
review_form_dialog = null;
|
review_form_dialog = null;
|
||||||
$('#review-form').html('');
|
$('#review-form').html('');
|
||||||
}
|
}
|
||||||
function addReview(url) {
|
function addReview(url) {
|
||||||
$('#review-form').load(url);
|
$('#review-form').load(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleteReview(review_id) {
|
function deleteReview(review_id) {
|
||||||
$('show_review_' + review_id).remove();
|
$('show_review_' + review_id).remove();
|
||||||
$('review_' + review_id).remove();
|
$('review_' + review_id).remove();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeImage(review_id, is_closed) {
|
function changeImage(review_id, is_closed) {
|
||||||
var span = $('review_' + review_id);
|
var span = $('review_' + review_id);
|
||||||
var new_image = null;
|
var new_image = null;
|
||||||
var dummy = new Element('span');
|
var dummy = new Element('span');
|
||||||
if (is_closed) {
|
if (is_closed) {
|
||||||
dummy.insert(showClosedReviewImageTag);
|
dummy.insert(showClosedReviewImageTag);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
dummy.insert(showReviewImageTag);
|
dummy.insert(showReviewImageTag);
|
||||||
}
|
}
|
||||||
new_image = dummy.down().getAttribute('src');
|
new_image = dummy.down().getAttribute('src');
|
||||||
//alert(new_image);
|
//alert(new_image);
|
||||||
span.down('img').setAttribute('src', new_image);
|
span.down('img').setAttribute('src', new_image);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function make_addreview_link(project, link) {
|
function make_addreview_link(project, link) {
|
||||||
var alist = $('#content p a');
|
var alist = $('#content p a');
|
||||||
if (alist == null) {
|
if (alist == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var a = alist[0];
|
var a = alist[0];
|
||||||
var p = a.parentNode;
|
var p = a.parentNode;
|
||||||
p.innerHTML = p.innerHTML + " | " + link;
|
p.innerHTML = p.innerHTML + " | " + link;
|
||||||
}
|
}
|
||||||
|
|
||||||
function call_update_revisions(url) {
|
function call_update_revisions(url) {
|
||||||
var changeset_ids = '';
|
var changeset_ids = '';
|
||||||
var links = $$('table.changesets tbody tr.changeset td.id a');
|
var links = $$('table.changesets tbody tr.changeset td.id a');
|
||||||
for (var i = 0; i < links.length; i++) {
|
for (var i = 0; i < links.length; i++) {
|
||||||
var link = links[i];
|
var link = links[i];
|
||||||
var href = link.getAttribute('href');
|
var href = link.getAttribute('href');
|
||||||
var id = href.replace(/^.*\/revisions\//, '');
|
var id = href.replace(/^.*\/revisions\//, '');
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
changeset_ids += ',';
|
changeset_ids += ',';
|
||||||
}
|
}
|
||||||
changeset_ids += id;
|
changeset_ids += id;
|
||||||
}
|
}
|
||||||
new Ajax.Updater('code_review_revisions', url,
|
new Ajax.Updater('code_review_revisions', url,
|
||||||
{
|
{
|
||||||
evalScripts:true,
|
evalScripts:true,
|
||||||
method:'get',
|
method:'get',
|
||||||
parameters: 'changeset_ids=' + encodeURI(changeset_ids)
|
parameters: 'changeset_ids=' + encodeURI(changeset_ids)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$.fn.serialize2json = function()
|
$.fn.serialize2json = function()
|
||||||
{
|
{
|
||||||
var o = {};
|
var o = {};
|
||||||
var a = this.serializeArray();
|
var a = this.serializeArray();
|
||||||
$.each(a, function() {
|
$.each(a, function() {
|
||||||
if (o[this.name]) {
|
if (o[this.name]) {
|
||||||
if (!o[this.name].push) {
|
if (!o[this.name].push) {
|
||||||
o[this.name] = [o[this.name]];
|
o[this.name] = [o[this.name]];
|
||||||
}
|
}
|
||||||
o[this.name].push(this.value || '');
|
o[this.name].push(this.value || '');
|
||||||
} else {
|
} else {
|
||||||
o[this.name] = this.value || '';
|
o[this.name] = this.value || '';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return o;
|
return o;
|
||||||
};
|
};
|
@ -1,4 +1,4 @@
|
|||||||
|
|
||||||
dt.code_review {
|
dt.code_review {
|
||||||
background-image: url(../images/review.png);
|
background-image: url(../images/review.png);
|
||||||
}
|
}
|
@ -1,97 +1,97 @@
|
|||||||
/*
|
/*
|
||||||
# Code Review plugin for Redmine
|
# Code Review plugin for Redmine
|
||||||
# Copyright (C) 2009 Haruyuki Iida
|
# Copyright (C) 2009 Haruyuki Iida
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
# as published by the Free Software Foundation; either version 2
|
# as published by the Free Software Foundation; either version 2
|
||||||
# of the License, or (at your option) any later version.
|
# of the License, or (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
#review-form-frame {
|
#review-form-frame {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.autoscroll table.filecontent th.line-num {
|
.autoscroll table.filecontent th.line-num {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
text-align:left;
|
text-align:left;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.filecontent th.line-num img{
|
table.filecontent th.line-num img{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.code-review-form-title {
|
.code-review-form-title {
|
||||||
background-color: #002059;
|
background-color: #002059;
|
||||||
color: white;
|
color: white;
|
||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
padding-right: 2px;
|
padding-right: 2px;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.code_review_viewer {
|
.code_review_viewer {
|
||||||
|
|
||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
/*
|
/*
|
||||||
max-width: 60%;
|
max-width: 60%;
|
||||||
*/
|
*/
|
||||||
/* max-height: 400px; */
|
/* max-height: 400px; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.code_review_viewer .issue{
|
.code_review_viewer .issue{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.code_review_body {
|
.code_review_body {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
|
||||||
padding:2px;
|
padding:2px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#code_review_list table.list td {
|
#code_review_list table.list td {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#code_review_list table.list td.path {
|
#code_review_list table.list td.path {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
#code_review_list table.list td.subject {
|
#code_review_list table.list td.subject {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-review {
|
.icon-review {
|
||||||
background-image: url(../images/review.png);
|
background-image: url(../images/review.png);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-closed-review {
|
.icon-closed-review {
|
||||||
background-image: url(../images/closed_review.png);
|
background-image: url(../images/closed_review.png);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-settings {
|
.icon-settings {
|
||||||
background-image: url(../../../images/changeset.png);
|
background-image: url(../../../images/changeset.png);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
li.code_review_summary {
|
li.code_review_summary {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
}
|
}
|
@ -1,19 +1,19 @@
|
|||||||
Copyright (c) 2006 Sébastien Gruhier (http://xilinus.com, http://itseb.com)
|
Copyright (c) 2006 Sébastien Gruhier (http://xilinus.com, http://itseb.com)
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
a copy of this software and associated documentation files (the
|
a copy of this software and associated documentation files (the
|
||||||
"Software"), to deal in the Software without restriction, including
|
"Software"), to deal in the Software without restriction, including
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
the following conditions:
|
the following conditions:
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
The above copyright notice and this permission notice shall be
|
||||||
included in all copies or substantial portions of the Software.
|
included in all copies or substantial portions of the Software.
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
@ -1,119 +1,119 @@
|
|||||||
.overlay_alert {
|
.overlay_alert {
|
||||||
background-color: #85BBEF;
|
background-color: #85BBEF;
|
||||||
filter:alpha(opacity=60);
|
filter:alpha(opacity=60);
|
||||||
-moz-opacity: 0.6;
|
-moz-opacity: 0.6;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_nw {
|
.alert_nw {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
background: transparent url(alert/top_left.gif) no-repeat bottom left;
|
background: transparent url(alert/top_left.gif) no-repeat bottom left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_n {
|
.alert_n {
|
||||||
height: 5px;
|
height: 5px;
|
||||||
background: transparent url(alert/top.gif) repeat-x bottom left;
|
background: transparent url(alert/top.gif) repeat-x bottom left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_ne {
|
.alert_ne {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
background: transparent url(alert/top_right.gif) no-repeat bottom left
|
background: transparent url(alert/top_right.gif) no-repeat bottom left
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_e {
|
.alert_e {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
background: transparent url(alert/right.gif) repeat-y 0 0;
|
background: transparent url(alert/right.gif) repeat-y 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_w {
|
.alert_w {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
background: transparent url(alert/left.gif) repeat-y 0 0;
|
background: transparent url(alert/left.gif) repeat-y 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_sw {
|
.alert_sw {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
background: transparent url(alert/bottom_left.gif) no-repeat 0 0;
|
background: transparent url(alert/bottom_left.gif) no-repeat 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_s {
|
.alert_s {
|
||||||
height: 5px;
|
height: 5px;
|
||||||
background: transparent url(alert/bottom.gif) repeat-x 0 0;
|
background: transparent url(alert/bottom.gif) repeat-x 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_se, .alert_sizer {
|
.alert_se, .alert_sizer {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
background: transparent url(alert/bottom_right.gif) no-repeat 0 0;
|
background: transparent url(alert/bottom_right.gif) no-repeat 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_close {
|
.alert_close {
|
||||||
width:0px;
|
width:0px;
|
||||||
height:0px;
|
height:0px;
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_minimize {
|
.alert_minimize {
|
||||||
width:0px;
|
width:0px;
|
||||||
height:0px;
|
height:0px;
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_maximize {
|
.alert_maximize {
|
||||||
width:0px;
|
width:0px;
|
||||||
height:0px;
|
height:0px;
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_title {
|
.alert_title {
|
||||||
float:left;
|
float:left;
|
||||||
height:1px;
|
height:1px;
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_content {
|
.alert_content {
|
||||||
overflow:visible;
|
overflow:visible;
|
||||||
color: #000;
|
color: #000;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font: 12px arial;
|
font: 12px arial;
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For alert/confirm dialog */
|
/* For alert/confirm dialog */
|
||||||
.alert_window {
|
.alert_window {
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
padding:20px;
|
padding:20px;
|
||||||
margin-left:auto;
|
margin-left:auto;
|
||||||
margin-right:auto;
|
margin-right:auto;
|
||||||
width:400px;
|
width:400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_message {
|
.alert_message {
|
||||||
font: 12px arial;
|
font: 12px arial;
|
||||||
width:100%;
|
width:100%;
|
||||||
color:#F00;
|
color:#F00;
|
||||||
padding-bottom:10px;
|
padding-bottom:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_buttons {
|
.alert_buttons {
|
||||||
text-align:center;
|
text-align:center;
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_buttons input {
|
.alert_buttons input {
|
||||||
width:20%;
|
width:20%;
|
||||||
margin:10px;
|
margin:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_progress {
|
.alert_progress {
|
||||||
float:left;
|
float:left;
|
||||||
margin:auto;
|
margin:auto;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
width:100%;
|
width:100%;
|
||||||
height:16px;
|
height:16px;
|
||||||
background: #FFF url('alert/progress.gif') no-repeat center center
|
background: #FFF url('alert/progress.gif') no-repeat center center
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,88 +1,88 @@
|
|||||||
.overlay_alert_lite {
|
.overlay_alert_lite {
|
||||||
background-color: #85BBEF;
|
background-color: #85BBEF;
|
||||||
filter:alpha(opacity=60);
|
filter:alpha(opacity=60);
|
||||||
-moz-opacity: 0.6;
|
-moz-opacity: 0.6;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_lite_sizer {
|
.alert_lite_sizer {
|
||||||
width:0px;
|
width:0px;
|
||||||
height:0px;
|
height:0px;
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_lite_close {
|
.alert_lite_close {
|
||||||
width:0px;
|
width:0px;
|
||||||
height:0px;
|
height:0px;
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_lite_minimize {
|
.alert_lite_minimize {
|
||||||
width:0px;
|
width:0px;
|
||||||
height:0px;
|
height:0px;
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_lite_maximize {
|
.alert_lite_maximize {
|
||||||
width:0px;
|
width:0px;
|
||||||
height:0px;
|
height:0px;
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_lite_title {
|
.alert_lite_title {
|
||||||
width:0px;
|
width:0px;
|
||||||
height:0px;
|
height:0px;
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_lite_content {
|
.alert_lite_content {
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
color: #000;
|
color: #000;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* For alert/confirm dialog */
|
/* For alert/confirm dialog */
|
||||||
.alert_lite_window {
|
.alert_lite_window {
|
||||||
border:1px solid #F00;
|
border:1px solid #F00;
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
padding:20px;
|
padding:20px;
|
||||||
margin-left:auto;
|
margin-left:auto;
|
||||||
margin-right:auto;
|
margin-right:auto;
|
||||||
width:400px;
|
width:400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_lite_message {
|
.alert_lite_message {
|
||||||
font-size:16px;
|
font-size:16px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
width:100%;
|
width:100%;
|
||||||
color:#F00;
|
color:#F00;
|
||||||
padding-bottom:10px;
|
padding-bottom:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_lite_buttons {
|
.alert_lite_buttons {
|
||||||
text-align:center;
|
text-align:center;
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_lite_buttons input {
|
.alert_lite_buttons input {
|
||||||
width:20%;
|
width:20%;
|
||||||
margin:10px;
|
margin:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert_lite_progress {
|
.alert_lite_progress {
|
||||||
float:left;
|
float:left;
|
||||||
margin:auto;
|
margin:auto;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
width:100%;
|
width:100%;
|
||||||
height:16px;
|
height:16px;
|
||||||
background: #FFF url('alert/progress.gif') no-repeat center center
|
background: #FFF url('alert/progress.gif') no-repeat center center
|
||||||
}
|
}
|
||||||
|
|
||||||
table.alert_lite_header {
|
table.alert_lite_header {
|
||||||
border:1px solid #F00;
|
border:1px solid #F00;
|
||||||
background:#FFF
|
background:#FFF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,150 +1,150 @@
|
|||||||
.overlay_alphacube {
|
.overlay_alphacube {
|
||||||
background-color: #85BBEF;
|
background-color: #85BBEF;
|
||||||
filter:alpha(opacity=60);
|
filter:alpha(opacity=60);
|
||||||
-moz-opacity: 0.6;
|
-moz-opacity: 0.6;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_nw {
|
.alphacube_nw {
|
||||||
background: transparent url(alphacube/left-top.gif) no-repeat 0 0;
|
background: transparent url(alphacube/left-top.gif) no-repeat 0 0;
|
||||||
width:10px;
|
width:10px;
|
||||||
height:25px;
|
height:25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_n {
|
.alphacube_n {
|
||||||
background: transparent url(alphacube/top-middle.gif) repeat-x 0 0;
|
background: transparent url(alphacube/top-middle.gif) repeat-x 0 0;
|
||||||
height:25px;
|
height:25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_ne {
|
.alphacube_ne {
|
||||||
background: transparent url(alphacube/right-top.gif) no-repeat 0 0;
|
background: transparent url(alphacube/right-top.gif) no-repeat 0 0;
|
||||||
width:10px;
|
width:10px;
|
||||||
height:25px;
|
height:25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_w {
|
.alphacube_w {
|
||||||
background: transparent url(alphacube/frame-left.gif) repeat-y top left;
|
background: transparent url(alphacube/frame-left.gif) repeat-y top left;
|
||||||
width:7px;
|
width:7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_e {
|
.alphacube_e {
|
||||||
background: transparent url(alphacube/frame-right.gif) repeat-y top right;
|
background: transparent url(alphacube/frame-right.gif) repeat-y top right;
|
||||||
width:7px;
|
width:7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_sw {
|
.alphacube_sw {
|
||||||
background: transparent url(alphacube/bottom-left-c.gif) no-repeat 0 0;
|
background: transparent url(alphacube/bottom-left-c.gif) no-repeat 0 0;
|
||||||
width:7px;
|
width:7px;
|
||||||
height:7px;
|
height:7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_s {
|
.alphacube_s {
|
||||||
background: transparent url(alphacube/bottom-middle.gif) repeat-x 0 0;
|
background: transparent url(alphacube/bottom-middle.gif) repeat-x 0 0;
|
||||||
height:7px;
|
height:7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_se, .alphacube_sizer {
|
.alphacube_se, .alphacube_sizer {
|
||||||
background: transparent url(alphacube/bottom-right-c.gif) no-repeat 0 0;
|
background: transparent url(alphacube/bottom-right-c.gif) no-repeat 0 0;
|
||||||
width:7px;
|
width:7px;
|
||||||
height:7px;
|
height:7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_sizer {
|
.alphacube_sizer {
|
||||||
cursor:se-resize;
|
cursor:se-resize;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_close {
|
.alphacube_close {
|
||||||
width: 23px;
|
width: 23px;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
background: transparent url(alphacube/button-close-focus.gif) no-repeat 0 0;
|
background: transparent url(alphacube/button-close-focus.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:0px;
|
top:0px;
|
||||||
right:11px;
|
right:11px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_minimize {
|
.alphacube_minimize {
|
||||||
width: 23px;
|
width: 23px;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
background: transparent url(alphacube/button-min-focus.gif) no-repeat 0 0;
|
background: transparent url(alphacube/button-min-focus.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:0px;
|
top:0px;
|
||||||
right:55px;
|
right:55px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_maximize {
|
.alphacube_maximize {
|
||||||
width: 23px;
|
width: 23px;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
background: transparent url(alphacube/button-max-focus.gif) no-repeat 0 0;
|
background: transparent url(alphacube/button-max-focus.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:0px;
|
top:0px;
|
||||||
right:33px;
|
right:33px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_title {
|
.alphacube_title {
|
||||||
float:left;
|
float:left;
|
||||||
height:14px;
|
height:14px;
|
||||||
font-size:14px;
|
font-size:14px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
margin-top:2px;
|
margin-top:2px;
|
||||||
width:100%;
|
width:100%;
|
||||||
color:#123456;
|
color:#123456;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_content {
|
.alphacube_content {
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
color: #000;
|
color: #000;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font: 12px arial;
|
font: 12px arial;
|
||||||
background:#FDFDFD;
|
background:#FDFDFD;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For alert/confirm dialog */
|
/* For alert/confirm dialog */
|
||||||
.alphacube_window {
|
.alphacube_window {
|
||||||
border:1px solid #F00;
|
border:1px solid #F00;
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
padding:20px;
|
padding:20px;
|
||||||
margin-left:auto;
|
margin-left:auto;
|
||||||
margin-right:auto;
|
margin-right:auto;
|
||||||
width:400px;
|
width:400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_message {
|
.alphacube_message {
|
||||||
font: 12px arial;
|
font: 12px arial;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
width:100%;
|
width:100%;
|
||||||
padding-bottom:10px;
|
padding-bottom:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_buttons {
|
.alphacube_buttons {
|
||||||
text-align:center;
|
text-align:center;
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_buttons input {
|
.alphacube_buttons input {
|
||||||
width:20%;
|
width:20%;
|
||||||
margin:10px;
|
margin:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_progress {
|
.alphacube_progress {
|
||||||
float:left;
|
float:left;
|
||||||
margin:auto;
|
margin:auto;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
width:100%;
|
width:100%;
|
||||||
height:16px;
|
height:16px;
|
||||||
background: #FFF url('alert/progress.gif') no-repeat center center
|
background: #FFF url('alert/progress.gif') no-repeat center center
|
||||||
}
|
}
|
||||||
|
|
||||||
.alphacube_wired_frame {
|
.alphacube_wired_frame {
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
filter:alpha(opacity=60);
|
filter:alpha(opacity=60);
|
||||||
-moz-opacity: 0.6;
|
-moz-opacity: 0.6;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,51 +1,51 @@
|
|||||||
<public:component>
|
<public:component>
|
||||||
<public:attach event="onpropertychange" onevent="propertyChanged()" />
|
<public:attach event="onpropertychange" onevent="propertyChanged()" />
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";
|
var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32";
|
||||||
var realSrc;
|
var realSrc;
|
||||||
var blankSrc = "blank.gif";
|
var blankSrc = "blank.gif";
|
||||||
|
|
||||||
if (supported) fixImage();
|
if (supported) fixImage();
|
||||||
|
|
||||||
function propertyChanged() {
|
function propertyChanged() {
|
||||||
if (!supported) return;
|
if (!supported) return;
|
||||||
|
|
||||||
var pName = event.propertyName;
|
var pName = event.propertyName;
|
||||||
if (pName != "src") return;
|
if (pName != "src") return;
|
||||||
// if not set to blank
|
// if not set to blank
|
||||||
if ( ! new RegExp(blankSrc).test(src))
|
if ( ! new RegExp(blankSrc).test(src))
|
||||||
fixImage();
|
fixImage();
|
||||||
};
|
};
|
||||||
|
|
||||||
function fixImage() {
|
function fixImage() {
|
||||||
// get src
|
// get src
|
||||||
var src = element.src;
|
var src = element.src;
|
||||||
|
|
||||||
// check for real change
|
// check for real change
|
||||||
if (src == realSrc) {
|
if (src == realSrc) {
|
||||||
element.src = blankSrc;
|
element.src = blankSrc;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! new RegExp(blankSrc).test(src)) {
|
if ( ! new RegExp(blankSrc).test(src)) {
|
||||||
// backup old src
|
// backup old src
|
||||||
realSrc = src;
|
realSrc = src;
|
||||||
}
|
}
|
||||||
|
|
||||||
// test for png
|
// test for png
|
||||||
if ( /\.png$/.test( realSrc.toLowerCase() ) ) {
|
if ( /\.png$/.test( realSrc.toLowerCase() ) ) {
|
||||||
// set blank image
|
// set blank image
|
||||||
element.src = blankSrc;
|
element.src = blankSrc;
|
||||||
// set filter
|
// set filter
|
||||||
element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
|
element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
|
||||||
src + "',sizingMethod='scale')";
|
src + "',sizingMethod='scale')";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// remove filter
|
// remove filter
|
||||||
element.runtimeStyle.filter = "";
|
element.runtimeStyle.filter = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</public:component>
|
</public:component>
|
@ -1,121 +1,121 @@
|
|||||||
.overlay_darkX {
|
.overlay_darkX {
|
||||||
background-color: #85BBEF;
|
background-color: #85BBEF;
|
||||||
filter:alpha(opacity=60);
|
filter:alpha(opacity=60);
|
||||||
-moz-opacity: 0.6;
|
-moz-opacity: 0.6;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.darkX_nw {
|
.darkX_nw {
|
||||||
background: transparent url(darkX/titlebar-left-focused.png) no-repeat 0 0;
|
background: transparent url(darkX/titlebar-left-focused.png) no-repeat 0 0;
|
||||||
width:6px;
|
width:6px;
|
||||||
height:21px;
|
height:21px;
|
||||||
}
|
}
|
||||||
.darkX_n {
|
.darkX_n {
|
||||||
background: transparent url(darkX/titlebar-mid-focused.png) repeat-x 0 0;
|
background: transparent url(darkX/titlebar-mid-focused.png) repeat-x 0 0;
|
||||||
height:21px;
|
height:21px;
|
||||||
}
|
}
|
||||||
.darkX_ne {
|
.darkX_ne {
|
||||||
background: transparent url(darkX/titlebar-right-focused.png) no-repeat 0 0;
|
background: transparent url(darkX/titlebar-right-focused.png) no-repeat 0 0;
|
||||||
width:6px;
|
width:6px;
|
||||||
height:21px;
|
height:21px;
|
||||||
}
|
}
|
||||||
.darkX_w {
|
.darkX_w {
|
||||||
background: transparent url(darkX/frame-left-focused.png) repeat-y top left;
|
background: transparent url(darkX/frame-left-focused.png) repeat-y top left;
|
||||||
width:3px;
|
width:3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.darkX_e {
|
.darkX_e {
|
||||||
background: transparent url(darkX/frame-right-focused.png) repeat-y top right;
|
background: transparent url(darkX/frame-right-focused.png) repeat-y top right;
|
||||||
width:3px;
|
width:3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.darkX_sw {
|
.darkX_sw {
|
||||||
background: transparent url(darkX/frame-bottom-left-focused.png) no-repeat 0 0;
|
background: transparent url(darkX/frame-bottom-left-focused.png) no-repeat 0 0;
|
||||||
width:5px;
|
width:5px;
|
||||||
height:3px;
|
height:3px;
|
||||||
}
|
}
|
||||||
.darkX_s {
|
.darkX_s {
|
||||||
background: transparent url(darkX/frame-bottom-mid-focused.png) repeat-x 0 0;
|
background: transparent url(darkX/frame-bottom-mid-focused.png) repeat-x 0 0;
|
||||||
height:3px;
|
height:3px;
|
||||||
}
|
}
|
||||||
.darkX_se, .darkX_sizer {
|
.darkX_se, .darkX_sizer {
|
||||||
background: transparent url(darkX/frame-bottom-right-focused.png) no-repeat 0 0;
|
background: transparent url(darkX/frame-bottom-right-focused.png) no-repeat 0 0;
|
||||||
width:5px;
|
width:5px;
|
||||||
height:3px;
|
height:3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.darkX_sizer {
|
.darkX_sizer {
|
||||||
cursor:se-resize;
|
cursor:se-resize;
|
||||||
}
|
}
|
||||||
|
|
||||||
.darkX_close {
|
.darkX_close {
|
||||||
width: 21px;
|
width: 21px;
|
||||||
height: 21px;
|
height: 21px;
|
||||||
background: transparent url(darkX/button-close-focused.png) no-repeat 0 0;
|
background: transparent url(darkX/button-close-focused.png) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:0px;
|
top:0px;
|
||||||
right:5px;
|
right:5px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.darkX_minimize {
|
.darkX_minimize {
|
||||||
width: 21px;
|
width: 21px;
|
||||||
height: 21px;
|
height: 21px;
|
||||||
background: transparent url(darkX/button-minimize-focused.png) no-repeat 0 0;
|
background: transparent url(darkX/button-minimize-focused.png) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:0px;
|
top:0px;
|
||||||
right:26px;
|
right:26px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.darkX_maximize {
|
.darkX_maximize {
|
||||||
width: 21px;
|
width: 21px;
|
||||||
height: 21px;
|
height: 21px;
|
||||||
background: transparent url(darkX/button-maximize-focused.png) no-repeat 0 0;
|
background: transparent url(darkX/button-maximize-focused.png) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:0px;
|
top:0px;
|
||||||
right:47px;
|
right:47px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.darkX_title {
|
.darkX_title {
|
||||||
float:left;
|
float:left;
|
||||||
height:14px;
|
height:14px;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
margin-top:2px;
|
margin-top:2px;
|
||||||
width:100%;
|
width:100%;
|
||||||
color:#FFF;
|
color:#FFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.darkX_content {
|
.darkX_content {
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
color: #E6DF2A;
|
color: #E6DF2A;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
background:#5E5148;
|
background:#5E5148;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* FOR IE */
|
/* FOR IE */
|
||||||
* html .darkX_minimize {
|
* html .darkX_minimize {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/darkX/button-minimize-focused.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/darkX/button-minimize-focused.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .darkX_maximize {
|
* html .darkX_maximize {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/darkX/button-maximize-focused.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/darkX/button-maximize-focused.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .darkX_close {
|
* html .darkX_close {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/darkX/button-close-focused.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/darkX/button-close-focused.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,25 @@
|
|||||||
div.inspector div.inspectable {
|
div.inspector div.inspectable {
|
||||||
padding: 0.25em 0 0.25em 1em;
|
padding: 0.25em 0 0.25em 1em;
|
||||||
background-color: Gray;
|
background-color: Gray;
|
||||||
color: white;
|
color: white;
|
||||||
border: outset 2px white;
|
border: outset 2px white;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.inspector div.child {
|
div.inspector div.child {
|
||||||
margin: 0 0 0 1em;
|
margin: 0 0 0 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#debug_window_content { /* DIV container for debug sizing*/
|
#debug_window_content { /* DIV container for debug sizing*/
|
||||||
width:250px;
|
width:250px;
|
||||||
height:100px;
|
height:100px;
|
||||||
background-color:#000;
|
background-color:#000;
|
||||||
}
|
}
|
||||||
|
|
||||||
#debug { /* DIV container for debug contents*/
|
#debug { /* DIV container for debug contents*/
|
||||||
padding:3px;
|
padding:3px;
|
||||||
color:#0f0;
|
color:#0f0;
|
||||||
font-family:monaco, Tahoma, Verdana, Arial, Helvetica, sans-serif;
|
font-family:monaco, Tahoma, Verdana, Arial, Helvetica, sans-serif;
|
||||||
font-size:10px;
|
font-size:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,155 +1,155 @@
|
|||||||
.overlay_dialog {
|
.overlay_dialog {
|
||||||
background-color: #666666;
|
background-color: #666666;
|
||||||
filter:alpha(opacity=60);
|
filter:alpha(opacity=60);
|
||||||
-moz-opacity: 0.6;
|
-moz-opacity: 0.6;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overlay___invisible__ {
|
.overlay___invisible__ {
|
||||||
background-color: #666666;
|
background-color: #666666;
|
||||||
filter:alpha(opacity=0);
|
filter:alpha(opacity=0);
|
||||||
-moz-opacity: 0;
|
-moz-opacity: 0;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_nw {
|
.dialog_nw {
|
||||||
width: 9px;
|
width: 9px;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
background: transparent url(default/top_left.gif) no-repeat 0 0;
|
background: transparent url(default/top_left.gif) no-repeat 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_n {
|
.dialog_n {
|
||||||
background: transparent url(default/top_mid.gif) repeat-x 0 0;
|
background: transparent url(default/top_mid.gif) repeat-x 0 0;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_ne {
|
.dialog_ne {
|
||||||
width: 9px;
|
width: 9px;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
background: transparent url(default/top_right.gif) no-repeat 0 0;
|
background: transparent url(default/top_right.gif) no-repeat 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_e {
|
.dialog_e {
|
||||||
width: 2px;
|
width: 2px;
|
||||||
background: transparent url(default/center_right.gif) repeat-y 0 0;
|
background: transparent url(default/center_right.gif) repeat-y 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_w {
|
.dialog_w {
|
||||||
width: 2px;
|
width: 2px;
|
||||||
background: transparent url(default/center_left.gif) repeat-y 0 0;
|
background: transparent url(default/center_left.gif) repeat-y 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_sw {
|
.dialog_sw {
|
||||||
width: 9px;
|
width: 9px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(default/bottom_left.gif) no-repeat 0 0;
|
background: transparent url(default/bottom_left.gif) no-repeat 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_s {
|
.dialog_s {
|
||||||
background: transparent url(default/bottom_mid.gif) repeat-x 0 0;
|
background: transparent url(default/bottom_mid.gif) repeat-x 0 0;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_se {
|
.dialog_se {
|
||||||
width: 9px;
|
width: 9px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(default/bottom_right.gif) no-repeat 0 0;
|
background: transparent url(default/bottom_right.gif) no-repeat 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_sizer {
|
.dialog_sizer {
|
||||||
width: 9px;
|
width: 9px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(default/sizer.gif) no-repeat 0 0;
|
background: transparent url(default/sizer.gif) no-repeat 0 0;
|
||||||
cursor:se-resize;
|
cursor:se-resize;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_close {
|
.dialog_close {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
background: transparent url(default/close.gif) no-repeat 0 0;
|
background: transparent url(default/close.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:5px;
|
top:5px;
|
||||||
left:8px;
|
left:8px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:2000;
|
z-index:2000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_minimize {
|
.dialog_minimize {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
background: transparent url(default/minimize.gif) no-repeat 0 0;
|
background: transparent url(default/minimize.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:5px;
|
top:5px;
|
||||||
left:28px;
|
left:28px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:2000;
|
z-index:2000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_maximize {
|
.dialog_maximize {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
background: transparent url(default/maximize.gif) no-repeat 0 0;
|
background: transparent url(default/maximize.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:5px;
|
top:5px;
|
||||||
left:49px;
|
left:49px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:2000;
|
z-index:2000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_title {
|
.dialog_title {
|
||||||
float:left;
|
float:left;
|
||||||
height:14px;
|
height:14px;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
width:100%;
|
width:100%;
|
||||||
color:#000;
|
color:#000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog_content {
|
.dialog_content {
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
color: #DDD;
|
color: #DDD;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
background-color:#123;
|
background-color:#123;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top_draggable, .bottom_draggable {
|
.top_draggable, .bottom_draggable {
|
||||||
cursor:move;
|
cursor:move;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status_bar {
|
.status_bar {
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
}
|
}
|
||||||
.status_bar input{
|
.status_bar input{
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wired_frame {
|
.wired_frame {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
border: 1px #000 dashed;
|
border: 1px #000 dashed;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* DO NOT CHANGE THESE VALUES*/
|
/* DO NOT CHANGE THESE VALUES*/
|
||||||
.dialog {
|
.dialog {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog table.table_window {
|
.dialog table.table_window {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding:0px;
|
padding:0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog table.table_window td , .dialog table.table_window th {
|
.dialog table.table_window td , .dialog table.table_window th {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog .title_window {
|
.dialog .title_window {
|
||||||
-moz-user-select:none;
|
-moz-user-select:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
/* PNG fix for all themes that uses PNG images on IE */
|
/* PNG fix for all themes that uses PNG images on IE */
|
||||||
td, div { behavior: url(../themes/iefix/iepngfix.htc) }
|
td, div { behavior: url(../themes/iefix/iepngfix.htc) }
|
||||||
|
|
||||||
|
@ -1,54 +1,54 @@
|
|||||||
<public:component>
|
<public:component>
|
||||||
<public:attach event="onpropertychange" onevent="doFix()" />
|
<public:attach event="onpropertychange" onevent="doFix()" />
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
// IE5.5+ PNG Alpha Fix v1.0RC4
|
// IE5.5+ PNG Alpha Fix v1.0RC4
|
||||||
// (c) 2004-2005 Angus Turnbull http://www.twinhelix.com
|
// (c) 2004-2005 Angus Turnbull http://www.twinhelix.com
|
||||||
|
|
||||||
// This is licensed under the CC-GNU LGPL, version 2.1 or later.
|
// This is licensed under the CC-GNU LGPL, version 2.1 or later.
|
||||||
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/
|
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
|
||||||
// Modified/Simplified on 04/23/2007 by Sebastien Gruhier (http://www.xilinus.com)
|
// Modified/Simplified on 04/23/2007 by Sebastien Gruhier (http://www.xilinus.com)
|
||||||
// To work only on background and to handle repeat bg
|
// To work only on background and to handle repeat bg
|
||||||
|
|
||||||
// This must be a path to a blank image. That's all the configuration you need.
|
// This must be a path to a blank image. That's all the configuration you need.
|
||||||
if (typeof blankImg == 'undefined') var blankImg = 'blank.gif';
|
if (typeof blankImg == 'undefined') var blankImg = 'blank.gif';
|
||||||
|
|
||||||
var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
|
var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
|
||||||
|
|
||||||
function filt(s, m)
|
function filt(s, m)
|
||||||
{
|
{
|
||||||
if (filters[f])
|
if (filters[f])
|
||||||
{
|
{
|
||||||
filters[f].enabled = s ? true : false;
|
filters[f].enabled = s ? true : false;
|
||||||
if (s) with (filters[f]) { src = s; sizingMethod = m }
|
if (s) with (filters[f]) { src = s; sizingMethod = m }
|
||||||
}
|
}
|
||||||
else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="'+m+'")';
|
else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="'+m+'")';
|
||||||
}
|
}
|
||||||
|
|
||||||
function doFix()
|
function doFix()
|
||||||
{
|
{
|
||||||
// Assume IE7 is OK.
|
// Assume IE7 is OK.
|
||||||
if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent) ||
|
if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent) ||
|
||||||
(event && !/(background|src)/.test(event.propertyName))) return;
|
(event && !/(background|src)/.test(event.propertyName))) return;
|
||||||
|
|
||||||
var bgImg = currentStyle.backgroundImage || style.backgroundImage;
|
var bgImg = currentStyle.backgroundImage || style.backgroundImage;
|
||||||
var bgRepeat = currentStyle.backgroundRepeat || style.backgroundRepeat;
|
var bgRepeat = currentStyle.backgroundRepeat || style.backgroundRepeat;
|
||||||
if (bgImg && bgImg != 'none')
|
if (bgImg && bgImg != 'none')
|
||||||
{
|
{
|
||||||
if (bgImg.match(/^url[("']+(.*\.png)[)"']+$/i))
|
if (bgImg.match(/^url[("']+(.*\.png)[)"']+$/i))
|
||||||
{
|
{
|
||||||
var s = RegExp.$1;
|
var s = RegExp.$1;
|
||||||
if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
|
if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
|
||||||
style.width = offsetWidth + 'px';
|
style.width = offsetWidth + 'px';
|
||||||
style.backgroundImage = 'none';
|
style.backgroundImage = 'none';
|
||||||
filt(s, bgRepeat == "no-repeat" ? 'crop' : 'scale');
|
filt(s, bgRepeat == "no-repeat" ? 'crop' : 'scale');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
doFix();
|
doFix();
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</public:component>
|
</public:component>
|
@ -1,67 +1,67 @@
|
|||||||
<public:component>
|
<public:component>
|
||||||
<public:attach event="onpropertychange" onevent="doFix()" />
|
<public:attach event="onpropertychange" onevent="doFix()" />
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
// IE5.5+ PNG Alpha Fix v1.0RC4
|
// IE5.5+ PNG Alpha Fix v1.0RC4
|
||||||
// (c) 2004-2005 Angus Turnbull http://www.twinhelix.com
|
// (c) 2004-2005 Angus Turnbull http://www.twinhelix.com
|
||||||
|
|
||||||
// This is licensed under the CC-GNU LGPL, version 2.1 or later.
|
// This is licensed under the CC-GNU LGPL, version 2.1 or later.
|
||||||
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/
|
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/
|
||||||
|
|
||||||
|
|
||||||
// This must be a path to a blank image. That's all the configuration you need.
|
// This must be a path to a blank image. That's all the configuration you need.
|
||||||
if (typeof blankImg == 'undefined') var blankImg = 'blank.gif';
|
if (typeof blankImg == 'undefined') var blankImg = 'blank.gif';
|
||||||
|
|
||||||
|
|
||||||
var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
|
var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
|
||||||
|
|
||||||
function filt(s, m)
|
function filt(s, m)
|
||||||
{
|
{
|
||||||
if (filters[f])
|
if (filters[f])
|
||||||
{
|
{
|
||||||
filters[f].enabled = s ? true : false;
|
filters[f].enabled = s ? true : false;
|
||||||
if (s) with (filters[f]) { src = s; sizingMethod = m }
|
if (s) with (filters[f]) { src = s; sizingMethod = m }
|
||||||
}
|
}
|
||||||
else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="'+m+'")';
|
else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="'+m+'")';
|
||||||
}
|
}
|
||||||
|
|
||||||
function doFix()
|
function doFix()
|
||||||
{
|
{
|
||||||
alert('ok')
|
alert('ok')
|
||||||
|
|
||||||
// Assume IE7 is OK.
|
// Assume IE7 is OK.
|
||||||
if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent) ||
|
if (!/MSIE (5\.5|6\.)/.test(navigator.userAgent) ||
|
||||||
(event && !/(background|src)/.test(event.propertyName))) return;
|
(event && !/(background|src)/.test(event.propertyName))) return;
|
||||||
|
|
||||||
var bgImg = currentStyle.backgroundImage || style.backgroundImage;
|
var bgImg = currentStyle.backgroundImage || style.backgroundImage;
|
||||||
|
|
||||||
if (tagName == 'IMG')
|
if (tagName == 'IMG')
|
||||||
{
|
{
|
||||||
if ((/\.png$/i).test(src))
|
if ((/\.png$/i).test(src))
|
||||||
{
|
{
|
||||||
if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
|
if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
|
||||||
style.width = offsetWidth + 'px';
|
style.width = offsetWidth + 'px';
|
||||||
filt(src, 'scale');
|
filt(src, 'scale');
|
||||||
src = blankImg;
|
src = blankImg;
|
||||||
}
|
}
|
||||||
else if (src.indexOf(blankImg) < 0) filt();
|
else if (src.indexOf(blankImg) < 0) filt();
|
||||||
}
|
}
|
||||||
else if (bgImg && bgImg != 'none')
|
else if (bgImg && bgImg != 'none')
|
||||||
{
|
{
|
||||||
if (bgImg.match(/^url[("']+(.*\.png)[)"']+$/i))
|
if (bgImg.match(/^url[("']+(.*\.png)[)"']+$/i))
|
||||||
{
|
{
|
||||||
var s = RegExp.$1;
|
var s = RegExp.$1;
|
||||||
if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
|
if (currentStyle.width == 'auto' && currentStyle.height == 'auto')
|
||||||
style.width = offsetWidth + 'px';
|
style.width = offsetWidth + 'px';
|
||||||
style.backgroundImage = 'none';
|
style.backgroundImage = 'none';
|
||||||
filt(s, 'crop');
|
filt(s, 'crop');
|
||||||
// IE link fix.
|
// IE link fix.
|
||||||
for (var n = 0; n < childNodes.length; n++)
|
for (var n = 0; n < childNodes.length; n++)
|
||||||
if (childNodes[n].style) childNodes[n].style.position = 'relative';
|
if (childNodes[n].style) childNodes[n].style.position = 'relative';
|
||||||
}
|
}
|
||||||
else filt();
|
else filt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
doFix();
|
doFix();
|
||||||
|
@ -1,333 +1,333 @@
|
|||||||
/* Focused windows */
|
/* Focused windows */
|
||||||
.overlay_mac_os_x {
|
.overlay_mac_os_x {
|
||||||
background-color: #85BBEF;
|
background-color: #85BBEF;
|
||||||
filter:alpha(opacity=60);
|
filter:alpha(opacity=60);
|
||||||
-moz-opacity: 0.6;
|
-moz-opacity: 0.6;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_nw {
|
.mac_os_x_nw {
|
||||||
background: transparent url(mac_os_x/TL_Main.png) no-repeat 0 0;
|
background: transparent url(mac_os_x/TL_Main.png) no-repeat 0 0;
|
||||||
width:24px;
|
width:24px;
|
||||||
height:30px;
|
height:30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_n {
|
.mac_os_x_n {
|
||||||
background: transparent url(mac_os_x/T_Main.png) repeat-x 0 0;
|
background: transparent url(mac_os_x/T_Main.png) repeat-x 0 0;
|
||||||
height:30px;
|
height:30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_ne {
|
.mac_os_x_ne {
|
||||||
background: transparent url(mac_os_x/TR_Main.png) no-repeat 0 0;
|
background: transparent url(mac_os_x/TR_Main.png) no-repeat 0 0;
|
||||||
width:31px;
|
width:31px;
|
||||||
height:30px;
|
height:30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_w {
|
.mac_os_x_w {
|
||||||
background: transparent url(mac_os_x/L_Main.png) repeat-y top left;
|
background: transparent url(mac_os_x/L_Main.png) repeat-y top left;
|
||||||
width:16px;
|
width:16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_e {
|
.mac_os_x_e {
|
||||||
background: transparent url(mac_os_x/R_Main.png) repeat-y top right;
|
background: transparent url(mac_os_x/R_Main.png) repeat-y top right;
|
||||||
width:16px;
|
width:16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_sw {
|
.mac_os_x_sw {
|
||||||
background: transparent url(mac_os_x/BL_Main.png) no-repeat 0 0;
|
background: transparent url(mac_os_x/BL_Main.png) no-repeat 0 0;
|
||||||
width:31px;
|
width:31px;
|
||||||
height:40px;
|
height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_s {
|
.mac_os_x_s {
|
||||||
background: transparent url(mac_os_x/B_Main.png) repeat-x 0 0;
|
background: transparent url(mac_os_x/B_Main.png) repeat-x 0 0;
|
||||||
height:40px;
|
height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_se, .mac_os_x_sizer {
|
.mac_os_x_se, .mac_os_x_sizer {
|
||||||
background: transparent url(mac_os_x/BR_Main.png) no-repeat 0 0;
|
background: transparent url(mac_os_x/BR_Main.png) no-repeat 0 0;
|
||||||
width:31px;
|
width:31px;
|
||||||
height:40px;
|
height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_sizer {
|
.mac_os_x_sizer {
|
||||||
cursor:se-resize;
|
cursor:se-resize;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_close {
|
.mac_os_x_close {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(mac_os_x/close.gif) no-repeat 0 0;
|
background: transparent url(mac_os_x/close.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:12px;
|
top:12px;
|
||||||
left:25px;
|
left:25px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_minimize {
|
.mac_os_x_minimize {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(mac_os_x/minimize.gif) no-repeat 0 0;
|
background: transparent url(mac_os_x/minimize.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:12px;
|
top:12px;
|
||||||
left:45px;
|
left:45px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_maximize {
|
.mac_os_x_maximize {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(mac_os_x/maximize.gif) no-repeat 0 0;
|
background: transparent url(mac_os_x/maximize.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:12px;
|
top:12px;
|
||||||
left:65px;
|
left:65px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_title {
|
.mac_os_x_title {
|
||||||
float:left;
|
float:left;
|
||||||
height:14px;
|
height:14px;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
margin-top:8px;
|
margin-top:8px;
|
||||||
width:100%;
|
width:100%;
|
||||||
color:#000;
|
color:#000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_content {
|
.mac_os_x_content {
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
color: #222;
|
color: #222;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
background:#FFF;
|
background:#FFF;
|
||||||
}
|
}
|
||||||
.mac_os_x_s .status_bar {
|
.mac_os_x_s .status_bar {
|
||||||
padding-bottom:24px;
|
padding-bottom:24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FOR IE */
|
/* FOR IE */
|
||||||
* html .mac_os_x_nw {
|
* html .mac_os_x_nw {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TL_Main.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TL_Main.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_n {
|
* html .mac_os_x_n {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/T_Main.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/T_Main.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_ne {
|
* html .mac_os_x_ne {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TR_Main.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TR_Main.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_w {
|
* html .mac_os_x_w {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/L_Main.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/L_Main.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_e {
|
* html .mac_os_x_e {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/R_Main.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/R_Main.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_sw {
|
* html .mac_os_x_sw {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BL_Main.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BL_Main.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_s {
|
* html .mac_os_x_s {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/B_Main.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/B_Main.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_se {
|
* html .mac_os_x_se {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR_Main.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR_Main.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_sizer {
|
* html .mac_os_x_sizer {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR_Main.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR_Main.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Focused windows */
|
/* Focused windows */
|
||||||
.overlay_blur_os_x {
|
.overlay_blur_os_x {
|
||||||
background-color: #85BBEF;
|
background-color: #85BBEF;
|
||||||
filter:alpha(opacity=60);
|
filter:alpha(opacity=60);
|
||||||
-moz-opacity: 0.6;
|
-moz-opacity: 0.6;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_nw {
|
.blur_os_x_nw {
|
||||||
background: transparent url(mac_os_x/TL.png) no-repeat 0 0;
|
background: transparent url(mac_os_x/TL.png) no-repeat 0 0;
|
||||||
width:24px;
|
width:24px;
|
||||||
height:30px;
|
height:30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_n {
|
.blur_os_x_n {
|
||||||
background: transparent url(mac_os_x/T.png) repeat-x 0 0;
|
background: transparent url(mac_os_x/T.png) repeat-x 0 0;
|
||||||
height:30px;
|
height:30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_ne {
|
.blur_os_x_ne {
|
||||||
background: transparent url(mac_os_x/TR.png) no-repeat 0 0;
|
background: transparent url(mac_os_x/TR.png) no-repeat 0 0;
|
||||||
width:31px;
|
width:31px;
|
||||||
height:30px;
|
height:30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_w {
|
.blur_os_x_w {
|
||||||
background: transparent url(mac_os_x/L.png) repeat-y top left;
|
background: transparent url(mac_os_x/L.png) repeat-y top left;
|
||||||
width:16px;
|
width:16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_e {
|
.blur_os_x_e {
|
||||||
background: transparent url(mac_os_x/R.png) repeat-y top right;
|
background: transparent url(mac_os_x/R.png) repeat-y top right;
|
||||||
width:16px;
|
width:16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_sw {
|
.blur_os_x_sw {
|
||||||
background: transparent url(mac_os_x/BL.png) no-repeat 0 0;
|
background: transparent url(mac_os_x/BL.png) no-repeat 0 0;
|
||||||
width:31px;
|
width:31px;
|
||||||
height:40px;
|
height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_s {
|
.blur_os_x_s {
|
||||||
background: transparent url(mac_os_x/B.png) repeat-x 0 0;
|
background: transparent url(mac_os_x/B.png) repeat-x 0 0;
|
||||||
height:40px;
|
height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_se, .blur_os_x_sizer {
|
.blur_os_x_se, .blur_os_x_sizer {
|
||||||
background: transparent url(mac_os_x/BR.png) no-repeat 0 0;
|
background: transparent url(mac_os_x/BR.png) no-repeat 0 0;
|
||||||
width:31px;
|
width:31px;
|
||||||
height:40px;
|
height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_sizer {
|
.blur_os_x_sizer {
|
||||||
cursor:se-resize;
|
cursor:se-resize;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_close {
|
.blur_os_x_close {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(mac_os_x/close.gif) no-repeat 0 0;
|
background: transparent url(mac_os_x/close.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:12px;
|
top:12px;
|
||||||
left:25px;
|
left:25px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_minimize {
|
.blur_os_x_minimize {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(mac_os_x/minimize.gif) no-repeat 0 0;
|
background: transparent url(mac_os_x/minimize.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:12px;
|
top:12px;
|
||||||
left:45px;
|
left:45px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_maximize {
|
.blur_os_x_maximize {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(mac_os_x/maximize.gif) no-repeat 0 0;
|
background: transparent url(mac_os_x/maximize.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:12px;
|
top:12px;
|
||||||
left:65px;
|
left:65px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_title {
|
.blur_os_x_title {
|
||||||
float:left;
|
float:left;
|
||||||
height:14px;
|
height:14px;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
margin-top:8px;
|
margin-top:8px;
|
||||||
width:100%;
|
width:100%;
|
||||||
color:#000;
|
color:#000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blur_os_x_content {
|
.blur_os_x_content {
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
color: #222;
|
color: #222;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
background:#FFF;
|
background:#FFF;
|
||||||
}
|
}
|
||||||
.blur_os_x_s .status_bar {
|
.blur_os_x_s .status_bar {
|
||||||
padding-bottom:24px;
|
padding-bottom:24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FOR IE */
|
/* FOR IE */
|
||||||
* html .blur_os_x_nw {
|
* html .blur_os_x_nw {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TL.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TL.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .blur_os_x_n {
|
* html .blur_os_x_n {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/T.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/T.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .blur_os_x_ne {
|
* html .blur_os_x_ne {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TR.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TR.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .blur_os_x_w {
|
* html .blur_os_x_w {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/L.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/L.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .blur_os_x_e {
|
* html .blur_os_x_e {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/R.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/R.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .blur_os_x_sw {
|
* html .blur_os_x_sw {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BL.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BL.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .blur_os_x_s {
|
* html .blur_os_x_s {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/B.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/B.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .blur_os_x_se {
|
* html .blur_os_x_se {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .blur_os_x_sizer {
|
* html .blur_os_x_sizer {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,160 +1,160 @@
|
|||||||
.overlay_mac_os_x_dialog {
|
.overlay_mac_os_x_dialog {
|
||||||
background-color: #FF7224;
|
background-color: #FF7224;
|
||||||
filter:alpha(opacity=60);
|
filter:alpha(opacity=60);
|
||||||
-moz-opacity: 0.6;
|
-moz-opacity: 0.6;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_nw {
|
.mac_os_x_dialog_nw {
|
||||||
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
|
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
|
||||||
width:16px;
|
width:16px;
|
||||||
height:16px;
|
height:16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_n {
|
.mac_os_x_dialog_n {
|
||||||
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
|
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
|
||||||
height:18px;
|
height:18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_ne {
|
.mac_os_x_dialog_ne {
|
||||||
background: transparent url(mac_os_x_dialog/R.png) repeat-y top left;
|
background: transparent url(mac_os_x_dialog/R.png) repeat-y top left;
|
||||||
width:16px;
|
width:16px;
|
||||||
height:16px;
|
height:16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_w {
|
.mac_os_x_dialog_w {
|
||||||
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
|
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
|
||||||
width:16px;
|
width:16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_e {
|
.mac_os_x_dialog_e {
|
||||||
background: transparent url(mac_os_x_dialog/R.png) repeat-y top right;
|
background: transparent url(mac_os_x_dialog/R.png) repeat-y top right;
|
||||||
width:16px;
|
width:16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_sw {
|
.mac_os_x_dialog_sw {
|
||||||
background: transparent url(mac_os_x_dialog/BL.png) no-repeat 0 0;
|
background: transparent url(mac_os_x_dialog/BL.png) no-repeat 0 0;
|
||||||
width:31px;
|
width:31px;
|
||||||
height:40px;
|
height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_s {
|
.mac_os_x_dialog_s {
|
||||||
background: transparent url(mac_os_x_dialog/B.png) repeat-x 0 0;
|
background: transparent url(mac_os_x_dialog/B.png) repeat-x 0 0;
|
||||||
height:40px;
|
height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_se, .mac_os_x_dialog_sizer {
|
.mac_os_x_dialog_se, .mac_os_x_dialog_sizer {
|
||||||
background: transparent url(mac_os_x_dialog/BR.png) no-repeat 0 0;
|
background: transparent url(mac_os_x_dialog/BR.png) no-repeat 0 0;
|
||||||
width:31px;
|
width:31px;
|
||||||
height:40px;
|
height:40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_sizer {
|
.mac_os_x_dialog_sizer {
|
||||||
cursor:se-resize;
|
cursor:se-resize;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_close {
|
.mac_os_x_dialog_close {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(mac_os_x_dialog/close.gif) no-repeat 0 0;
|
background: transparent url(mac_os_x_dialog/close.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:12px;
|
top:12px;
|
||||||
left:25px;
|
left:25px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_minimize {
|
.mac_os_x_dialog_minimize {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(mac_os_x_dialog/minimize.gif) no-repeat 0 0;
|
background: transparent url(mac_os_x_dialog/minimize.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:12px;
|
top:12px;
|
||||||
left:45px;
|
left:45px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_maximize {
|
.mac_os_x_dialog_maximize {
|
||||||
width: 19px;
|
width: 19px;
|
||||||
height: 19px;
|
height: 19px;
|
||||||
background: transparent url(mac_os_x_dialog/maximize.gif) no-repeat 0 0;
|
background: transparent url(mac_os_x_dialog/maximize.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:12px;
|
top:12px;
|
||||||
left:65px;
|
left:65px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_title {
|
.mac_os_x_dialog_title {
|
||||||
float:left;
|
float:left;
|
||||||
height:14px;
|
height:14px;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
margin-top:6px;
|
margin-top:6px;
|
||||||
width:100%;
|
width:100%;
|
||||||
color:#000;
|
color:#000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_content {
|
.mac_os_x_dialog_content {
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
color: #222;
|
color: #222;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
|
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mac_os_x_dialog_buttons {
|
.mac_os_x_dialog_buttons {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
/* FOR IE */
|
/* FOR IE */
|
||||||
* html .mac_os_x_dialog_nw {
|
* html .mac_os_x_dialog_nw {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
* html .mac_os_x_dialog_ne {
|
* html .mac_os_x_dialog_ne {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_dialog_w {
|
* html .mac_os_x_dialog_w {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_dialog_e {
|
* html .mac_os_x_dialog_e {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_dialog_sw {
|
* html .mac_os_x_dialog_sw {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BL.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BL.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_dialog_s {
|
* html .mac_os_x_dialog_s {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/B.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/B.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_dialog_se {
|
* html .mac_os_x_dialog_se {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .mac_os_x_dialog_sizer {
|
* html .mac_os_x_dialog_sizer {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,164 +1,164 @@
|
|||||||
.overlay_nuncio img { border: none; }
|
.overlay_nuncio img { border: none; }
|
||||||
|
|
||||||
.overlay_nuncio {
|
.overlay_nuncio {
|
||||||
background-color: #666666;
|
background-color: #666666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nuncio_nw {
|
.nuncio_nw {
|
||||||
width: 12px;
|
width: 12px;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
background: url(nuncio/top_left.png) no-repeat;
|
background: url(nuncio/top_left.png) no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nuncio_n {
|
.nuncio_n {
|
||||||
background: url(nuncio/top_mid.png) repeat-x;
|
background: url(nuncio/top_mid.png) repeat-x;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nuncio_ne {
|
.nuncio_ne {
|
||||||
width: 21px;
|
width: 21px;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
background: url(nuncio/top_right.png) no-repeat;
|
background: url(nuncio/top_right.png) no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nuncio_e {
|
.nuncio_e {
|
||||||
width: 21px;
|
width: 21px;
|
||||||
background: url(nuncio/center_right.png) repeat-y top right;
|
background: url(nuncio/center_right.png) repeat-y top right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nuncio_w {
|
.nuncio_w {
|
||||||
width: 12px;
|
width: 12px;
|
||||||
background: url(nuncio/center_left.png) repeat-y top left;
|
background: url(nuncio/center_left.png) repeat-y top left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nuncio_sw {
|
.nuncio_sw {
|
||||||
width: 12px;
|
width: 12px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
background: url(nuncio/bottom_left.png) no-repeat;
|
background: url(nuncio/bottom_left.png) no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nuncio_s {
|
.nuncio_s {
|
||||||
background: url(nuncio/bottom_mid.png) repeat-x 0 0;
|
background: url(nuncio/bottom_mid.png) repeat-x 0 0;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nuncio_se, .nuncio_sizer {
|
.nuncio_se, .nuncio_sizer {
|
||||||
width: 21px;
|
width: 21px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
background: url(nuncio/bottom_right.png) no-repeat;
|
background: url(nuncio/bottom_right.png) no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nuncio_close {
|
.nuncio_close {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
background: url(nuncio/close.png) no-repeat;
|
background: url(nuncio/close.png) no-repeat;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:10px;
|
top:10px;
|
||||||
right:22px;
|
right:22px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:2000;
|
z-index:2000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nuncio_minimize {
|
.nuncio_minimize {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
background: url(nuncio/minimize.png) no-repeat;
|
background: url(nuncio/minimize.png) no-repeat;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:10px;
|
top:10px;
|
||||||
right:40px;
|
right:40px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:2000;
|
z-index:2000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nuncio_title {
|
.nuncio_title {
|
||||||
float:left;
|
float:left;
|
||||||
font-size:11px;
|
font-size:11px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
width: 100%
|
width: 100%
|
||||||
}
|
}
|
||||||
|
|
||||||
.nuncio_content {
|
.nuncio_content {
|
||||||
background: url(nuncio/overlay.png) repeat;
|
background: url(nuncio/overlay.png) repeat;
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
font-family: Tahoma, Arial, "sans-serif";
|
font-family: Tahoma, Arial, "sans-serif";
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nuncio_sizer {
|
.nuncio_sizer {
|
||||||
cursor:se-resize;
|
cursor:se-resize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.top_draggable, .bottom_draggable {
|
.top_draggable, .bottom_draggable {
|
||||||
cursor:move
|
cursor:move
|
||||||
}
|
}
|
||||||
/* FOR IE */
|
/* FOR IE */
|
||||||
* html .nuncio_nw {
|
* html .nuncio_nw {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_left.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_left.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .nuncio_n {
|
* html .nuncio_n {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_mid.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_mid.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .nuncio_ne {
|
* html .nuncio_ne {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_right.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_right.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .nuncio_w {
|
* html .nuncio_w {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_left.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_left.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .nuncio_e {
|
* html .nuncio_e {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_right.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_right.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .nuncio_sw {
|
* html .nuncio_sw {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_left.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_left.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .nuncio_s {
|
* html .nuncio_s {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_mid.png", sizingMethod="scale");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_mid.png", sizingMethod="scale");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .nuncio_se {
|
* html .nuncio_se {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .nuncio_sizer {
|
* html .nuncio_sizer {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .nuncio_close {
|
* html .nuncio_close {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/close.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/close.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
* html .nuncio_minimize {
|
* html .nuncio_minimize {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/minimize.png", sizingMethod="crop");
|
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/minimize.png", sizingMethod="crop");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,108 +1,108 @@
|
|||||||
.overlay_spread {
|
.overlay_spread {
|
||||||
background-color: #85BBEF;
|
background-color: #85BBEF;
|
||||||
filter:alpha(opacity=60);
|
filter:alpha(opacity=60);
|
||||||
-moz-opacity: 0.6;
|
-moz-opacity: 0.6;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_nw {
|
.spread_nw {
|
||||||
background: transparent url(spread/left-top.gif) no-repeat 0 0;
|
background: transparent url(spread/left-top.gif) no-repeat 0 0;
|
||||||
width:10px;
|
width:10px;
|
||||||
height:25px;
|
height:25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_n {
|
.spread_n {
|
||||||
background: transparent url(spread/top-middle.gif) repeat-x 0 0;
|
background: transparent url(spread/top-middle.gif) repeat-x 0 0;
|
||||||
height:25px;
|
height:25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_ne {
|
.spread_ne {
|
||||||
background: transparent url(spread/right-top.gif) no-repeat 0 0;
|
background: transparent url(spread/right-top.gif) no-repeat 0 0;
|
||||||
width:10px;
|
width:10px;
|
||||||
height:25px;
|
height:25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_w {
|
.spread_w {
|
||||||
background: transparent url(spread/frame-left.gif) repeat-y top left;
|
background: transparent url(spread/frame-left.gif) repeat-y top left;
|
||||||
width:7px;
|
width:7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_e {
|
.spread_e {
|
||||||
background: transparent url(spread/frame-right.gif) repeat-y top right;
|
background: transparent url(spread/frame-right.gif) repeat-y top right;
|
||||||
width:7px;
|
width:7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_sw {
|
.spread_sw {
|
||||||
background: transparent url(spread/bottom-left-c.gif) no-repeat 0 0;
|
background: transparent url(spread/bottom-left-c.gif) no-repeat 0 0;
|
||||||
width:7px;
|
width:7px;
|
||||||
height:7px;
|
height:7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_s {
|
.spread_s {
|
||||||
background: transparent url(spread/bottom-middle.gif) repeat-x 0 0;
|
background: transparent url(spread/bottom-middle.gif) repeat-x 0 0;
|
||||||
height:7px;
|
height:7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_se, .spread_sizer {
|
.spread_se, .spread_sizer {
|
||||||
background: transparent url(spread/bottom-right-c.gif) no-repeat 0 0;
|
background: transparent url(spread/bottom-right-c.gif) no-repeat 0 0;
|
||||||
width:7px;
|
width:7px;
|
||||||
height:7px;
|
height:7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_sizer {
|
.spread_sizer {
|
||||||
cursor:se-resize;
|
cursor:se-resize;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_close {
|
.spread_close {
|
||||||
width: 23px;
|
width: 23px;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
background: transparent url(spread/button-close-focus.gif) no-repeat 0 0;
|
background: transparent url(spread/button-close-focus.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:0px;
|
top:0px;
|
||||||
right:11px;
|
right:11px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_minimize {
|
.spread_minimize {
|
||||||
width: 23px;
|
width: 23px;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
background: transparent url(spread/button-min-focus.gif) no-repeat 0 0;
|
background: transparent url(spread/button-min-focus.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:0px;
|
top:0px;
|
||||||
right:55px;
|
right:55px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_maximize {
|
.spread_maximize {
|
||||||
width: 23px;
|
width: 23px;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
background: transparent url(spread/button-max-focus.gif) no-repeat 0 0;
|
background: transparent url(spread/button-max-focus.gif) no-repeat 0 0;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:0px;
|
top:0px;
|
||||||
right:33px;
|
right:33px;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
z-index:1000;
|
z-index:1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_title {
|
.spread_title {
|
||||||
float:left;
|
float:left;
|
||||||
height:14px;
|
height:14px;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size:14px;
|
font-size:14px;
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
text-align:left;
|
text-align:left;
|
||||||
margin-top:2px;
|
margin-top:2px;
|
||||||
width:100%;
|
width:100%;
|
||||||
color:#E47211;
|
color:#E47211;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spread_content {
|
.spread_content {
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
color: #222;
|
color: #222;
|
||||||
font-family: Tahoma, Arial, sans-serif;
|
font-family: Tahoma, Arial, sans-serif;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
background:#A9EA00;
|
background:#A9EA00;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,109 @@
|
|||||||
|
/* 门户首页 */
|
||||||
|
#por_header{ width:100%; }
|
||||||
|
.por_header_top{ width:100%; height:70px; background:#3b94d6; }
|
||||||
|
.por_header_con{ width:1000px; margin:0 auto; height:70px; }
|
||||||
|
.por_logo{ margin-top:5px;}
|
||||||
|
.por_login li{ float:left;}
|
||||||
|
.por_login li a{ display:block; padding:0 15px; height:70px; line-height:70px;font-size:16px; color:#fff; }
|
||||||
|
.por_login li a:hover{ background-color:#1173bc;}
|
||||||
|
.por_search{ margin-top:15px; margin-right:20px;}
|
||||||
|
.pro_input_search{ background-color:#daeefc; height:36px; width:355px; border:none; padding:0 5px; color:#3b94d6;}
|
||||||
|
a.por_search_btn{ display:block;background:#daeefc url(../images/org_custom/icons_por.png) 0 8px no-repeat; width:25px; height:36px;}
|
||||||
|
a:hover.por_search_btn{background:#daeefc url(../images/org_custom/icons_por.png) -35px 8px no-repeat; }
|
||||||
|
.por_nav{ width:1000px; height:70px; overflow:hidden; margin: 0 auto; position:relative; }
|
||||||
|
a.por_edit_index{ position:absolute; font-size:14px; right:5px; top:20px;}
|
||||||
|
.por_nav ul{ border-bottom:7px solid #ccc; height:63px;}
|
||||||
|
.por_nav ul li{ float:left; }
|
||||||
|
.por_nav ul li a{ display: block; height:63px; padding:0 20px; line-height:63px; font-size:18px; color:#333; }
|
||||||
|
.por_nav ul li a:hover{ border-bottom:7px solid #3b94d6; }
|
||||||
|
.por_index_act{border-bottom:7px solid #3b94d6; }
|
||||||
|
|
||||||
|
#por_container{ width:1000px; margin:10px auto;}
|
||||||
|
.por_left{ width:685px; margin-right:15px; float:left; }
|
||||||
|
.por_right{ width:300px; float:left;}
|
||||||
|
.por_icons_hot{ background:url(../images/org_custom/icons_por.png) 0 -78px no-repeat; height:22px; width:55px; padding-left:3px; color:#fff; font-size:12px; line-height:22px; font-weight:normal;}
|
||||||
|
.por_h2_index{ font-size:20px; font-weight:normal; color:#3b94d6; width:100%; border-bottom:1px solid #e8e5e5; height:40px; line-height:40px;}
|
||||||
|
a.por_more_index{ font-size:12px; color:#999; }
|
||||||
|
.por_hotbar_left li{ width:365px; padding:12px 5px 12px 0; border-bottom:1px dashed #e8e5e5;}
|
||||||
|
a.por_hot_title{ font-size:16px; display:block; font-weight:bold; width:365px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
.por_hot_txt{ color:#666; line-height:20px;max-height:60px;overflow:hidden;text-overflow:ellipsis;}
|
||||||
|
.por_time{ color:#999;}
|
||||||
|
a.por_hot_name{color:#3b94d6;}
|
||||||
|
.por_hotbar_right{ border:1px solid #e8e5e5; padding:5px; margin-top:15px; width:300px;}
|
||||||
|
.por_hotbar_right img{ width:300px; height:246px;}
|
||||||
|
.por_hot_title_r{ font-size:16px; display:block; font-weight:bold; width:300px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
.por_hot_txt_r{color:#666; line-height:20px;max-height:80px;overflow:hidden;text-overflow:ellipsis;}
|
||||||
|
.por_course{ }
|
||||||
|
.por_course_bar{ width:328px; margin:0 7px; padding:20px 0; border-bottom:1px solid #e8e5e5;}
|
||||||
|
a.por_course_title{font-size:14px; margin-bottom:10px; display:block; font-weight:bold; width:328px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
.por_course_bar img{ width:140px; height:100px; }
|
||||||
|
.por_course_txt { width:180px; margin-left:5px;color:#666; line-height:20px;max-height:80px;overflow:hidden;text-overflow:ellipsis;}
|
||||||
|
.por_course_time{color:#3b94d6; margin-left:5px;}
|
||||||
|
.por_post{ border-bottom:1px solid #e8e5e5; padding-bottom:5px;}
|
||||||
|
.por_post_left{ width:394px; margin-top:15px;}
|
||||||
|
.por_post_leftbar img{ width:377px; height:163px;}
|
||||||
|
.por_post_leftbar { border-bottom:1px dashed #e8e5e5; padding-bottom:5px; margin-bottom:10px;}
|
||||||
|
a.por_post_title{font-size:18px; display:block; width:377px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
.por_post_txt{color:#666; line-height:20px;max-height:40px;overflow:hidden;text-overflow:ellipsis; }
|
||||||
|
.post_icons_grey{ width:5px; height:5px; margin:10px 5px 0 0; background-color:#b3b3b3; display:block; line-height:20px;}
|
||||||
|
.por_post_list li{ height:20px; height:30px;}
|
||||||
|
.por_post_list li a{ font-size:14px; }
|
||||||
|
a.por_hidden_w390{ display:block; width:390px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
a.por_hidden_w270{ display:block; width:280px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
.por_post_right{ width:280px; border-left:1px solid #e8e5e5; margin-top:15px; padding-left:10px;}
|
||||||
|
.por_news_list li{ padding:15px 0; border-bottom:1px dashed #e8e5e5;}
|
||||||
|
.por_users_img{ width:40px; height:40px; border:1px solid #e8e5e5;}
|
||||||
|
.por_news_txt{ width:245px; margin-left:10px;}
|
||||||
|
.por_news_p{ line-height:20px;max-height:40px;min-width:240px;overflow:hidden;text-overflow:ellipsis; }
|
||||||
|
a.por_zan{ background:url(../images/org_custom/icons_por.png) 0 -41px no-repeat; height:15px; width:20px; display:block; padding-left:15px; line-height:20px; color:#999;}
|
||||||
|
a.por_zan:hover{background:url(../images/org_custom/icons_por.png) -34px -42px no-repeat; color:#3b94d6; }
|
||||||
|
.por_hidden_w205{ font-size:14px; display:block; width:205px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
.por_projects{border-bottom:1px solid #e8e5e5; padding-bottom:10px; margin-top:10px;}
|
||||||
|
.por_projects ul li{ padding:5px 0;}
|
||||||
|
.por_projects ul{ margin-top:5px;}
|
||||||
|
.por_project_p{ line-height:20px;max-height:40px;overflow:hidden;text-overflow:ellipsis; margin-top:5px; margin-left:10px; color:#666; }
|
||||||
|
.por_project_li{border-bottom:1px dashed #ccc; padding-bottom:10px; margin-bottom:5px;}
|
||||||
|
.por_time a{ color:#3b94d6;}
|
||||||
|
.por_teachers{ margin-top:20px; }
|
||||||
|
#por_teachers_nav {border-bottom:1px solid #d0d0d0; height:31px;}
|
||||||
|
#por_teachers_nav li {float:left; padding:0px 5px; text-align:center; }
|
||||||
|
#por_teachers_nav li a{font-size:20px;}
|
||||||
|
.por_teachers_hover {border:1px solid #d0d0d0; border-bottom:1px solid #fff; }
|
||||||
|
.por_teachers_hover a{color:#3b94d6;}
|
||||||
|
.por_teachers_nomal {border-bottom:none; }
|
||||||
|
.por_teachers_nomal a{color:#999;}
|
||||||
|
.undis {display:none;}
|
||||||
|
.dis {display:block;}
|
||||||
|
a.por_more_teacher{ font-size:12px; }
|
||||||
|
.por_teachers_li{ margin-top:10px;}
|
||||||
|
.por_teachers_li li{ padding:10px 0;border-bottom:1px solid #e8e5e5;}
|
||||||
|
.por_teachers_img{ width:60px; height:60px; -webkit-border-radius:50px;-moz-border-radius:50px;-o-border-radius:50px;border-radius:50px;}
|
||||||
|
a.por_teachers_name{ display:block; width:75px; font-size:18px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
.por_teachers_p{ font-size:14px; color:#999; width:150px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
|
.por_teachers_span{ color:#999;}
|
||||||
|
.por_teachers_span a{ margin:0 5px; color:#999;}
|
||||||
|
.por_footer{ padding:35px 0; width:100%; background-color:#efeded; margin-top:30px;}
|
||||||
|
.por_footer_con{ width:1000px; margin:0 auto;}
|
||||||
|
.por_footer_con ul{ width:350px; margin:0 auto;}
|
||||||
|
.por_footer_con ul li{ float:left; text-align:center;}
|
||||||
|
.por_footer_con ul li a{ font-size:14px;}
|
||||||
|
.por_footer_con ul li a span{ color:#999; margin:0 15px ;}
|
||||||
|
.por_footer_con p{ text-align:center; margin-top:20px; color:#777;}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|