Skip to content
Snippets Groups Projects
Commit 117fc3ed authored by pbarroca's avatar pbarroca
Browse files

Correction précédente refacto + ajout menu suggestion d'achat

parent 7aec14e3
No related merge requests found
......@@ -63,7 +63,8 @@ class Class_Systeme_ModulesMenu extends Class_Systeme_ModulesAbstract {
"ABON_FORMATIONS" => ["libelle" => "Formations", "groupe" => "ABON", "phone" => false],
"FORM_CONTACT" => ["libelle" => "Formulaire de contact", "groupe" => "ABON", "phone" => false],
"VODECLIC" => ["libelle" => "Lien vers Vodeclic", "groupe" => "ABON", "phone" => false],
"RESERVER_POSTE" => ["libelle" => "Réserver un poste multimédia", "groupe" => "ABON", "phone" => false]
"RESERVER_POSTE" => ["libelle" => "Réserver un poste multimédia", "groupe" => "ABON", "phone" => false],
'SUGGESTION_ACHAT' => ['libelle' => 'Suggestion d\'achat', 'groupe' => 'ABON', 'phone' => false]
];
private $fonction_vide = ["action" => "index", "popup_width" => 550, "popup_height" => 215, "phone" => true];
......@@ -217,6 +218,9 @@ class Class_Systeme_ModulesMenu extends Class_Systeme_ModulesAbstract {
case "RESERVER_POSTE":
$url = BASE_URL . '/abonne/multimedia-hold-location';
break;
case 'SUGGESTION_ACHAT':
$url = BASE_URL . '/abonne/suggestion-achat';
break;
default: $url = BASE_URL;
break;
}
......
......@@ -49,7 +49,7 @@ class ZendAfi_View_Helper_Admin_BlocMenu extends ZendAfi_View_Helper_BaseHelper
$html.= '<td width="20px" align="center"><img src="'.URL_ADMIN_IMG.'ico/down.gif" onclick="descendreMenu(this)" style="cursor:pointer" title="Descendre" alt="Descendre" /></td>';
$html.= '</tr></table>';
$this->_writeChildrenOfMenuOnHtml($menu, $html);
$html .= $this->_childrenOfMenu($path_ico, $menu, $browser);
$html .= '</div>';
......@@ -57,22 +57,20 @@ class ZendAfi_View_Helper_Admin_BlocMenu extends ZendAfi_View_Helper_BaseHelper
}
protected function _writeChildrenOfMenuOnHtml($menu, $html) {
protected function _childrenOfMenu($path_ico, $menu, $browser) {
// Ajout bloc des sous-menus
$display = ($menu['type_menu'] == 'MENU') ? 'block' : 'none';
$html .= '<div id="sous_menu" class="formTable" style="margin-left:50px;border:1px solid #C8C8C8;padding:5px;margin-bottom:5px;margin-right:0px;border-right:none;display:' . $display . '">';
$html = '<div id="sous_menu" class="formTable" style="margin-left:50px;border:1px solid #C8C8C8;padding:5px;margin-bottom:5px;margin-right:0px;border-right:none;display:' . $display . '">';
$html .= '<div class="fonction_menu" onclick="addSousMenu(this);">&raquo;&nbsp;Ajouter un sous-menu</div>';
if (!array_isset('sous_menus', $menu)) {
$html .= '</div>';
return;
}
if (!array_isset('sous_menus', $menu))
return $html . '</div>';
foreach ($menu['sous_menus'] as $sous_menu )
foreach ($menu['sous_menus'] as $sous_menu)
$html .= $this->blocMenu($path_ico, 'module', $sous_menu, true, $browser);
$html .= '</div>';
return $html . '</div>';
}
}
?>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment