Initial revision

This commit is contained in:
briandilley
2004-10-14 22:20:03 +00:00
commit bf921de540
18 changed files with 916 additions and 0 deletions

View File

@ -0,0 +1,2 @@
Thank you for adding your kwote, here's a link to it: <a href="?action=show&amp;id=${KWOTE_ID}">#${KWOTE_ID}</a>

View File

@ -0,0 +1,7 @@
<div class="search-container">
<form action="${SCRIPT_NAME}" method="POST">
<input type="hidden" name="action" value="doadd" />
<textarea rows="15" cols="60" name="content"></textarea><br />
<input type="submit" value="Submit" />
</form>
</div>

40
html/content-default.html Normal file
View File

@ -0,0 +1,40 @@
<div>
<h3>Welcome</h3>
We need to add some content here, soon! Anyway, this is kwotes. It's
a chat quote database system, with a twist. This chat quote database
is publicly moderated... so ALL of your submissions are accepted, and
it's up to the general public to determine wether or not it's funny...
no stupid moderators who wouldn't know funny if it grabed them by the
asshole and ripped them apart. Anyway, this system has some advantages
over existing systems, here are a few:
<ul>
<li>
You can vote for a quote without it going to a new page and
you losing your place in your current view.
</li>
<li>
The system is publicly moderated so that all submissions are
accepted, submissions that are less than zero for more than
a certain period of time are removed from the system (maybe...)
</li>
<li>
Users may only submit 4 quotes per hour.
</li>
<li>
The system is opensource, you can download the source code
using the link at the bottom of the page. Work is being
done to setup a CVS repository and such.
</li>
<li>
Slim sleek design... all browsers like us :)
</li>
</ul>
We're thinking about creating an egdrop script for auto submiting
quotes to the system, we'll see how that goes :)
</div>

3
html/content-error.html Normal file
View File

@ -0,0 +1,3 @@
<h1>${ERROR_MESSAGE}</h1>

View File

@ -0,0 +1,4 @@
<div class="kwote-navigation">
<a href="?action=list&amp;o=${ORDER}&amp;s=${NEXT_INDEX}&amp;m=${MAX_RETURN}&amp;mr=${MAX_RECORDS}">Next &gt;</a>
</div>

View File

@ -0,0 +1,4 @@
<div class="kwote-navigation">
<a href="?action=list&amp;o=${ORDER}&amp;s=${LAST_INDEX}&amp;m=${MAX_RETURN}&amp;mr=${MAX_RECORDS}">&lt; Previous</a>
</div>

View File

@ -0,0 +1,6 @@
<div class="kwote-navigation">
<a href="?action=list&amp;o=${ORDER}&amp;s=${LAST_INDEX}&amp;m=${MAX_RETURN}&amp;mr=${MAX_RECORDS}">&lt; Previous</a>
&nbsp; | &nbsp;
<a href="?action=list&amp;o=${ORDER}&amp;s=${NEXT_INDEX}&amp;m=${MAX_RETURN}&amp;mr=${MAX_RECORDS}">Next &gt;</a>
</div>

28
html/content-search.html Normal file
View File

@ -0,0 +1,28 @@
<form action="${SCRIPT_NAME}" method="get">
<div class="search-container">
<input type="hidden" name="action" value="list" />
<input type="hidden" name="s" value="0" />
<span>Search:&nbsp;</span><input type="text" name="ss" />&nbsp;<input type="submit" value="Search" />
&nbsp;&nbsp;
Kwotes per page:
<select name="m">
<option value="5">5</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="50">50</option>
<option value="100">100</option>
<option value="200">200</option>
</select>
&nbsp;&nbsp;
Sort by:
<select name="o">
<option value="date">Date</option>
<option value="rating">Rating</option>
</select>
</div>
</form>

View File

@ -0,0 +1,13 @@
<div class="quote">
<div class="quote-header">
<span><a href="?action=show&amp;id=${KWOTE_ID}">#${KWOTE_ID}</a></span>
<span class="vote-controls">
<a href="javascript:vote(${KWOTE_ID},'hate');" id="hate${KWOTE_ID}">-</a>
&nbsp;<span id="rating${KWOTE_ID}">${KWOTE_RATING}</span>&nbsp;
<a href="javascript:vote(${KWOTE_ID},'love');" id="love${KWOTE_ID}">+</a>
</span>
</div>
<div class="quote-content">
${KWOTE_TEXT}
</div>
</div>

