Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Wczytywanie podstron php
anacom
post
Post #1





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 17.01.2010

Ostrzeżenie: (0%)
-----


Witam, mam problem z wydawaloby sie bardzo prosta strona, na laptopie wszystko dziala poprawnie, a na telefonie nie chce. ewidentnie czegos brakuje, a ja juz nie mam pomyslu o co moze chodzic. moze ktos pomoze? ta strona to jezyk-catering.pl
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
anacom
post
Post #2





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 17.01.2010

Ostrzeżenie: (0%)
-----


to jest kod z pliku index

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title>Jeżyk-catering</title>
<link rel="stylesheet" type="text/css" href="arkusz.css" />

<!--sprawdzanie mobilne-->
<?php
$iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone");
$android = strpos($_SERVER['HTTP_USER_AGENT'],"Android");
$palmpre = strpos($_SERVER['HTTP_USER_AGENT'],"webOS");
$berry = strpos($_SERVER['HTTP_USER_AGENT'],"BlackBerry");
$ipod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod");

if ($iphone || $android || $palmpre || $ipod || $berry == true)
{
header('Location: http://jezyk-catering.pl/mobilne/index.php/');
//OR
echo "<script>window.location='http://jezyk-catering.pl/mobilne/index.php'</script>";
}
?>
<!--koniec sprawdania-->

</head>
<body>

<?php include "menu.html"; ?>

<?php include "tresc.html"; ?>

</body>
</html>


do tego jest plik menu

<div id="menu">

<div id="menu_left">
<ul>
<li><a href="index.php?id=stronaglowna">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;STRONA GŁÓWNA&nbsp;&nbsp;&nbsp;&nbsp;</a></li>
<li><a href="index.php?id=onas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;O NAS&nbsp;&nbsp;&nbsp;&nbsp;</a></li>
<li><a href="index.php?id=oferta">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;OFERTA</a></li>
</ul>
</div>

<div id="menu_right">
<ul>
<li><a href="">&nbsp;ZALOGUJ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></li>
<li><a href="index.php?id=kontakt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;KONTAKT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></li>
<li><a href="index.php?id=przykladowejadlospisy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PRZYKŁADOWE JADŁOSPISY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></li>
</ul>
</div>

</div>


i plik tresc w ktorym ma wczytywac plikiz grafika

<div id="tresc">


<?php
$id = isset($_GET['id']) ? $_GET['id'] : 'start';
if($id=="start"){
include("start.html");
}
?>

<?php
$id = isset($_GET['id']) ? $_GET['id'] : 'onas';
if($id=="onas"){
include("onas.html");
}
?>

<?php
$id = isset($_GET['id']) ? $_GET['id'] : 'kontakt';
if($id=="kontakt"){
include("kontakt.html");
}
?>

<?php
$id = isset($_GET['id']) ? $_GET['id'] : 'przykladowejadlospisy';
if($id=="przykladowejadlospisy"){
include("przykladowejadlospisy.html");
}
?>

<?php
$id = isset($_GET['id']) ? $_GET['id'] : 'oferta';
if($id=="oferta"){
include("oferta.html");
}
?>


<?php
$id = isset($_GET['id']) ? $_GET['id'] : 'stronaglowna';
if($id=="stronaglowna"){
include("stronaglowna.html");
}
?>



</div>

a na mobilne mam osobny index menu i tresc ktore ma wczytywac na telefonach
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 4.10.2025 - 07:35