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

$DB->Connect();

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

$account = $DB->Row("SELECT Username, Email, Site_URL, Title, UNIX_TIMESTAMP(Signup) AS theSignup, Password, Confirm_ID, Status, Suspended, Locked, Last_Reset, Notes, In_Weight, Out_Weight, Current_Prod, Current_In, Current_Out, Total_Prod, Total_In, Total_Out, Last_Prod, Last_Hits_In, Last_Hits_Out, Last_Sort, Last_Overall, Last_Category, Inactive, Num_Ratings, Rating_Total, Overall_Rank, Category_Rank FROM topsites_Accounts WHERE Username='$username';");

AccountData($account, $lang);

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>
<table>
<tr>
<td>
Account Details for '<?PHP echo $account['Username']; ?>'
</td>
</tr>

<tr>
<td>
<b>E-mail</b>
</td>
<td colspan="5">
<a href="mailto:<?PHP echo $account['Email']; ?>"><?PHP echo $account['Email']; ?></a>
</td>
</tr>

<tr>
<td>
<b>Site URL</b>
</td>
<td colspan="5">
<a href="<?PHP echo $account['Site_URL']; ?>" target="_blank"><?PHP echo $account['Site_URL']; ?></a>
</td>
</tr>

<tr>
<td>
<b>Title</b>
</td>
<td colspan="5">
<?PHP echo $account['Title']; ?>
</td>
</tr>
<tr>
<td>
<b>Password</b>
</td>
<td colspan="5">
<?PHP echo $account['Password']; ?>
</td>
</tr>
<tr>
<td>
<b>Notes</b>
</td>
<td colspan="5">
<?PHP echo $account['Notes']; ?>
</td>
</tr>

<tr>
<td>
<b>Inactive</b>
</td>
<td>
<?PHP echo $account['Inactive']; ?>
</td>
<td>
<b>Signup</b>
</td>
<td colspan="3">
<?PHP echo date($date_format, $account['theSignup']); ?>
</td>
</tr>

<tr>
<td>
<b>Overall Rank</b>
</td>
<td>
<?PHP echo $account['Overall_Rank']; ?>
</td>
</tr>
<tr>
<td>
<b>In Hit Weight</b>
</td>
<td>
<?PHP printf("%.3f", $account['In_Weight']); ?>
</td>
<td>
<b>Out Hit Weight</b>
</td>
<td colspan="3">
<?PHP printf("%.3f", $account['Out_Weight']); ?>
</td>
</tr>

<tr>
<td>
<b>Productivity</b>
</td>
<td>
<?PHP echo $account['Current_Prod']; ?>
</td>
<td>
<b>Total Productivity</b>
</td>
<td colspan="3">
<?PHP echo $account['Total_Prod']; ?>
</td>
</tr>

<tr>
<td>
<b>Hits In</b>
</td>
<td>
<?PHP echo $account['Current_In']; ?>
</td>
<td>
<b>Weighted</b>
</td>
<td>
<?PHP echo $account['Weighted_In']; ?>
</td>
<td>
<b>Productivity</b>
</td>
<td>
<?PHP echo $account['Prod_In']; ?>
</td>
</tr>

<tr>
<td>
<b>Total In</b>
</td>
<td>
<?PHP echo $account['Total_In']; ?>
</td>
<td>
<b>Weighted</b>
</td>
<td>
<?PHP echo $account['Weighted_Total_In']; ?>
</td>
<td>
<b>Productivity</b>
</td>
<td>
<?PHP echo $account['Prod_Total_In']; ?>
</td>
</tr>

<tr>
<td>
<b>In Per Day</b>
</td>
<td>
<?PHP echo $account['In_Per_Day']; ?>
</td>
<td>
<b>Weighted</b>
</td>
<td>
<?PHP echo $account['Weighted_In_Per_Day']; ?>
</td>
<td>
<b>Productivity</b>
</td>
<td>
<?PHP echo $account['Prod_In_Per_Day']; ?>
</td>
</tr>

<tr>
<td>
<b>In Per Week</b>
</td>
<td>
<?PHP echo $account['In_Per_Week']; ?>
</td>
<td>
<b>Weighted</b>
</td>
<td>
<?PHP echo $account['Weighted_In_Per_Week']; ?>
</td>
<td>
<b>Productivity</b>
</td>
<td>
<?PHP echo $account['Prod_In_Per_Week']; ?>
</td>
</tr>


<tr>
<td>
<b>In Per Month</b>
</td>
<td>
<?PHP echo $account['In_Per_Month']; ?>
</td>
<td>
<b>Weighted</b>
</td>
<td>
<?PHP echo $account['Weighted_In_Per_Month']; ?>
</td>
<td>
<b>Productivity</b>
</td>
<td>
<?PHP echo $account['Prod_In_Per_Month']; ?>
</td>
</tr>

<tr>
<td>
<b>Hits Out</b>
</td>
<td>
<?PHP echo $account['Current_Out']; ?>
</td>
<td>
<b>Weighted</b>
</td>
<td colspan="3">
<?PHP echo $account['Weighted_Out']; ?>
</td>
</tr>

<tr>
<td>
<b>Total Out</b>
</td>
<td>
<?PHP echo $account['Total_Out']; ?>
</td>
<td>
<b>Weighted</b>
</td>
<td colspan="3">
<?PHP echo $account['Weighted_Total_Out']; ?>
</td>
</tr>

<tr>
<td>
<b>Out Per Day</b>
</td>
<td>
<?PHP echo $account['Out_Per_Day']; ?>
</td>
<td>
<b>Weighted</b>
</td>
<td colspan="3">
<?PHP echo $account['Weighted_Out_Per_Day']; ?>
</td>
</tr>

<tr>
<td>
<b>Out Per Week</b>
</td>
<td>
<?PHP echo $account['Out_Per_Week']; ?>
</td>
<td>
<b>Weighted</b>
</td>
<td colspan="3">
<?PHP echo $account['Weighted_Out_Per_Week']; ?>
</td>
</tr>

<tr>
<td>
<b>Out Per Month</b>
</td>
<td>
<?PHP echo $account['Out_Per_Month']; ?>
</td>
<td>
<b>Weighted</b>
</td>
<td colspan="3">
<?PHP echo $account['Weighted_Out_Per_Month']; ?>
</td>
</tr>

</table>



<br />
Return current item: DDL CMS