29if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
32if (
$g_user->check_module(
'CFGPRO') == 0 ) die();
34require_once NOALYSS_INCLUDE.
'/database/profile_sql.class.php';
42$a_tab=array(
'profile_gen_div'=>
'tabs',
'profile_menu_div'=>
'tabs',
'profile_print_div'=>
'tabs',
'profile_gestion_div'=>
'tabs',
'profile_repo_div'=>
'tabs',
"profile_menu_mobile_div"=>
"tabs");
47 echo
HtmlInput::anchor(
"❮"._(
'Retour'),
"",
" onclick = \" $('detail_profile').hide();$('list_profile').show(); \" ",
'class="line"');
52 <li
class=
"<?php echo $a_tab['profile_gen_div']?>"><a href=
"javascript:void(0)" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_gen_div')"><?php echo _(
'Nom')?></a></li>
53 <li
class=
"<?php echo $a_tab['profile_menu_div']?>"><a href=
"javascript:void(0)" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_menu_div')"><?php echo _(
'Détail Menus')?></a></li>
54 <li
class=
"<?php echo $a_tab['profile_menu_mobile_div']?>"><a href=
"javascript:void(0)" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_menu_mobile_div')"><?php echo _(
'Menu SmartPhone')?></a></li>
55 <li
class=
"<?php echo $a_tab['profile_print_div']?>"><a href=
"javascript:void(0)" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_print_div')"><?php echo _(
'Détail Impressions')?></a></li>
56 <li
class=
"<?php echo $a_tab['profile_gestion_div']?>"><a href=
"javascript:void(0)" style=
"" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_gestion_div')"><?php echo _(
'Groupe Gestion')?> </a></li>
57 <li
class=
"<?php echo $a_tab['profile_repo_div']?>"><a href=
"javascript:void(0)" onclick=
"unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_repo_div')"><?php echo _(
'Dépôts')?></a>
60<div
style=
"clear: both"></div>
80 echo
'<div style="display:none" id="profile_gen_div">';
84 echo
'<div class="myfieldset" id="profile_gen_div">';
86echo
'<form method="POST" id="profile_save_name_frm" onsubmit="return confirm_box(this,\'vous confirmez\')">';
90require_once NOALYSS_TEMPLATE.
"/profile.php";
95 echo
'<form method="POST" id="profile_clone_frm" onsubmit="return confirm_box(this,\''._(
"vous confirmez").
'\')
">';
97 echo _('Vous pouvez aussi copier ce profil et puis le corriger');
99 echo HtmlInput::hidden('p_id', $profile->p_id);
100 echo HtmlInput::hidden('clone', 1);
101 echo HtmlInput::submit("clonebt
", "Copier
");
104 echo '<form method="POST
" id="delete_profile_frm
" onsubmit="return confirm_box(
this,\
''._(
"vous confirmez").
'\')
">';
106 echo _('Effacer ce profil');
108 echo HtmlInput::hidden('p_id', $profile->p_id);
109 echo HtmlInput::hidden('delete_profil', 1);
110 echo HtmlInput::submit("delete_profil
", _("Effacer ce profil
"));
113 echo '<div class="myfieldset
" style="display:none
" id="profile_menu_div
">';
114 //Menu / Module /plugin in this profile
115 $profile_menu = new Profile_Menu($cn);
116 $profile_menu->p_id=$p_id;
117 $profile_menu->display_profile_menu_detail();
121 echo '<div class="myfieldset
" style="display:none
" id="profile_menu_mobile_div
">';
122 $profile_menu->mobile_device();
125 echo '<div class="myfieldset
" style="display:none
" id="profile_print_div
">';
126 echo "<
h1 class=\
"legend\">"._(
"Impression").
"</h1>";
127 $profile_menu->printing();
130 echo
'<div class="myfieldset" style="display:none" id="profile_gestion_div">';
132 $profile_menu->available_profile();
134 echo
'<div class="myfieldset" style="display:none" id="profile_repo_div">';
135 echo
"<h1 class=\"legend\">"._(
"Dépôt de stock accessible").
"</h1>";
136 $profile_menu->available_repository();
h1($p_string, $p_class="")
global $g_user
if no group available , then stop
</ul >< div style="clear: both"></div > endif
static id()
return the 'gDossier' value after a check
Manage the table public.profile.
create_script($p_string)
create the HTML for adding the script tags around of the script