
Code: Select all
<?php
DEFINE('_VALID_MOS','javid');
require( 'globals.php' );
require_once( 'configuration.php' );
require_once( 'includes/joomla.php' );
$query = ("SELECT * FROM #__users ");
$database->setQuery( $query );
$rows = $database->loadObjectList();
$x = count( $rows );
echo "<table cellspacing="4" cellpadding="4" bordercolor="#000000">";
echo "<tr>";
echo "<td colspan="15">There is ".$x." User </td>";
echo "</tr>";
$k = 0;
for ($i=0, $n=count( $rows ); $i < $n; $i++) {
$row = &$rows[$i];
echo "<tr>";
echo "<td><b>User ID</b> : $row->id</td>";
echo "<td><b>Name</b> : $row->name</td>";
echo "<td><b>User Name</b> : $row->username</td>";
echo "<td><b>E-mail</b>: $row->email</td>";
echo "<td><b>Register Date</b>: $row->registerDate</td>";
echo "<td><b>Last Login</b>: $row->lastvisitDate</td>";
echo "</tr>";
}
echo "</table>";
?>
But i have a question : how can i use my joomla template & load the result in Mainbody ? I don't want to write a component ....
Is It possible ? :
