getAllAvailableLinks(); if (sizeof($linksArray)) { echo $HTML->boxTop(_('Manage available links')); $tabletop = array(_('Menu Location'), _('Menu Type'), _('Displayed Name'), _('Description'), _('Status'), _('Actions')); $classth = array('', '','','','','unsortable'); echo $HTML->listTableTop($tabletop, false, 'sortable_headermenu_listlinks', 'sortable', $classth); foreach ($linksArray as $link) { echo ''; echo ''.htmlspecialchars($link['linkmenu']).''; if (strlen($link['url']) > 0) { echo ''._('URL').' ('.htmlspecialchars($link['url']).')'; } else { echo ''._('static html code').''; } echo ''.htmlspecialchars($link['name']).''; echo ''.htmlspecialchars($link['description']).''; if ($link['is_enable']) { echo ''.html_image('docman/validate.png', 22, 22, array('alt'=>_('link is on'), 'class'=>'tabtitle', 'title'=>_('link is on'))).''; echo ''.html_image('docman/release-document.png', 22, 22, array('alt'=>_('Desactivate this link'))). ''; } else { echo ''.html_image('docman/delete-directory.png', 22, 22, array('alt'=>_('link is off'), 'class'=>'tabtitle', 'title'=>_('link is off'))).''; echo ''.html_image('docman/reserve-document.png', 22, 22, array('alt'=>_('Activate this link'))). ''; } echo ''.html_image('docman/edit-file.png',22,22, array('alt'=>_('Edit this link'))). ''; echo ''.html_image('docman/trash-empty.png',22,22, array('alt'=>_('Delete this link'))). ''; echo ''; echo ''; } echo $HTML->listTableBottom(); echo $HTML->boxBottom(); echo '
'; } echo '
'; echo ''; echo $HTML->boxTop(_('Add a new link')); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo $HTML->boxBottom(); echo '
'._('Displayed Name').'
'._('Description').'
'._('Menu Location').''; $vals = array('headermenu', 'outermenu'); $texts = array('headermenu', 'outermenu'); $select_name = 'linkmenu'; echo html_build_radio_buttons_from_arrays($vals, $texts, $select_name, 'headermenu', false); echo '
'._('Menu Type').''; $texts = array('URL', 'New Page'); $vals = array('url', 'htmlcode'); $select_name = 'typemenu'; echo html_build_radio_buttons_from_arrays($vals, $texts, $select_name, 'url', false); echo '
'._('URL').'
'; echo ''; echo '
'; echo '
';