Location: PHPKode > projects > DDL CMS > Upload these files to your webspace/topsites/templates/admin_editaccount.tpl
<?PHP

$DB->Connect();

$lang =& IniParse("{$GLOBALS['DDIR']}/language");
$username = $DB->Escape($_REQUEST['Username']);

$account = $DB->Row("SELECT * FROM topsites_Accounts WHERE Username='$username'");

foreach(range(1, 3) as $index)
{
    if( !IsEmptyString($GLOBALS["NAME_FIELD_$index"]) )
    {
        if( strlen($GLOBALS["NAME_FIELD_$index"]) > 20 )
        {
            $GLOBALS["NAME_FIELD_$index"] = trim(substr($GLOBALS["NAME_FIELD_$index"], 0, 17)) . '...';
        }
    }
}


?>
<script type="text/javascript">
function checkForm(form)
{
    return true;
}
</script>
<form name="form" action="newwin.php?page=editaccount" method="post" onSubmit="return checkForm(this);">

<table>
<tr>
<td>
Edit Account '<?PHP echo $account['Username']; ?>'
</td>
</tr>

<tr>
<td>
<b>E-mail</b>
</td>
<td>
<input type="text" name="Email" size="40" value="<?PHP echo $account['Email']; ?>">
</td>
</tr>

<tr>
<td>
<b>Site URL</b>
</td>
<td>
<input type="text" name="Site_URL" size="80" value="<?PHP echo $account['Site_URL']; ?>">
</td>
</tr>

<tr>
<td>
<b>Title</b>
</td>
<td>
<input type="text" name="Title" size="40" value="<?PHP echo $account['Title']; ?>">
</td>
</tr>
<tr>
<td>
<b>Password</b>
</td>
<td>
<input type="text" name="Password" size="15" value="<?PHP echo $account['Password']; ?>">
</td>
</tr>
<tr>
<td>
<b>Notes</b>
</td>
<td>
<input type="text" name="Notes" size="70" value="<?PHP echo $account['Notes']; ?>">
</td>
</tr>

<tr>
<td>
<b>Inactive</b>
</td>
<td>
<input type="text" name="Inactive" size="10" value="<?PHP echo $account['Inactive']; ?>">
</td>
</tr>

<!-- <tr>
<td>
<b>Ratings</b>
</td>
<td>
<input type="text" name="Num_Ratings" size="10" value="<?PHP echo $account['Num_Ratings']; ?>">

<span>
<b>Rating Total</b>
<input type="text" name="Rating_Total" size="10" value="<?PHP echo $account['Rating_Total']; ?>">
</span>

</td>
</tr> -->

<tr>
<td>
<b>In Hit Weight</b>
</td>
<td>
<input type="text" name="In_Weight" size="10" value="<?PHP printf("%.3f", $account['In_Weight']); ?>">

<span>
<b>Out Hit Weight</b>
<input type="text" name="Out_Weight" size="10" value="<?PHP printf("%.3f", $account['Out_Weight']); ?>">
</span>

</td>
</tr>

<tr>
<td>
<b>Hits In</b>
</td>
<td>
<input type="text" name="Current_In" size="10" value="<?PHP echo $account['Current_In']; ?>">

<span>
<b>Hits Out</b>
<input type="text" name="Current_Out" size="10" value="<?PHP echo $account['Current_Out']; ?>">
</span>

<span>
<b>Productivity</b>
<input type="text" name="Current_Prod" size="10" value="<?PHP echo $account['Current_Prod']; ?>">
</span>
</td>
</tr>

<tr>
<td>
<b>Total In</b>
</td>
<td>
<input type="text" name="Total_In" size="10" value="<?PHP echo $account['Total_In']; ?>">

<span>
<b>Total Out</b>
<input type="text" name="Total_Out" size="10" value="<?PHP echo $account['Total_Out']; ?>">
</span>

<span>
<b>Total Prod</b>
<input type="text" name="Total_Prod" size="10" value="<?PHP echo $account['Total_Prod']; ?>">
</span>

</td>
</tr>


<tr>
<td>
<input type="hidden" name="Username" value="<?PHP echo $account['Username']; ?>">
<input type="submit" name="sub" value="Update Account">
</td>
</tr>

</table>

</form>

<br />
Return current item: DDL CMS