Turinio valdymo sistema

Prisijungimas partneriams
Jūsų slaptažodis

Dirbame su:










main

{if $error[1]}
empty radio field
{elseif $error[2]}
empty name field
{elseif $error[3]}
empty email field
{elseif $error[4]}
bad format of mail
{elseif $error[5]}
empty comment field
{/if}
{$img.image.html}
<p>{$content}</p>
<br>
Vidurkis: {$average}
<br>
<form method="post" action="/index.php?cid={$data.page.item_id}">
<input type="hidden" name="action" value="discussion1.vote">
<table>
<tr>
<td>
{foreach key="key" item="field" from=$voting}
<input type=radio name="vote" value="{$key}">{$field}<br>
{/foreach}
</td>
</tr>
<tr>
<td>
Name:<input type="text" name="name" value="">
</td>
<td>
E-mail:<input type="text" name="email" value="">
</td>
</tr>
<tr>
<td>
Comment:<textarea name="comment"></textarea>
</td>
</tr>
<tr>
<td colspan="4">
<input type="submit" value="Vote">
</td>
</tr>
</table>
</form>
<table> 
{foreach key="key" item="comment" from=$comments}
<tr>
<td>{$comment.name}</td>
<td>{$comment.email}</td>
</tr>
<tr>
<td colspan=2>{$val.comment}</td>
</tr>
{/foreach}
</table>