Exemplo n.º 1
0
<?php

echo '<link rel="stylesheet" href="', $curModule->file_url, 'css/base.css">';
// Include css
if (!empty($viewData['css'])) {
    foreach ($viewData['css'] as $value) {
        echo '<link rel="stylesheet" href="', $curModule->file_url, 'css/', $value, '">';
    }
}
// Main content
echo $viewData['content'];
// Include js
echo '<script src="', base_ngservices_url(), 'GAEAPI.js"></script>';
echo '<script src="', $curModule->file_url, 'js/third_party/angular-file-model-min.js"></script>';
echo '<script src="', $curModule->file_url, 'js/third_party/dirPagination.js"></script>';
echo '<script src="', $curModule->file_url, 'js/third_party/jquery-ui.min.js"></script>';
echo '<script src="', $curModule->file_url, 'js/shared/common.js"></script>';
echo '<script src="', $curModule->file_url, 'js/app.module.js"></script>';
if (!empty($viewData['js'])) {
    foreach ($viewData['js'] as $value) {
        echo '<script src="', $curModule->file_url, 'js/', $value, '"></script>';
    }
}
Exemplo n.º 2
0
<script type="text/javascript">
	var menu_id = '<?php 
echo nTob(@$viewData["menu_id"]);
?>
';
	var module_id = '<?php 
echo nTob(@$viewData["module_id"]);
?>
';
</script>
<script src="<?php 
echo base_ngservices_url();
?>
GAEAPI.js"></script>
<script src="<?php 
echo base_ngservices_url();
?>
pageloading/PAGELOADING.js"></script>
<script type="text/javascript">
var header_main_menu = angular.module('app_pageHeader', ['ngRoute','ngAnimate','GAEAPI']);
              
header_main_menu.controller('pageMainMenu', function ($scope, $rootScope, $location, $routeParams,  GAEAPI) {
	$scope.menu_id = menu_id;
	$scope.module_id = module_id;
	$scope.mainmenu_root = [];
	$scope.mainmenu_sub = [];
	$scope.mainmenu_addon = [];

	//PAGELOADING.play();
    GAEAPI.get("home/main_menu").then(function (res) {
    	console.log("home/main_menu : ",res);