vreemd dit. Als ik jou hele script overneem dan werkt het als nog.
Denk dat er toch ergens iets anders niet goed staat.
Ik heb in de display.header.php dit nog staan aan top
Ik weet wel toen ik die script opnieuw wou bewerken dat ik er ook problemen mee heb gehad en heb ergens iets aangepast alleen weet niet meer wat of waar.
Zou je anders je site in een .zip of .rar willen linken via een PM.
Dan wil ik er even dieper in zoeken.
Dit is mijn page
Code: Selecteer alles
<?php require_once ('display.header.php'); ?>
<!-- BEGIN:SEARCH -->
<div id="search">
<form method="get" action="playlist.php" name="searchParameters">
Zoek: <?php InputText('search', $search, '', 20); ?>
<input type="submit" value="Go" name="B1" />
Laat <?php InputCombo('limit', $limit, 20, '20,25,50,100', "", "document.forms.searchParameters.submit();"); ?> resultaten zien
<hr/>
<table>
<tbody>
<tr>
<td>
<input type="submit" name="character" class="characterButton" value="All" onclick="document.forms.searchParameters.search.value=''"/>
</td>
<td>
<input <?php echo "0 - 9" == $character ? "id='activeCharacter'" : ""; ?> type="submit" name="character" class="characterButton"value='0 - 9'/>
</td>
<?php for ($charVal = ord('A');$charVal <= ord('Z');$charVal++) {
$c = chr($charVal);
echo "<td>";
echo "<input " . ($character == $c ? "id='activeCharacter'" : "") . " type='submit' name='character' class='characterButton' value='$c' onclick='document.forms.searchParameters.search.value=\"\"' />";
echo "</td>";
}
?>
</tr>
</tbody>
</table>
</form>
</div>
<!-- END:SEARCH -->
<div id="playlist">
<?php
$time2 = date("H");
if ($time2 >= "3" && $time2 < "4") {
echo '<center><span style="margin-top: 10px; margin-bottom: 10px; font-size: 17px; color: #FF0000;"> <span style="font-weight: bold;">Verzoekjes zijn momenteel uitgeschakeld van 03:00 t/m 04:00 ivm onderhoud</span></center><br />';
}
else ?>
<div id="playlist_wrapper">
<table cellpadding="0" cellspacing="0" width="100%">
<thead>
<tr>
<th class="" colspan="6"><center>Artiesten blijven <u>12 uur</u> in de wacht na gespeeld te zijn</center></th>
</tr>
<tr>
<th colspan="4" align="left">
Muzieklijst resultaten
</th>
<th width="0" align="right" colspan="2">
Tijd
</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="6" id="td-playlist-paging">
<?php if (is_array($playlistSongs) && (count($playlistSongs) > 0)) { ?>
<?php if ($start > 0) { echo $prevlnk; } ?>
[ Showing <?php echo "$first to $last of $cnt"; ?> ]
<?php if (($start + $limit) < $cnt) { echo $nextlnk; }
?>
<?php } ?>
</td>
</tr>
<?php
if (is_array($playlistSongs) || (count($playlistSongs) > 0))
foreach ($playlistSongs as $key => $playlistSong): ?>
<tr>
<td width="10%" align="center">
<?php echo $key + 1; ?>
</td>
<td colspan="3">
<?php echo $playlistSong->artist_title; ?>
<?php if ($playlistSong->isRequested): ?>
~aangevraagd~
<?php endif; ?>
</td>
<td align="center" width="250px">
<?php
$tim = strtotime($playlistSong->date_artist_played);
$af = time() - $tim + 43200; //-<12uur
$da = ($af - ($af % 86400)) / 86400;
$af = $af - ($da * 86400);
$u = ($af - ($af % 3600)) / 3600;
$af = $af - ($u * 3600);
$n = ($af - ($af % 60)) / 60;
$af = $af - ($n * 60);
$s = ($af - ($af % 1)) / 1;
$c = 0; //<-24uur
?>
<?php if (ALLOW_REQUESTS): ?>
<a href="javascript:request(<?php echo $playlistSong->ID; ?>);">
<?php if ($time2 >= "3" && $time2 < "4") { echo "";
}
else
if ($da > $c)
{
echo "<img src=\"images/verzoek2.gif\" title=\"Al $da dagen beschikbaar\" alt=\"BroadCasterForum.nl!\" border=\"0\"></a> ";
}
else
{
$dg = $c - $da;
$uu = 23 - $u;
$mi = 59 - $n;
$se = 59 - $s;
if ($dg == 0) echo "</a><img src=\"images/nverzoek2.gif\" title=\"Beschikbaar over $uu uur $mi minuten en $se seconden!\" alt=\"BroadCasterForum.nl!\" border=\"0\"> ";
else if ($dg == 1) echo "</a><img src=\"images/nverzoek2.gif\" title=\"Beschikbaar over $dg dag en $uu uur $mi minuten en $se seconden!\" alt=\"BroadCasterForum.nl!\" border=\"0\"> ";
else if ($dg > 1) echo "</a><img src=\"images/nverzoek2.gif\" title=\"Beschikbaar over $dg dagen en $uu uur $mi minuten en $se seconden!\" alt=\"BroadCasterForum.nl!\" border=\"0\"> ";
}
?>
<?php endif; ?>
</td>
<td colspan="0" width="30" align="center">
<?php echo $playlistSong->durationDisplay; ?>
</td>
</tr>
<?php endforeach; ?>
<tr>
<td colspan="6" id="td-playlist-paging">
<?php if (!is_array($playlistSongs) || (count($playlistSongs) == 0)) { ?>
Geen resultaten bekend.
<?php } else { ?><?php if ($start > 0) { echo $prevlnk; } ?>
[ Showing <?php echo "$first to $last of $cnt"; ?> ]
<?php if (($start + $limit) < $cnt) { echo $nextlnk; } ?>
<?php } ?>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- END:PLAYLIST -->
<?php require_once ('display.footer.php'); ?>
</div>
<!-- END:PAGE -->
<!-- JQuery to round corners some of the HTML items on the page -->
<script type="text/javascript">
//<![CDATA[
// Make sure the DOM is ready
$(document).ready(function() {
// Rounding of corners (Cross-browser compatible)
// See http://jquery.malsup.com/corner/ for different Styles.
// Rounds the page corners
$('#page').corner();
// Rounds the Navigation Menu Corners
$('#navigation dl').corner();
// Rounds the Coming Up Corners
$('#coming-up dl').corner();
// Round the Dedication Corners
$('#dedication dl').corner('tl tr').corner();
// Round the Top Request Corners
$('#top_requests dl').corner();
// Rounds the Playlist and search boxes
$('#playlist_wrapper, #search').corner();
// Style odd and even rows in Playlist Table (Cross-browser compatible)
$('#playlist table tbody tr:nth-child(odd)').addClass('playlist_odd');
$('#playlist table tbody tr:nth-child(even)').addClass('playlist_even');
});
//]]>
</script>
</body>
</html>