<? global $vis_language; ?>
<section id="breadcrumb" class="row m-b m-l-none m-r-none">
   <div class="col-sm-6">
      <h3 class="m-b-xs text-black"><? echo $vis_language['TXTTAGS']; ?></h3>
      <ul class="breadcrumb bg-empty no-border m-b-xxs no-padder">
         <li><a class="link" href="#/home/quick_view/<? echo $vis_language['TXTHOME']; ?>"><? echo $vis_language['TXTHOME']; ?></a></li>
          <li><a class="link" href="#/ticket/filter_ticket/<? echo $vis_language['TXTTICKETS']; ?>/1"><?= $vis_language['TXTINBOX']; ?></a></li>
         <li class="active"><? echo $vis_language['TXTTAGS']; ?></li>
      </ul>
   </div>
   <div class="col-sm-6">
   <div class="pull-right m-t">
   <div class="btn-group m-t">
			<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="vh vh-action text-muted"></i> <b class="caret"></b></button>
     <ul class="dropdown-menu dropdown-menu-right text-left">
        
			<li><a class="link" href="#/ticket/ticket_search/Search" onclick="$('#vis_workpanel_div').visExecution('load_module', '<? echo $vis_language['TXTSEARCH']; ?>', {'vis_module':'ticket', 'vis_operation':'ticket_search'})"><? echo $vis_language['TXTADVANCEDSEARCH']; ?></a></li>
   <li><a class="link" href="#/ticket/view_filters/<? echo $vis_language['TXTFILTERS']; ?>" onclick="$('#vis_workpanel_div').visExecution('load_module', '<? echo $vis_language['TXTFILTERS']; ?>', {'vis_module':'ticket', 'vis_operation':'view_filters'})"><? echo $vis_language['TXTFILTERS']; ?></a></li>
         </ul>
   </div>
   </div>
   </div>
</section>
<? if($tags!=-1) { ?>
   <div class="padder">
         <?  for($i=0;$i<count($tags);$i++) { ?>
            <div class="btn btn-xs btn-default m-r-sm m-b" >
		                  <span class="text m-r-sm" onclick="$('#vis_workpanel_div').visExecution('load_module', '<? echo addslashes($tags[$i]['label_name']); ?>', {'vis_module':'ticket', 'vis_operation':'tag_search', 'tag_count': '<?php echo $tags[$i]['label_count']; ?>', 'tag_name': '<?php echo $tags[$i]['label_name']; ?>','tag_id':<? echo $tags[$i]['label_id']; ?>})"><? echo $tags[$i]['label_name'].' ('.$tags[$i]['label_count'].')'; ?></span>
		                    <a class="text-muted" data-toggle="ajaxModal"  href="javascript:void(0);"  data-modal-arguments="vis_module=ticket&vis_operation=confirm_delete_tag&vis_static_area=vis_tag_delete_form&vis_tag_id=<?= $tags[$i]['label_id']; ?>&vis_page=<? echo $label_info['page']; ?>&vis_current_operation=<? echo $operation['vis_current_operation']; ?>&vis_current_module=<? echo $operation['vis_current_module']; ?>" title="<? echo $vis_language['TXTDELETE']; ?>"><i style="font-size:12px;" class="vh vh-cross"></i> </a>
		                </div>
            <?
        }
		 ?>
</div>
<? }
else
{
	include(VIS_PATH_TEMPLATE.'no_record_yet.php');
} ?>
