PHP interesse |
|
<div id="scroll">
<table width="100%" height="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td valign="top">
<?
$v1 = "p1"; // nieuws
$v2 = "p2"; // meer informatie
$v3 = "p3"; // historie
$v4 = "p4"; // statuten
if ($_GET['ac'] == $v1) {
$sql = 'SELECT * FROM nieuws';
$sqlquery = mysql_query($sql);
$sqlnum = mysql_num_rows($sqlquery);
echo '<font color="#000000">';
if ($sqlnum == "0") {
echo '<div align="center"><b>Er is op dit moment nog geen nieuws.</b></div>';
}
while ($show = mysql_fetch_assoc($sqlquery)) {
$text = $show['nieuws'];
$titel = $show['titel'];
$text = preg_replace('{\[onderstreept](.*?)\[/onderstreept]}si', '<u>$1</u>', $text);
$text = preg_replace('{\[midden](.*?)\[/midden]}si', '<div align="center">$1</div>', $text);
$text = preg_replace('{\[bold](.*?)\[/bold]}si', '<b>$1</b>', $text);
$text = preg_replace('{\[italic](.*?)\[/italic]}si', '<i>$1</i>', $text);
$text = preg_replace('{\[koptekst](.*?)\[/koptekst]}si', '<font size="3">$1</font>', $text);
$text = preg_replace('{\[enter](.*?)}si', '<br>', $text);
$text = nl2br($text);
echo $text;
echo '</font>';
}
}
elseif ($_GET['ac'] == $v3) {
$sql = 'SELECT historie FROM tekst';
$sqlquery = mysql_query($sql);
while ($show = mysql_fetch_assoc($sqlquery)) {
$text = $show['historie'];
$text = preg_replace('{\[onderstreept](.*?)\[/onderstreept]}si', '<u>$1</u>', $text);
$text = preg_replace('{\[midden](.*?)\[/midden]}si', '<div align="center">$1</div>', $text);
$text = preg_replace('{\[bold](.*?)\[/bold]}si', '<b>$1</b>', $text);
$text = preg_replace('{\[italic](.*?)\[/italic]}si', '<i>$1</i>', $text);
$text = preg_replace('{\[koptekst](.*?)\[/koptekst]}si', '<font size="3">$1</font>', $text);
$text = preg_replace('{\[enter](.*?)}si', '<br>', $text);
echo '<font color="#000000">';
$text = nl2br($text);
echo $text;
if ($text == "") {
echo '<div align="center"><b>Aan deze pagina wordt nog gewerkt!</b></div>';
}
echo '</font>';
}
}
elseif ($_GET['ac'] == $v4) {
$sql = 'SELECT statuten FROM tekst';
$sqlquery = mysql_query($sql);
while ($show = mysql_fetch_assoc($sqlquery)) {
$text = $show['statuten'];
$text = preg_replace('{\[onderstreept](.*?)\[/onderstreept]}si', '<u>$1</u>', $text);
$text = preg_replace('{\[midden](.*?)\[/midden]}si', '<div align="center">$1</div>', $text);
$text = preg_replace('{\[bold](.*?)\[/bold]}si', '<b>$1</b>', $text);
$text = preg_replace('{\[italic](.*?)\[/italic]}si', '<i>$1</i>', $text);
$text = preg_replace('{\[koptekst](.*?)\[/koptekst]}si', '<font size="3">$1</font>', $text);
$text = preg_replace('{\[enter](.*?)}si', '<br>', $text);
$text = nl2br($text);
echo '<font color="#000000">';
echo $text;
if ($text == "") {
echo '<div align="center"><b>Aan deze pagina wordt nog gewerkt!</b></div>';
}
echo '</font>';
}
}
elseif ($_GET['ac'] == $v2) {
echo '<div align="center"><table width="95%" height="120" border="0" cellpadding="0" cellspacing="0" class="bline2">';
echo '<tr>';
echo '<td width="120" valign="top">';
echo '<img src="images/geenafbeelding.jpg" width="120">';
echo '</td>';
echo '<td valign="top" style="filter: alpha (opacity=50); background-color: #000000;">';
echo '<font color="#ffffff">';
echo '<b>...</b><br><br>';
echo '...';
echo '</font>';
echo '</td>';
echo '</tr>';
echo '</table><br>';
echo '</div>';
}
elseif (!isset($_GET['ac'])) {
echo '<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">';
echo '<tr>';
echo '<td align="center" style="filter: alpha (opacity=100);" valign="top">';
$sql = 'SELECT main FROM tekst';
$sqlquery = mysql_query($sql);
while ($show = mysql_fetch_assoc($sqlquery)) {
$text = $show['main'];
$text = nl2br($text);
$text = preg_replace('{\[onderstreept](.*?)\[/onderstreept]}si', '<u>$1</u>', $text);
$text = preg_replace('{\[midden](.*?)\[/midden]}si', '<div align="center">$1</div>', $text);
$text = preg_replace('{\[bold](.*?)\[/bold]}si', '<b>$1</b>', $text);
$text = preg_replace('{\[italic](.*?)\[/italic]}si', '<i>$1</i>', $text);
$text = preg_replace('{\[koptekst](.*?)\[/koptekst]}si', '<font size="3">$1</font>', $text);
$text = preg_replace('{\[enter](.*?)}si', '<br>', $text);
$text = preg_replace('{\[afbeelding](.*?)\[/afbeelding]}si', '<a href="images/$1-groot.gif" rel="lightbox"><img src="images/$1" style="border-style: solid; border-width: 3px; border-color: #000000; filter: alpha (opacity=90);" border="0"></a>', $text);
echo $text;
echo '</td>';
echo '</tr>';
echo '</table>';
}
}
else
{
echo '<div align="center"><b>Deze pagina kan niet worden gevonden.</b></div>';
}
?>
</div>
<table width="100%" height="100%" border="0" cellpadding="2" cellspacing="0"> <? $v1 = "p1"; // nieuws $v2 = "p2"; // meer informatie $v3 = "p3"; // historie $v4 = "p4"; // statuten if ($_GET['ac'] == $v1) { $sql = 'SELECT * FROM nieuws'; $sqlquery = mysql_query($sql); $sqlnum = mysql_num_rows($sqlquery); echo '<font color="#000000">'; if ($sqlnum == "0") { echo ' <div align="center"><b>Er is op dit moment nog geen nieuws. </b></div>'; } while ($show = mysql_fetch_assoc($sqlquery)) { $text = $show['nieuws']; $titel = $show['titel']; $text = preg_replace('{\[onderstreept](.*?)\[/onderstreept]}si', ' <u>$1 </u>', $text); $text = preg_replace('{\[midden](.*?)\[/midden]}si', ' <div align="center">$1 </div>', $text); $text = preg_replace('{\[bold](.*?)\[/bold]}si', ' <b>$1 </b>', $text); $text = preg_replace('{\[italic](.*?)\[/italic]}si', ' <i>$1 </i>', $text); $text = preg_replace('{\[koptekst](.*?)\[/koptekst]}si', ' <font size="3">$1 </font>', $text); $text = preg_replace('{\[enter](.*?)}si', ' <br>', $text); $text = nl2br($text); echo $text; } } elseif ($_GET['ac'] == $v3) { $sql = 'SELECT historie FROM tekst'; $sqlquery = mysql_query($sql); while ($show = mysql_fetch_assoc($sqlquery)) { $text = $show['historie']; $text = preg_replace('{\[onderstreept](.*?)\[/onderstreept]}si', ' <u>$1 </u>', $text); $text = preg_replace('{\[midden](.*?)\[/midden]}si', ' <div align="center">$1 </div>', $text); $text = preg_replace('{\[bold](.*?)\[/bold]}si', ' <b>$1 </b>', $text); $text = preg_replace('{\[italic](.*?)\[/italic]}si', ' <i>$1 </i>', $text); $text = preg_replace('{\[koptekst](.*?)\[/koptekst]}si', ' <font size="3">$1 </font>', $text); $text = preg_replace('{\[enter](.*?)}si', ' <br>', $text); echo ' <font color="#000000">'; $text = nl2br($text); echo $text; if ($text == "") { echo ' <div align="center"><b>Aan deze pagina wordt nog gewerkt! </b></div>'; } } } elseif ($_GET['ac'] == $v4) { $sql = 'SELECT statuten FROM tekst'; $sqlquery = mysql_query($sql); while ($show = mysql_fetch_assoc($sqlquery)) { $text = $show['statuten']; $text = preg_replace('{\[onderstreept](.*?)\[/onderstreept]}si', ' <u>$1 </u>', $text); $text = preg_replace('{\[midden](.*?)\[/midden]}si', ' <div align="center">$1 </div>', $text); $text = preg_replace('{\[bold](.*?)\[/bold]}si', ' <b>$1 </b>', $text); $text = preg_replace('{\[italic](.*?)\[/italic]}si', ' <i>$1 </i>', $text); $text = preg_replace('{\[koptekst](.*?)\[/koptekst]}si', ' <font size="3">$1 </font>', $text); $text = preg_replace('{\[enter](.*?)}si', ' <br>', $text); $text = nl2br($text); echo ' <font color="#000000">'; echo $text; if ($text == "") { echo ' <div align="center"><b>Aan deze pagina wordt nog gewerkt! </b></div>'; } } } elseif ($_GET['ac'] == $v2) { echo ' <div align="center"><table width="95%" height="120" border="0" cellpadding="0" cellspacing="0" class="bline2">'; echo ' <td width="120" valign="top">'; echo ' <img src="images/geenafbeelding.jpg" width="120">'; echo ' <td valign="top" style="filter: alpha (opacity=50); background-color: #000000;">'; echo ' <font color="#ffffff">'; echo '...'; } elseif (!isset($_GET['ac'])) { echo ' <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">'; echo ' <td align="center" style="filter: alpha (opacity=100);" valign="top">'; $sql = 'SELECT main FROM tekst'; $sqlquery = mysql_query($sql); while ($show = mysql_fetch_assoc($sqlquery)) { $text = $show['main']; $text = nl2br($text); $text = preg_replace('{\[onderstreept](.*?)\[/onderstreept]}si', ' <u>$1 </u>', $text); $text = preg_replace('{\[midden](.*?)\[/midden]}si', ' <div align="center">$1 </div>', $text); $text = preg_replace('{\[bold](.*?)\[/bold]}si', ' <b>$1 </b>', $text); $text = preg_replace('{\[italic](.*?)\[/italic]}si', ' <i>$1 </i>', $text); $text = preg_replace('{\[koptekst](.*?)\[/koptekst]}si', ' <font size="3">$1 </font>', $text); $text = preg_replace('{\[enter](.*?)}si', ' <br>', $text); $text = preg_replace('{\[afbeelding](.*?)\[/afbeelding]}si', ' <a href="images/$1-groot.gif" rel="lightbox"><img src="images/$1" style="border-style: solid; border-width: 3px; border-color: #000000; filter: alpha (opacity=90);" border="0"></a>', $text); echo $text; } } else { echo ' <div align="center"><b>Deze pagina kan niet worden gevonden. </b></div>'; } ?>
dit is wat in de div staat, let niet op de slordige php... |