-
Notifications
You must be signed in to change notification settings - Fork 0
/
knowledgebasearticle.tpl
53 lines (40 loc) · 2.06 KB
/
knowledgebasearticle.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{include file="$template/pageheader.tpl" title=$LANG.knowledgebasetitle}
<script language="javascript">
function addBookmark() {ldelim}
if (window.sidebar) {ldelim}
window.sidebar.addPanel('{$companyname} - {$kbarticle.title}', location.href,"");
{rdelim} else if( document.all ) {ldelim}
window.external.AddFavorite( location.href, '{$companyname} - {$kbarticle.title}');
{rdelim} else if( window.opera && window.print ) {ldelim}
return true;
{rdelim}
{rdelim}
</script>
<p>{$breadcrumbnav}</p>
<br />
<h2>{$kbarticle.title}</h2>
<br />
<blockquote>
<br /><br />
{$kbarticle.text}
<br /><br />
</blockquote>
<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}" class="btn" />
{/if}
</p>
</form>
<p><img src="images/addtofavouritesicon.gif" align="absmiddle" alt="{$LANG.knowledgebasefavorites}" /> <a href="#" onClick="addBookmark();return false">{$LANG.knowledgebasefavorites}</a> <img src="images/print.gif" align="absmiddle" alt="{$LANG.knowledgebaseprint}" /> <a href="#" onclick="window.print();return false">{$LANG.knowledgebaseprint}</a></p>
{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 />