Location: PHPKode > projects > Journalness > Journalness_4.1.1_Full/templates/3_columns/past.tpl
{include file="$theme/header.tpl"}
{include file="$theme/leftnav.tpl"}
{section name=viewingentry show=$show_viewing_entry}
	{if $id}
	<div class="centered">
	  <table border="0" width="95%" cellspacing="0" cellpadding="0" style="padding:5px;">
	    <tr>
		<td align="left"><br/>
		  <h2 class="entry_title">{$title}</h2>
		</td>
		{if $uid == $session_uid || $session_useraccess == "2"}
		<td align="right"><br/>
		  <form style="margin-bottom:0;" action="modify.php" method="post" enctype="multipart/form-data">
		  <p style="font-weight:bold;"><a href="modify.php?mode=edit&amp;id={$id}">(-)</a>
		  <a href="modify.php?mode=delete&amp;id={$id}">(X)</a></p>
		  </form>
		</td>
		{/if}
	    </tr>
	    <tr>
		<td colspan="2">
		  <div class="entry_date">{$entry.date} {$L_POSTED_BY} <a href="profile.php?mode=viewprofile&amp;user={$entry.uid}"><strong>{$entry.user}</strong></a></div>
		</td>
	    </tr>
	    <tr>
		<td colspan="2" class="entry">
		  {$entry_text}
		  {if $entry.modify_date}
		    <div class="modify_date">{$L_EDITED_ON} {$entry.modify_date}</div>
		  {/if}
		</td>
	    </tr>
	    <tr>
		<td colspan="2" class="entry_footer">
		  {section name=entrycatloop loop=$entry.categories}{if $smarty.section.entrycatloop.first}{$L_POSTED} {$L_POSTED_IN} {/if}<a href="past.php?catid={$entry.categories[entrycatloop].id}">{$entry.categories[entrycatloop].name}</a>{if !$smarty.section.entrycatloop.last}, {/if}{/section} {if $journalnessConfig_allow_comments}| <a href="#comments">{$L_COMMENTS} ({$numcomments})</a>{/if}
		  {if $session_useraccess == "2"} | <strong>IP:</strong> {$ip_address} {/if}
		</td>
	    </tr>
	    <tr>
		<td colspan="2">
		  {if $journalnessConfig_next_prev}
		  <div class="centered">
		  <table border="0" cellpadding="20" style="width:80%">
		    <tr>
			<td>
			  <div style="text-align:right">
			  {if $prev}
			    <h4><a href="past.php?id={$prev}">&laquo; {$prevtitle}</a></h4>
			  {else}
			    <h4>&laquo; {$L_PREVIOUS_POST}</h4>
			  {/if}
			  </div>
			</td>
			<td>
			  <div style="text-align:left">
			  {if $next}
			    <h4><a href="past.php?id={$next}">{$nexttitle} &raquo;</a></h4>
			  {else}
			    <h4>{$L_NEXT_POST} &raquo;</h4>
			  {/if}
			  </div>
			</td>
		    </tr>
		  </table>
		  </div>
		  {/if}
		</td>
	    </tr>
	    <tr>
		<td colspan="2">
		  <h2><a name="comments" style="text-decoration:none;">{$L_COMMENTS}</a></h2>
		  {if !$journalnessConfig_allow_comments}
		  <p style="padding-left:25px;">{$L_COMMENTS_DISABLED}</p>
		  {elseif !$comments}
		  <p style="padding-left:25px;">{$L_NO_COMMENTS}</p>
		  {else}
		  {section name=commentloop loop=$comments show=$show_comment_loop}
		  <form style="margin-bottom:0;" action="modify.php" method="post" enctype="multipart/form-data">
		    <table border="0" cellpadding="0" cellspacing="0" style="width:100%; background-color: {cycle name="bg" values="#f8f8f8, #ffffff"}; border-top: 1px solid {cycle name="btop" values="#dddddd, #ffffff"}; border-bottom: 1px solid {cycle name="bbottom" values="#dddddd, #ffffff"}; margin-bottom: 5px;">
			<tr>
			  <td class="comment_title">
			    <a name="c{$comments[commentloop].id}" style="text-decoration:none; font-weight:bold;">{$comments[commentloop].title}</a>
			  {if $session_useraccess == "2"}
			  </td>
			  <td align="right" class="comment_title">
			    <a href="modify.php?mode=edit_comment&amp;id={$comments[commentloop].id}&amp;entryid={$comments[commentloop].entryid}">(-)</a>
			    <a href="modify.php?mode=delete_comment&amp;id={$comments[commentloop].id}&amp;entryid={$comments[commentloop].entryid}">(X)</a>
			  </td>
			</tr>
			<tr>
			  <td colspan="2">
			  {/if}
			    <div class="comment_date">{$comments[commentloop].date} {$L_POSTED_BY} <strong>{if $comments[commentloop].uid}<a href="profile.php?mode=viewprofile&user={$comments[commentloop].uid}">{/if}{$comments[commentloop].username}{if $comments[commentloop].uid}</a>{/if}</strong>{if $session_useraccess == "2"} | <strong>IP:</strong> {$comments[commentloop].ip_address}{/if}
			    </div>
			  </td>
			</tr>
                  <tr>
                    <td colspan="2">
			    <div class="comment">{$comments[commentloop].comment_text}</div>
                    </td>
                  </tr>
		    </table>
		  </form><br/>
		  {/section}
		  {/if}
		</td>
	    </tr>
	    <tr>
		<td colspan="2">
		{section name=commentform show=$show_comment_form}
		  <table border="0" cellpadding="0" cellspacing="0" style="width:100%">
		    <tr>
			<td align="left">
			 <br/><br/><h2><a name="addcomment" style="text-decoration:none;">{$L_ADD_COMMENT}</a></h2>
			 {if $num_errors > 0}<p style="color:red;">{$num_errors} error(s) found<br/><br/></p>{/if}
			 <form action="past.php?id={$id}" method="post" enctype="multipart/form-data">
			 <h5>{$L_TITLE} {$title_error}</h5>
			 <p><input class="textinput" name="title" maxlength="50" size="35" value="{$title_value}"/><br/></p>
			 <h5>{$L_COMMENT} {$comment_text_error}</h5>
			 <p><textarea class="textinput" name="comment_text" cols="50" rows="15">{$comment_text_value}</textarea></p>
			 <p><input class="textinput" type="hidden" value="{$id}" name="entryid"/></p>
			 <p><input class="button" type="submit" value="{$L_POST_COMMENT}" name="submit"/></p>
			 </form>
			</td>
		    </tr>
		  </table>
		{/section}
		</td>
	    </tr>
	  </table>
	  </div>
	</td>
	{else}
		<table style="width:100%">
		  <tr>
		    <td style="text-align:center;">
			<p>{$L_INVALID_ID}</p>
		    </td>
		  </tr>
		</table>
	{/if}
{sectionelse}
{section name=titles show=$show_titles}
  <div class="centered">
    <table border="0" cellpadding="5" width="95%">
      <tr>
	  <td colspan="3" style="text-align:center">
	    <h4>{if $show_day_entries}{$L_ENTRIES_FOR}{elseif $show_cat_entries}{$L_ENTRIES_FOR_CATEGORY}{else}{$L_ALL_ENTRIES}{/if}</h4><br/>
	  </td>
	</tr>
	<tr>
	  <td>
	    <table class="default_table" border="0" cellpadding="3" cellspacing="0" width="100%">
		<tr class="default_tableheader">
		  <td>
		    <div class="centered">
			<strong>
			  {$L_DATE}
			</strong>
		    </div>
		  </td>
		  <td>
		    <div class="centered">
			<strong>
			  {$L_PAST_TITLE}
			</strong>
		    </div>
		  </td>
		  <td>
		    <div class="centered">
			<strong>
			  {$L_AUTHOR}
			</strong>
		   </div>
		  </td>
		  <td>
		    <div class="centered">
			<strong>
			  {$L_COMMENTS}
			</strong>
		    </div>
		  </td>
		  <td>
		    <div class="centered">
			<strong>
			  {$L_VIEWS}
			</strong>
		    </div>
		  </td>
		</tr>
{/section}
{section name=entrylist loop=$entries show=$show_entry_list}
		<tr style="background-color:{cycle name=firstrow values="#BBBBBB,#E9E9E9"};">
		  <td>
		    <div class="centered">
			<p>{$entries[entrylist].datesmall}</p>
		    </div>
		  </td>
		  <td align="center">
		    <div class="titleoverflow">
			<p><a href="past.php?id={$entries[entrylist].id}">{$entries[entrylist].title}</a></p>
		    </div>
		  </td>
		  <td align="center">
		    <div class="useroverflow">
			<p><a href="profile.php?mode=viewprofile&amp;user={$entries[entrylist].uid}">{$entries[entrylist].username}</a></p>
		    </div>
		  </td>
		  <td>
		    <div class="centered">
	  		<p><a href="past.php?id={$entries[entrylist].id}#comments">{$entries[entrylist].numcomments}</a></p>
		    </div>
		  </td>
		  <td colspan="2">
		    <div class="centered">
			<p>{$entries[entrylist].views}</p>
		    </div>
		  </td>
		</tr>
{/section}
	    </table>
	  </td>
	</tr>
    </table>
    </div>
    <div class="centered">
	<table border="0" cellpadding="5">
	  <tr>
	    <td style="text-align:center;">
		{$pageLinks}<br/>
		{$pageCounter}
	    </td>
	  </tr>
	</table>
    </div>
{/section}
  </td>
{include file="$theme/rightnav.tpl"}
{include file="$theme/footer.tpl"}
Return current item: Journalness