Laat je relevante code eens zien, dan kunnen we er eens naar kijken.
Link gekopieerd
Hierbij de code:
<?php
include_once 'config1.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>Configuratie Toevoegen</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function ConfirmDelete(){
var d = confirm('Weet je zeker dat je deze configuratie wilt verwijderen?');
if(d == false){
return false;
}
}
</script>
</script>
<script src="jquery.js"></script>
<script src="bindWithDelay.js"></script> <!-- optional -->
<script src="jquery.filtertable.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="jquery.filtertable.min.js"></script>
<script>
$(document).ready(function() {
$('table').filterTable(); // apply filterTable to all tables on this page
});
</script>z
</head>
<body>
<div class="wrapper">
<div class="content" >
<?php include 'header.php'; ?><br/>
<table class="pbtable">
<thead>
<tr>
<th>
PC Naam
</td>
<th>
Merk
</th>
<th>
Type
</th>
<th>
Serienummer
</th>
<th>
Operating System
</th>
<th>
IP Adres
</th>
<th>
Patchpunt
</th>
<th>
Serial Key
</th>
<th>
Gebruiker
</th>
<th></th><th></th>
</tr>
</thead>
<tbody>
<?php foreach($configuratie_lijst as $configuratie) : ?>
<tr>
<td>
<?php echo $configuratie["pc_naam"]; ?>
</td>
<td>
<?php echo $configuratie["merk"]; ?>
</td>
<td>
<?php echo $configuratie["type"]; ?>
</td>
<td>
<?php echo $configuratie["serienummer"]; ?>
</td>
<td>
<?php echo $configuratie["os"]; ?>
</td>
<td>
<?php echo $configuratie["ip_adres"]; ?>
</td>
<td>
<?php echo $configuratie["patchpunt"]; ?>
</td>
<td>
<?php echo $configuratie["serial_key"]; ?>
</td>
<td>
<?php echo $configuratie["gebruiker"]; ?>
</td>
<td>
<form method="post" action="config1.php">
<input type="hidden" name="ci"
value="<?php echo $configuratie["id"]; ?>" />
<input type="hidden" name="action" value="edit" />
<input type="submit" value="Edit" />
</form>
</td>
<td>
<form method="POST" action="config1.php"
onSubmit="return ConfirmDelete();">
<input type="hidden" name="ci"
value="<?php echo $configuratie["id"]; ?>" />
<input type="hidden" name="action" value="delete" />
<input type="submit" value="Delete" />
</form>
</td>
<tr>
<?php endforeach; ?>
</tbody>
</table><br/>
<a href="config2.php" class="link-btn">Configuratie Toevoegen</a>
</div>
</div>
<div id="links">
<div class="menu_simple">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="config1.php">Configuraties</a></li>
<li><a href="vlan1.php">VLAN's</a></li>
<li><a href="ip1.php">IP Beheer</a></li>
<li><a href="patch1.php">Patch Beheer</a></li>
<li><a href="user1.php">Gebruikersbeheer</a></li>
</ul>
</div>
</body>
</html>
[size=xsmall]
Toevoeging op 28/04/2015 12:38:21: [/size]
Dat wist ik nog niet, bedankt!
Link gekopieerd