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/komma-mediadesign.nl/wwwroot/kms oud/klant_overzicht.php
<h1>Klanten</h1>

<p><br /><a href="index.php?p=klant_toevoegen" title="Klant toevoegen">Klant toevoegen</a></p>

<table cellpadding="20" cellspacing="0" border="0">
    <tr height="40">
        <th width="310"><span style="padding-left:10px;">Image</span></th>
        <th width="380">Naam / Link</th>
        <th width="110">Wijzigen</th>
        <th width="110">Verwijderen</th>
    </tr>

<?php
	
	$q_nieuws = "SELECT kms_klanten.klant_id, kms_klanten.naam, kms_klanten.link, kms_klanten.target, kms_klanten.image_dir FROM kms_klanten ORDER BY kms_klanten.naam ASC";

	$r_nieuws = mysql_query($q_nieuws);
	
	$kleur = true;
	
	while($rec_nieuws = mysql_fetch_assoc($r_nieuws)){ ?>
        <tr height="210" <?php if($kleur) { echo("style=\"background-color:#eee\""); $kleur = false; }else{ $kleur = true; }?>>
        
            <td><div class="thumb" style="width:284px; height:180px; margin-left:10px;"><img width="284" src="/klanten_images/<?php echo($rec_nieuws['image_dir']); ?>/logo.jpg" alt="<?php echo(html_entity_decode($rec_nieuws['naam'])); ?>" /></div></td>
            
            <td><?php echo(html_entity_decode($rec_nieuws['naam'])); ?><br /><?php echo(html_entity_decode($rec_nieuws['link'])); ?> (<?php echo(html_entity_decode($rec_nieuws['target'])); ?>)</td>
                 
            <td><a href="index.php?p=klant_wijzigen&amp;klant_id=<?php echo($rec_nieuws['klant_id']); ?>">Wijzigen</a></td>
            <td><a href="index.php?p=klant_verwijderen&amp;klant_id=<?php echo($rec_nieuws['klant_id']); ?>">Verwijderen</a></td>
        </tr>
<?php } ?>

</table>