<!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>Administration Control Panel</title>
<link rel="stylesheet" type="text/css" href="admin_logged.css" />
<link rel=\"stylesheet\" type="text/css" href="admin_logged.css"/>
</head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function validate(form)
{
with (document.control){
if(sqlQueryType.value=="") {
alert("Query type not defined"); /* ensure SQLType is defined */
return false;
}
if(queryOne.value =="") {
alert("SQL statement is empty"); /* ensure SQL statement is not empty */
return false;
}
var regex = new RegExp('/(create|update|delete)+/');
if (queryOne.value.match(regex))
{
alert("MEH");
return false;
}
}
}
//-->
</SCRIPT>
<body>
<div id="wrapper"><!--open wrapper -->
<div id="header"><!-- open header -->
<img src="/kuj/images/olympic_home.GIF" height="77" width="143"/>
<img src="/kuj/images/olympic_head.gif "/>
<!--<img src="/kuj/images/olympics2012logo.gif""/> -->
<div id="header-bottom"><!-- open header-bottom -->
<ul>
<a class="one" href="http://localhost:8080/kuj/Home">Home</a> |
<a class="one" href="javascript:history.go(-1)">Go Back</a> |
<a class="one" href="">Contact Us </a>|
<a class="one" href="">About Us</a> |
</ul>
</div><!-- close header-bottom -->
</div><!-- close header -->
<div id="main"><!-- open main -->
<div id="main2"><!-- open main2 -->
<div id="rightbar"><!-- open rightbar -->
<div class="inner"><!-- open inner class "site search" -->
<h3>Welcome, Administrator.</h3>
</div><!-- close inner class "site search" -->
</div><!-- close rightbar -->
<div id="leftbar"><!-- open leftbar -->
<ul id="nav"><!-- open nav -->
<li class="one"><a href="#">Event Information</a></li>
<li class="one"><a href="#">Directions</a></li>
<li class="one"><a href="#">Olympic Images</a></li>
</ul><!-- close nav -->
</div><!-- close leftbar -->
<div id="content"><!-- open content -->
<div class="inner"><!-- open class inner "recent events" -->
<h3>Administration Control Panel </h3>
<h3>Instructions</h3>
<p>Around eight million tickets will be available for the Olympic Games, and we have the right ticket for you!</p>
<p> </p>
<p> </p>
<form name="control" method="POST" onsubmit="return validate(this)" action="http://localhost:8080/kuj/AdminResponseServlet">
<table align="center" border="0" bordercolor="blue">
<tr>
<td> Product Name: </td>
<td> <input type="text" name="driverDetails" size="40" value=MySQL> </td >
</tr>
<tr>
<td> Version: </td>
<td> <input type="text" name="database" size="40" value=mysql-connector-java-3.0.10-stable ( $Date: 2004/01/13 21:56:18 $, $Revision: 1.27.2.33 $ )> <td + >
</tr>
<tr>
<td> Database: </td>
<td> <input type="text" name="database" size="40" ></td>
</tr>
<tr>
<td> User Name: </td>
<td> <input type="text" name="username"></td>
</tr>
<tr>
<td> Password: </td>
<td><input type ="password" name ="password"> </td>
</tr>
<tr>
<td> Type of execution: </td>
<td>
<select name="sqlQueryType">
<option value=""></option>
<option value="Query">Query</option>
<option value="Alter">Alter</option>
</select>
</td>
</tr>
<tr>
<td>SQL:</td>
<td> <textarea rows="5" cols="50" name="queryOne"></textarea></td>
</tr>
<tr>
<td colspan="2">
<p align="center"><input type="submit"/> </td>
</tr>
</table>
</form>
</div><!-- close class inner "offers" & "recent events" -->
</div><!-- close content -->
<div id="clearone"> </div><!-- close clearone -->
</div><!-- close main2 -->
</div><!-- close main -->
<div id="footer"><!-- open footer -->
<p>Copyright 2007 - all rights reserved</p>
</div><!-- close footer -->
</div><!-- close wrapper -->
</body>
</html>