[991]PHP網站開發 進階應用技巧2
<?php
include "setup.php";
$sql = "select * from note order by post_date desc";
$result=mysql_query($sql);
$text_a="";
while(list($sn,$title,$content,$post_date)=mysql_fetch_row($result)){
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="dhtmlxSuite/dhtmlxLayout/codebase/dhtmlxlayout.css">
<link rel="stylesheet" type="text/css" href="dhtmlxSuite/dhtmlxLayout/codebase/skins/dhtmlxlayout_dhx_skyblue.css">
<script src="dhtmlxSuite/dhtmlxLayout/codebase/dhtmlxcommon.js"></script>
<script src="dhtmlxSuite/dhtmlxLayout/codebase/dhtmlxcontainer.js"></script>
<script src="dhtmlxSuite/dhtmlxLayout/codebase/dhtmlxlayout.js"></script>
<style>
html, body {
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
overflow: hidden;
}
</style>
<script>
var dhxLayout;
function doOnLoad(){
dhxLayout = new dhtmlXLayoutObject(document.body, "3J", "dhx_skyblue");
var item_a = dhxLayout.cells("a");
item_a.setText("主選單");
item_a.setWidth(200);
item_a.setHeight(400);
dhxLayout.cells("c").setText("常用工具");
dhxLayout.cells("c").attachObject("text_c");
dhxLayout.cells("b").attachURL("list.php");
}
</script>
</head>
<body onload="doOnLoad();">
<div id="text_c">
<a href="javascript:dhxLayout.cells('b').attachURL('input.php');">發佈新聞</a>
</div>
</body>
</html>