OK
To see what i'm talking about goto:
http://tdcj.homeip.net/test2.php
But here's the code:
Code:
<!--Force IE6 into quirks mode with this comment tag-->
<!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" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Dallas I PRTU - InCustody Database</title>
<style type="text/css">
body{
margin: 0;
padding: 0;
border: 0;
overflow: hidden;
height: 100%;
max-height: 100%;
}
#framecontent{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100px; /*Height of frame div*/
overflow: fixed; /*Disable scrollbars. Set to "scroll" to enable*/
background-color: navy;
color: white;
}
#maincontent{
position: fixed;
width: 100%;
top: 100px; /*Set top value to HeightOfFrameDiv*/
left: 0;
right: 0;
bottom: 0;
overflow: scroll;
background: #fff;
}
* html body{ /*IE6 hack*/
padding: 100px 0 0 0; /*Set value to (HeightOfFrameDiv 0 0 0)*/
}
* html #maincontent{ /*IE6 hack*/
height: 100%;
width: 100%;
}
</style>
<?php
include("include/phpgrid.php");
include("config/db_conf.php"); // Contains the db config that was in here!
?>
<?php
$dg = new C_DataGrid($hostName, $userName, $password, $dbName);
$dg -> set_gridpath ("include/");
$dg -> set_sql ("SELECT * FROM Grid_Employees");
$dg -> set_sql_table ("Grid_Employees");
$dg -> set_sql_key ("EmployeeId");
$dg -> set_theme("royal");
$dg -> display();
?>
</head>
<body>
<div id="framecontent">
<div class="innertube">
<h1>Dallas I PRTU - InCustody Database</h1>
<h5>Logout</h5>
</div>
</div>
</body>
</html>
I was able to get the screen to scroll late last night, but it scroll the header too. I just want the main content area (my grid) to scroll up and down, and left to right
Bookmarks