Location: PHPKode > scripts > NAH E-Book/Webcomic Displayer > templates.php
<?php

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#                              INDEX                                   #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

$T['index'] = '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
		<LINK rel="stylesheet" href="{WEB_OFFSET}nah.css" type="text/css">
		<title>{TITLE}</title>
		<META name="description" content="{META_DESC}">
		<META name="keywords" content="{META_KEYS}">
		<script type="text/javascript" src="{WEB_OFFSET}nah.js"></script>
	</head>
	<body>
		<!-- AJAX INCLUDES -->
		<div id="home" class="closed">{WEB_OFFSET}</div>
		<img src="{WEB_OFFSET}loader.gif" id="loader" class="closed">
		<!-- AJAX INCLUDES END -->
		<h1 class="title_main">{TITLE_MAIN}</h1>
		<div class="undertitle">
			<a href="?l=rss">RSS</a>
		</div>
		{CONTENTS}
		<div class="footer">Powered by <a href="http://www.nagori.co">NAH 1.0</a></div> <!-- DO NOT REMOVE THIS LINK IF YOU DID NOT PAY FOR THIS -->
	</body>
</html>';

$T['index.prevnext.link_p'] = '<a href="?l={v1}/{v2}">PREVIOUS</a>';

$T['index.prevnext.link_n'] = '<a href="?l={v1}/{v2}">NEXT</a>';

$T['index.prevnext.link_p_inactive'] = '<span class="faint">PREVIOUS</span>';

$T['index.prevnext.link_n_inactive'] = '<span class="faint">NEXT</span>';

$T['index.prevnext'] = '
<div class="prevnext">
	{previous}&nbsp;&nbsp;&nbsp;
	<select name="clist" id="clist" onChange="changechap(this.value,{CLEAN_URLS})">
		{options_chpt}
	</select> 
	<select name="plist" id="plist" onChange="changethis(document.getElementById(\'clist\').value,this.value,{CLEAN_URLS})">
		{options_page}
	</select> &nbsp;&nbsp;&nbsp;{next}
</div>';

$T['index.prevnext.clist.option'] = '<option value="{v1}">{v2}</option>';

$T['index.prevnext.plist.option'] = '<option value="{v1}">{v2}</option>';


#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#                                 MAIN                                 #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

$T['main'] = '{last_page}';


#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#                           DISPLAY PAGE                               #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

$T['display_page'] = '
{prevnext}
{next_s}<img src="{curr}" class="comic_page">{next_e}
{prevnext}
{instant}';

$T['display_page.next_s'] = '<a href="?l={v1}/{v2}">';

$T['display_page.next_e'] = '</a>';

$T['display_page.instant'] = '
<div class="instant" id="com">
	<h2>Comments</h2>
	{form}
	<center>
		<div id="i_list" class="instant_comments">
			{items}
		</div>
	</center>
</div>';

$T['display_page.instant.comments.item'] = '
<div class="instant_comment{class}">
	{txt} <br>~<span class="instant_comment_poster">{uname} on {fdate}</span>
</div>';

$T['display_page.instant.form'] = '
<div id="i_form">
	<div id="i_f">
		<center>
		<fieldset class="instant_form">
			<legend>Post Instant feedback</a></legend>
			<div class="instant_error" id="i_e"></div>
			Name: <input type="text" name="name" id="name" value="{name}" class="input"><br>
			<textarea name="com_txt" id="com_txt" cols="50" rows="5" class="input"></textarea><br><span class="tiny_text">({LEN}char max)</span>
			<div class="post_link" id="i_p">
				<a href="#" onclick="add_com({c},\'{p}\',{LEN});return false;"><b>Post</b></a>
			</div>
		</fieldset>
		</center>
	</div>
</div>';


#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#                                 MYSQL                                #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

$T['mysql_err'] = '
<div style="margin-top:30px" id="com">
	<h2>Comments</h2>
	MYSQL Connection Error.
</div>';

$T['mysql_err2'] = '
<div style="margin-top:30px" id="com">
	<h2>Comments</h2>
	MYSQL Connection OK. Table is missing.
	<form action="{REQUEST_URI}" method="POST">
		<input type="submit" name="create_table" value="Create Table">
	</form>
</div>';

$T['mysql_table'] = 'CREATE TABLE `instant` (
  `id` int(10) NOT NULL auto_increment,
  `target_c` tinyint(3) NOT NULL default \'0\',
  `target_p` varchar(255) NOT NULL default \'\',
  `owner` int(10) NOT NULL default \'0\',
  `owner_name` varchar(25) NOT NULL default \'\',
  `owner_ip` varchar(50) NOT NULL default \'\',
  `text` text NOT NULL,
  `date` int(20) NOT NULL default \'0\',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;';


#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#                                 RSS                                  #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#


$T['rss'] = '<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
      	<title>{pn} Rss Feed</title>
      	<link>http://{serv}</link>
      	<description>{tagd}</description>
      	<language>en-us</language>
      	<generator>Anime Characters dot com</generator>
		<lastBuildDate>{lbdate}</lastBuildDate>
		{items}
	</channel>
</rss>';

$T['rss.item'] = '<item>
	<title>{title}</title>
	<link>{link}</link>
	<description><![CDATA[{bd}]]></description>
	<pubDate>{fdate}</pubDate>
	<guid>{link}</guid>
</item>';

?>
Return current item: NAH E-Book/Webcomic Displayer