HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/rooymansde.komma-mediadesign.nl/wwwroot/kms/pagina_overzicht.php
<h1>Pagina's</h1>

<br />

<table cellpadding="20" cellspacing="0" border="0">
    <tr height="40">
        <th style="padding-left: 20px;" width="300">Naam</th>
        <th width="90">Foto's</th>
        <th width="100">Wijzigen</th>
    </tr>

<?php
	
	$q_nieuws = "SELECT kms_en_pages.page_id, kms_en_pages.page_name, kms_en_pages.image_dir, kms_en_pages.url FROM kms_en_pages ORDER BY kms_en_pages.sort_order ASC";
	$r_nieuws = mysql_query($q_nieuws);
	
	$kleur = true;
	
	while($rec_nieuws = mysql_fetch_assoc($r_nieuws)){ ?>
        <tr height="40" <?php if($kleur) { echo("style=\"background-color:#eee\""); $kleur = false; }else{ $kleur = true; }?>>
            <td style="padding-left: 20px;"><?php echo(html_entity_decode(ucfirst($rec_nieuws['url']))); ?></td>
            <td>
                <?php if($rec_nieuws['page_id'] == 4){
                    echo("n.v.t.");
                }else{ ?>
                    <a href="index.php?p=paginafoto_overzicht&amp;pagina_id=<?php echo($rec_nieuws['page_id']); ?>">Foto's</a></td>

                <?php } ?>
            <td><a href="index.php?p=pagina_wijzigen&amp;pagina_id=<?php echo($rec_nieuws['page_id']); ?>">Wijzigen</a></td>
        </tr>
<?php } ?>

</table>