Commit 78c44f01 authored by deathking's avatar deathking

git-svn-id: http://glupx.googlecode.com/svn/trunk/Reliz@68 189f022a-1064-8ae2-3e6f-c4a67275c50b

parent 07bcc10e
File deleted
class ApplicationController < ActionController::Base
Themes_Dir = 'app/views/themes'
Themes_Dir = 'app/themes'
protect_from_forgery
before_filter :load_settings
......@@ -60,7 +60,11 @@ class ApplicationController < ActionController::Base
end
#p @site[:themes]
end
def redirect_to_thc
redirect_to("http://www.touhou.cc/bbs/"+params[:anything]+"?"+env['QUERY_STRING'])
end
#def redirect_to_thc
#p 'WARNING: '+params[:anything]+"?"+env['QUERY_STRING']
#redirect_to("http://www.touhou.cc/bbs/"+params[:anything]+"?"+env['QUERY_STRING'])
#respond_to do |format|
#format.html { render :error => "404" }
#end
#end
end
\ No newline at end of file
......@@ -7,8 +7,7 @@
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="东方幻想乡" href="http://www.touhou.cc/bbs/archiver/" />
<link rel="stylesheet" type="text/css" href="forumdata/cache/style_57_common.css?qfY" /><link rel="stylesheet" type="text/css" href="forumdata/cache/scriptstyle_57_viewthread.css?qfY" />
<link rel="stylesheet" type="text/css" href="forumdata/cache/style_57_common.css?qfY" />
<link href="forumdata/cache/style_57_moderator.css?1Yf" rel="stylesheet" type="text/css" />
<script type="text/javascript">var STYLEID = '57', IMGDIR = 'images/default', VERHASH = 'qfY', charset = 'gbk', discuz_uid = 359, cookiedomain = '', cookiepath = '/', attackevasive = '0', disallowfloat = 'login|register', creditnotice = '1|点数|,2|威望|,3|经验|,4|推广|,5|贡献|,6|人气|,7|人品|', gid = parseInt('1'), fid = parseInt('2'), tid = parseInt('29727')</script>
<script src="forumdata/cache/common.js?qfY" type="text/javascript"></script>
<script src="LinkTalk-Application/app-host.js" type="text/javascript"></script>
\ No newline at end of file
<script src="forumdata/cache/common.js?qfY" type="text/javascript"></script>
\ No newline at end of file
......@@ -3,24 +3,13 @@
<head>
<title> <%= @site.name %><% if !@actions.empty? %> - <%= @actions.last.respond_to?(:name) ? @actions.last.name : @actions.last %> <% end %> </title>
<%= render 'layouts/header' %>
<%# ApplicationHelper::addon_header.each { |s| %>
<%#= render 'layouts/'+s %>
<%# } %>
</head>
<body>
<%= render 'layouts/top' %>
<%# ApplicationHelper::addon_top.each { |s| %>
<%#= render 'layouts/'+s %>
<%# } %>
<div id="wrapper">
<%= yield %>
<%= yield %>
</div>
<%= render 'layouts/footer' %>
<%# ApplicationHelper::addon_footer.each { |s| %>
<%#= render 'layouts/'+s %>
<%# } %>
</body>
</html>
<div style="height:30px;"></div>
<div id="body" >
<div class=" box ui-widget-content ui-corner-all ui-helper-clearfix">
<div id="fuzhu"></div>
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all">
<table width="100%" height="27px"border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="590px"style="padding-left:5px">幻想乡综合讨论区</td>
<td width="590px" style="padding-right:5px" align="right">-</td>
</tr>
</table>
</div>
<% @boards.each do |board| %>
<div id=b2_2>
<table width="100%" height="93px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="171px">
<div id=b2_2_d1>
<div id=b2_2_d1_avatar><%= board.logo %></div>
</div>
</td>
<td width:"686px">
<div id=b2_2_d2>
<div id=b2_2_d2_inf1><div style="float:left;"><%= board %></div><div style="float:right;"><img src="css/new.png" /></div></div>
<div id=b2_2_d2_inf2><%= board.introduction %></div>
<div id=b2_2_d2_inf3><div style="float:left; margin-top:5px;"> <%=t 'board.topic' %>: <%= board.topics.count %> <%=t 'board.post' %><%= board.posts.count %></div> <div style="margin-left:10px; float:left; margin-top:2px;"><img src="css/post.png" /></div></div>
</div>
</td>
<td width="283px">
<div width="283px"style=" margin-bottom:10px; height:90px;border-left-style:solid; border-color:#CCCCCC; border-width:1px;" >
<div id=b2_2_d3_1></div>
<div id=b2_2_d3_2></div>
</div>
</td>
</tr>
</table>
</div>
<% end %>
</div>
<div class="box ui-widget-content ui-corner-all ui-helper-clearfix">
<div id="fuzhu"></div>
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all" >
<table width="100%" height="27px"border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="590px"style="padding-left:5px">友情链接</td>
<td width="590px" style="padding-right:5px" align="right">-</td>
</tr>
</table></div>
<div id=footer2>
<div id=ft_1>
<table id="ft_1_t" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="590px">
<div id="ft_1_t_d1">
<div id="ft_1_t_d2"> </div>
</div>
</td>
<td width="590px"></td>
</tr>
</table>
</div>
<div id=ft_2>
</div>
<div id=ft_3></div>
</div>
<div></div>
</div>
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all">
<table width="100%" height="27px"border="0" cellspacing="0" cellpadding="0" >
<tr>
<%= render 'layouts/onlineuserbar' %>
</tr>
</table></div>
</div>
\ No newline at end of file
<div id="f_fz">
</div>
<div id="footer" class="box ui-widget-content ui-corner-all ui-helper-clearfix">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="f_t">
<tr>
<td height="25px" width="590px" style="padding-left:5px">
Powered by 東方幻想鄉0.1
</td>
<td width="590px" height="25px" align="right" style="padding-right:5px">
東方幻想鄉(黑ICP備09028990)| 聯繫我們 | 網站統計| 無圖版| wap
</td>
</tr>
<tr>
<td height="25px" style="padding-left:5px">
2011-2012 rz Inc.
</td>
<td height="25px" align="right" style="padding-right:5px">
GMT+8,2012-2-17 15:14
</td>
</tr>
</table>
</div>
\ No newline at end of file
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8" />
<link type="text/css" href="css/ui-lightness/jquery-ui-1.7.1.custom.css" rel="stylesheet" />
<link type="text/css" href="css/style.css" rel="stylesheet" />
<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.11.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.11.custom.min.js"></script>
<style type="text/css">
.toggler { width: 400px; height:113px; position: relative; float:left;}
#button { padding: .5em 1em; text-decoration: none; }
#effect { width: 400px; height: 113px; position: relative;}
#effect h3 { margin: 0; padding: 0.4em; text-align: center; }
.ui-effects-transfer { border: 2px dotted gray; }
*
{
margin:0;
padding:0;
}
body
{
font-size:10pt;
background-color:#999999
}
#header
{
width:1230px;
height:280px;
margin:0 auto;
}
#h2{
margin-left:auto;
margin-right:auto;
width:1200px;
height:14px;
border-width:1px;
border-style:solid;
border-color:#CCCCCC;
}
#h3{
margin-left:auto;
margin-right:auto;
width:1200px;
height:113px;
overflow:hidden;
background-color:#000000;
border-left-style:solid;border-left-width:1px;border-left-color:#CCCCCC;
border-right-style:solid;border-right-width:1px;border-right-color:#CCCCCC;
}
#h4{
margin-top:5px;
margin-left:auto;
margin-right:auto;
width:1200px;
height:31px;
border-width:1px;
border-style:solid;
}
#h5{
margin-top:0px;
margin-left:auto;
margin-right:auto;
width:1200px;
height:55px;
border-width:1px;
border-style:solid;
border-color:#CCCCCC;
}
#h6{
margin-top:5px;
margin-left:auto;
margin-right:auto;
width:1200px;
height:33px;
border-width:1px;
border-style:solid;
border-color:#F6B03C;
}
#zx{
margin-top:30px;
margin-left:100p;
margin-right:100px;
margin-bottom:15px;
width:1040px;
height:10px;
border-width:1px;
border-style:dashed;
position:absolute;
left: 231px;
top: 198px;
}
#body
{
margin-top:5px;
margin-left:auto;
margin-right:auto;
width:1200px;
height:532px;
}
#b2
{
margin-top:10px;
margin-left:auto;
margin-right:auto;
width:1180px;
height220px;
border-width:1px;
border-style:dashed;
}
#b3
{
margin-top:10px;
margin-left:auto;
margin-right:auto;
width:1180px;
height:206px;
border-width:1px;
border-style:solid;
}
#b4
{
margin-top:10px;
margin-left:auto;
margin-right:auto;
width:1180px;
height:34px;
border-width:1px;
border-style:solid;
}
#footer
{
padding-top:15px;
margin-top:10px;
margin-left:auto;
margin-right:auto;
width:1180px;
height:50px;
border-width:1px;
border-style:dashed;
}
#tb1
{
height:31px;
width:100%;
}
#tb2
{
margin-top:0;
margin-bottom:auto;
height:55px;
width:100%;
}
#tb3
{
height:33px;
width:100%;
}
#td1{
padding-left:5px;
}
#dtx
{
margin-top:auto;
margin-left:auto;
margin-right:auto;
margin-bottom:auto;
width:50px;
height:50px;
border-width:1px;
border-style:dashed;
border-color:#CCCCCC;
left: 112px;
top: 180px;
}
#b2_1
{
margin-left:auto;
margin-right:auto;
width:1180px;
height:27px;
border-width:1px;
border-style:solid;
}
#b2_2
{
margin-left:auto;
margin-right:auto;
width:1165px;
height:93px;
border-width:1px;
border-bottom-style:solid;
border-color:#CCCCCC;
}
#b2_3
{
margin-top:3px;
margin-left:auto;
margin-right:auto;
width:1165px;
height:93px;
border-width:1px;
border-bottom-style:solid;
border-color:#CCCCCC;
}
#b2_2_d1
{
width:200px;
height:93px;
border-width:1px;
border-style:hidden;
}
#b2_2_d1_avatar
{
width:171px;
height:68px;
border-width:1px;
border-style:solid;
border-color:#CCCCCC;
margin-top:15px;
margin-left:19px;
margin-bottom:9px;
}
#b2_2_d2
{
padding-bottom:10px;
width:680px;
height:82px;
}
#b2_2_d2_inf1
{
margin-top:0px;
width:100%;
height:22px;
border-color:#CCCCCC;
border-bottom-style:dashed;
border-bottom-width:1px;
}
#b2_2_d2_inf2
{
margin-top:0px;
width:100%;
height:40px;
border-color:#CCCCCC;
border-bottom-style:dashed;
border-bottom-width:1px;
}
#b2_2_d2_inf3
{
margin-top:0px;
width:100%;
height:22px;
}
#b2_2_d3_1
{
width:100%;
height:30px;
}
#b2_2_d3_2
{
width:100%;
height:30px;
}
#footer1
{
width:100%;
height:30px;
border-width:1px;
border-style:dashed;
}
#footer2
{
width:100%;
height:170px;
}
#ft_1
{
width:100%;
height:52px;
}
#ft_2
{
width:100%;
height:80px;
border-width:1px;
border-top-style:solid;
border-color:#CCCCCC;
}
#ft_3
{
width:100%;
height:30px;
border-width:1px;
border-top-style:solid;
border-color:#CCCCCC;
}
#ft_1_t
{
width:100%;
height:52px;
}
#ft_1_t_d1
{
width:500px;
height:38px;
}
#ft_1_t_d2
{
width:125px;
height:30px;
border-width:1px;
border-style:solid;
border-color:#CCCCCC;
}
#f_t
{
height:50px;
border-width:1px;
border-style:dashed;
}
#fuzhu
{
height:10px;
}
#f_fz
{
height:10px;
}
</style>
<script>
$(function() {
// run the currently selected effect
function runEffect() {
// get effect type from
var selectedEffect = $( "#effectTypes" ).val();
// most effect types need no options passed by default
var options = {};
// some effects have required parameters
if ( selectedEffect === "scale" ) {
options = { percent: 0 };
} else if ( selectedEffect === "transfer" ) {
options = { to: "#button", className: "ui-effects-transfer" };
} else if ( selectedEffect === "size" ) {
options = { to: { width: 200, height: 60 } };
}
// run the effect
$( "#effect" ).effect( selectedEffect, options, 500, callback );
};
// callback function to bring a hidden box back
function callback() {
setTimeout(function() {
$( "#effect" ).removeAttr( "style" ).hide().fadeIn();
}, 10000 );
};
// set effect from select menu value
$( "#effect" ).mouseover(function() {
runEffect();
return true;
});
});
</script>
\ No newline at end of file
<div id="header">
<div id="h2" class="ui-dialog-titlebar ui-widget-header ui-corner-all">
<style type="text/css">
#userbar{margin-left: 900px;}
</style>
<%= render 'layouts/userbar' %>
</div>
<div id="h3" style="background-image:url(css/banner.jpg);background-repeat:no-repeat; background-position:right;">
<div id="logo" style=" color:#FFFFFF; width:800px; height:113px; float:left;">
LOGO
</div>
<div class="toggler" >
<div id="effect"><img src="css/banner2.jpg" /></div>
</div>
</div>
<div class=" box ui-widget-content ui-corner-all ui-helper-clearfix" >
<div id="h4" class="ui-dialog-titlebar ui-widget-header ui-corner-all"><table border="0" cellspacing="0" cellpadding="0" id="tb1">
<tr>
<%= render "layouts/navibar" %>
<div style="float: right;"><%= render "layouts/searchbar" %></div>
</tr>
</table></div>
<div id="h5" >
<table border="0" cellspacing="0" cellpadding="0" id="tb2">
<tr>
<td rowspan="2" width="80">
<div id="dtx"><%= @correct_user.avatar :small %></div>
</td>
<td width="700" height="28"style="padding-left:5px">欢迎回来 <%= @correct_user %></td>
<td width="400" align="right" style="padding-right:10px" >欢迎新会员 <%= User.last %></td>
</tr>
<tr>
<td width="700" style="padding-left:5px">公告:</td>
<td width ="400"align="right" style="padding-right:10px">天气</td>
</tr>
</table>
</div>
<div id="h6">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="tb3">
<tr>
<td width="600"style="padding-left:15px"><%= render 'layouts/actionbar' %></td>
<td width="600"align="right" style="padding-right:20px">
<select name="effects" id="effectTypes" style="visibility:hidden"><option value="fade">Drop</option></select>
<div style="float: right;"><%= render 'layouts/themebar' %></div>
</td>
</tr>
</table>
</div>
</div>
</div
\ No newline at end of file
......@@ -30,7 +30,7 @@ Reliz::Application.routes.draw do
match 'boards/:board_id/new' => 'topics#new', :board_id => /\d+/ #
#get 'topics/control' => 'topics#control'
match '(:something)(/:id)/:anything/', :controller => 'application', :action => 'redirect_to_thc', :something => /boards|topics|posts|users/, :id => /\d+/, :anything => /.*/
#match '(:something)(/:id)/:anything/', :controller => 'application', :action => 'redirect_to_thc', :something => /boards|topics|posts|users/, :id => /\d+/, :anything => /.*/
......
This source diff could not be displayed because it is too large. You can view the blob instead.
No preview for this file type
This diff is collapsed.
This diff is collapsed.
#modlayer{position:absolute;right:0;padding:12px;width:275px;background-color:#FFF;border:4px solid #7FCAE2;}#modlayer a{color:#09C;}#modlayer label{float:right;margin-top:5px;}#modcount{padding:0 2px;font-size:24px;font-weight:400;color:#F60;}#modlayer .collapse{position:absolute;right:0;top:5px;padding:0 5px;}#modlayer.collapsed{margin-right:-23px;padding:0;width:27px;height:35px;border:none;background:#F60;overflow:hidden;}#modlayer.collapsed #modcount{display:block;position:absolute;left:0;top:0;z-index:999;width:27px;height:35px;border-color:#09C;background-color:#09C;color:#FFF;font-size:12px;text-align:center;line-height:35px;cursor:pointer;}.listtopicadmin{margin:10px 0;border-top:1px solid #C5DAEB;}.listtopicadmin li{*overflow:hidden;*margin-bottom:-2px;height:28px;line-height:18px;border-top:1px solid #FFF;border-bottom:1px solid #C5DAEB;zoom:1;}.listtopicadmin .currentopt{height:auto;}.detailopt{visibility:hidden;overflow:hidden;white-space:nowrap;}.currentopt .detailopt{visibility:visible;}.detailopt p .txt{width:100px;}.detailopt span .txt{width:18px;border-right:none;}.detailopt a{float:left;text-indent:-999px;margin-right:3px;width:22px;height:20px;text-align:center;}.detailopt_bold,.detailopt_italic,.detailopt_underline{border:1px solid #F1F5FA;outline:none;}.detailopt .current{border:1px solid #999;background-color:#FFF;}.listtopicadmin table{width:100%;}.listtopicadmin td{vertical-align:top;}.listtopicadmin .labeltxt{display:block;cursor:pointer;width:100%;background:url(../../images/default/arrow_down.gif) no-repeat 100% 8px;}.currentopt .labeltxt{float:left;cursor:default;width:45px;background:none;color:#09C;}.listtopicadmin .checkbox{margin-top:3px;*margin-top:-2px;}.listtopicadmin img{vertical-align:middle;}.tah_fixiesel{overflow:hidden;white-space:nowrap;width:217px;*border-right:1px solid #CCC;}.tah_fixiesel select{width:160px;*width:expression(this.offsetWidth > 180 ? 'auto':'180');}
\ No newline at end of file
ҹģ...Ժɾ
\ No newline at end of file
js css 目录为touhou.cc美工提供的皮肤相关
另外css/ui-lightness里那个css的调用有问题,部分地方调用1.7.1的,而另一些地方调用1.8.11的
于是我复制了一份改名什么的
这里待修正
forumdata templates imags/common images/default这些是兼容夜露的
以上两个将会修正,直接用<xxx src=>的调用方法不行,浏览器会解析相对路径什么的导致路径出错
准备都加入到javascripts stylesheets images里面 然后用RoR的各种helper调用
javascripts stylesheets images RoR内置
404.html 422.html 500.html 报错页面 现在除了500之外其他错误还没出现过
favicon.ico 标题栏小图标
robots.txt 搜索引擎抓取许可
\ No newline at end of file
3628
\ No newline at end of file
7160
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment