loader indexfilen i iframe
Jeg har fået hjælp til at lave følgende.. Mangler bare lige det sidste.. I iframen loader den indexfilen med.. Ellers ser der godt nok ud..____________________________________________
<?php
session_start();
mysql_connect("", "", "") or die(mysql_error());
mysql_select_db("");
?>
<!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=utf-8" />
<title>Stutteri Sunhill</title>
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="../sunhill.css" />
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td align="center">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','775','height','240','src','../topmenu','quality','high','pluginspage','http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash','scale','exactfit','movie','../topmenu' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase= "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="775" height="240">
<param name="movie" value="../topmenu.swf">
<param name=quality value=high><param name="SCALE" value="exactfit" />
<embed src="../topmenu.swf" width="775" height="240" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" scale="exactfit"></embed>
</object></noscript>
</td>
</tr>
<tr>
<td >
<table cellspacing="23" style="height:200px" width="775px" align="center" class="siteborder" class="text">
<tr>
<td>
<?php
switch($_GET['frame'])
{
case 1:
echo '<h1>iFrame1</h1>';
$query = "SELECT horseid,navn FROM heste";
$result = mysql_query($query) or die("Forespørgslen lykkedes ikke : " . mysql_error());
if(mysql_num_rows($result)>0)
{
echo '<ul>';
while($data = mysql_fetch_assoc($result))
{
echo '<li><a href="?frame=2&id=' . $data['horseid'] .'" target="iframe2">'.$data['navn'].'</a></li>';
}
echo '</ul>';
}
break;
case 2:
echo '<h1>iFrame2</h1>';
if(isset($_GET['id']) && is_numeric($_GET['id']))
{
$id = intval($_GET['id']);
$query = "SELECT * FROM heste WHERE horseid = '".$id."' LIMIT 1";
$result = mysql_query($query) or die("Forespørgslen lykkedes ikke : " . mysql_error());
if(mysql_num_rows($result)==1)
{
$data = mysql_fetch_assoc($result);
echo '<pre>';
print_r($data);
echo '</pre>';
}
}
break;
default:
echo '<table>';
echo '<tr><td>';
echo '<iframe name="iframe1" src="?frame=1" width="200" height="400">[Din browser underst?tter ikke iframes.]</iframe>';
echo '</td>';
echo '<td>';
echo '<iframe name="iframe2" src="?frame=2" width="300" height="400">[Din browser underst?tter ikke iframes.]</iframe>';
echo '</td></tr>';
echo '</table>';
echo '<hr />';
break;
}
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','1000','height','190','src','../bundmenu_ani','quality','high','pluginspage','http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash','movie','../bundmenu_ani' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase= "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="1000" height="190">
<param name="movie" value="../bundmenu_ani.swf">
<param name=quality value=high>
<embed src="../bundmenu_ani.swf" width="1000" height="190" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
</object></noscript>
</td>
</tr>
</table>
</body>
</html>
