if (!strstr($info_group['locked'], 'information_title')) { ?> <tr> <td class="main"><?php echo ENTRY_TITLE . tep_draw_input_field('information_title[' . $languages[$j]['id'] . ']', $languages[$j]['id'] == $languages_id ? stripslashes($edit[information_title]) : tep_get_information_entry($information_id, $languages[$j]['id'], 'information_title'), 'size=40 maxlength=255'); ?> </td> </tr> <?php } // end if ?> <tr> <td class="main" width="100%"><?php echo tep_draw_textarea_field('information_description[' . $languages[$j]['id'] . ']', '100', '20', $languages[$j]['id'] == $languages_id ? stripslashes($edit[information_description]) : tep_get_information_entry($information_id, $languages[$j]['id'], 'information_description'), 'id="information_description' . $languages[$j]['id'] . '" class="ckeditor"'); ?> </td> </tr> </table> </div> <?php } // end for ?> </div> </td> </tr> <tr> <td colspan="2" align="right"><?php // Decide when to show the buttons (Determine or 'locked' is active)
break; case 'Visible': if ($_GET['visible'] == '0') { $vivod = DEACTIVATION_ID_INFORMATION; tep_db_query("update " . TABLE_INFORMATION . " set visible = '0' where information_id = '" . (int) $_GET['information_id'] . "'"); } else { $vivod = ACTIVATION_ID_INFORMATION; tep_db_query("update " . TABLE_INFORMATION . " set visible = '1' where information_id = '" . (int) $_GET['information_id'] . "'"); } $data = tep_get_information_list(); $title = "{$confirm} {$vivod} '" . (int) $_GET['information_id'] . "' " . SUCCED_INFORMATION . ""; include 'information_list.php'; break; case "Delete": if ($information_id = (int) $_GET['information_id']) { $delete = tep_get_information_entry($information_id); $data = tep_get_information_list(); $title = DELETE_CONFIRMATION_ID_INFORMATION . " {$information_id}"; echo '<tr class=pageHeading><td>' . $title . '</td></tr>'; echo '<tr class=dataTableHeadingRow><td align=left class=dataTableHeadingContent>' . ENTRY_TITLE . '</td></tr>'; echo '<tr><td class="dataTableContent" bgcolor="#DEE4E8" style="line-height: 18px;">' . $delete['information_title'] . '</td></tr>'; echo '<tr><td></td></tr><tr><td align=right>'; echo tep_draw_form('delete', FILENAME_INFORMATION_MANAGER, "information_action=DelSure&information_id=" . $delete['information_id']); echo tep_draw_hidden_field('information_id', $information_id); echo tep_draw_hidden_field('gID', $gID); echo tep_image_submit('button_delete.gif', IMAGE_DELETE); echo ' <a href="' . tep_href_link(FILENAME_INFORMATION_MANAGER, "gID={$gID}", 'NONSSL') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; echo "</form></td></tr>"; } else { $error = "80"; }