Файл: whmcs/templates/classic/knowledgebasearticle.tpl
Строк: 73
<script language="javascript">
function addBookmark()
{ldelim}
if (window.sidebar) {ldelim}
window.sidebar.addPanel('{$kbarticle.title}', location.href,"");
{rdelim} else if( document.all ) {ldelim}
window.external.AddFavorite( location.href, '{$kbarticle.title}');
{rdelim} else if( window.opera && window.print ) {ldelim}
return true;
{rdelim}
{rdelim}
</script>
<p
class="heading2">{$kbarticle.title}</p>
<table
cellspacing="0" cellpadding="0"
width="100%"><tr><td width="80%"
valign="top">
{$kbarticle.text}
<br /><br
/>
<form method="post"
action="knowledgebase.php?action=displayarticle&id={$kbarticle.id}&useful=vote">
<p>
{if
$kbarticle.voted}
<strong>{$LANG.knowledgebaserating}</strong>
{$kbarticle.useful} {$LANG.knowledgebaseratingtext} ({$kbarticle.votes}
{$LANG.knowledgebasevotes})
{else}
<strong>{$LANG.knowledgebasehelpful}</strong>
<select name="vote"><option
value="yes">{$LANG.knowledgebaseyes}</option><option
value="no">{$LANG.knowledgebaseno}</option></select>
<input type="submit"
value="{$LANG.knowledgebasevote}"
/>
{/if}
</p>
</form>
</td><td
width="20%" valign="top">
<p
align="center"><img
src="images/addtofavouritesicon.gif" align="middle"
border="0" alt="" /> <a href="#"
onClick="addBookmark();return
false">{$LANG.knowledgebasefavorites}</a><br />
<img
src="images/print.gif" align="middle"
border="0" alt="" /> <a href="#"
onclick="window.print();return
false">{$LANG.knowledgebaseprint}</a></p>
</td></tr></table>
{if
$kbarticles}
<div
class="kbalsoread">{$LANG.knowledgebasealsoread}</div>
{foreach
key=num item=kbarticle from=$kbarticles}
<div
class="kbarticle">
<img src="images/article.gif"
align="middle" alt="" /> <strong><a
href="{if
$seofriendlyurls}knowledgebase/{$kbarticle.id}/{$kbarticle.urlfriendlytitle}.html{else}knowledgebase.php?action=displayarticle&id={$kbarticle.id}{/if}">{$kbarticle.title}</a></strong>
<span class="kbviews">({$LANG.knowledgebaseviews}:
{$kbarticle.views})</span>
</div>
{/foreach}
{/if}
<br
/>