<? global $vis_language; ?>
 <div class="row">
       <div class="col-md-12">
		 <section class="panel panel-default pos-rlt clearfix m-b-none">
			<button type="button" class="close pull-right m-r-sm m-t-xs" data-dismiss="alert" onclick="">&times;</button>
			<div class="panel-heading b-b b-light">
			  <div class="clear"><div class="row"><div class="col-md-6"><span class="pull-left m-r-sm">Article suggestions</span></div></div></div>
			</div>
			<div class="panel-collapse">
				<ul class="nav text-left text-sm article_suggestion_result">
				<? if($selfhelp!=-1) for($i=0;$i<count($selfhelp);$i++) { if($selfhelp[$i]['is_enabled'] == 1) {
						//
						$database=new class_database();
						include_once(VIS_PATH_CLASS.VIS_CLASS_PREFIX.'selfhelp.php');
						$object=new class_selfhelp($database);
       					$filter=' article_url='.'"'.$selfhelp[$i]['article_url'].'"'.' and language='.VIS_LANGUAGE;
						list($art_info, $art)=$object->get_article($filter, VIS_STAFF_ID, VIS_LOCATION_AREA);  
						if(count($art)>=2):
						
							$lnk='?/selfhelp/view-article/'.$selfhelp[$i]['article_url'].'/'.$selfhelp[$i]['article_id'];	
						else:
						
							$lnk='?/selfhelp/view-article/'.$selfhelp[$i]['article_url'];
						endif;
						//
				?>	
                                <li><a target="_blank" href="<?= $lnk;?>" class="link dept_nav"><i class="vh vh-file-o text-black"></i> <?= $selfhelp[$i]['article_title'];?></a></li><? } }?>
				</ul>
			</div>
		</section>
	  </div>
   </div><!-- /.row -->
</div>
