Blob Blame History Raw
<?php
/***********************************************************************

  Copyright (C) 2005-2007 Vincent Garnier and contributors. All rights
  reserved.
  
  This file is part of Puntal 2.

  Puntal 2 is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published
  by the Free Software Foundation; either version 2 of the License,
  or (at your option) any later version.

  Puntal 2 is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  MA  02111-1307  USA

************************************************************************/?>

	<div class="block lexique">
		<h2 class="letter"><span><?php lexique::letter() ?> - <?php lexique::numWords() ?></span></h2>
		<div class="box">
			<div class="inbox">
			<?php if (!$words->isEmpty()) : ?>
			<dl>
			<?php while ($words->fetch()) : ?>
			<dt class="word<?php lexique::wordStatusClass(' inactive', ' active') ?>">
				<?php lexique::word() ?></dt>
			<dd class="word_def<?php lexique::wordStatusClass(' inactive', ' active') ?>">
				<?php lexique::wordDefinition() ?></dd>
			<?php lexique::wordExample('<dd class="word_example'.lexique::wordStatusClass(' inactive', ' active', true).'">%s</dd>') ?>

			<?php if (lexique::wordEditor()) : ?>
				<dd class="word_infos">
					<?php tpl::lang('Added by'); ?> 
					<a href="<?php tpl::url('forums') ?>profile.php?id=<?php lexique::wordUserId() ?>">
					<?php lexique::wordUsername() ?></a>
					<?php lexique::wordEditLink(' | <a href="%s">%s</a>') ?>	
				<?php if ($pun_user['g_id'] < PUN_GUEST) : ?>
					<?php lexique::wordDeleteLink(' | <a href="%s"%s>%s</a>') ?>
					<?php lexique::wordValidLink(' | <a href="%s">%s</a>') ?>
				<?php endif; ?>
				</dd>
			<?php endif; ?>
				
			<?php endwhile; ?>
			</dl>
			<?php else : ?>
			<p><?php lexique::noWordLetter() ?></p>
			<?php endif; ?>
			</div>
		</div>
	</div>