Preview: social.php
Size: 2.22 KB
/home/www/idcceurope.com/www/idcceurope.com/admin/social.php
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="main.css" type="text/css" />
<style type="text/css">
.note{
font-family:Arial, Helvetica, sans-serif;
font-size:15px;
font-weight:bold;
color:red;
text-decoration:blink;
font-style:italic;
}
.bang{
clear:both;
padding:20px;
}
#main_center1{
margin:auto;
width:900px;
/*background-color:#FF00FF;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
-khtml-border-radius: 20px;
border-radius: 20px;*/
height:auto;
}
</style>
</head>
<body>
<?php
require "db.php";
$sql = "SELECT * FROM social";
$result = mysql_query($sql);
?>
<div id="main_center1">
<form action="inputsocial.php" id="login" name="flogin" method="post">
<table align="center" width="600px" bgcolor="#EFEFEF" border="0" cellpadding="4px" cellspacing="4px" style="margin-top:10px">
<tr>
<td colspan="2" align="center"> NHẬP CÁC LIÊN KẾT CHO MẠNG XÃ HỘI </td>
</tr>
<tr>
<td class="contact_form">Facebook link</td>
<td>
<input type="text" size="40" id="facebook" name="facebook">
</td>
</tr>
<tr>
<td class="contact_form">Youtube link</td>
<td>
<input type="text" size="40" id="youtube" name="youtube">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="Nhập liên kết">
</td>
</tr>
</table>
</form>
<div class="bang">
<table width="100%" border="1" style="border-collapse:collapse" id="chitiet">
<tr>
<td colspan="3" align="center">
Liên kết mạng xã hội
</td>
</tr>
<?php
$count = 0;
while($row = mysql_fetch_array($result))
{
$count++;
?>
<tr onClick="show(this.rowIndex);" style="cursor:pointer">
<td align="center"><?php echo $count;?></td>
<td><?php echo $row["facebook"];?></td>
<td><?php echo $row["youtube"];?></td>
</tr>
<?php
}
?>
</table>
<a href="index.php?page=o_nas">Back</a>
</div>
</div>
</body>
</html>
Directory Contents
Dirs: 4 × Files: 101