12
html/footer.html Normal file
View File

@ -0,0 +1,12 @@
</div>
<div class="footer">
<a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0 Strict</a>
&nbsp;-&nbsp;
<a href="kwotes.tar.gz">download the source</a>
&nbsp;-&nbsp;
${KWOTE_COUNT} live kwotes, ${KWOTE_BACKUP_COUNT} deleted kwotes
</div>
</div>
</body>
</html>

59
html/header.html Normal file
View File

@ -0,0 +1,59 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>${TITLE}</title>
<link rel="stylesheet" type="text/css" href="html/quotes.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="html/quotes-ie.css" />
<![endif]-->
<script type="text/javascript">
function vote(kid,type) {
var img = new Image();
img.src = "?action="+escape(type)+unescape("%26")+"kid="+escape(kid);
hideElementById("hate"+kid);
hideElementById("love"+kid);
var ratingElem = document.getElementById("rating"+kid);
if (ratingElem) {
var html = ratingElem.innerHTML;
var rating = parseInt(html)+( (type=="love")?1:-1 );
ratingElem.innerHTML = rating;
}
}
function hideElementById(id) {
var elem = document.getElementById(id);
if (elem) {
elem.style.display = "none";
}
}
</script>
</head>
<body>
<div class="container">
<span style="font-weight: bold;">Kwotes.org - The publicly moderated chat quote database</span>
<ul class="tab-list">
<li class="tab"><a href="?">Home</a></li>
<li class="tab"><a href="?action=add">Add</a></li>
<li class="tab"><a href="?action=list&amp;o=date">Latest</a></li>
<li class="tab"><a href="?action=list&amp;o=rating&amp;s=0&amp;m=20&amp;mr=50">Top 100</a></li>
<li class="tab"><a href="?action=list&amp;o=rating&amp;s=0&amp;m=20&amp;mr=50&amp;so=reverse">Bottom 100</a></li>
<li class="tab"><a href="?action=search">Search</a></li>
</ul>
<form action="${SCRIPT_NAME}" method="get">
<div class="direct-form">
<span>Kwote #</span>
<input type="hidden" name="action" value="show" />
<input type="text" name="id" />
</div>
</form>
<div class="body-container">

11
html/quotes-ie.css Normal file
View File

@ -0,0 +1,11 @@
/* Stupid IE stuff... at least they get to see something hilite */
.tab a:active
{
background-color: #8b8bca;
}
.tab a:hover
{
background-color: #dfdff0;
}
/* End stupid IE stuff */

122
html/quotes.css Normal file
View File

@ -0,0 +1,122 @@
body
{
font-family: Trebuchet MS, Tahoma, Arial, Sans-Serif;
margin: 0px;
}
a:link
{
text-decoration: none;
}
a:visited
{
text-decoration: none;
}
a:hover, a:active
{
text-decoration: underlined;
}
/* Begin Containers */
.container
{
width: 700px;
position: relative;
margin-left: auto;
margin-right: auto;
text-align: left;
padding: 2px 2px 5px 2px;
}
.body-container
{
position: relative;
margin-top: 5px;
margin-bottom: 5px;
}
/* End Containers */
.direct-form
{
position: absolute;
top: 1px;
right: 4px;
font-size: 0.8em;
}
.direct-form input
{
background-color: #dfdff0;
border: 1px solid black;
}
.quote
{
position: relative;
margin-bottom: 15px;
}
.quote-header
{
position: relative;
border-bottom: 1px solid black;
font-size: 0.8em;
}
.vote-controls
{
position: absolute;
top: 0px;
right: 0px;
}
.quote-content
{
font-size: 0.9em;
}
.footer
{
font-size: 0.8em;
margin-top: 10px;
}
/* Horizontal Menu */
.tab-list
{
margin: 0px;
padding: 0px;
position: relative;
list-style-type: none;
background-color: #bfbfe2;
height: 18;
}
/* This is used by older browsers & IE */
.tab-list .tab
{
display: inline;
margin: 0px;
padding-left: 3px;
padding-right: 3px;
font-size: 0.7em;
height: 18px;
}
/* Good browsers use this too */
.tab-list .tab
{
display: table-cell;
}
.tab:active
{
background-color: #8b8bca;
}
.tab:hover
{
background-color: #dfdff0;
}