|
|
|
ขอคำแนะนำเรื่องโค้ด php หน่อยครับ ผมอยากให้ตัวหนังสือสองบรรทัดมาอยู่บรรทัดเดี่ยวกันครับ |
|
|
|
|
|
|
|
Code (PHP)
<? @session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>lawahandicraft.com</title>
<style type="text/css">
body {background:url(../images/backuground.png); margin:0; padding:0;}
#FromWrapper {width:100%;}
form {width:100%; margin:0 0 0 0;}
label {margin:0 0 0 1em; font-family:Arial, Helvetica, sans-serif; color:#888888; font-size:1em;}
input {width:70px; margin:0 0 0 0;}
fieldset {border:none; background:#F1F1F1; padding:0 0 0 0;}
filedset.first {background:#F1F1F1 url(../images/backuground2.png) no-repeat;}
.labelOne {margin-top:1em;}
.btn {width:70px; margin:0 0 0 0.5em; font-family:Arial, Helvetica, sans-serif; color:#555555; font-weight:bold;}
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="../images/head.jpg" width="100%" height="100" /></td>
</tr>
</table>
<?
//include ("../lawahandicraft_html/include/dbconnect.php");
//include ("../lawahandicraft_html/include/function.php");
?>
</head>
<body>
<div id="FromWrapper">
<fieldset class="first">
<? if ($_SESSION['log'] == 'login'){ echo "<a href=\"member/register.html\">แก้ไขข้อมูลส่วนตัว</a>"; } else {echo "<a href=\"member/register.html\">สมัครสมาชิก</a>";}?><? if ($_SESSION['type_id'] == '1'){echo "|เมนูผู้ดูแลระบบ";}?>
<? if($_SESSION['log'] == 'login'){ ?>
<label class="labelOne">Hi>>:<? echo "$_SESSION[name]";?></label>
<label>Position>>:<? if($_SESSION['type_id'] == '1'){ echo "Admin";} elseif($_SESSION['type_id'] == '0'){echo "User";}?></label>
<label><a href="member/logout.php">Logout</a></label>
</fieldset>
<? } else { ?>
<form id="form1" name="form1" method="post" action="member/login.php?op=log">
<fieldset class="first" style='margin-top:-20px; margin-left:400px;'>
<label class="labelOne" for="txt_user">UserName:</label>
<input name="txt_user"/>
<label for="txt_pass">Password:</label>
<input name="txt_pass" type="password"/>
<input class="btn" name="submit" type="submit" value="Submit"/>
</fieldset>
</form><? } ?>
</div>
</body>
</html>
|
|
|
|
|
Date :
2013-06-19 22:05:13 |
By :
Manussawin |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ขอบคุณมากๆครับ คุณGuEmboy
|
|
|
|
|
Date :
2013-06-19 22:18:58 |
By :
teetest |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|