Project

General

Profile

« Previous | Next » 

Revision 1831

Added by Dietmar almost 12 years ago

  1. fixed dragdrop for pages overview

View differences:

tool.php
3 3
 *
4 4
 * @category        modules
5 5
 * @package         JsAdmin
6
 * @author          WebsiteBaker Project, modified by Swen Uth for Website Baker 2.7
7
 * @copyright       2009-2011, Website Baker Org. e.V.
6
 * @author          Ryan Djurovich (2004-2009), WebsiteBaker Project
7
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
8 8
 * @link			http://www.websitebaker2.org/
9 9
 * @license         http://www.gnu.org/licenses/gpl.html
10 10
 * @platform        WebsiteBaker 2.8.x
......
15 15
 *
16 16
*/
17 17

  
18
// prevent this file from being accessed directly
19 18
/* -------------------------------------------------------- */
20
if(defined('WB_PATH') == false)
21
{
22
	// Stop this file being access directly
23
	die('<head><title>Access denied</title></head><body><h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2></body></html>');
19
// Must include code to stop this file being accessed directly
20
if(!defined('WB_URL')) {
21
	require_once(dirname(dirname(dirname(__FILE__))).'/framework/globalExceptionHandler.php');
22
	throw new IllegalFileException();
24 23
}
25 24
/* -------------------------------------------------------- */
26 25

  
......
63 62
		$admin->print_error($database->get_error(), $js_back);
64 63
	} else {
65 64

  
66
		$admin->print_success($MESSAGE['PAGES']['SAVED'], ADMIN_URL.'/admintools/tool.php?tool=jsadmin');
65
		$admin->print_success($MESSAGE['PAGES_SAVED'], ADMIN_URL.'/admintools/tool.php?tool=jsadmin');
67 66
	}
68 67

  
69 68
} else {
......
101 100
<div  id="jsadmin_form"></div>
102 101
   <form name="store_settings" style="margin-top: 1em; display: true;" action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
103 102
	<?php echo $admin->getFTAN(); ?>
104
   <table class="jsadmin_drag_area" summary="" cellpadding="4" cellspacing="0" border="0">
103
   <table class="jsadmin_drag_area">
104
<tbody>
105 105
   <tr>
106 106
	     <td colspan="2"><?php echo $MOD_JSADMIN['TXT_HEADING_B']; ?>:</td>
107 107
   </tr>
108 108
   <tr>
109
	     <td width="20"><input type="checkbox" name="persist_order" id="persist_order" value="true" <?php echo $persist_order; ?>/></td>
109
	     <td style="width: 20px;"><input type="checkbox" name="persist_order" id="persist_order" value="true" <?php echo $persist_order; ?>/></td>
110 110
	     <td><label for="persist_order"><?php echo $MOD_JSADMIN['TXT_PERSIST_ORDER_B']; ?></label></td>
111 111
   </tr>
112 112
   <tr>
113
	     <td width="20"><input type="checkbox" name="ajax_order_pages" id="ajax_order_pages" value="true" <?php echo $ajax_order_pages; ?>/></td>
113
	     <td  style="width: 20px;"><input type="checkbox" name="ajax_order_pages" id="ajax_order_pages" value="true" <?php echo $ajax_order_pages; ?>/></td>
114 114
	     <td><label for="ajax_order_pages"><?php echo $MOD_JSADMIN['TXT_AJAX_ORDER_PAGES_B']; ?></label></td>
115 115
   </tr>
116 116
   <tr>
117
	     <td width="20"><input type="checkbox" name="ajax_order_sections" id="ajax_order_sections" value="true" <?php echo $ajax_order_sections; ?>/></td>
117
	     <td style="width: 20px;"><input type="checkbox" name="ajax_order_sections" id="ajax_order_sections" value="true" <?php echo $ajax_order_sections; ?>/></td>
118 118
	     <td><label for="ajax_order_sections"><?php echo $MOD_JSADMIN['TXT_AJAX_ORDER_SECTIONS_B']; ?></label></td>
119 119
   </tr>
120 120
   <tr>
121
	     <td>&nbsp;</td>
121
	     <td style="width: 20px;">&nbsp;</td>
122 122
	     <td>
123 123
		   <input type="submit" name="save_settings" value="<?php echo $TEXT['SAVE']; ?>" />
124 124
	    </td>
125 125
   </tr>
126
</tbody>
126 127
   </table>
127 128
   </form>
128 129
 <?php

Also available in: Unified diff