博客程序開發歷程【6】-[會員系統-設置中心]{附源碼}

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章