<div id="wrap_main">
<div id="knowledge_base">
		<h2 class="kb_title">[l]Knowledgebase Article[/l] #{articleId}</h2>
		<input type="hidden" name="articleId" id="articleId" value="{articleId}"/>
		<p class="kb_sub">
			<h3>{articleName}</h3>
		</p>	

		<div class="left">
			<!-- BEGIN DYNAMIC BLOCK: searchBlock -->
			{kb_search}  
			<!-- END DYNAMIC BLOCK: searchBlock -->

			<div id="knowledge_base_categories">
				<div class="block_long">
					<div class="top"><h2><a href="index.php?fuse=knowledgebase&amp;view=KB_CategoriesView&amp;categoryId={categoryId}{public}">{categoryName}</a></h2></div>
					<div class="body">
						<h2 class="{articleTypeClass}">{articleName}&nbsp;&nbsp;&nbsp;{articleEditLink}<br/><span>([l]Article ID[/l]: {articleId} [l]Created on[/l]: {articleCreated} [l]Modified on[/l]: {articleModified}) &nbsp;&nbsp;<img src="templates/Raleigh/views/knowledgebase/images/star_{articleRating}.gif" alt="" /></span></h2>
						
						<div class="article_inside">
							<h2>[l]Excerpt[/l]</h2>
							<p>{articleExcerpt}</p>
							<h2>[l]Solution[/l]</h2>
							<p>{articleDescription}</p>
							<h2>[l]Author[/l]</h2>
							<p>{articleAuthor}</p>
							<h2>[l]Attached Files[/l]</h2>
							<p>
                            <!-- BEGIN DYNAMIC BLOCK: noAttachedFiles -->
							[l]The article has not attached files[/l]
                            <!-- END DYNAMIC BLOCK: noAttachedFiles -->							
                            <!-- BEGIN DYNAMIC BLOCK: articleAttachedFiles -->                        
							<a href="index.php?fuse=knowledgebase&amp;action=KB_GetAttachment&amp;file_id={file_id}" target="_blank">{articleFilename}</a><br/>
                            <!-- END DYNAMIC BLOCK: articleAttachedFiles --> 
                            </p>
							<!-- BEGIN DYNAMIC BLOCK: userCanRate --> 
							<h2>[l]How helpful was this article to you ?[/l]</h2>
							<br/>
							<div id="ratingArticle">
								<div id="unit_long{articleId}">
									<ul id="unit_ul{articleId}" class="unit-rating" style="width:{width}px;">
										<li class="current-rating" style="width:{ratingWidth}px;">[l]Currently[/l] {articleRate}/{limitRate}</li>
										<!-- BEGIN DYNAMIC BLOCK: ratingScale -->
										<li><a href="#" title="{_ncount} out of {_limitRate}" class="r{_ncount}-unit rater" rel="nofollow" onclick="RateArticle({_ncount})">{_ncount}</a></li>
										<!-- END DYNAMIC BLOCK: ratingScale -->
									</ul>
									[l]Rating[/l]: <span id="textRating"><b>{articleRating1}</b>&nbsp;/&nbsp;{limitRate}&nbsp;({ratePhrase}&nbsp;[l]cast[/l])</span>
								</div>
							</div>							
                            <br/>
							<!-- END DYNAMIC BLOCK: userCanRate --> 
							<h2>[l]Related Topics[/l]</h2>
							<ul>							
							<!-- BEGIN DYNAMIC BLOCK: norelatedTopics -->                                               
                        		<li>[l]No Articles related[/l]</li>
							<!-- END DYNAMIC BLOCK: norelatedTopics --> 
							<!-- BEGIN DYNAMIC BLOCK: relatedTopics -->                                               
								<li><img src="templates/Raleigh/images/kb/icon_li.gif" alt="" />&nbsp;&nbsp;<a href="index.php?fuse=knowledgebase&amp;view=KB_viewArticle&articleId={articleRelatedId}{public}">{articleRelatedTitle}</a></li>
							<!-- END DYNAMIC BLOCK: relatedTopics -->  														
							</ul>
							<h2>[l]Comments[/l]</h2>
							<!-- BEGIN DYNAMIC BLOCK: noArticleComments -->
							<p>[l]There are no comments posted [/l]</p>
							<!-- END DYNAMIC BLOCK: noArticleComments -->
							<!-- BEGIN DYNAMIC BLOCK: ArticleComments -->							
							<div class="comment">
								<div id="div_log_{LOG_ID}">
									<input type="hidden" id="{LOG_ID}" value="{LOG_ID_1}" />
									<p class="ctitle">[l]Comment by[/l] {CommentUser} - {dateAdded}</p>
										<!-- BEGIN DYNAMIC BLOCK: editComments -->
										<div id="editLinks_log_{LOG_ID}" align="right">
											<a class='liveupdate' href="javascript:ShowEditBox('log_{LOG_ID}','knowledgebase','KB_UpdateComment_Async','log');">[l]Edit[/l]</a>
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<a class='liveupdate' href="javascript:DeleteLog('log_{LOG_ID}','knowledgebase','KB_DeleteComment_Async');">[l]Delete[/l]</a>
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										</div>
										<!-- END DYNAMIC BLOCK: editComments -->							
									<p id="log_{LOG_ID}">{CommentArticle}</p>
								</div>
							</div>                            							
							<!-- END DYNAMIC BLOCK: ArticleComments -->					
							
							<h2>[l]Add Comments[/l]</h2>
							<!-- BEGIN DYNAMIC BLOCK: articleForm --> 
							<form name="formAddComments" method="post" action="index.php?fuse=knowledgebase&amp;action=KB_AddComment&amp;articleId={articleId}">
								<input type="hidden" name="public" value="{isPublic}" />
								<div>
									<label>[l]Name[/l]:</label>
									<input class='fl' id="userName" name="userName" type="text" value="{username}"/>
									<input name="r_userName" type="hidden" value="[lh]Name[/lh]" />
									<label>[l]E-mail[/l]:</label>
									<input class='fl' id="userEmail" name="userEmail" type="text" value="{usermail}" />
									<input name="r_userEmail" type="hidden" value="[lh]E-mail[/lh]" />							
									<label>[l]Comment[/l]:</label>
									<textarea id="userComment"  name="userComment" rows="10" cols="60"></textarea>
									
									<!-- BEGIN DYNAMIC BLOCK: captcha -->
									<img name="captcha" id="antiflood" src="modules/clients/captcha.php" border="0" alt="" /><br/>
									<label>[l]Enter the code to the left[/l]:</label>
									<input class='f1' type="text" name="accesscode"  />
									<input type="hidden" name="r_accesscode" value="[lh]Access Code[/lh]" />
									<br/><br/>
									<!-- END DYNAMIC BLOCK: captcha -->
									
									<!-- BEGIN DYNAMIC BLOCK: articleIsInternal-->								
									<label><input type="checkbox" name="commentIsInternal" value="1" /> [l]Save comment as Staff-Only[/l]</label>
									<!-- END DYNAMIC BLOCK: articleIsInternal-->		
									
									<br/>
									<input name="btnSubmitComment" type="submit" value="[lh]Submit[/lh]" class="button_medium" onclick="check(form,form.elements.length);return false;"/>														
									
								</div>
							</form>
							<!-- END DYNAMIC BLOCK: articleForm --> 
						</div>
					</div>
					<div class="bottom"></div>
				</div>
			</div>
		</div>
		<div class="right">
			{articlesSidebar}
		</div>
</div>
</div>
