I have got a main php file which includes variious file
Main.php
[code=php]
<?php
$a =0;
if ($_GET[‘a’]){
$a = $_GET[a];
}
?>
<html>
<head>
<title> Front Office Administrative Page </title>
<style = “text/css”>
th {font-family:verdana;font-size:25px;background:#8470FF;text-align:center;word-spacing:0.5em;
letter-spacing:0.25em}
</style>
</head>
<body>
<table CELLPADDING = 3>
<tr>
</tr>
<tr>
<TD></TD>
<td width = “100”></td>
<TD>
<th ROWSPAN = 2 >Front Office Management </th>
</TD>
</tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></<tr>
<tr style = “height:10px”>
<td width = “150”>
<?php include (‘include/FR_MENU.php’); ?>
</td>
<td with = “400”>
<table>
<td>
[B][SIZE=”4″]<?php
if ($a == 1){
include (‘Booking.php’);
};
if ($a == 5) {
include (‘CL_ADMIN.php’);
}[/SIZE][/B] ?>
</td>
</table>
</td>
</tr>
</table>
<?php
?>
Other file
FR_MENU.php
[code=php]
<?php
?>
<html>
<head>
<!— The Front Office Menu –>
<style = “text/css”>
div#links span {display:none}
a {font-family:verdana;font:14px;display:block;margin:0.10,0.10,0.10,0.10}
a:hover {background:#EEE0E5}
</style>
<!— Sub Menu Displaying —>
<script>
function CL_BK(arg1)
{
self.location = ‘FR_OFF.php?$a=’arg1;
alert (self.location);
}
</script>
</head>
<body>
<div style = ‘background:#B0C4DE’>
<br>
<a href = “FR_OFF.php?a=1” Title = “Client Booking for service” onClick = “CL_BK(1)” >Booking </a><br>
<a href = “FR_OFF.php?a=2” Title = “All Goods brought into the company” >Inward </a><br>
<a href = “#”>OutWard </a><br>
<a href = “#”>Report </a><br>
<a href = “FR_OFF.php?a=5” Title = “Manage Client Details” onClickl = “CL_BK(5)” >Client Admin </a><br>
<a href = “#”>Logout </a><br>
</div>
</body>
</html>
CL_ADMIN.php
[code=php]
<?php
echo “Client Administration “;
?>
Booking.php
[code=php]
<?php
echo “Booking”
?>
When I click on the links I.E show warning message in the status bar.
When you click on the icon on the status bar it give following
[COLOR=”Red”]Line:44
char:49
Error : Expected “;”
Code 0
url [url]http://localhost/ticket/FR_OFF.php
I am half way through a project ,