Location: PHPKode > projects > PHPDug > templates/simple/story.html
{OVERALL_HEADER}
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="200" valign="top">
	IF("{LOGGEDIN}"=="0"){<a href="{SITE_URL}signup.php">{LANG_JOIN}</a><br><a href="{SITE_URL}login.php">{LANG_LOGIN}</a><br>{:IF}
	IF("{LOGGEDIN}"=="1"){<a href="{SITE_URL}editprofile.php">{LANG_EDITPROFILE}</a><br>{:IF}
      <a href="{SITE_URL}add_story.php">{LANG_SUBMITS}</a><br>
	IF("{LOGGEDIN}"=="1"){<a href="{SITE_URL}logout.php">{LANG_LOGOUT}</a><br>{:IF}
      <br>
	  <strong>{LANG_CATS}</strong><br>
      <br>

      {LOOP: CATS}
	  IF("{CATS.parent_id}"!="0"){&nbsp;&nbsp;{:IF}
	  <a href="{CATS.cat_url}">{CATS.cat_title}</a><br>
	  {/LOOP: CATS}
	  <br>
    <br></td>
    <td valign="top">
	<table width="100%" cellpadding="0" cellspacing="0">
	<tr><td width="60" align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0"><tr><td background="{SITE_URL}templates/{TPL_NAME}/images/digg_back.jpg"><table width="52" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" height="28" valign="bottom"><div class="digs" id="numdigs{STORY_ID}">{STORY_DIGS}</div></td>
      </tr>
	  <tr>
	  <td height="24" align="center" valign="middle"><span class="digg">{LANG_DIGGS}</span></td>
	  </tr>
      <tr>
        <td height="2"></td>
      </tr>
      <tr>
           <td height="25" align="center"><div class="digit" id="digbut{STORY_ID}">IF("{USER_DUGG}"=="1"){{LANG_DUGG}{:IF}IF("{USER_DUGG}"=="0"){<a href="javascript:dig({STORY_ID});">{LANG_DIGIT}</a>{:IF}</div></td>
      </tr>
    </table></td>
    </tr></table></td>
	<td valign="top">
	  <table width="100%" height="70"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top"><a href="{STORY_URL}">{STORY_TITLE}</a></td>
        </tr>
		<tr>
		<td height="20"><span class="subline">{LANG_SUBBY} <a href="{PROFILE_LINK}">{STORY_USER_NAME}</a></span></td>
		</tr>
        <tr>
          <td valign="top">{STORY_DESC}</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td valign="bottom"><span class="bottomlinks">{LANG_TOPIC}: <a href="{CAT_URL}">{CAT_TITLE}</a> IF("{STORY_TAGS}"!=""){&nbsp; {LANG_TAGTITLE}: {STORY_TAGS_LINKS}{:IF}</span></td>
        </tr>
      </table></td></tr>
	</table>
	<br>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-bottom: 1px solid #dedede;">
      <tr>
        <td><div id="tabsB">
            <ul>
              <li id="current"><a href="{SITE_URL}story.php?id={STORY_ID}"><span>Comments ({STORY_COMMENTS})</span></a></li>
			  <li><a href="{SITE_URL}story.php?id={STORY_ID}&cmd=dugg"><span>Who Dugg this story?</span></a></li>
              <li><a href="{SITE_URL}story.php?id={STORY_ID}&cmd=email"><span>Email This Link</span></a></li>
            </ul>
        </div></td>
      </tr>
    </table>
  	<br>
	<strong>{LANG_COMS}</strong><br>
	{LOOP: COMMENTS}
	<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>
	IF("{COMMENTS.parent_id}"!="0"){<td width="50">&nbsp;</td>{:IF}
	<td>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
	<td height="25" valign="middle" bgcolor="#e4edf4"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="20" align="center"><img src="{SITE_URL}{COMMENTS.avatar}"></td>
            <td class="comline"> by <a href="{COMMENTS.user_link}">{COMMENTS.user_name}</a> {COMMENTS.ago} {LANG_AGO}</td>
          </tr>
        </table></td>
		<td align="right"><div id="commbut{COMMENTS.comment_id}" class="subline">IF("{COMMENTS.dug}"=="-1"){{LANG_BURIED} [<a href="javascript:dispcomment({COMMENTS.comment_id},true,0);">{LANG_SHOWC}</a>]{:IF}IF("{COMMENTS.hide}"=="1"){{LANG_BELOWTHRESH} [<a href="javascript:dispcomment({COMMENTS.comment_id},true,1);">{LANG_SHOWC}</a>]{:IF}</div></td>
        <td width="60" align="right"><div class="comdigs" id="comd{COMMENTS.comment_id}">{COMMENTS.comment_digs} {LANG_DIGGS}</div></td>
      <td width="50" align="center"><table  border="0" cellspacing="0" cellpadding="0">
        <tr align="center">
          <td><a href="javascript:digcom({COMMENTS.comment_id},0,{STORY_ID});"><img IF("{COMMENTS.dug}"!="0"){class="opacityit"}{:IF} id="cdown{COMMENTS.comment_id}" src="{SITE_URL}templates/{TPL_NAME}/images/arrow_down.gif" border="0" width="16" height="16"></a></td>
          <td><a href="javascript:digcom({COMMENTS.comment_id},1,{STORY_ID});"><img IF("{COMMENTS.dug}"!="0"){class="opacityit"}{:IF} id="cup{COMMENTS.comment_id}" src="{SITE_URL}templates/{TPL_NAME}/images/arrow_up.gif" border="0" width="16" height="16"></a></td>
        </tr>
      </table></td>
      </tr>
    </table></td>
	</tr>
	<tr id="commdesc{COMMENTS.comment_id}" IF("{COMMENTS.dug}"=="-1"){style="display:none;"{:IF}IF("{COMMENTS.hide}"=="1"){style="display:none;"{:IF}><td>{COMMENTS.comment_desc}</td></tr>
	IF("{COMMENTS.parent_id}"=="0"){<tr><td align="right"><span class="subline">[<a href="#commentbox" onclick="comreply({COMMENTS.comment_id},'{COMMENTS.user_name}');">reply</a>]</span></td></tr>{:IF}
	</table>
	</td></tr>
	</table>
	<br>
	{/LOOP: COMMENTS}
    <br>
    <br>
    <a name="commentbox"></a>
	<strong>{LANG_ADDCOM}</strong><br>
	IF("{LOGGEDIN}"=="0"){{LANG_PLEASE} <a href="{SITE_URL}login.php">{LANG_LOGIN}</a> {LANG_OR} <a href="{SITE_URL}signup.php">{LANG_SIGNUP}</a> {LANG_TOLEAVE}{:IF}
    IF("{LOGGEDIN}"=="1"){<form name="form1" method="post" action="{SITE_URL}story.php?id={STORY_ID}" style="padding:0px;margin:0px;">
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
	    <tr id="creply" style="display:none;">
		  <td>Replying to comment by <span id="replynick"></span> (<a href="javascript:replycancel();">cancel</a>)</td>
		</tr>
        <tr>
          <td><textarea name="comment" id="comment" style="width:95%;height:100px;"></textarea></td>
        </tr>
        <tr>
          <td><input type="submit" name="Submit" value="{LANG_ADDCOM2}"><input type="hidden" name="parentid" id="parentid" value="0"></td>
        </tr>
      </table>
      <br>
        </form>{:IF}
    <br>
    <br></td>
  </tr>
</table>
{OVERALL_FOOTER}
Return current item: PHPDug