Location: PHPKode > projects > OsQuestions > osQuestions-0.5.0.0/templates/default/question.tpl
<h2>{$question->title}</h2>
<div class="posted">
	<p>
	Asked by <a href="{$question->user->URL}">{$question->user->username}</a> at {$question->displayDateCreated} at {$question->displayTimeCreated} &nbsp;
<br/>
	{foreach item=tag key=key2 from=$question->tags}
	<a href="{$tag->URL}" class="tag">{$tag->tag}</a>&nbsp;
	{/foreach}
	</p>
	<p class="comments">
	{if $question->user->id == $user->id}
	answer
	{else}
	<a href="{$DOC_ROOT}answer_question.php?qid={$question->id}">answer</a>
	{/if}
	</p>
	
</div>
<p>
	{$question->displayComment}
</p>

{foreach item=answer key=key2 from=$question->answers}
		<div class="posted">
		Answered by {$answer->user->username} at {$answer->displayDateCreated} at {$answer->displayTimeCreated}
		</div>
		<p>
		{$answer->displayComment}
	</p>
{/foreach}
Return current item: OsQuestions