sda (****UNDEFINED****)
- <?php
- if($__dona == 0){
- $tekens = 1000;
- } elseif($__dona > 0 && $__dona < 5){
- $tekens = 1500;
- } elseif($__dona > 4){
- $tekens = 2000;
- }
- if(isset($_POST['update_prof'])){
- if(strlen($_POST['newprofiel']) > $tekens){
- $msg = "Je profiel mag maximaal ".$tekens." tekens zijn.";
- } else {
- $newprof = BBParser($_POST['newprofiel']);
- mysql_query("UPDATE `profiel` SET `profiel`='".$newprof."', `profiel_edit`='".mr($_POST['newprofiel'])."' WHERE `id`=".ID) or die(mysql_error());
- $msg = "Je hebt je profiel veranderd!";
- }
- }
- $sql = mysql_query("SELECT `profiel_edit` FROM `profiel` WHERE `id`=".ID) or die(mysql_error());
- $res = mysql_fetch_assoc($sql);
- ?>
- <script language="javascript">
- function add(code) {
- var myQuery = document.getElementById('newprofiel');
- var chaineAj = code;
- //IE support
- if (document.selection) {
- myQuery.focus();
- sel = document.selection.createRange();
- sel.text = chaineAj;
- }
- //MOZILLA/NETSCAPE support
- else if (document.getElementById('newprofiel').selectionStart || document.getElementById('artikel').selectionStart == "0") {
- var startPos = document.getElementById('newprofiel').selectionStart;
- var endPos = document.getElementById('newprofiel').selectionEnd;
- var chaineSql = document.getElementById('newprofiel').value;
- myQuery.value = chaineSql.substring(0, startPos) + chaineAj + chaineSql.substring(endPos, chaineSql.length);
- } else {
- myQuery.value += chaineAj;
- }
- myQuery.focus();
- }
- </script>
- <form method='post' action='nav.php?p=account&x=1'>
- <table border='0' cellspacing='1' width='96%' bgcolor='#000' align='center'>
- <tr>
- <td class='top' colspan='2'>
- Profiel Beheren
- </td>
- </tr>
- <tr>
- <td class='inhoud_c' width='10%'>
- <a href='nav.php?p=account&x=1'><img src='IMG/profiel.jpg' alt='' border='0'/></a><br /><br />
- <a href='nav.php?p=account'><img src='IMG/back.jpg' alt='' border='0'/></a>
- </td>
- <td class='inhoud' width='90%' style='vertical-align: top;'><br />
- <center><table border="0" cellpadding="2" cellspacing="0" bordercolor="#111111" width="80%" height="110">
- <tr><td width="50%" height="100"><center>
- <table border="0" cellpadding="2" cellspacing="0" width="50%">
- <tr><td width="25%"><p align="center"><input type='button' style='width: 100px' value='Onderstrepen' onclick="javascript:add('[u]text[/u]'+' ')"></td>
- <td width="25%"><p align="center"><input type='button' style='width: 100px' value='Dikdrukken' onclick="javascript:add('[b]text[/b]'+' ')"></td></tr>
- <td width="25%"><p align="center"><input type='button' style='width: 100px' value='Schuin' onclick="javascript:add('[i]text[/i]'+' ')"></td>
- <td width="25%"><p align="center"><input type='button' style='width: 100px' value='Doorstrepen' onclick="javascript:add('[s]text[/s]'+' ')"></td></tr>
- <td width="25%"><p align="center"><input type='button' style='width: 100px' value='Centreren' onclick="javascript:add('[center]text[/center]'+' ')"></td>
- <td width="25%"><p align="center"><input type='button' style='width: 100px' value='Rechts Uitlijnen' onclick="javascript:add('[right]text[/right]'+' ')"></td></tr>
- <td width="25%"><p align="center"><input type='button' style='width: 100px' value='Lettergrootte' onclick="javascript:add('[size=*]text[/size]'+' ')"></td>
- <td width="25%"><p align="center"><input type='button' style='width: 100px' value='Afbeelding' onclick="javascript:add('[img]link[/img]'+' ')"></td>
- </tr></table></center></center>
- <td width="50%" height="12">
- <table width="300" bgcolor="#260d02" align="center" cellspacing="1">
- <tr><td width='50' bgcolor='#ffffff' height='15' ><a onclick="javascript:add('[color=ffffff]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#ffc591' height='15' ><a onclick="javascript:add('[color=ffc591]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#ea9fff' height='15' ><a onclick="javascript:add('[color=ea9fff]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#9bff9b' height='15' ><a onclick="javascript:add('[color=9bff9b]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#ffe595' height='15' ><a onclick="javascript:add('[color=ffe595]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#ffb2b2' height='15' ><a onclick="javascript:add('[color=ffb2b2]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- </tr><tr>
- <td width='50' bgcolor='#cecece' height='15' ><a onclick="javascript:add('[color=cecece]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#fc9c47' height='15' ><a onclick="javascript:add('[color=fc9c47]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#d954ff' height='15' ><a onclick="javascript:add('[color=d954ff]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#51fc51' height='15' ><a onclick="javascript:add('[color=51fc51]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#fcd14d' height='15' ><a onclick="javascript:add('[color=fcd14d]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#ff4f4f' height='15' ><a onclick="javascript:add('[color=ff4f4f]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- </tr><tr>
- <td width='50' bgcolor='#5d5d5d' height='15' ><a onclick="javascript:add('[color=5d5d5d]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#ff7800' height='15' ><a onclick="javascript:add('[color=ff7800]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#78009b' height='15' ><a onclick="javascript:add('[color=78009b]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#00ff00' height='15' ><a onclick="javascript:add('[color=00ff00]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#ffc000' height='15' ><a onclick="javascript:add('[color=ffc000]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#ff0000' height='15' ><a onclick="javascript:add('[color=ff0000]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- </tr><tr>
- <td width='50' bgcolor='#2e2e2e' height='15' ><a onclick="javascript:add('[color=2e2e2e]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#aa5000' height='15' ><a onclick="javascript:add('[color=aa5000]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#3a014a' height='15' ><a onclick="javascript:add('[color=3a014a]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#008e00' height='15' ><a onclick="javascript:add('[color=008e00]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#997300' height='15' ><a onclick="javascript:add('[color=997300]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#a60000' height='15' ><a onclick="javascript:add('[color=a60000]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- </tr><tr>
- <td width='50' bgcolor='#000000' height='15' ><a onclick="javascript:add('[color=000000]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#5d2c01' height='15' ><a onclick="javascript:add('[color=5d2c01]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#002043' height='15' ><a onclick="javascript:add('[color=002043]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#004300' height='15' ><a onclick="javascript:add('[color=004300]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#443300' height='15' ><a onclick="javascript:add('[color=443300]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- <td width='50' bgcolor='#530000' height='15' ><a onclick="javascript:add('[color=530000]text[/color]'+' ')"><img src='images/pixel.png' width='50' height='15' style='margin: 0px;'></a></td>
- </tr></table></td></td></tr></table></center><br>
- <center><i>Hier kan je jou eigen profiel aanpassen.</i><br><br></center>
- Je mag <b>maximaal <?=$tekens;?> tekens</b> in je profiel gebruiken!
- <?
- if(isset($msg)){
- echo "<br><br><b> ".$msg."</b>";
- }
- ?>
- <br /><br />
- <textarea name='newprofiel' style='width: 90%; height: 600px;'><?php echo stripslashes($res['profiel_edit']); ?></textarea>
- <br /><br />
- <input type='submit' name='update_prof' value='Verander je profiel!' />
- </td>
- </tr>
- </table>
- </form>