Live.php bliver hentet ind i min index.php fil
se evt
Min side der er både fejl i live og i stillinger, men dem enretter jeg når den ene virker
Index.php
- <?php
- include_once('script/script.php');
-
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8" />
- <title>Spejderløbet 2013</title>
- <link type="text/css" rel="stylesheet" href="css/standard.css" />
- <script type="text/javascript">
-
- function showUser(str)
- {
- if (str=="")
- {
- document.getElementById("indhold").innerHTML="";
- return;
- }
- if (window.XMLHttpRequest)
- {// code for IE7+, Firefox, Chrome, Opera, Safari
- xmlhttp=new XMLHttpRequest();
- }
- else
- {// code for IE6, IE5
- xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange=function()
- {
- if (xmlhttp.readyState==4 && xmlhttp.status==200)
- {
- document.getElementById("indhold").innerHTML=xmlhttp.responseText;
- }
- }
- xmlhttp.open("GET","file.php?q="+str,true);
- xmlhttp.send();
- }
-
- function open_win(show) {
- window.open('http://127.0.0.1/klatring/edit.php?id='+show,'','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=600')
-
-
- }
-
- </script>
- </head>
- <body>
- <div id="side">
- <div id="top">
- <font id="toptext">Spejderløbet 2013</font>
- </div>
- <div id="menubar">
- <button class="menu" onclick="showUser('forside')">Forside</button>
- <button class="menu" onclick="showUser('lobet')">Løbet</button>
- <button class="menu" onclick="showUser('faq')">FAQ</button>
- <button class="menu" onclick="showUser('stilling')">Stilling</button>
- <button class="menu" onclick="showUser('live')">LIVE</button>
- <button class="menu" onclick="showUser('tilmeld')">Tilmeld</button>
- <button class="menu" onclick="showUser('sjak')">Sjak</button>
-
- <div id="login">
- <form action="login.php" method="post">
- <input name="patruljenavn" type="text" class="login" autofocus placeholder="Patruljenavn" />
- <input class="login" type="password" name="kodeord" placeholder="Kodeord" />
- <input class="login" type="submit" name="login" value="Log in"/>
- </form>
- <button onclick="showUser('tilmeld')" class="login">Tilmeld jeres patrulje</button>
-
- </div>
- </div>
- <div id="indhold">
- <?php
- include("forside.php");
- ?>
- </div>
- <div id="bund">
- Morten Lybecker
- </div>
- </div>
- </body>
- </html>
- <?php
-
- ?>
Indlæg senest redigeret d. 23.05.2013 22:02 af Bruger #7056