50 $aModule=
$cn->get_row(
"
52 me_file,me_parameter,me_javascript,me_type,menu_ref.me_code,
53 pmo_id,pmo_order,pmo_default
55 join profile_mobile using (me_code)
58 (me_file is not null or trim(me_file) <>'' or
59 me_javascript is not null or trim (me_javascript) <> '')
60 and profile_mobile.p_id=$2",
61 array($p_access_code,
$g_user->get_profile()));
63 if (count($aModule)==0)
78 static $already_call=0;
83 $style=
"style-classic7.css";
86 echo
'<!doctype html>';
92 echo
'<meta charset="utf-8">';
93 echo
"<META http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">";
96 <link rel=\"icon\" type=\"image/ico\" href=\"favicon.ico\" />
97 <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
98 <LINK id=\"bootstrap\" REL=\"stylesheet\" type=\"text/css\" href=\"css/bootstrap.min.css\" media=\"screen\"/>
99 <LINK id=\"fontello\" REL=\"stylesheet\" type=\"text/css\" href=\"css/font/fontello/css/fontello.css\" media=\"screen\"/>
100 <LINK id=\"pagestyle\" REL=\"stylesheet\" type=\"text/css\" href=\"css/".$style.
"?version=".
$version_noalyss.
"\" media=\"screen\"/>
101 <link rel=\"stylesheet\" type=\"text/css\" href=\"css/style-print.css?version=".
$version_noalyss.
"\" media=\"print\"/>";
104 echo
'<link rel="preload" href="./css/font/OpenSansRegular.woff" as="font" crossorigin="anonymous" />';
105 echo
'<link rel="preload" href="./css/font/SansationLight/SansationLight.woff" as="font" crossorigin="anonymous" />';
106 echo
'<link rel="preload" href="./css/font/fontello/fontello.woff" as="font" crossorigin="anonymous" />';
108 echo
'<script language="javascript" src="js/calendar.js"></script>
109 <script type="text/javascript" src="js/lang/calendar-en.js"></script>';
111 if (isset($_SESSION[SESSION_KEY.
'g_lang'])&&$_SESSION[SESSION_KEY.
'g_lang']==
'fr_FR.utf8')
113 echo
'<script type="text/javascript" src="js/lang/calendar-fr.js"></script>';
115 elseif (isset($_SESSION[SESSION_KEY.
'g_lang'])&&$_SESSION[SESSION_KEY.
'g_lang']==
'nl_NL.utf8')
117 echo
'<script type="text/javascript" src="js/lang/calendar-nl.js"></script>';
121 <script language="javascript" src="js/calendar-setup.js"></script>
122 <LINK REL="stylesheet" type="text/css" href="css/calendar-blue.css" media="screen">
125 if (isset($_SESSION[SESSION_KEY.
'g_lang']))
134 echo
'<div id="info_div"></div>';
135 echo
'<div id="error_div">'.
137 '<div id="error_content_div">'.
139 '<p style="text-align:center">'.
141 '$(\'error_div\').style.visibility=\'hidden\';$(\'error_content_div\').innerHTML=\'\';').
154 echo __CLASS__.
"→".__FUNCTION__;
157 $user=new \Noalyss_user(
$cn);
159 $aModule=
$cn->get_array(
"select *
160 from profile_mobile pm
161 join menu_ref mr on (pm.me_code=mr.me_code)
162 where p_id=$1 order by pmo_order", [$user->get_profile()]);
163 require_once NOALYSS_TEMPLATE.
"/mobile-display_menu.php";
176 $aModule=$this->load_module($p_access_code);
177 if ( empty($aModule)) {
181 if ( $aModule[
'pmo_default'] == 1) {
187 if ($aModule[
'me_file']!=
"")
189 if ($aModule[
'me_parameter']!==
"")
197 echo $aModule[
'me_file'],
" param : ", $aModule[
'me_parameter'];
204 $file_loginput=fopen($_ENV[
'TMP'].
'/scenario-'.$_SERVER[
'REQUEST_TIME'].
'.php',
'a+');
205 fwrite($file_loginput,
"include '".$aModule[
'me_file'].
"';");
206 fwrite($file_loginput,
"\n");
207 fclose($file_loginput);
211 if ($aModule[
'me_type']!=
'PL')
213 if (file_exists($aModule[
'me_file']))
215 require_once $aModule[
'me_file'];
217 elseif (file_exists(NOALYSS_INCLUDE.
'/'.$aModule[
'me_file']))
219 require_once NOALYSS_INCLUDE.
'/'.$aModule[
'me_file'];
228 require
'extension_get.inc.php';
233 elseif ($aModule[
'me_javascript']!=
'')
compute_variable($p_string)
the string has the format a=b&c=d, it is parsed and an array[][key,value] is returned
put_global($array)
Put in superglobal (get,post,request) the value contained in the parameter field (me_parameter)
echo_warning($p_string)
warns
noalyss_str_replace($search, $replace, $string)
set_language()
set the lang thanks the _SESSION['g_lang'] var.
global $g_user
if no group available , then stop
static id()
return the 'gDossier' value after a check
Main class for Mobile device.
load_module($p_access_code)
Load a module with all its data from database thanks the access_code @global \Noalyss\type $g_user.
display_menu()
Display the menu available for this folder.
execute_menu($p_access_code)
execute the menu @global type $g_user @staticvar int $level
page_start()
HTML Page @staticvar int $already_call.
for($e=0; $e< count($afiche); $e++) exit
load_all_script()
load all the javascript only one time
create_script($p_string)
create the HTML for adding the script tags around of the script
if( $delta< 0) elseif( $delta==0)