|
|
1 |
<?PHP
|
|
|
2 |
///////////////////// TEMPLATE Default /////////////////////
|
|
|
3 |
$template_active = <<<HTML
|
|
|
4 |
<div style="width:420px; margin-bottom:30px;">
|
|
|
5 |
<div><strong>{title}</strong></div>
|
|
|
6 |
|
|
|
7 |
<div style="text-align:justify; padding:3px; margin-top:3px; margin-bottom:5px; border-top:1px solid #D3D3D3;">{short-story}</div>
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
<div><em>Posted on {date} by {author}</em></div>
|
|
|
12 |
</div>
|
|
|
13 |
HTML;
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
$template_full = <<<HTML
|
|
|
17 |
<div style="width:420px; margin-bottom:15px;">
|
|
|
18 |
<div><strong>{title}</strong></div>
|
|
|
19 |
|
|
|
20 |
<div style="text-align:justify; padding:3px; margin-top:3px; margin-bottom:5px; border-top:1px solid #D3D3D3;">{full-story}</div>
|
|
|
21 |
|
|
|
22 |
<div style="float: right;">{comments-num} Comments</div>
|
|
|
23 |
|
|
|
24 |
<div><em>Posted on {date} by {author}</em></div>
|
|
|
25 |
</div>
|
|
|
26 |
HTML;
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
$template_comment = <<<HTML
|
|
|
30 |
<div style="width: 400px; margin-bottom:20px;">
|
|
|
31 |
|
|
|
32 |
<div style="border-bottom:1px solid black;"> by <strong>{author}</strong> @ {date}</div>
|
|
|
33 |
|
|
|
34 |
<div style="padding:2px; background-color:#F9F9F9">{comment}</div>
|
|
|
35 |
|
|
|
36 |
</div>
|
|
|
37 |
HTML;
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
$template_form = <<<HTML
|
|
|
41 |
<table border="0" width="370" cellspacing="0" cellpadding="0">
|
|
|
42 |
<tr>
|
|
|
43 |
<td width="60">Name:</td>
|
|
|
44 |
<td><input type="text" name="name"></td>
|
|
|
45 |
</tr>
|
|
|
46 |
<tr>
|
|
|
47 |
<td>E-mail:</td>
|
|
|
48 |
<td><input type="text" name="mail"> (optional)</td>
|
|
|
49 |
</tr>
|
|
|
50 |
<tr>
|
|
|
51 |
<td>Smile:</td>
|
|
|
52 |
<td>{smilies}</td>
|
|
|
53 |
</tr>
|
|
|
54 |
<tr>
|
|
|
55 |
<td colspan="2">
|
|
|
56 |
<textarea cols="40" rows="6" id=commentsbox name="comments"></textarea><br />
|
|
|
57 |
<input type="submit" name="submit" value="Add My Comment">
|
|
|
58 |
<input type=checkbox name=CNremember id=CNremember value=1><label for=CNremember> Remember Me</label> |
|
|
|
59 |
<a href="javascript:CNforget();">Forget Me</a>
|
|
|
60 |
</td>
|
|
|
61 |
</tr>
|
|
|
62 |
</table>
|
|
|
63 |
HTML;
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
$template_prev_next = <<<HTML
|
|
|
67 |
<p align="center">[prev-link]<< Previous[/prev-link] {pages} [next-link]Next >>[/next-link]</p>
|
|
|
68 |
HTML;
|
|
|
69 |
$template_comments_prev_next = <<<HTML
|
|
|
70 |
<p align="center">[prev-link]<< Older[/prev-link] ({pages}) [next-link]Newest >>[/next-link]</p>
|
|
|
71 |
HTML;
|
|
|
72 |
?> |