parent
08892d1cf7
commit
939e4cc100
|
@ -1,31 +1,31 @@
|
|||
<!--add by huang-->
|
||||
<div class="clearfix"></div>
|
||||
<div id="footer" style="margin-left:-5px;padding-top: 50px;clear: both;font-size: 12px;">
|
||||
<div style="border-top:solid 1px #C6E9F1;width:940px;margin-left:auto;margin-right:auto;margin-bottom: 5px;margin-top: -50px;"></div>
|
||||
<div class="base_footer">
|
||||
<div align="center">
|
||||
|
||||
<!--gcm-->
|
||||
<p>
|
||||
<span>主办单位:</span>
|
||||
<span class="footer_text_link"><%= link_to "国防科学技术大学并行与分布处理国家重点实验室","http://www.nudt.edu.cn/ArticleShow.asp?ID=47",:target=>"_blank"%></span>
|
||||
<span class="footer_text_link"><%= link_to "计算机科学与技术系", "http://www.nudt.edu.cn/ArticleShow.asp?ID=41", :target => "_blank" %></span>
|
||||
<span id="copyright">版权@2007~2014</span>
|
||||
<span id="contact_us" class="footer_text_link"><%= link_to "联系我们","http://forge.trustie.net/projects/2/member",:target=>"_blank"%></span>
|
||||
<span id="record"class="footer_text_link"><%= link_to "湘ICP备09019772","http://www.miibeian.gov.cn/"%></span>
|
||||
|
||||
</p>
|
||||
<div id="logo_link">
|
||||
<span class="footer_logo_link"><%= link_to image_tag('/images/footer_logo/nudt.png',:size=>'100x30',:alt=>"国防科学技术大学计算机学院"),"http://www.nudt.edu.cn/special.asp?classid=12"%></span>
|
||||
<span class="footer_logo_link"><%= link_to image_tag('/images/footer_logo/peking_eecs.png',:size=>'100x30',:alt=>"北京大学信息科学技术学院软件研究所"), "http://eecs.pku.edu.cn"%></span>
|
||||
<span class="footer_logo_link"><%= link_to image_tag('/images/footer_logo/buaa_scse.png',:size=>'100x30',:alt=>"北京航空航天大学计算机学院"), "http://scse.buaa.edu.cn/"%></span>
|
||||
<span class="footer_logo_link"><%= link_to image_tag('/images/footer_logo/iscas.png',:size=>'100x30',:alt=>"中国科学院软件研究所"), "http://www.iscas.ac.cn"%></span>
|
||||
<span class="footer_logo_link"><%= link_to image_tag('/images/footer_logo/inforbus.png',:size=>'100x30',:alt=>"山东中创软件商用中间件股份有限公司"), "http://www.inforbus.com"%></span>
|
||||
</div>
|
||||
<!--gcm-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div style="border-top:solid 1px #C6E9F1;"></div>
|
||||
<div class="base_footer">
|
||||
<div align="center">
|
||||
|
||||
<!--gcm-->
|
||||
<p>
|
||||
<span>主办单位:</span>
|
||||
<span class="footer_text_link"><%= link_to "国防科学技术大学并行与分布处理国家重点实验室","http://www.nudt.edu.cn/ArticleShow.asp?ID=47",:target=>"_blank"%></span>
|
||||
<span class="footer_text_link"><%= link_to "计算机科学与技术系", "http://www.nudt.edu.cn/ArticleShow.asp?ID=41", :target => "_blank" %></span>
|
||||
<span id="copyright">版权@2007~2014</span>
|
||||
<span id="contact_us" class="footer_text_link"><%= link_to "联系我们","http://forge.trustie.net/projects/2/member",:target=>"_blank"%></span>
|
||||
<span id="record"class="footer_text_link"><%= link_to "湘ICP备09019772","http://www.miibeian.gov.cn/"%></span>
|
||||
|
||||
</p>
|
||||
<div id="logo_link">
|
||||
<span class="footer_logo_link"><%= link_to image_tag('/images/footer_logo/nudt.png',:size=>'100x30',:alt=>"国防科学技术大学计算机学院"),"http://www.nudt.edu.cn/special.asp?classid=12"%></span>
|
||||
<span class="footer_logo_link"><%= link_to image_tag('/images/footer_logo/peking_eecs.png',:size=>'100x30',:alt=>"北京大学信息科学技术学院软件研究所"), "http://eecs.pku.edu.cn"%></span>
|
||||
<span class="footer_logo_link"><%= link_to image_tag('/images/footer_logo/buaa_scse.png',:size=>'100x30',:alt=>"北京航空航天大学计算机学院"), "http://scse.buaa.edu.cn/"%></span>
|
||||
<span class="footer_logo_link"><%= link_to image_tag('/images/footer_logo/iscas.png',:size=>'100x30',:alt=>"中国科学院软件研究所"), "http://www.iscas.ac.cn"%></span>
|
||||
<span class="footer_logo_link"><%= link_to image_tag('/images/footer_logo/inforbus.png',:size=>'100x30',:alt=>"山东中创软件商用中间件股份有限公司"), "http://www.inforbus.com"%></span>
|
||||
</div>
|
||||
<!--gcm-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="debug">
|
||||
|
|
|
@ -1,22 +1,11 @@
|
|||
<%= stylesheet_link_tag 'welcome' %>
|
||||
<script type="text/javascript" language="javascript">
|
||||
function clearInfo(id, content) {
|
||||
var text = $('#' + id);
|
||||
if (text.val() == content) {
|
||||
$('#' + id).val('');
|
||||
}
|
||||
}
|
||||
<%= javascript_include_tag 'welcome' %>
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
||||
$(function(){
|
||||
$("#main").find("a").attr("target", "_blank");
|
||||
});
|
||||
|
||||
function showInfo(id, content) {
|
||||
var text = $('#' + id);
|
||||
if (text.val() == '') {
|
||||
$('#' + id).val(content);
|
||||
}
|
||||
}
|
||||
// 给主页用户弹新页面
|
||||
$(document).ready(function($) {
|
||||
$("#loggedas").find("a").attr("target", "_blank");
|
||||
|
@ -24,73 +13,6 @@
|
|||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
(function (){
|
||||
window.onload = function(){
|
||||
function fixedBar(id, options){
|
||||
var ele = document.getElementById(id);
|
||||
if(!ele) return;
|
||||
if(/msie (\d+\.\d+)/i.test(navigator.userAgent)){
|
||||
var pageHeight=window.innerHeight;
|
||||
var d=document;
|
||||
if(typeof pageHeight!="number"){
|
||||
if(document.compatMode=="CSS1Compat"){
|
||||
pageHeight=document.documentElement.clientHeight;
|
||||
}else{
|
||||
pageHeight=document.body.clientHeight;
|
||||
}
|
||||
}
|
||||
var ieScrollTop=window.pageYOffset || d.documentElement.scrollTop || d.body.scrollTop;
|
||||
if(options.addclass) ele.className = options.addclass;
|
||||
ele.style.position= 'absolute';
|
||||
|
||||
if(options.show){
|
||||
ele.style.top = 0 + "px";
|
||||
ele.style.display= 'block';
|
||||
}
|
||||
|
||||
window.attachEvent('onscroll' , function (){
|
||||
|
||||
var ieScrollTop=window.pageYOffset || d.documentElement.scrollTop || d.body.scrollTop;
|
||||
|
||||
ele.style.top = 0 + "px";
|
||||
if(options.autoHidden){
|
||||
if(ieScrollTop==0){
|
||||
ele.style.display="none";
|
||||
}else{
|
||||
ele.style.display="block";
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
var ele = document.getElementById(id);
|
||||
if(typeof pageHeight!="number"){
|
||||
if(document.compatMode=="CSS1Compat"){
|
||||
pageHeight=document.documentElement.clientHeight;
|
||||
}else{
|
||||
pageHeight=document.body.clientHeight;
|
||||
}
|
||||
}
|
||||
if(options.show) ele.style.display= 'block';
|
||||
ele.style.top = 0 +'px';
|
||||
window.addEventListener('scroll',function (){
|
||||
if(options.autoHidden){
|
||||
if(baidu.page.getScrollTop()==0){
|
||||
ele.style.display="none";
|
||||
}else{
|
||||
ele.style.display="block";
|
||||
}
|
||||
}
|
||||
},false);
|
||||
}
|
||||
}
|
||||
|
||||
fixedBar('backTopBtn' , {autoHidden: true, top : 186});
|
||||
fixedBar('identifier-pannel' , {autoHidden: false , top : 956 , show : true});
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<div class='top_bar'>
|
||||
<div id="identifier-pannel" style="display:none">
|
||||
<%= image_tag '/images/qrweixin.jpg', size: '150x150', alt: 'trustie', class: "weixin" %>
|
||||
|
@ -201,31 +123,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject hidden" style="float: right;">
|
||||
|
||||
<div class="web_status">
|
||||
<h3 style="margin-left: 5px; color: #e8770d;"><strong>当前网站状态</strong></h3>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>课程总量: <%#=@course.count%></td>
|
||||
<td>教师数量: <%#=@teacher.count%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>用户总量: <%#=User.count%></td>
|
||||
<td>学生数量: <%#=@student.count%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>资源总量: <%#=Attachment.count%></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class='hidden' style="text-align: right; padding-right: 20px">
|
||||
<%= link_to "意见反馈" , suggestion_send_path, {:class => 'orangeButton', :style => "color: #EEEEEE" }%>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="float: right;">
|
||||
<h3 style="padding-bottom:px ;margin-left: 5px; color: #e8770d;">
|
||||
<strong>问题和反馈动态</strong>
|
||||
|
|
|
@ -1,22 +1,11 @@
|
|||
<%= stylesheet_link_tag 'welcome' %>
|
||||
<script type="text/javascript" language="javascript">
|
||||
function clearInfo(id, content) {
|
||||
var text = $('#' + id);
|
||||
if (text.val() == content) {
|
||||
$('#' + id).val('');
|
||||
}
|
||||
}
|
||||
<%= javascript_include_tag 'welcome' %>
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
||||
$(function(){
|
||||
$("#main").find("a").attr("target", "_blank");
|
||||
});
|
||||
|
||||
function showInfo(id, content) {
|
||||
var text = $('#' + id);
|
||||
if (text.val() == '') {
|
||||
$('#' + id).val(content);
|
||||
}
|
||||
}
|
||||
// 给主页用户弹新页面
|
||||
$(document).ready(function($) {
|
||||
$("#loggedas").find("a").attr("target", "_blank");
|
||||
|
@ -24,73 +13,6 @@
|
|||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
(function (){
|
||||
window.onload = function(){
|
||||
function fixedBar(id, options){
|
||||
var ele = document.getElementById(id);
|
||||
if(!ele) return;
|
||||
if(/msie (\d+\.\d+)/i.test(navigator.userAgent)){
|
||||
var pageHeight=window.innerHeight;
|
||||
var d=document;
|
||||
if(typeof pageHeight!="number"){
|
||||
if(document.compatMode=="CSS1Compat"){
|
||||
pageHeight=document.documentElement.clientHeight;
|
||||
}else{
|
||||
pageHeight=document.body.clientHeight;
|
||||
}
|
||||
}
|
||||
var ieScrollTop=window.pageYOffset || d.documentElement.scrollTop || d.body.scrollTop;
|
||||
if(options.addclass) ele.className = options.addclass;
|
||||
ele.style.position= 'absolute';
|
||||
|
||||
if(options.show){
|
||||
ele.style.top = 0 + "px";
|
||||
ele.style.display= 'block';
|
||||
}
|
||||
|
||||
window.attachEvent('onscroll' , function (){
|
||||
|
||||
var ieScrollTop=window.pageYOffset || d.documentElement.scrollTop || d.body.scrollTop;
|
||||
|
||||
ele.style.top = 0 + "px";
|
||||
if(options.autoHidden){
|
||||
if(ieScrollTop==0){
|
||||
ele.style.display="none";
|
||||
}else{
|
||||
ele.style.display="block";
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
var ele = document.getElementById(id);
|
||||
if(typeof pageHeight!="number"){
|
||||
if(document.compatMode=="CSS1Compat"){
|
||||
pageHeight=document.documentElement.clientHeight;
|
||||
}else{
|
||||
pageHeight=document.body.clientHeight;
|
||||
}
|
||||
}
|
||||
if(options.show) ele.style.display= 'block';
|
||||
ele.style.top = 0 +'px';
|
||||
window.addEventListener('scroll',function (){
|
||||
if(options.autoHidden){
|
||||
if(baidu.page.getScrollTop()==0){
|
||||
ele.style.display="none";
|
||||
}else{
|
||||
ele.style.display="block";
|
||||
}
|
||||
}
|
||||
},false);
|
||||
}
|
||||
}
|
||||
|
||||
fixedBar('backTopBtn' , {autoHidden: true, top : 186});
|
||||
fixedBar('identifier-pannel' , {autoHidden: false , top : 956 , show : true});
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<div class='top_bar'>
|
||||
<div id="identifier-pannel" style="display:none">
|
||||
<%= link_to image_tag('/images/qrweixin.jpg', size: '150x150', alt: 'trustie', class: "weixin" ), home_path %>
|
||||
|
@ -192,57 +114,7 @@
|
|||
<% end %>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="float: right;">
|
||||
<h3 style="margin-left: 5px; color: color: (51, 119, 51);"><strong>热门竞赛</strong></h3>
|
||||
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", {:controller => 'bids', :action => 'contest', :project_type => 1, :host => Setting.contest_domain}, :target => "_blank" %></span>
|
||||
<div class="d-p-projectlist-box">
|
||||
<ul class="d-p-projectlist">
|
||||
<% find_all_hot_contest.map do |contest| break if(contest == find_all_hot_contest[5]) %>
|
||||
<li style="background-image:none;">
|
||||
<p class="layout">
|
||||
<span style = "background: url('/images/007.gif') no-repeat scroll ;background-position: left center;"><%= link_to( contest.name, respond_path(contest.id), :class => "d-g-blue d-p-project-name", :title => "#{contest.name}",
|
||||
:style => "margin-left: 28px;", :target => "_blank") %></span>
|
||||
</p>
|
||||
<p class="layout-1" >
|
||||
<%= content_tag "span", contest.description.truncate(50, omission: '...'), :class => "d-p-project-intro" , :title => contest.description %>
|
||||
</p>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!-- <div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="float: right;">
|
||||
<h3 style="margin-left: 5px; color: color: (51, 119, 51);"><strong>热门众包</strong></h3>
|
||||
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", {:controller => 'bids', :action => 'index'}, :target => "_blank" %></span>
|
||||
<div class="d-p-projectlist-box">
|
||||
<ul class="d-p-projectlist">
|
||||
<% find_all_hot_bid.map do |bid| break if(bid == find_all_hot_bid[5]) %>
|
||||
<li style="background-image:none;">
|
||||
<p class="layout">
|
||||
<span style = "background: url('/images/007.gif') no-repeat scroll ;background-position: left center;"><%= link_to( bid.name, respond_path(bid.id), :class => "d-g-blue d-p-project-name", :title => "#{bid.name}",
|
||||
:style => "margin-left: 28px;", :target => "_blank") %></span>
|
||||
</p>
|
||||
<p class="layout-1" >
|
||||
<%= content_tag "span", bid.description.truncate(50, omission: '...'), :class => "d-p-project-intro" , :title => bid.description %>
|
||||
</p>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
|
||||
|
||||
<br/><br/><br/><br/><br/><br/><br/>
|
||||
|
||||
<div class="clr">
|
||||
</div>
|
||||
|
||||
<div style="padding-top: 40px"></div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
|
|
|
@ -0,0 +1,64 @@
|
|||
(function () {
|
||||
window.onload = function(){
|
||||
function fixedBar(id, options){
|
||||
var ele = document.getElementById(id);
|
||||
if(!ele) return;
|
||||
if(/msie (\d+\.\d+)/i.test(navigator.userAgent)){
|
||||
var pageHeight=window.innerHeight;
|
||||
var d=document;
|
||||
if(typeof pageHeight!="number"){
|
||||
if(document.compatMode=="CSS1Compat"){
|
||||
pageHeight=document.documentElement.clientHeight;
|
||||
}else{
|
||||
pageHeight=document.body.clientHeight;
|
||||
}
|
||||
}
|
||||
var ieScrollTop=window.pageYOffset || d.documentElement.scrollTop || d.body.scrollTop;
|
||||
if(options.addclass) ele.className = options.addclass;
|
||||
ele.style.position= 'absolute';
|
||||
|
||||
if(options.show){
|
||||
ele.style.top = 0 + "px";
|
||||
ele.style.display= 'block';
|
||||
}
|
||||
|
||||
window.attachEvent('onscroll' , function (){
|
||||
|
||||
var ieScrollTop=window.pageYOffset || d.documentElement.scrollTop || d.body.scrollTop;
|
||||
|
||||
ele.style.top = 0 + "px";
|
||||
if(options.autoHidden){
|
||||
if(ieScrollTop==0){
|
||||
ele.style.display="none";
|
||||
}else{
|
||||
ele.style.display="block";
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
var ele = document.getElementById(id);
|
||||
if(typeof pageHeight!="number"){
|
||||
if(document.compatMode=="CSS1Compat"){
|
||||
pageHeight=document.documentElement.clientHeight;
|
||||
}else{
|
||||
pageHeight=document.body.clientHeight;
|
||||
}
|
||||
}
|
||||
if(options.show) ele.style.display= 'block';
|
||||
ele.style.top = 0 +'px';
|
||||
window.addEventListener('scroll',function (){
|
||||
if(options.autoHidden){
|
||||
if(baidu.page.getScrollTop()==0){
|
||||
ele.style.display="none";
|
||||
}else{
|
||||
ele.style.display="block";
|
||||
}
|
||||
}
|
||||
},false);
|
||||
}
|
||||
}
|
||||
|
||||
fixedBar('backTopBtn' , {autoHidden: true, top : 186});
|
||||
fixedBar('identifier-pannel' , {autoHidden: false , top : 956 , show : true});
|
||||
}
|
||||
})();
|
Loading…
Reference in New Issue