witam.pomoze ktos? [HTML]
pobierz,
plaintext - /album-kart.cba.pl
[HTML]
pobierz,
plaintext mianowicie menu na tej stronie sie rozwija ładnie elegancko na pierwszy rzut oka,ale gdy chce wejść na jeden z odnosnikow w tym menu nic sie nie dzieje...co mam zrobic aby zadziałało?
funkcje:
<?php
// katalog stron
$dir = 'html';
// strona domyslna
$default_page = 'home.php';
$pages = glob($dir.'/*.php'); $arr_params = explode('/', $_SERVER['QUERY_STRING']); if(!in_array($dir.'/'.$default = $arr_params[0].'.php', $pages)) { $default = $default_page;
}
include("$dir/$default");
}
function cardList($noie) {
$noie = 1;
if(preg_match('/MSIE/', $_SERVER['HTTP_USER_AGENT'])) { $noie = 0;
}
if($noie) {
echo '<ul class="menulist" id="listMenuRoot"> <li><a href="index.php">strona glowna</a></li>
<li>
<a href="index.php?list">lista</a>
<ul>';
function loadCategories() {
$index_query = mysql_query("SELECT * FROM zbyster_category"); echo '<option value="'.$index_result[0].'"> '.$index_result[1
]; }
}
function loadUnderCategories() {
$index_query = mysql_query("SELECT * FROM zbyster_category_2"); echo '<option value="'.$index_result[0].'"> '.$index_result[1
]; }
}
function cutStringTo($text, $number) {
$letters = 70;
if(strlen($text) > $letters) { while($text[$letters]) {
if(!preg_match('/(\W)/', $text[$letters++])) { //(\s|<|>|\/) continue;
}
else {
$text = substr($text, 0
, ($letters - 1
)); $text .= '... <a href="index.php?view/'.$number.'">czytaj więcej</a>.';
break;
}
}
}
return $text;
}
}
function ifSearchIsNan($string, $list_query) {
}
}
function checkViewLink() {
$arr_params = explode('/', $_SERVER['QUERY_STRING']); $arr_params = (int) $arr_params[1];
// sprawdzenie
$view_query = mysql_query("SELECT * FROM zbyster_card WHERE id = '$arr_params'"); header('Location: index.php?list'); }
return array($view_query, $arr_params);
?>