<?php
//initialise---------------------------------------
require_once('./admin.php');
$Display->Title = 'Profile';
$Display->Subtitle = 'Interests';
require('./admin-display-header.php');
//database
if(empty($Error))
{
$Data = $DC->Select('profile', 'profile_category', 'Interest');
}
?>
<form method="post" action="profile-interest-update.php?action=update">
<table>
<?php
if(!empty($Data))
{
foreach($Data as $Key)
{
?>
<tr> <td valign="top"> <input type="text" value="<?php _P($Key['profile_name']); ?>" name="<?php _P($Key['profile_id']); ?>" size="32" style="color:blue; font-weight:bold; font-family:Arial, Helvetica, sans-serif;" /> </td>
<td> <textarea cols="62" rows="8" name="<?php _P($Key['profile_id'].'v'); ?>"><?php _P($Key['profile_value']); ?></textarea> </td>
</tr>
<?
}
}
?>
<tr> <td valign="top"> <input type="text" name="new" size="32" style="color:blue; font-weight:bold; font-family:Arial, Helvetica, sans-serif;" /> </td>
<td> <textarea cols="62" rows="8" name="newv"></textarea> </td>
</tr>
<tr> <td> </td>
<td> To add a new row, Please click on the button 'Update Profile' </td>
</tr>
<tr> <td> </td>
<td> <input type="submit" value="Update Profile »" /> </td>
</tr>
</table> </form>
<?php
_foot();
?>