Skip to content

Commit

Permalink
HomePage
Browse files Browse the repository at this point in the history
  • Loading branch information
TedaLIEz committed Apr 17, 2015
1 parent f385dd4 commit df63ec8
Show file tree
Hide file tree
Showing 62 changed files with 13,698 additions and 552 deletions.
753 changes: 495 additions & 258 deletions .idea/workspace.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion App/Common/Conf/config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
return array(
'DEFAULT_MODULE'=>'Admin',
'DEFAULT_MODULE'=>'Home',
'DB_TYPE' => 'mysql', // 数据库类型
'DB_HOST' => 'localhost', // 服务器地址
'DB_NAME' => 'aunet', // 数据库名
Expand Down
2 changes: 2 additions & 0 deletions App/Home/Conf/config.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
return array(
'LAYOUT_ON' =>true,
'LAYOUT_NAME' =>'common_layout',
//'配置项'=>'配置值'
);
20 changes: 20 additions & 0 deletions App/Home/Controller/ActivityController.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2015/4/18
* Time: 4:54
*/

namespace Home\Controller;


use Think\Controller;

class ActivityController extends Controller{
public function index(){
// layout('news_layout');
$this->display();
}

}
19 changes: 19 additions & 0 deletions App/Home/Controller/BroadCastController.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2015/4/18
* Time: 4:59
*/

namespace Home\Controller;


use Think\Controller;

class BroadCastController extends Controller{
public function index(){
// layout('news_layout');
$this->display();
}
}
3 changes: 2 additions & 1 deletion App/Home/Controller/IndexController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use Think\Controller;
class IndexController extends Controller {
public function index(){
$this->show('<style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: "微软雅黑"; color: #333;font-size:24px} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px } a,a:hover,{color:blue;}</style><div style="padding: 24px 48px;"> <h1>:)</h1><p>欢迎使用 <b>ThinkPHP</b>!</p><br/>版本 V{$Think.version}</div><script type="text/javascript" src="http://ad.topthink.com/Public/static/client.js"></script><thinkad id="ad_55e75dfae343f5a1"></thinkad><script type="text/javascript" src="http://tajs.qq.com/stats?sId=9347272" charset="UTF-8"></script>','utf-8');
$this->display();
// $this->show('<style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: "微软雅黑"; color: #333;font-size:24px} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px } a,a:hover,{color:blue;}</style><div style="padding: 24px 48px;"> <h1>:)</h1><p>欢迎使用 <b>ThinkPHP</b>!</p><br/>版本 V{$Think.version}</div><script type="text/javascript" src="http://ad.topthink.com/Public/static/client.js"></script><thinkad id="ad_55e75dfae343f5a1"></thinkad><script type="text/javascript" src="http://tajs.qq.com/stats?sId=9347272" charset="UTF-8"></script>','utf-8');
}
}
19 changes: 19 additions & 0 deletions App/Home/Controller/NewsController.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2015/4/18
* Time: 4:27
*/

namespace Home\Controller;


use Think\Controller;

class NewsController extends Controller{
public function index(){
// layout('news_layout');
$this->display();
}
}
103 changes: 103 additions & 0 deletions App/Home/View/Activity/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>活动预告</title>
<link type="text/css" rel="stylesheet" href="__PUBLIC__/Src/style/general.css">
<script type="text/javascript" src="__PUBLIC__/Src/js/jquery.js"></script>
<script>
$(document).ready(
function() {

$(".a-top").mouseenter(
function(e) {
$("#downlist").slideDown("fast");
});

$("#downlist").mouseenter(
function(e) {
$("#downlist").slideDown("fast");
});



$("#downlist").mouseleave(
function(e) {
$("#downlist").slideUp("fast");
});

});
</script>
<style>
.slidebarlink{
padding:12px 12px;
font-size:22px;
margin:15px;
display:block;
color:#444e41;
transition:.2s;
border-radius:3px;

}
.now{color:#FFFFFF;
background-color:#74b05c;}

.slidebarlink:hover{
color:#FFFFFF;
background-color:#74b05c;
}
</style>

</head>

<body>


<!-- HeadAreaStart -->

<!-- HeadAreaEnd -->

<div id="wrap">
<table width="99%" border="0" style="margin:25px 0px">
<tbody>
<tr>
<td height="59" colspan="2" align="left" valign="middle" style="color:#444e41"><span style="font-size:34px">&nbsp;&nbsp;&nbsp;&nbsp;新闻&nbsp;&nbsp;</span><span style="font-size:24px">&gt;&gt;&nbsp;&nbsp;最新动态</span></td>
</tr>
<tr>
<td width="27%" height="585" rowspan="2" valign="top">
<p><a href="{:U('/Home/News/Index')}" class="slidebarlink">&gt;最新动态</a></p>
<p><a href="{:U('/Home/Activity/Index')}" class="slidebarlink now">▶&nbsp;活动预告</a></p>
<p><a href="{:U('/Home/BroadCast/Index')}" class="slidebarlink">&gt;公告栏</a></p>
</td>
<td width="79%" align="center"><img src="__PUBLIC__/Src/image/HDYG-Head.png" width="714" height="169" alt=""/></td>
</tr>
<tr>
<td align="center">
<table width="714px" border="0" style=" margin-top:20px; margin-bottom:20px;">
<tbody>
<tr>
<td bgcolor="#ffa968">&nbsp;</td>
<td bgcolor="#addf7e">&nbsp;</td>
<td bgcolor="#7db3f1">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#ffa968">&nbsp;</td>
<td bgcolor="#addf7e">&nbsp;</td>
<td bgcolor="#7db3f1">&nbsp;</td>
</tr>
</tbody>
</table>

</td>
</tr>
</tbody>
</table>


</div>

<!-- FootAreaStart -->

<!-- FootAreaEnd -->
</body>
</html>
105 changes: 105 additions & 0 deletions App/Home/View/BroadCast/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>公告栏</title>
<link type="text/css" rel="stylesheet" href="__PUBLIC__/Src/style/general.css">
<script type="text/javascript" src="__PUBLIC__/Src/js/jquery.js"></script>
<script>
$(document).ready(
function() {

$(".a-top").mouseenter(
function(e) {
$("#downlist").slideDown("fast");
});

$("#downlist").mouseenter(
function(e) {
$("#downlist").slideDown("fast");
});



$("#downlist").mouseleave(
function(e) {
$("#downlist").slideUp("fast");
});

});
</script>
<style>
.slidebarlink{
padding:12px 12px;
font-size:22px;
margin:15px;
display:block;
color:#444e41;
transition:.2s;
border-radius:3px;

}

.slidebarlink:hover{
color:#FFFFFF;
background-color:#74b05c;
}
.now{color:#FFFFFF;
background-color:#74b05c;}
.boardtext{
font-size:18px;
color:#74b05c;}
</style>

</head>

<body>


<!-- HeadAreaStart -->

<!-- HeadAreaEnd -->

<div id="wrap">
<table width="99%" border="0" style="margin:25px 0px">
<tbody>
<tr>
<td height="59" colspan="2" align="left" valign="middle" style="color:#444e41"><span style="font-size:34px">&nbsp;&nbsp;&nbsp;&nbsp;新闻&nbsp;&nbsp;</span><span style="font-size:24px">&gt;&gt;&nbsp;&nbsp;公告栏</span></td>
</tr>
<tr>
<td width="27%" height="585" valign="top">
<p><a href="{:U('/Home/News/Index')}" class="slidebarlink">&gt;最新动态</a></p>
<p><a href="{:U('/Home/Activity/Index')}" class="slidebarlink">&gt;活动预告</a></p>
<p><a href="{:U('/Home/BroadCast/Index')}" class="slidebarlink now">▶&nbsp;公告栏</a></p>
</td>
<td width="79%" align="center" valign="top"><div><img src="__PUBLIC__/Src/image/GGL.png" width="746" height="122" alt="" style="margin:0px auto;"/></div>
<div style="width:734px;margin:0px auto; border-left:solid #74b05c 6px;border-right:solid #74b05c 6px;border-bottom:solid #74b05c 6px">

<p style="font-size:24px; margin:10px auto; color:#74b05c;">最新公告</p>
<table width="85%" border="0" class="boardtext">
<tbody>
<tr>
<td width="20%">序号</td>
<td width="50%">标题</td>
<td width="30%">日期</td>
</tr>
</tbody>
</table>
<hr style="width:95%;margin:10px auto"/>
</div>



</td>
</tr>
</tbody>
</table>


</div>

<!-- FootAreaStart -->

<!-- FootAreaEnd -->
</body>
</html>
Loading

0 comments on commit df63ec8

Please sign in to comment.