<?
// ---------------------------------------------
// | Comic COMPONENT |
// | |
// | Copyright (C) 2005 Rdemont |
// | |
// | All rights reserved |
// ---------------------------------------------
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// Please note that the GPL states that any headers in files and
// Copyright notices as well as credits in headers, source files
// and output (screens, prints, etc.) can not be removed.
// You can extend them with your own credits, though...
//
// This program 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.
//
// The "GNU General Public License" (GPL) is available at
// http://www.gnu.org/copyleft/gpl.html.
//-----------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------------
// Autorisation d'accès
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
//--------------------------------------------------------------------------------------------------
?>
<table width="100%">
<tr>
<td colspan="27" align="center" class="title">
<?php echo _PUBLISHERLIST;?>
</td>
</tr>
<tr>
<td><a href="index.php?option=<?=$option?>&task=publisher_list&list=all" class="link_normal"><?php echo _PUBLISHERLIST_ALL ?></a></td>
<?php
for($i='A'; $i<>'AA'; $i++)
{
echo "<td><a href=\"index.php?option=".$option."&task=publisher_list&list=".$i."\" class=\"link_normal\">".$i."</a></td>\n";
}
?>
</tr>
</table>
<table width="100%">
<tr>
<?php if (comic::hasModifyRight()){ ?>
<td nowrap="nowrap" class="sectiontableheader">
<a href="index.php?option=<?php echo $option ;?>&task=publisher_add" class="link_normal"><?php echo _PUBLISHERLIST_ADDPUBLISHER ;?></a>
</td>
<?php } ?>
<td width="100%" nowrap="nowrap" class="sectiontableheader">
<?php echo _PUBLISHERLIST_NAME ; ?>
</td>
<td nowrap="nowrap" class="sectiontableheader">
<?php echo _PUBLISHERLIST_SITEWEB ;?>
</td>
</tr>
<?php
for($i=0;$i<count($rows);$i++)
{
$row = $rows[$i];
$strClass = "sectiontableentry2";
if (($i%2) == 0)$strClass = "sectiontableentry1";
?>
<tr>
<?php if (comic::hasModifyRight()){ ?>
<td class="<?php echo $strClass ;?>">
<a href="index.php?option=<?php echo $option ;?>&task=publisher_edit&id=<?php echo $row->id ;?>" class="link_normal"><?php echo _PUBLISHERLIST_EDITPUBLISHER ;?></a>
</td>
<?php } ?>
<td class="<?php echo $strClass ;?>">
<a href="index.php?option=<?php echo $option ;?>&task=comic_list&publisherid=<?php echo $row->id ;?>" class="link_normal">
<?php echo $row->name ;?>
</a>
</td>
<td class="<?php echo $strClass ;?>">
<?php echo comic::getLink($row->website) ; ?>
</td>
</tr>
<?php
}
?>
</table>