/[health_html]/templates/qa2.tpl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /templates/qa2.tpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Wed Oct 10 12:40:59 2001 UTC (22 years, 7 months ago) by ravilov
Branch: MAIN
Improved Arhiva, Alergijski semafor and Home. Added a second Q&A page (test version). Other improvements & bugfixes.

1 <br><big><b>Pitanja i odgovori</b></big><br>
2 {if ($naslov)}<b>{$naslov}</b><br>{/if}<br>
3 {if ($qa)}
4 {if ($done)}<span><font color="#008000"><b>Va¹e pitanje je primljeno na obradu. Uskoro oèekujte odgovor.</b></font></span><br>{/if}
5 <form method=post action="?section={$section}&amp;section_menu={$section_menu}&amp;qa={$qa}">
6 <table border=0 cellspacing=0 cellpadding=4 width="100%">
7 <tr><td align=left valign=top width="1%">Va¹e&nbsp;ime&nbsp;i&nbsp;prezime:</td><td><input type=text name="ime" value="{$ime}" size="20" style="width:100%;">{if ($error & 1)}<br><span class="small3">Morate upisati Va¹e ime.</span>{/if}</td></tr>
8 <tr><td align=left valign=top width="1%">Va¹a&nbsp;email&nbsp;adresa:</td><td><input type=text name="email" value="{$email}" size="20" style="width:100%;">{if ($error & 2)}<br><span class="small3">Morate upisati Va¹u e-mail adresu.</span>{/if}</td></tr>
9 <tr><td align=left valign=top colspan=2>Va¹e pitanje:{if ($error & 4)}<br><span class="small3">Morate upisati pitanje.</span>{/if}<br><textarea name="pitanje" cols="30" rows="6" wrap=virtual style="width:100%;">{$pitanje}</textarea></td></tr>
10 <tr><td align=right valign=bottom colspan=2><input type="submit" name="salji" value="Po¹alji" class="bsmall"></td></tr>
11 <tr><td align=left valign=middle colspan=2><a href="?section={$section}" class="more">&lt;&lt;&nbsp;kategorije</a></td></tr>
12 </table>
13 </form>
14 <hr width="100%"><br>
15 {if ($qas)}
16 <table border=0 cellspacing=0 cellpadding=4 width="100%">
17 {if ($prev || $next || $offset)}
18 <tr><td colspan=2 align=right><small>[ {if ($prev || $offset)}<a href="?section={$section}&amp;section_menu={$section_menu}&amp;section_menu2={$section_menu2}&amp;qa={$qa}&amp;offset={$prev}" class="more">&lt;&lt;&nbsp;nazad</a>{/if}{if (($prev || $offset) && $next)} | {/if}{if ($next)}<a href="?section={$section}&amp;section_menu={$section_menu}&amp;section_menu2={$section_menu2}&amp;qa={$qa}&amp;offset={$next}" class="more">sljedeæih 10&nbsp;&gt;&gt;</a>{/if} ]</small></td></tr>
19 <tr><td colspan=2><hr width="90%"></td></tr>
20 {/if}
21 {section name=i loop=$qas}
22 <tr><td width="1%" valign=top><b>P:</b></td><td><b>{$i/qas.pitanje}</b></td></tr>
23 <tr><td width="1%" valign=top>O:</td><td>{$i/qas.odgovor}</td></tr>
24 {if ($i/qas.gost)}<tr><td colspan=2 class="small" align=right>Odgovara: {$i/qas.gost}</td></tr>{/if}
25 <tr><td colspan=2><hr width="90%"></td></tr>
26 {/section}
27 {if ($prev || $next || $offset)}<tr><td colspan=2 align=right><small>[ {if ($prev || $offset)}<a href="?section={$section}&amp;section_menu={$section_menu}&amp;section_menu2={$section_menu2}&amp;qa={$qa}&amp;offset={$prev}" class="more">&lt;&lt;&nbsp;nazad</a>{/if}{if (($prev || $offset) && $next)} | {/if}{if ($next)}<a href="?section={$section}&amp;section_menu={$section_menu}&amp;section_menu2={$section_menu2}&amp;qa={$qa}&amp;offset={$next}" class="more">sljedeæih 10&nbsp;&gt;&gt;</a>{/if} ]</small></td></tr>{/if}
28 </table>
29 {else}
30 <i>Nema pitanja (a ni odgovora).</i><br>
31 {/if}
32 {else}
33 <table border=0 cellspacing=3 cellpadding=4 width="100%">
34 <tr><td colspan=3><table border=0 cellspacing=0 cellpadding=0 width="100%"><tr><td align=left valign=bottom><b>Izaberite kategoriju:</b></td><td align=right valign=bottom class="bsmall">Pitanja / odgovora</td></tr></table></td></tr>
35 {section name=i loop=$teme}
36 <tr class="qabg"><td align=left valign=middle colspan={if ($i/teme.count)}2{else}3{/if}><a href="?section={$section}&amp;qa={$i/teme.id}" class="qahead" title="{$i/teme.naziv}" style="width:100%;height:100%;padding:2px;">{$i/teme.naziv}</a></td>{if ($i/teme.count)}<td width="1%" align=right>{$i/teme.count}</td>{/if}</tr>
37 {if ($i/teme.teme)}{section name=j loop=$i/teme.teme}
38 <tr><td align=left valign=middle width="1%"><img src="img/klir.gif" alt="" border=0 width=20 height=2></td><td align=left valign=middle class="qabg{if (%j.rownum% % 2 != 0)}2{else}1{/if}"{if (! $i/j.teme/teme.count)} colspan=2{/if}><a href="?section={$section}&amp;qa={$i/j.teme/teme.id}" title="{$i/teme.naziv} - {$i/j.teme/teme.naziv}" class="qaitem" style="width:100%;height:100%;padding:2px;">{$i/j.teme/teme.naziv}</a></td>{if ($i/j.teme/teme.count)}<td width="1%" align=right>{$i/j.teme/teme.count}</td>{/if}</tr>
39 {/section}{/if}
40 {/section}
41 </table>
42 {/if}

  ViewVC Help
Powered by ViewVC 1.1.26