rendered paste bodyindex.php:
define("SMARTY_DIR","include/smarty/");
require_once(SMARTY_DIR."Smarty.class.php");
$smarty = new Smarty;
$smarty->compile_check = true;
$smarty->debugging = true;
$smarty->compile_dir = 'temp/templates_c';
$smarty->display('templates/main.tpl');
main.tpl:
<html>
<head>
<title>SMS Gateway</title>
<style>
div
{
border: 1px solid #333233;
}
#container
{
width: 780px;
margin: auto;
border: 0px;
}
#head
{
height: 100px;
}
#header
{
text-align: center;
margin-top: 30px;
border: 0px;
}
#menubar_horizontal
{
margin-top: 5px;
padding: 5px;
text-align: right;
}
#content
{
margin-top: 5px;
padding: 5px;
}
#leftpanel
{
height: 350px;
width: 200px;
padding: 5px;
float: left;
}
#menubar_vertical, #news
{
width: 190px;
margin: auto;
margin-top: 5px;
padding: 5px;
}
#menubar_vertical{
height: 150px;
}
#news
{
height: 180px;
}
#body{
left: 210px;
height: 359px;
padding: 5px;
}
#footer
{
margin-top: 5px;
padding: 5px;
}
</style>
</head>
<body>
<div id="container">
<div id="head">
<div id="header"> <h1>Header</h1> </div>
</div>
<div id="menubar_horizontal"> Menubar </div>
<div id="content">
<div id="leftpanel">
<div id="menubar_vertical">Menubar Vertical</div>
<div id="news">News</div>
</div>
<div id="body">Body</div>
</div>
<div id="footer">Footer</div>
</div>
</body>
</html>