2016-04-27 15:16:23 +08:00
|
|
|
|
<!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 'org2','jquery/jquery-ui-1.9.2' %>
|
|
|
|
|
<%= javascript_include_tag 'cookie','project', 'organization','header','prettify','select_list_move','org'%>
|
|
|
|
|
<%= javascript_include_tag 'attachments' %>
|
|
|
|
|
<%#= call_hook :view_layouts_base_html_head %>
|
|
|
|
|
<!-- page specific tags -->
|
|
|
|
|
<%#= yield :header_tags -%>
|
|
|
|
|
<!-- MathJax的配置 -->
|
|
|
|
|
<script type="text/javascript"
|
|
|
|
|
src="/javascripts/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
|
|
|
|
</script>
|
|
|
|
|
<!-- 配置 : 在生成的公式图片上去掉Math定义的右键菜单,$$ $$ \( \) \[ \] 中的公式给予显示-->
|
|
|
|
|
<script type="text/x-mathjax-config">
|
|
|
|
|
MathJax.Hub.Config({
|
|
|
|
|
showMathMenu: false,
|
|
|
|
|
showMathMenuMSIE: false,
|
|
|
|
|
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2016-05-06 19:53:13 +08:00
|
|
|
|
<!--<script type="text/javascript" src="/javascripts/jquery-1.8.3.min.js"></script>-->
|
2016-04-27 15:16:23 +08:00
|
|
|
|
<script type="text/javascript" src="/javascripts/koala.min.1.5.js"></script><!--焦点图-->
|
|
|
|
|
|
|
|
|
|
<script src="/javascripts/scrollPic.js"></script><!--滚动-->
|
|
|
|
|
<script>
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
scrollPic();
|
|
|
|
|
});
|
|
|
|
|
function scrollPic() {
|
|
|
|
|
var scrollPic = new ScrollPic();
|
|
|
|
|
scrollPic.scrollContId = "scrollPic"; //内容容器ID
|
|
|
|
|
scrollPic.arrLeftId = "LeftArr";//左箭头ID
|
|
|
|
|
scrollPic.arrRightId = "RightArr"; //右箭头ID
|
|
|
|
|
|
|
|
|
|
scrollPic.frameWidth = 760;//显示框宽度
|
|
|
|
|
scrollPic.pageWidth = 760; //翻页宽度
|
|
|
|
|
|
|
|
|
|
scrollPic.speed = 10; //移动速度(单位毫秒,越小越快)
|
|
|
|
|
scrollPic.space = 10; //每次移动像素(单位px,越大越快)
|
2016-05-17 10:04:23 +08:00
|
|
|
|
scrollPic.autoPlay = false; //自动播放
|
2016-04-27 15:16:23 +08:00
|
|
|
|
scrollPic.autoPlayTime = 3; //自动播放间隔时间(秒)
|
|
|
|
|
|
|
|
|
|
scrollPic.initialize(); //初始化
|
2016-05-06 10:02:31 +08:00
|
|
|
|
};
|
2016-04-27 15:16:23 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<!--add by huang-->
|
|
|
|
|
<body onload="prettyPrint();">
|
|
|
|
|
<!--内容开始-->
|
|
|
|
|
<header>
|
|
|
|
|
<div class="sn-header">
|
|
|
|
|
<div class="sn-row sn-bg-white">
|
2016-05-04 13:55:27 +08:00
|
|
|
|
<div class="sn-logo">
|
2016-05-17 10:13:03 +08:00
|
|
|
|
<% if @org_logo_attchment.blank? || !User.current.logged? %>
|
2016-05-17 09:36:55 +08:00
|
|
|
|
<img src="/images/org_new_style/logo.jpg" width="367" height="63" class="sn-mt13 sn-fl" alt=""/>
|
2016-05-04 13:55:27 +08:00
|
|
|
|
<% else %>
|
2016-05-17 10:03:26 +08:00
|
|
|
|
<img src="/attachments/<%= @org_logo_attchment.id %>/<%= @org_logo_attchment.filename %>" width="367" height="63" class="sn-mt13 sn-fl" alt="">
|
2016-05-04 13:55:27 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
<% if User.current.admin_of_org?(@organization) %>
|
2016-05-04 14:40:25 +08:00
|
|
|
|
<a href="#" class="sn-logo-add" title="点击替换LOGO" onclick="org_new_files_upload();"></a>
|
2016-05-04 13:55:27 +08:00
|
|
|
|
<% end %>
|
2016-05-06 19:02:43 +08:00
|
|
|
|
<!--<a href="javascript:void(0);" class="sn-search-button sn-mt28"></a>-->
|
2016-05-04 14:03:18 +08:00
|
|
|
|
|
2016-05-06 19:02:43 +08:00
|
|
|
|
<!--<input type="text" class="sn-search-input sn-mt28" placeholder="搜索" />-->
|
2016-05-17 09:36:55 +08:00
|
|
|
|
<%= render :partial => 'organizations/org_logined_header' %>
|
2016-04-27 15:16:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!--导航-->
|
2016-05-09 19:40:53 +08:00
|
|
|
|
<div class="sn-row sn-bg-blue sn-p-relative">
|
2016-04-27 15:16:23 +08:00
|
|
|
|
<ul class="sn-nav">
|
|
|
|
|
<% @subfield_content.each do |field| %>
|
|
|
|
|
<% if is_default_field?(field) %>
|
|
|
|
|
<% case field.name %>
|
2016-05-06 18:50:57 +08:00
|
|
|
|
<% when 'activity' %>
|
|
|
|
|
<li class="nav-element-default" style="display:<%= field.hide == 0?'block':'none' %>;">
|
2016-04-27 15:16:23 +08:00
|
|
|
|
<%= link_to "首页", organization_path(@organization), :class => "sn-link-white" %>
|
|
|
|
|
</li>
|
|
|
|
|
<% when 'course' %>
|
2016-05-06 18:50:57 +08:00
|
|
|
|
<li class="nav-element-default" style="display:<%= field.hide == 0?'block':'none' %>;">
|
2016-04-27 15:16:23 +08:00
|
|
|
|
<a href="#course_<%= field.id %>" class="sn-link-white"> 课程动态</a>
|
|
|
|
|
</li>
|
|
|
|
|
<% when 'project' %>
|
2016-05-06 18:50:57 +08:00
|
|
|
|
<li class="nav-element-default" style="display:<%= field.hide == 0?'block':'none' %>;">
|
2016-04-27 15:16:23 +08:00
|
|
|
|
<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">
|
2016-06-02 13:32:50 +08:00
|
|
|
|
<%= link_to field.name, organization_path(@organization, :org_subfield_id => field.id), :class => "sn-link-white", :target => "_blank" %>
|
2016-04-27 15:16:23 +08:00
|
|
|
|
</li>
|
2016-05-06 09:18:26 +08:00
|
|
|
|
<!--二级目录-->
|
2016-05-09 19:40:53 +08:00
|
|
|
|
<div class="sn-row sn-subnav-position sn-grey-opacity" style="display:none;">
|
2016-05-06 09:18:26 +08:00
|
|
|
|
<ul class="sn-sub-nav" style="display:<%= if_hidden_subdomain( field) ? 'block':'none' %>;">
|
|
|
|
|
<% field.sub_domains.each do |subdomain| %>
|
2016-06-02 13:43:30 +08:00
|
|
|
|
<li><%=link_to subdomain.name, org_subfield_sub_domain_sub_document_comments_path(subdomain, :org_subfield_id => field.id), :class => "sn-link-grey", :target => "_blank" %></li>
|
2016-05-09 18:44:20 +08:00
|
|
|
|
<li class="sn-subnav-slice">|</li>
|
2016-05-06 09:18:26 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
2016-04-27 15:16:23 +08:00
|
|
|
|
<% elsif field.field_type == "Resource" && field.hide == 0 %>
|
|
|
|
|
<li class="nav-element">
|
2016-06-02 13:32:50 +08:00
|
|
|
|
<%= link_to field.name, org_subfield_files_path(field), :class => "sn-link-white", :target => "_blank" %>
|
2016-04-27 15:16:23 +08:00
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if User.current.admin_of_org?(@organization) %>
|
|
|
|
|
<li class="nav-element">
|
2016-06-02 13:32:50 +08:00
|
|
|
|
<a href="<%= setting_organization_path(@organization) %>" class="sn-link-white" target ="_blank">配置</a>
|
2016-04-27 15:16:23 +08:00
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</header>
|
|
|
|
|
<%# 更新访问数,刷新的时候更新访问次数 %>
|
|
|
|
|
<% update_visiti_count @organization %>
|
|
|
|
|
<%# over %>
|
|
|
|
|
<!--内容开始-->
|
|
|
|
|
<div class="sn-content">
|
|
|
|
|
<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} %>
|
2016-05-05 09:45:34 +08:00
|
|
|
|
<% elsif field.status.to_i == 3 %>
|
2016-04-27 15:16:23 +08:00
|
|
|
|
<%#= render :partial => 'organizations/org_subfield_leftM', :locals => {:field => field} %>
|
|
|
|
|
<div class="sn-index-leftbox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
2016-04-28 10:24:53 +08:00
|
|
|
|
<%= render :partial => 'organizations/org_subfield_leftM1', :locals => {:field => field} %>
|
|
|
|
|
<%= render :partial => 'organizations/org_subfield_leftM2', :locals => {:field => field} %>
|
2016-04-27 15:16:23 +08:00
|
|
|
|
<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 %>
|
2016-04-28 10:24:53 +08:00
|
|
|
|
<%= render :partial => 'organizations/org_subfield_leftD', :locals => {:field => field} %>
|
2016-04-27 15:16:23 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<!--右侧-->
|
|
|
|
|
<div class="sn-content-right fr sn-mt15">
|
|
|
|
|
<% @subfield_content.each do |field| %>
|
|
|
|
|
<% if field.status.to_i == 6 %>
|
2016-04-28 10:24:53 +08:00
|
|
|
|
<%= render :partial => 'organizations/org_subfield_rightT', :locals => {:field => field} %>
|
2016-04-27 15:16:23 +08:00
|
|
|
|
<% 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} %>
|
2016-05-13 11:25:05 +08:00
|
|
|
|
<% elsif field.status.to_i == 23 %>
|
|
|
|
|
<%= render :partial => 'organizations/org_subfield_rightM2', :locals => {:field => field} %>
|
2016-04-27 15:16:23 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<!--内容结束-->
|
|
|
|
|
<footer>
|
|
|
|
|
<!--footer-->
|
|
|
|
|
<div class="sn-row sn-bg-grey2">
|
|
|
|
|
<div class="sn-footer">
|
|
|
|
|
<ul class="sn-footer-link">
|
|
|
|
|
<li class="sn-mr50"><a href="<%= about_us_path %>" class="sn-link-white sn-f18">关于我们</a></li>
|
|
|
|
|
<li class="sn-mr50"><a href="<%= agreement_path %>" class="sn-link-white sn-f18">服务协议</a></li>
|
|
|
|
|
<li class="sn-mr50"><a href="http://forge.trustie.net/forums/1/memos/1168" class="sn-link-white sn-f18">帮助中心</a></li>
|
|
|
|
|
<li><a href="<%= forums_path(:reorder_complex=>'desc')%>" class="sn-link-white sn-f18">在线报名</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="sn-contact">联系人:魏小姐 | 电 话:0731-84761282 | 传 真:0731-84761268 | 邮 箱:office@gnssopenlab.org</div>
|
|
|
|
|
<div class="sn-address">地 址:湖南省长沙市开福区东风路89号观园大厦23层<br />
|
|
|
|
|
卫星导航仿真与测试开放实验室</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</footer>
|
|
|
|
|
|
2016-05-06 19:53:13 +08:00
|
|
|
|
<!--页面底部-->
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div id="ajax-modal" style="display:none;"></div>
|
|
|
|
|
|
2016-04-27 15:16:23 +08:00
|
|
|
|
<div id="ajax-indicator" style="display:none;">
|
|
|
|
|
<span><%= l(:label_loading) %></span>
|
|
|
|
|
</div>
|
|
|
|
|
<%#= call_hook :view_layouts_base_body_bottom %>
|
|
|
|
|
</body>
|
2016-05-06 11:29:30 +08:00
|
|
|
|
<script>
|
|
|
|
|
$(".nav-element").mouseover(function(){
|
2016-05-09 19:23:33 +08:00
|
|
|
|
$(this).next(".sn-grey-opacity").show(0);
|
2016-05-06 11:29:30 +08:00
|
|
|
|
});
|
|
|
|
|
$(".sn-grey-opacity").mouseover(function(){
|
2016-05-09 19:23:33 +08:00
|
|
|
|
$(this).show(0);
|
2016-05-06 11:29:30 +08:00
|
|
|
|
});
|
|
|
|
|
$(".nav-element").mouseout(function(){
|
2016-05-09 19:23:33 +08:00
|
|
|
|
$(this).next(".sn-grey-opacity").delay(150).hide(0);
|
2016-05-06 11:29:30 +08:00
|
|
|
|
});
|
|
|
|
|
$(".sn-grey-opacity").mouseout(function(){
|
2016-05-09 19:23:33 +08:00
|
|
|
|
$(this).delay(150).hide(0);
|
2016-05-06 11:29:30 +08:00
|
|
|
|
});
|
2016-05-09 18:44:20 +08:00
|
|
|
|
$(".sn-sub-nav").each(function(){
|
|
|
|
|
$(this).children(".sn-subnav-slice:last").hide();
|
|
|
|
|
});
|
2016-05-06 11:29:30 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<!--add by huang-->
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function org_new_files_upload()
|
|
|
|
|
{
|
2016-05-06 19:53:13 +08:00
|
|
|
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'files/upload_org_new_files',:locals => {:org => @organization, :org_attachment_type => 0}) %>');
|
2016-05-06 11:29:30 +08:00
|
|
|
|
showModal('ajax-modal', '513px');
|
|
|
|
|
$('#ajax-modal').siblings().remove();
|
|
|
|
|
$('#ajax-modal').before("<a href='javascript:void(0)' onclick='hideModal()' style='margin-left: 480px;'><img src='/images/bid/close.png' width='26px' height='26px' /></a>");
|
|
|
|
|
$('#ajax-modal').parent().css("top","40%").css("left","36%").css("border","3px solid #269ac9");
|
|
|
|
|
$('#ajax-modal').parent().addClass("popbox_polls");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function org_new_files_banner_upload()
|
|
|
|
|
{
|
|
|
|
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'files/upload_org_new_files_banner',:locals => {:org => @organization, :org_attachment_type => 1}) %>');
|
|
|
|
|
showModal('ajax-modal', '513px');
|
|
|
|
|
$('#ajax-modal').siblings().remove();
|
|
|
|
|
$('#ajax-modal').before("<a href='javascript:void(0)' onclick='hideModal()' style='margin-left: 480px;'><img src='/images/bid/close.png' width='26px' height='26px' /></a>");
|
|
|
|
|
$('#ajax-modal').parent().css("top","40%").css("left","36%").css("border","3px solid #269ac9");
|
|
|
|
|
$('#ajax-modal').parent().addClass("popbox_polls");
|
|
|
|
|
}
|
|
|
|
|
</script>
|
2016-05-06 19:53:13 +08:00
|
|
|
|
|
|
|
|
|
</html>
|
|
|
|
|
|