006a361aec589de9987d0248a528319a01616994.php 3.48 KB
<?php $user=Auth::user(); ?>

<style>
	.label label-small pull-right{float: right;width: 20px;text-align: center;color: #fff;border-radius: 50%;line-height: 20px;font-size: 10px;font-weight: 900;}
	.label label-small pull-right a{color: #fff !important;}
	.notify_alert{height:25px;}
	.wgt{background: none repeat scroll 0 0 #ffffff;border: 1px solid #f6f7fb;margin: 0 auto 10px;position: relative;}
	.wgt-head{background: none repeat scroll 0 0 #f6f7fb;border-bottom: 1px solid #f6f7fb;height: 35px;line-height: 35px;overflow: hidden;padding: 0 10px 0 0;position: relative;}
	.wgt .wgt-body{padding: 10px;}
	.wgt p{font-size:12px;color:#656d78;}
	.wgt label{font-weight:600;color:#5d9cec;}
	.wgt a{color: #656d78;}
	.wgt a:hover{color:#434a54;}
	.list_n{font-size:12px}
	.list_n li{padding:3px 0;}
	.list_n li a{color: #656d78;}
	.list_n li a:hover{color:#434a54;}
	.tab_generic{background: none repeat scroll 0 0 #ffffff;border-radius: 5px;margin: 0 0 10px;padding: 10px 5px;position: relative;}
	.tab_bar_new{border: 1px solid #EFEFEF;height: 39px;margin: 0 0 10px;overflow: hidden;position: relative;}
	.tab_bar_new ul{list-style: none outside none;margin: 0;padding: 0;background:#ed5564;}
	.tab_bar_new ul li{border: medium none;height: 39px;padding: 0;display: block;float: left;}
	.tab_bar_new ul li a{background: none repeat scroll 0 0 rgba(0, 0, 0, 0);height: 39px;line-height: 39px;display: block;padding: 0 15px;text-decoration: none;color:#fff;}
	.tab_bar_new ul li.active{background: none repeat scroll 0 0 #fff;}
	.tab_bar_new ul li.active a{color:#ed5564;}
	.legend_notify{float: right;font-size: 12px;font-weight: 600;margin-right: 20px;}
	.legend_notify a{background-color: #ed5564;color: #fff;border-radius: 20px;padding: 5px 10px;margin-left: 5px;cursor:default;}
	.task_numberx a{color:#fff;background:#fff;font-size: 10px;padding: 5px 10px;border-radius: 20px;font-weight:900;}
	.task_numberx a:hover{background:#ed5564;color:#f6f7fb;}
	.hasDatepicker{width: 20%;}
	.progress{height:10px;}
</style>

<div class="layout-app">
	<div class="row row-app">
		<div class="col-md-12">
			<div class="col-separator col-separator-first col-unscrollable box">
				<div class="">
					<div class="relativeWrap" >
						<div class="tab_generic" style='padding:0px;margin:0px;min-height:500px;'>
<?php 
$firstdash="";$dashcnt=0;$headerstr="";
$modules=array();$active="active";
foreach(Config::get("app.app_modules") as $mname=>$module)
{
	if($user->moduleACL($mname,true,false,false))
	{
		if($module['dash']!="")
		{
		$modules[$mname]=$module;
		$headerstr.="<li class='$active'><a href='#DashletT-$mname' onclick='dashReload(\"$mname\");' data-toggle='tab'>$module[dash]</a></li>";
		$active="";$dashcnt++;if($firstdash=="")$firstdash=$mname;
		}
	}
}
?>
							<div class="tab_bar_new tabsbar-2" style='<?php if($dashcnt<=1)echo "display:none";  ?>'>
								<ul class="row row-merge" style='background:#9CBFFF'>
									<?php echo $headerstr; ?>

								</ul>
							</div>

							<div class="tab-content">
<?php 
$active="active";
foreach($modules as $mname=>$module)
{
	if($user->moduleACL($mname,true,false,false))
	{
?>
								<div class="tab-pane <?php echo $active; ?> innerAll" id=DashletT-<?php echo $mname; ?>></div>
<?php 
		$active="";
	}
}
?>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<script>
function dashReload(dashlet)
{
	doAjax("dashboard/dashlet?module="+dashlet,"","DashletT-"+dashlet,"ajax_dashlet_"+dashlet,"singlefail","GET");
}
dashReload('<?php echo $firstdash; ?>');
</script>