<?
/***
* pLiMa - php List Manager
* Copyright (C) 2003 Jinn Koriech (hide@address.com)
*
* This file is part of pLiMa.
*
* pLiMa is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* any later version.
*
* pLiMa is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with pLiMa; if not, visit http://www.gnu.org or write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA
*
*/
require("./inc/init.inc.php");
require("./inc/head.inc.php");
?>
<h1>Edit User</h1>
<form action="add-fixed-form-act.phtml" method="post">
<table>
<?
$fields = mysql_list_fields(DB_NAME,$_SESSION['MALI']);
echo "<tr>\n";
for ( $kdx=0; $kdx < mysql_num_fields($fields); $kdx++) {
if ( mysql_field_name($fields, $kdx) != 'userid' ) {
echo "\t<th>".mysql_field_name($fields, $kdx)."</td>\n";
}
}
echo "</tr>\n\n";
$sql = "SELECT * FROM ".$_SESSION['MALI']." WHERE userid = '$userid';";
$result = db_query($sql, "UE10");
$row = mysql_fetch_row($result);
echo "<tr>\n";
for ( $kdx=0; $kdx < mysql_num_fields($fields); $kdx++) {
if ( mysql_field_name($fields, $kdx) != 'userid' ) {
echo "\t<td><input type=\"text\" name=\"".mysql_field_name($fields, $kdx)."[$idx]\" size=\"25\"
value='".$row[$kdx]."'/></td>\n";
}
}
echo "</tr>\n\n";
?>
</table>
<input type="submit" value=" Save " />
</form>
<?
require("./inc/foot.inc.php");
?>