Użytkownik: anonymous
Tytuł: noname
Język: PHP
Data: 7 mar 2010, 10:35
<?php require_once('connections/admin.php'); ?> <?php function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": break; case "double": break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $delete = @$_GET['delete']; $currentPage = $_SERVER["PHP_SELF"]; $maxRows_hotels = 16; $pageNum_hotels = 0; $pageNum_hotels = $_GET['pageNum_hotels']; } $startRow_hotels = $pageNum_hotels * $maxRows_hotels; $query_hotels = "SELECT * FROM TV_Shows"; $totalRows_hotels = $_GET['totalRows_hotels']; } else { } $queryString_hotels = ""; foreach ($params as $param) { } } } } ?> <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>RufusFCB Code Creator</title> <link href="loginmodule.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="left"> <center><font color="#ffffff">Admin Panel</font></center> <div class="content"> <br/> <br/> <center> <form name="myform" action="shows.php" method="get"> <div align="center"> Show:<select name="show"> <?php do { <?php </select> <br/><br/> Series:<select name="series"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> </select> <br/><br/> <input type="submit" value="Go!"> </div> </form> </center> <br/> </div> </div> <div id="main"> <center><font color="#ffffff">Main</font></center> <div class="content"> <center><p>Please select a TV Show from the drop down box on the left hand side.</p></center> </div> </div> </body> </html>


