Location: PHPKode > projects > Comic > templates/default/comicList.html.php
<?
// ---------------------------------------------
// |     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 _COMICLIST;?>
					
				</td>
			</tr>
			<tr>
				<td><a href="index.php?option=<?=$option?>&task=comic_list&list=all&serieid=<?php echo $serieid;?>&artistid=<?php echo $artistid;?>&publisherid=<?php echo $publisherid;?>" class="link_normal"><?php echo _COMICLIST_ALL ;?></a></td>
<?php		


		for($i='A'; $i<>'AA'; $i++)
		{

			  	echo "<td><a href=\"index.php?option=".$option."&task=comic_list&list=".$i."&serieid=".$serieid."&artistid=".$artistid."&publisherid=".$publisherid."\" 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=comic_add&serieid=<?php echo $serieid;?>" class="link_normal"><?php echo _COMICLIST_ADDCOMIC ;?></a>
				</td>
<?php } ?>				
				<td  width="100%" nowrap="nowrap" class="sectiontableheader">
					<?php echo _COMICLIST_TITLE ; ?>
			
				</td>
				<td nowrap="nowrap" class="sectiontableheader">
					<?php echo _COMICLIST_PUBLISHER ;?>
				</td>
				<td nowrap="nowrap" class="sectiontableheader">
					<?php echo _COMICLIST_VOLUMENUMBER ;?>
				</td>
				<td nowrap="nowrap" class="sectiontableheader">
					<?php echo _COMICLIST_PARUTIONDATE ;?>
				</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=comic_edit&id=<?php echo $row->id ;?>&serieid=<?php echo $serieid?>" class="link_normal"><?php echo _COMICLIST_EDITCOMIC ;?></a>
				</td>
<?php } ?>				
				<td nowrap="nowrap" class="<?php echo $strClass ;?>">
<a href="index.php?option=<?php echo $option ;?>&task=comic_view&id=<?php echo $row->id ;?>&serieid=<?php echo $serieid?>" class="link_normal">
					<?php  echo $row->title ;?>	
</a>							
				</td>
				<td nowrap="nowrap" class="<?php echo $strClass ;?>">
					<?php  echo $row->name ;?>					
				</td>			
				<td nowrap="nowrap" class="<?php echo $strClass ;?>">
					<?php  echo $row->volumeNumber ;?>					
				</td>			

				<td nowrap="nowrap" class="<?php echo $strClass ;?>">
					<?php  echo $row->parutionDate ;?>					
				</td>			
				
			</tr>			
<?php			
			}
?>		
		</table>
Return current item: Comic