$current[$menu] = ' > ' . $system->modules['menu'][$menu]['title']; } } } } foreach ($skin['menu_point'] as $column => $text) { if (!isset($current['/' . $column])) { $unused['/' . $column] = __('Column') . ': ' . $text; } } foreach ($system->modules['menu'] as $menu => $data) { if (!rcms_in_array_recursive(' > ' . $data['title'], $current)) { $unused[$menu] = ' > ' . $data['title']; } } $ucms = ucm_list(); foreach ($ucms as $menu => $data) { if (!rcms_in_array_recursive(' > ucm:' . $menu, $current)) { $unused['ucm:' . $menu] = ' > ucm:' . $menu; } } ?> <script language="javascript" src="<?php echo ADMIN_PATH; ?> slmv.js"></script> <form name="form1" onsubmit="on_submit_prepare(document.form1.elements['menus[]'])" action="" method="POST"> <input type="hidden" name="save" value="1"> <table cellpadding="2" cellspacing="1" border="0" align="center" width="100%"> <tr> <td valign="top" align="center" class='row1' width="45%">
$frm->addmessage('<<< <a href="' . RCMS_ROOT_PATH . '">' . __('Return to') . ' ' . __('site index') . '</a>'); } else { $frm->addmessage('<a href=""><<< ' . __('Back') . '</a>'); } $frm->addbreak(__('Menu editing')); $frm->hidden('edit', $_REQUEST['edit']); $frm->hidden('save', '1'); if (empty($_GET['edit'])) { $frm->addrow('<abbr title="' . __('Use only small Latin letters and digits') . '">' . __('MenuID') . '</abbr>', $frm->text_box('id', $_REQUEST['edit'])); } else { $frm->addrow('<abbr title="' . __('Use only small Latin letters and digits') . '">' . __('MenuID') . '</abbr>', $_REQUEST['edit'] . $frm->hidden('id', $_REQUEST['edit'])); } $frm->addrow(__('Title'), $frm->text_box('title', $menu[0])); $frm->addrow(__('Alignment'), $frm->select_tag('align', array('center' => __('Center'), 'left' => __('Left'), 'right' => __('Right'), 'justify' => __('Justify')), $menu[2])); $frm->addrow(__('Text') . tinymce_selector('text') . '<br/>' . __('All HTML is allowed in this field and line breaks will not be transformed to <br> tags!'), $frm->textarea('text', $menu[1], 70, 25), 'top'); $frm->show(); } else { rcms_showAdminMessage(__('Cannot open menu for editing')); } } else { $frm = new InputForm('', 'post', __('Create menu')); $frm->hidden('new', '1'); $frm->show(); $frm = new InputForm('', 'post', __('Submit'), __('Reset')); $frm->addbreak(__('User-Created-Menus')); $menus = ucm_list(); foreach ($menus as $id => $menu) { $frm->addrow(__('Menu module') . ': "ucm:' . $id . '", ' . __('Title') . ': ' . $menu[0], $frm->checkbox('delete[' . $id . ']', '1', __('Delete')) . ' ' . $frm->radio_button('edit', array($id => __('Edit')))); } $frm->show(); }