-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathknowledgebasearticle.tpl
56 lines (50 loc) · 2.12 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
54
55
56
<div class="page-header">
<h1>{$LANG.knowledgebasetitle}</h1>
</div>
{literal}
<script type="text/javascript">
function addBookmark() {
if (window.sidebar) {
window.sidebar.addPanel('{/literal}{$companyname} - {$kbarticle.title}{literal}', location.href,"");
} else if( document.all ) {
window.external.AddFavorite( location.href, {/literal}'{$companyname} - {$kbarticle.title}'{literal});
} else if( window.opera && window.print ) {
return true;
}
}
</script>
{/literal}
<div class="row">
<div class="span8">
<p>{$breadcrumbnav}</p>
</div>
<div class="span4 textright">
<img src="images/addtofavouritesicon.gif" class="valignbaseline" alt="{$LANG.knowledgebasefavorites}"> <a href="#" onClick="addBookmark();return false">{$LANG.knowledgebasefavorites}</a> <img src="images/print.gif" class="valignbaseline" alt="{$LANG.knowledgebaseprint}"> <a href="#" onclick="window.print();return false">{$LANG.knowledgebaseprint}</a>
</div>
</div>
<h2 class="marginbottom">{$kbarticle.title}</h2>
<blockquote>
{$kbarticle.text}
</blockquote>
<form method="post" action="knowledgebase.php?action=displayarticle&id={$kbarticle.id}&useful=vote" class="well form-horizontal textcenter">
{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 btn-primary">
{/if}
</form>
{if $kbarticles}
<h3>{$LANG.knowledgebasealsoread}</h3>
<ul class="unstyled">
{foreach key=num item=kbarticle from=$kbarticles}
<li>
<h4><img src="images/article.gif" alt="Article Icon"> <a href="{if $seofriendlyurls}knowledgebase/{$kbarticle.id}/{$kbarticle.urlfriendlytitle}.html{else}knowledgebase.php?action=displayarticle&id={$kbarticle.id}{/if}">{$kbarticle.title}</a> <small>({$LANG.knowledgebaseviews}: {$kbarticle.views})</small></h4>
</li>
{/foreach}
</ul>
{/if}