Undefined
By: Guest | Date: Dec 2 2007 14:37 | Format: PHP | Expires: never | Size: 5.26 KB | Hits: 1369
- <script language="javascript" type="text/javascript">
- tinyMCE.init({
- mode : "textareas",
- theme : "advanced",
- plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu",
- theme_advanced_buttons1_add : "fontselect,fontsizeselect",
- theme_advanced_buttons2_add : "separator,zoom,forecolor,backcolor,separator,",
- theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
- theme_advanced_buttons3_add_before : "tablecontrols,separator",
- theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,insertdate,inserttime,preview",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "left",
- theme_advanced_path_location : "bottom",
- plugin_insertdate_dateFormat : "%Y-%m-%d",
- plugin_insertdate_timeFormat : "%H:%M:%S",
- extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
- external_link_list_url : "example_data/example_link_list.js",
- external_image_list_url : "example_data/example_image_list.js",
- flash_external_list_url : "example_data/example_flash_list.js"
- });
- </script>
- <?php
- $id = $_GET['id'];
- $id = 1;
- }
- ?>
- <div id="location">
- U bevindt zich hier: <a href="index.php">Webber</a> › <a href="index.php?section=users">Gebruikers</a> › <a href="index.php?section=users&action=edit">Gebruiker wijzigen</a>
- </div>
- <h1>Profiel wijzigen</h1>
- <?php
- if ($_POST['submit'])
- {
- // USERS
- $username = $_POST['username'];
- {
- $password = $_POST['password'];
- print 'IFFER';
- }
- else
- {
- $password = $row['password'];
- print 'ELSER';
- }
- $email = $_POST['email'];
- $name = $_POST['name'];
- $age = $_POST['age'];
- $task = $_POST['task'];
- $phone = $_POST['phone'];
- $username_db = escape($username);
- $password_db = escape($password);
- $email_db = escape($email);
- $name_db = escape($name);
- $age_db = escape($age);
- $task_db = escape($task);
- $phone_db = escape($phone);
- mysql_query("UPDATE users SET username = $username_db, password = $password_db, email = $email_db, name = $name_db, age = $age_db, task = $task_db, phone = $phone_db WHERE id = $id");
- print "UPDATE users SET username = $username_db, password = $password_db, email = $email_db, name = $name_db, age = $age_db, task = $task_db, phone = $phone_db WHERE id = $id";
- //print '<div class="succes">Gebruiker succesvol gewijzigd</div><meta http-equiv="refresh" content="1;URL=index.php?section=users&action=edit&id='.$id.'" />';
- }
- ?>
- <form action="" method="post">
- <fieldset><legend>Wijzig een gebruiker zijn gegevens</legend>
- <table class="add">
- <tr>
- <th colspan="2">
- Inloggegevens
- </th>
- </tr>
- <tr>
- <td style="width: 20%;">Gebruikersnaam:</td>
- <td style="width: 80%;">
- <input name="username" value="<?php print $row['username']; ?>" size="30" />
- </td>
- </tr>
- <tr>
- <td style="width: 20%;">Wachtwoord:</td>
- <td style="width: 80%;">
- <input name="password" type="password" size="30" />
- </td>
- </tr>
- <tr>
- <td style="width: 20%;">E-mail:</td>
- <td style="width: 80%;">
- <input name="email" value="<?php print $row['email']; ?>" size="30" />
- </td>
- </tr>
- <tr>
- <th colspan="2">
- Personalia
- </th>
- </tr>
- <tr>
- <td style="width: 20%;">Voor- en achternaam:</td>
- <td style="width: 80%;">
- <input name="name" value="<?php print $row['name']; ?>" size="30" />
- </td>
- </tr>
- <tr>
- <td style="width: 20%;">Leeftijd:</td>
- <td style="width: 80%;">
- <input name="age" value="<?php print $row['age']; ?>" size="30" />
- </td>
- </tr>
- <tr>
- <td style="width: 20%;">Functie:</td>
- <td style="width: 80%;">
- <input name="task" value="<?php print $row['task']; ?>" size="30" />
- </td>
- </tr>
- <tr>
- <td style="width: 20%;">Telefoon:</td>
- <td style="width: 80%;">
- <input name="phone" value="<?php print $row['phone']; ?>" size="30" />
- </td>
- </tr>
- </table>
- </fieldset>
- <fieldset><legend>Opties</legend>
- <input value="opslaan" name="submit" type="submit" class="button" />
- <input value="annuleren" type="submit" onclick="javascript:history.back()" class="button" />
- </fieldset>
- </form>
Latest pastes
1 days ago
1 days ago
2 days ago
3 days ago
5 days ago