<?php
// $Id: user-login-block.tpl.php 5279 2011-07-14 09:00:56Z jm@bellcom.dk $

/**
 * @file block.tpl.php
 *
 * Theme implementation to display a block.
 *
 * Available variables:
 * - $block->subject: Block title.
 * - $block->content: Block content.
 * - $block->module: Module that generated the block.
 * - $block->delta: This is a numeric id connected to each module.
 * - $block->region: The block region embedding the current block.
 * - $classes: A set of CSS classes for the DIV wrapping the block.
     Possible values are: block-MODULE, region-odd, region-even, odd, even,
     region-count-X, and count-X.
 *
 * Helper variables:
 * - $block_zebra: Outputs 'odd' and 'even' dependent on each block region.
 * - $zebra: Same output as $block_zebra but independent of any block region.
 * - $block_id: Counter dependent on each block region.
 * - $id: Same output as $block_id but independent of any block region.
 * - $is_front: Flags true when presented in the front page.
 * - $logged_in: Flags true when the current user is a logged-in member.
 * - $is_admin: Flags true when the current user is an administrator.
 *
 * @see template_preprocess()
 * @see template_preprocess_block()
 */
?>

<?php global $user; ?>
<?php if ($user->uid) { ?>
<span class="login_text">Welcome, </span><a href="/user/<?php print $user->uid;?>" alt="Your account page"><?php print ($user->name); ?> </a><br>
<?php print l("Your Account",'user/'.$user->uid); ?> |
<?php print l("Log-Out","logout"); ?>
<?php } else { ?>
<div id="login-box-inner">
  		<a href="#" class="rightf"><img src="<?php print base_path().path_to_theme();?>/images/login-close.png" /></a>
     <h2>Username <sup>*</sup></h2>
        <p>  <?php print $user_name; ?></p>
        <p class="label">Enter your Next Library username.</p>
        
        <h2>Password <sup>*</sup></h2>
        <p>  <?php print $user_password; ?></p>
        <p class="label">Enter the password that accompanies your username.</p>
        
        <p class="rightf"> <?php print $new_button; ?></p>
        <div class="clear"></div>
 </div>
 <?php print $rendered; ?>
<?php } ?>
