<ul class="rb-module-list list-inline">
<?php $_MODULES = getDbArray($table['s_module'],'','*','gid','asc',0,1)?>
<?php while($_R = db_fetch_array($_MODULES)):?>
<?php if($_R['id']=='dashboard') continue?>
<?php if(strpos('_'.$my['adm_view'],'['.$_R['id'].']')) continue?>

<li>
	<div class="rb-box">
		<a href="<?php echo $g['s']?>/?r=<?php echo $r?>&amp;m=<?php echo $m?>&amp;module=<?php echo $_R['id']?>">
			<i class="rb-icon <?php echo $_R['icon']?$_R['icon']:'fa fa-cube'?>"></i><br>
			<i class="rb-name"><?php echo $_R['id']=='admin'?'System':ucfirst($_R['id'])?></i>
		</a>
	</div>
</li>
<?php endwhile?>
</ul>

<br>
<div class="btn-group btn-group-justified">
	<div class="btn-group dropup">
		<button type="button" class="btn btn-default btn-lg dropdown-toggle" data-toggle="dropdown">
			<?php echo _LANG('a2001','dashboard')?>
		</button>
		<ul class="dropdown-menu">
			<li role="presentation" class="dropdown-header"><?php echo _LANG('a2002','dashboard')?></li>
			<li class="divider"></li>
			<li><a href="<?php echo $g['s']?>/?r=<?php echo $r?>&amp;m=<?php echo $m?>&amp;module=site"><i class="fa fa-home"></i> <?php echo _LANG('a2003','dashboard')?></a></li>
			<li><a href="<?php echo $g['s']?>/?r=<?php echo $r?>&amp;m=<?php echo $m?>&amp;module=site&amp;front=menu"><i class="fa fa-sitemap"></i> <?php echo _LANG('a2004','dashboard')?></a></li>
			<li><a href="<?php echo $g['s']?>/?r=<?php echo $r?>&amp;m=<?php echo $m?>&amp;module=site&amp;front=page"><i class="fa fa-file-text-o"></i> <?php echo _LANG('a2005','dashboard')?></a></li>
		</ul>
	</div>
	<div class="btn-group dropup">
		<button type="button" class="btn btn-default btn-lg dropdown-toggle" data-toggle="dropdown">
			<?php echo _LANG('a2006','dashboard')?>
		</button>
		<ul class="dropdown-menu">
			<li role="presentation" class="dropdown-header"><?php echo _LANG('a2007','dashboard')?></li>
			<li class="divider"></li>
			<li><a href="#" data-toggle="modal" data-target="#modal_window" class="rb-modal-add-package"><?php echo _LANG('a2008','dashboard')?></a></li>
			<li><a href="#" data-toggle="modal" data-target="#modal_window" class="rb-modal-add-module"><?php echo _LANG('a2009','dashboard')?></a></li>
			<li><a href="#" data-toggle="modal" data-target="#modal_window" class="rb-modal-add-layout"><?php echo _LANG('a2010','dashboard')?></a></li>
			<li><a href="#" data-toggle="modal" data-target="#modal_window" class="rb-modal-add-widget"><?php echo _LANG('a2011','dashboard')?></a></li>
			<li><a href="#" data-toggle="modal" data-target="#modal_window" class="rb-modal-add-switch"><?php echo _LANG('a2012','dashboard')?></a></li>
			<li><a href="#" data-toggle="modal" data-target="#modal_window" class="rb-modal-add-plugin"><?php echo _LANG('a2013','dashboard')?></a></li>
			<li><a href="#" data-toggle="modal" data-target="#modal_window" class="rb-modal-add-dashboard"><?php echo _LANG('a2014','dashboard')?></a></li>
			<li><a href="#" data-toggle="modal" data-target="#modal_window" class="rb-modal-add-etc"><?php echo _LANG('a2015','dashboard')?></a></li>
		</ul>
	</div>
	<a href="<?php echo $g['s']?>/?r=<?php echo $r?>&amp;m=<?php echo $m?>&amp;module=market" class="btn btn-default btn-lg">
		<?php echo _LANG('a2016','dashboard')?>
	</a>
</div>


<script>
$(document).ready(function(){
	$('.rb-modal-add-package').on('click',function() {
		modalSetting('modal_window','<?php echo getModalLink('&amp;m=admin&amp;module=market&amp;front=modal.package')?>');
	});
	$('.rb-modal-add-module').on('click',function() {
		modalSetting('modal_window','<?php echo getModalLink('&amp;m=admin&amp;module=market&amp;front=modal.add&amp;addType=module')?>');
	});
	$('.rb-modal-add-layout').on('click',function() {
		modalSetting('modal_window','<?php echo getModalLink('&amp;m=admin&amp;module=market&amp;front=modal.add&amp;addType=layout')?>');
	});
	$('.rb-modal-add-widget').on('click',function() {
		modalSetting('modal_window','<?php echo getModalLink('&amp;m=admin&amp;module=market&amp;front=modal.add&amp;addType=widget')?>');
	});
	$('.rb-modal-add-switch').on('click',function() {
		modalSetting('modal_window','<?php echo getModalLink('&amp;m=admin&amp;module=market&amp;front=modal.add&amp;addType=switch')?>');
	});
	$('.rb-modal-add-plugin').on('click',function() {
		modalSetting('modal_window','<?php echo getModalLink('&amp;m=admin&amp;module=market&amp;front=modal.add&amp;addType=plugin')?>');
	});
	$('.rb-modal-add-dashboard').on('click',function() {
		modalSetting('modal_window','<?php echo getModalLink('&amp;m=admin&amp;module=market&amp;front=modal.add&amp;addType=dashboard')?>');
	});
	$('.rb-modal-add-etc').on('click',function() {
		modalSetting('modal_window','<?php echo getModalLink('&amp;m=admin&amp;module=market&amp;front=modal.add&amp;addType=etc')?>');
	});
});
</script>

