<?php
/**
 * DOCman 1.4.x - Joomla! Document Manager
 * @version $Id: list_item.tpl.php 773 2009-01-08 17:38:08Z mathias $
 * @package DOCman_1.4
 * @copyright (C) 2003-2009 Joomlatools
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @link http://www.joomlatools.eu/ Official website
 **/
defined('_VALID_MOS') or die('Restricted access');

/**
 * Default DOCman Theme
 *
 * Creator:  Joomlatools
 * Website:  http://www.joomlatools.eu/
 * Email:    support@joomlatools.eu
 * Revision: 1.4
 * Date:     February 2007
 **/

/*
* Display a category list item (called by categories/list.tpl.php)
*
* General variables  :
*	$this->theme->path (string) : template path
* 	$this->theme->name (string) : template name
* 	$this->theme->conf (object) : template configuartion parameters
*	$this->theme->icon (string) : template icon path
*   $this->theme->png  (boolean): browser png transparency support
*
* Template variables :
*	$item->data		(object) : holds the category data
*  $item->links 	(object) : holds the category operations
*  $item->paths 	(object) : holds the category paths
*/

?>
<?php if ($this->level == 0) : ?>
	<table width="100%" cellspacing="1" cellpadding="4" border="0" class="contentpaneopen">
	<tbody><tr>
		<td class="contentheading"><?php echo $this->item->data->name;?></td>
	</tr></tbody>
	</table>
<?php else: ?>
	<table width="100%" cellspacing="1" cellpadding="4" border="0" class="contentpaneopen">
	<tbody>
		<tr class="sectiontableentry2"><td valign="middle" align="left" class="tituloobra" width="60%">
			<a href="<?php echo $this->item->links->view;?>"><?php echo $this->item->data->name;?></a>
		</td><td valign="middle" align="left" class="autorobra"  width="30%"><?php echo $this->item->data->title;?>
		</td><td valign="middle" align="center" width="10%"><a href="<?php echo $this->item->links->view;?>"><img src="components/com_obrens/images/logens.png"/></a>
		</td></tr>	
	</tbody>
	</table>
	
	<?php
	/*switch ($this->theme->conf->cat_image) :
		case 0 : //none

			//do nothing
		break;

		case 1 : //icon
			?><a class="dm_icon" href="<?php echo $this->item->links->view;?>">
				<img src="<?php echo $this->item->paths->icon;?>" alt="folder icon" width="<?php if($this->level>0):echo "16px"; else: echo "32px"; endif;?>"/>
			  </a><?php
		break;

		case 2 : //thumb
			if($this->item->data->image) :
			?><a class="dm_thumb" href="<?php echo $this->item->links->view;?>"><img src="<?php echo $this->item->paths->thumb;?>" alt="<?php echo $this->item->data->name;?>" /></a><?php
			endif;
		break;
	endswitch;
	
	<span class="dm_files"><?php echo $this->item->data->files;?></span>
	<a class="dm_name" href="<?php echo $this->item->links->view;?>"><?php echo $this->item->data->name;?></a>


	< ? php
	if($this->item->data->description) :
		?><div class="dm_description"><?php echo $this->item->data->description;?></div><?php
	endif;
	? >
	</div>
	*/?>
<?php endif ?>

<div class="clr"></div>
