$user =& JFactory::getUser();
$usr_id = $user->get(‘id’);
echo $usr_id;