您的位置:首页 > 编程语言 > PHP开发

博客程序开发历程【6】-[会员系统-设置中心]{附源码}

2014-07-22 20:58 423 查看
style.css

@CHARSET "UTF-8";
body {
margin:0;
padding:0;
font-family:"Hiragino Sans GB","Microsoft YaHei","微软雅黑",tahoma,arial,simsun,"宋体";
}

p{
margin:0;
}
a{
text-decoration:none;
}
ul {
list-style-type:none;

}
li {
display:inline;
}
#header {
width:100%;
height:75px;
position:absolute;
background:#000;
}
#logo {
margin:-5px 0 0 100px;
float:left;
}
#nav {
margin:35px 30px 0 0;
right:60px;
float:right;
}
#nav ul li {
margin-left:10px;
}
#nav ul li a {
color:grey;
}

.copy {
top:600px;
text-align:center;
font-size:12px;
color:grey;
position:relative;
}
#wrap {
margin:0 auto;
width:800px;
}

#setting {
top:100px;
width:800px;
position:absolute;
border:1px gray solid;
background:#FFF;
-moz-border-radius:8px;
-webkit-border-radius:8px;
box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.3);
}

.w-fttl {
font-size: 32px;
font-weight: normal;
border-bottom:solid 1px grey;
padding-left:30px;
}

.g-box1{

}

.g-box1s {
width:150px;
text-align:center;
float:left;
}
.g-box1s h3{
font-size: 20px;
font-weight: normal;
}
.g-box1m {
width:650px;
float:right;
}
.us {
margin:5px 0 0 30px;
}

.f-cb {
margin:5px 0 0 30px;
font-size: 12px;
}

#wp {
margin:0 auto;
width:400px;
}
#resetpwd {
top:150px;
width:400px;
position:absolute;
}
.inputtext {
width:303px;
height:30px;
font-size:16px;
border:solid 1px grey;
}

#inputtext1 {
border-bottom:none;
}

#inputtext2 {
border-top:none;
border-bottom:none;
}

#sbp{
margin-top:12px;
}

.button {
width:305px;
height:30px;
border:none;
color:#FFF;
background:#91C520;
font-size:14px;
font-weight:bold;
}

.button:hover{
cursor:pointer;
background:#AED505;
}


member/index.php

<?php
if (!defined('IN_BLOG')){
echo "access violations";
echo '<META HTTP-EQUIV="Refresh" CONTENT="1;URL=http://'.$_SERVER['HTTP_HOST'].'">';
exit();
}

if (!isset($_SESSION['uid'])){
header("location: ?file=member&action=login");
}
get_paper('header');
?>
<div id="wrap">
<div id="setting">
<h2 class="w-fttl">账号设置</h2>
<div class="g-box1">
<div class="g-box1s">
<h3 class="w-ett">登录信息</h3>
</div>
<div class="g-box1m">
<p class="us"><?php echo $_SESSION['username']?></p>
<p class="us"><?php echo $_SESSION['email']?></p>
<p class="f-cb"><?php echo '<a href="?file=member& action=resetpwd">修改密码</a>'; ?></p>
</div>
</div>
</div>
</div>
<?php get_paper('footer');?>

源码下载地址:http://pan.baidu.com/disk/home?fr=ibaidu
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