
By: Xmoo | Date: Apr 1 2007 18:51 | Format: PHP | Expires: never | Size: 1.75 KB | Hits: 2253
- <?php
- if (($_GET['p'] == 'home') && ($_GET['a'] == 'add')) {
- //Home toevoegen START
- if ($submit) {
- $insert = "INSERT INTO juize_home (titel, datum, bericht)
- values ('$titel', '$datum', '$poster', '$bericht')";
- echo "<font face=verdana size=2 color=green>Homeitem Succesfully Added</font>";
- }
- else {
- echo "<form action="content.php?p=home&a=add" method="post">";
- echo "<font face="verdana" size="2" color="#fa6627"><strong>Home Titel:</strong></font><br><input type="text" name="titel" size="30"><br>";
- echo "<font face="verdana" size="2" color="#fa6627"><strong>Home Date:</strong></font><br><input type="text" name="datum" size="30"><br>";
- echo "<font face="verdana" size="2" color="#fa6627"><strong>Home Text:</strong></font><br><textarea rows="15" name="bericht" cols="45"></textarea><br><br>";
- echo "<input type="submit" name="submit" value="Add Homepage!"></form>";
- }
- //Home toevoegen END
- }
- elseif (($_GET['p'] == 'home') && ($_GET['a'] == 'edit')) {
- //Home EDIT START
- {
- $aid = $info->id;
- $titel = $info->titel;
- ?>
- <table width="350" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="250"><?php echo "<span class="style1">".$titel."</span>"; ?></td>
- <td width="50"><div align="center"><a href="edit.php?p=home&id=<?php echo "".$aid.""; ?>" target="_blank">edit</a></div></td>
- <td width="50"><div align="center"><a href="del.php?p=home&id=<?php echo "".$aid.""; ?>" target="_blank">delete</a></div></td>
- </tr>
- </table>
Latest pastes
41 minutes ago
10 hours ago
14 hours ago
16 hours ago
21 hours ago