<?php include($tpl_common_dir . 'action_confirm.tpl'); ?>
<div id="content" class="panel panel-default">

	<div class="panel-heading col-xs-12">
		<div class="primary_content_actions pull-left">
			<button class="btn btn-primary lock-on-click" id="clearall" type="button"><i class="fa fa-trash-o"></i> <?php echo $text_clear_all_cache;?></button>
		</div>

		<?php include($tpl_common_dir . 'content_buttons.tpl'); ?>	
	</div>

	<?php echo $form['form_open']; ?>
    <input id="clear_all" name="clear_all" type="hidden"/>
	<div class="panel-body panel-body-nopadding tab-content col-xs-12">
		<label class="h4 heading"><?php echo ${'tab_' . $section}; ?></label>

		<table class="table table-striped">
			<thead>
			<tr>
				<td class="center"></td>
				<td class="panel-title"><?php echo $column_type; ?></td>
				<td class="panel-title"><?php echo $column_description; ?></td>
			</tr>
			</thead>
			<tbody>
			<?php if ($sections) { ?>
				<?php foreach ($sections as $k=>$section) { ?>
					<tr>
						<td class="center"><input id="chk_<?php echo $k;?>" type='checkbox' name="selected[]" value="<?php echo $section['keywords']; ?>"/></td>
						<td class="left"><label for="chk_<?php echo $k;?>"><?php echo $section['text']; ?></label></td>
						<td class="left"><label for="chk_<?php echo $k;?>"><?php echo $section['description']; ?></label></td>
					</tr>
				<?php } ?>
			<?php } else { ?>
				<tr>
					<td class="center" colspan="3"><?php echo $text_no_results; ?></td>
				</tr>
			<?php } ?>
			</tbody>
		</table>

	</div>

	<div class="panel-footer col-xs-12">
		<div class="text-center">
				<button class="btn btn-primary lock-on-click">
					<i class="fa fa-trash-o"></i> <?php echo $form['submit']->text; ?>
				</button>
		</div>
	</div>
	</form>
</div>

<script type="text/javascript">
	$('#clearall').click(function(){
		$('#clear_all').val('all');
		$('#cacheFrm').submit();
	});
</script>















