Пример #1
0
</div>
<div id="md_r" class="mdiv-r"><?php 
$output = '';
$sql = "SELECT userID, userName FROM grain_user WHERE active = 'Y' order by userName";
$response = $data->getData($sql);
if (!$response['status']) {
    $output = $data->parseErrors($response['message']);
}
$result = $response['result'];
while ($row = $result->fetch()) {
    $output .= '<a href="' . basename(__FILE__) . '?id=' . $row["userID"] . '">' . $row["userName"] . '</a><br />';
}
$result->closeCursor();
unset($response);
$objPanel = new panelControl();
echo $objPanel->main($headDivName = "user", $bodyDivName = "user", $headContent = "Users", $bodyContent = $output, $panelWidth = "225px");
?>
</div>
<div id="md_b" class="mdiv-b">bottom</div>
</body>
</html>
<script type="text/javascript">
function getMain(num){
	var retval;
	switch(num){
	case 0:
		retval = 'Grain Bank Tracker';
		break;
	case 1:
		retval = '';
		break;
Пример #2
0
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title>PHP Test</title>
		<style media="screen" type="text/css">
			.body {font-family:sans-serif;}
			.phead {border:1px solid black;padding:2px;background-color:#7994B7;color:white;font-family:Arial sans-serif;font-size:1em;font-weight:bold;}
			.pbody {border-left:1px solid black;border-right:1px solid black;border-bottom:1px solid black;padding:2px;background-color:#DDDDDD;font-family:Arial sans-serif;font-size:1em;}
		</style>
	</head>
	<body class="body">
		<?php 
echo "Foo";
//include("test_lib_c.php");
include "show_panel_lib_c.php";
$objPanel = new panelControl();
for ($i = 0; $i <= 5; $i++) {
    echo $objPanel->main($headDivName = "panel_{$i}", $bodyDivName = "panel_{$i}", $headContent = "This is the title. {$i}", $bodyContent = "This is content in the body.", $panelWidth = "225px");
    echo "<br/>";
}
echo "Baz";
echo "<br/><br/><br/><hr/>";
//		echo "<form id='myform' name='myform' action='test.php' method='post'>";
//		$objDropdown = new dropdown("braddoro");
//		echo $objDropdown->dataDropdown($name="userID",$id="userID",$currentValue=$i_userID,$sql="select userID, userName from dyn_users where active = 'Y' order by userName");
//		echo "<input type='submit' name='submit' id='submit' value='Go'>";
//		echo "</form>";
//			$link = mysql_connect($server='65.175.107.2:3306',$username='******',$password='******');
//			if (!$link) {
//			    die('Error: '.mysql_error());
//			    exit;
//			}
//			mysql_select_db("braddoro");