getAvailableLinks(); if (sizeof($linksArray)) { echo $HTML->boxTop(_('Manage available links')); $tabletop = array(_('URL'), _('Displayed Name'), _('Description'), _('Status'), _('Actions')); $classth = array('','','','','unsortable'); echo $HTML->listTableTop($tabletop, false, 'sortable_headermenu_listlinks', 'sortable', $classth); foreach ($linksArray as $link) { echo ''; echo ''.$link['url'].''; echo ''.$link['name'].''; echo ''.$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/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 $HTML->boxBottom(); echo '
'._('URL').'
'._('Displayed Name').'
'._('Description').'
'; echo ''; echo '
'; echo '
'; ?>