noalyss
Version-9
include
template
mobile-display_menu.php
Go to the documentation of this file.
1
<?php
2
/*
3
* This file is part of NOALYSS.
4
*
5
* PhpCompta is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* PhpCompta is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with PhpCompta; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*/
19
// Copyright (2002-2021) Author Dany De Bontridder <danydb@noalyss.eu>
20
21
if
(!defined(
'ALLOWED'
))
22
die(
'Appel direct ne sont pas permis'
);
23
24
/**
25
* @file
26
* @brief show the mobile menu
27
*/
28
\Noalyss\Dbg::echo_file
(__FILE__);
29
?>
30
<img src=
"<?=NOALYSS_URL?>/image/logo9000.png"
width
=
"100%"
style
=
"position:absolute;top:0px;left:0px;z-index:-1;opacity: 11%"
>
31
<div
id
=
"mobile_module"
>
32
<
h1
>NOALYSS</
h1
>
33
<ul
class
=
"nav nav-pills nav-fill flex-column "
>
34
<?php
35
foreach
($aModule as
$row
):
36
$js
=
""
;
37
$style
=
""
;
38
39
$style
=
"nav-item-module"
;
40
if
(
$row
[
'me_code'
]==
'new_line'
)
41
{
42
continue
;
43
}
44
if
(
$row
[
'me_url'
]!=
''
)
45
{
46
$url
=
$row
[
'me_url'
];
47
}
48
elseif
(
$row
[
'me_javascript'
]!=
''
)
49
{
50
$url
=
"javascript:void(0)"
;
51
$js_dossier=
noalyss_str_replace
(
'<DOSSIER>'
,
Dossier::id
(),
$row
[
'me_javascript'
]);
52
$js
=sprintf(
' onclick="%s"'
, $js_dossier);
53
}
54
else
55
{
56
$url
=
"mobile.php?gDossier="
.Dossier::id().
"&ac="
.
$row
[
'me_code'
];
57
}
58
?>
59
<li
class
=
"<?php echo $style ?>"
>
60
<a
class
=
"nav-link border-1 border-dark rounded-2"
href=
"<?php echo $url ?>"
title
=
"<?php echo _($row['me_description']) ?>"
<?php echo
$js
?> ><?php echo gettext(
$row
[
'me_menu'
]) ?></a>
61
</li>
62
<?php
63
endforeach
;
64
?>
65
</ul>
66
</div>
h1
h1($p_string, $p_class="")
Definition:
ac_common.php:72
noalyss_str_replace
noalyss_str_replace($search, $replace, $string)
Definition:
ac_common.php:1553
endforeach
if(isset($tot['tva'][$a]))($tot['tva'][$a])?></td ><?php else endforeach
Definition:
acc_ledger_history_purchase_detail.php:183
$row
$row
Definition:
ajax_anc_detail_operation.php:33
$url
$url
Definition:
ajax_bookmark.php:66
style
$opd_description style
Definition:
ajax_mod_predf_op.php:52
$js
$js
Definition:
ajax_tag_list.php:32
Dossier\id
static id()
return the 'gDossier' value after a check
Definition:
dossier.class.php:61
Noalyss\Dbg\echo_file
static echo_file($msg, $print=true)
display the file
Definition:
dbg.php:88
title
$anc_filter title
Definition:
company.inc.php:119
elseif
if( $delta< 0) elseif( $delta==0)
Definition:
letter_prop.php:166
$style
foreach($aModule as $row) $style
Definition:
mobile-display_menu.php:37
width
$desc width
Definition:
restore.inc.php:236