Revision 1402
Added by Dietmar almost 14 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.2 ------------------------------------- |
14 |
21 Jan-2011 Build 1400 Frank Heyne (FrankH) |
|
14 |
22 Jan-2011 Build 1402 Dietmar Woellbrink (Luisehahne) |
|
15 |
! secure peparing and beginning fix admin/pages |
|
16 |
21 Jan-2011 Build 1401 Frank Heyne (FrankH) |
|
17 |
! fixed changelog |
|
18 |
#21 Jan-2011 Build 1400 Frank Heyne (FrankH) |
|
15 | 19 |
# Security fix in account |
16 | 20 |
# Security fix in admin/media, thanks to hal 9000 |
17 | 21 |
21 Jan-2011 Build 1399 Dietmar Woellbrink (Luisehahne) |
branches/2.8.x/wb/admin/pages/save.php | ||
---|---|---|
15 | 15 |
* @lastmodified $Date$ |
16 | 16 |
* |
17 | 17 |
*/ |
18 |
/* |
|
19 |
*/ |
|
20 |
// Create new admin object |
|
21 |
require('../../config.php'); |
|
22 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
23 |
$admin = new admin('Pages', 'pages_modify'); |
|
18 | 24 |
|
25 |
if (!$admin->checkFTAN()) |
|
26 |
{ |
|
27 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],'index.php'); |
|
28 |
exit(); |
|
29 |
} |
|
30 |
|
|
19 | 31 |
// Get page & section id |
20 | 32 |
if(!isset($_POST['page_id']) || !is_numeric($_POST['page_id'])) { |
21 | 33 |
header("Location: index.php"); |
... | ... | |
23 | 35 |
} else { |
24 | 36 |
$page_id = intval($_POST['page_id']); |
25 | 37 |
} |
38 |
|
|
26 | 39 |
if(!isset($_POST['section_id']) || !is_numeric($_POST['section_id'])) { |
27 | 40 |
header("Location: index.php"); |
28 | 41 |
exit(0); |
... | ... | |
30 | 43 |
$section_id = intval($_POST['section_id']); |
31 | 44 |
} |
32 | 45 |
|
33 |
// Create new admin object |
|
34 |
require('../../config.php'); |
|
35 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
36 |
$admin = new admin('Pages', 'pages_modify'); |
|
46 |
/* |
|
47 |
if( (!($page_id = $admin->checkIDKEY('page_id', 0, $_SERVER['REQUEST_METHOD']))) ) |
|
48 |
{ |
|
49 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
|
50 |
exit(); |
|
51 |
} |
|
37 | 52 |
|
38 |
if (!$admin->checkFTAN())
|
|
53 |
if( (!($section_id= $admin->checkIDKEY('section_id', 0, $_SERVER['REQUEST_METHOD']))) )
|
|
39 | 54 |
{ |
40 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],'index.php');
|
|
55 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
|
41 | 56 |
exit(); |
42 | 57 |
} |
58 |
*/ |
|
59 |
|
|
43 | 60 |
$js_back = "javascript: history.go(-1);"; |
44 | 61 |
|
45 | 62 |
// Get perms |
... | ... | |
96 | 113 |
{ |
97 | 114 |
$admin->print_error($database->get_error(), $js_back); |
98 | 115 |
} else { |
99 |
$admin->print_success($MESSAGE['PAGES']['SAVED'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id);
|
|
116 |
$admin->print_success($MESSAGE['PAGES']['SAVED'], ADMIN_URL.'/pages/modify.php?page_id='.$results_array['page_id'] );
|
|
100 | 117 |
} |
101 | 118 |
|
102 | 119 |
// Print admin footer |
branches/2.8.x/wb/admin/pages/settings.php | ||
---|---|---|
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 |
/* |
|
20 |
*/ |
|
21 |
// Create new admin object |
|
22 |
require('../../config.php'); |
|
23 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
24 |
$admin = new admin('Pages', 'pages_settings'); |
|
25 |
// Include the WB functions file |
|
26 |
require_once(WB_PATH.'/framework/functions-utf8.php'); |
|
27 |
|
|
19 | 28 |
// Get page id |
20 | 29 |
if(!isset($_GET['page_id']) || !is_numeric($_GET['page_id'])) |
21 | 30 |
{ |
... | ... | |
25 | 34 |
$page_id = $_GET['page_id']; |
26 | 35 |
} |
27 | 36 |
|
28 |
// Create new admin object |
|
29 |
require('../../config.php'); |
|
30 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
31 |
$admin = new admin('Pages', 'pages_settings'); |
|
37 |
/* |
|
38 |
if( (!($page_id = $admin->checkIDKEY('page_id', 0, $_SERVER['REQUEST_METHOD']))) ) |
|
39 |
{ |
|
40 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
|
41 |
exit(); |
|
42 |
} |
|
43 |
*/ |
|
32 | 44 |
|
33 |
// Include the WB functions file |
|
34 |
require_once(WB_PATH.'/framework/functions-utf8.php'); |
|
35 |
|
|
36 |
// Get perms |
|
37 |
/*$database = new database(); */ |
|
38 |
|
|
39 | 45 |
$sql = 'SELECT * FROM `'.TABLE_PREFIX.'pages` WHERE `page_id` = '.$page_id; |
40 | 46 |
$results = $database->query($sql); |
41 | 47 |
$results_array = $results->fetchRow(); |
... | ... | |
94 | 100 |
|
95 | 101 |
$template->set_var(array( |
96 | 102 |
'PAGE_ID' => $results_array['page_id'], |
103 |
// 'PAGE_IDKEY' => $admin->getIDKEY($results_array['page_id']), |
|
104 |
'PAGE_IDKEY' => $results_array['page_id'], |
|
97 | 105 |
'PAGE_TITLE' => ($results_array['page_title']), |
98 | 106 |
'MENU_TITLE' => ($results_array['menu_title']), |
99 | 107 |
'DESCRIPTION' => ($results_array['description']), |
branches/2.8.x/wb/admin/pages/delete.php | ||
---|---|---|
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 |
// Get page id |
|
20 |
if(!isset($_GET['page_id']) || !is_numeric($_GET['page_id'])) { |
|
21 |
header("Location: index.php"); |
|
22 |
exit(0); |
|
23 |
} else { |
|
24 |
$page_id = $_GET['page_id']; |
|
25 |
} |
|
26 | 19 |
|
27 | 20 |
// Create new admin object and print admin header |
28 | 21 |
require('../../config.php'); |
... | ... | |
31 | 24 |
|
32 | 25 |
// Include the WB functions file |
33 | 26 |
require_once(WB_PATH.'/framework/functions.php'); |
27 |
|
|
34 | 28 |
/* |
35 |
if (!$admin->checkIDKEY('page_id', 0, 'GET'))
|
|
29 |
if( (!($page_id = $admin->checkIDKEY('page_id', 0, $_SERVER['REQUEST_METHOD']))) )
|
|
36 | 30 |
{ |
37 | 31 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
38 | 32 |
exit(); |
39 | 33 |
} |
40 | 34 |
*/ |
35 |
|
|
36 |
// Get page id |
|
37 |
if(!isset($_GET['page_id']) || !is_numeric($_GET['page_id'])) { |
|
38 |
header("Location: index.php"); |
|
39 |
exit(0); |
|
40 |
} else { |
|
41 |
$page_id = $_GET['page_id']; |
|
42 |
} |
|
43 |
|
|
41 | 44 |
// Get perms |
42 | 45 |
if (!$admin->get_page_permission($page_id,'admin')) { |
43 | 46 |
$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']); |
branches/2.8.x/wb/admin/pages/sections_save.php | ||
---|---|---|
26 | 26 |
} |
27 | 27 |
|
28 | 28 |
require_once(WB_PATH."/include/jscalendar/jscalendar-functions.php"); |
29 |
/**/ |
|
30 |
// Create new admin object |
|
31 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
32 |
$admin = new admin('Pages', 'pages_modify'); |
|
29 | 33 |
|
34 |
if (!$admin->checkFTAN()) |
|
35 |
{ |
|
36 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],'index.php'); |
|
37 |
exit(); |
|
38 |
} |
|
39 |
|
|
30 | 40 |
// Get page id |
31 | 41 |
if(!isset($_GET['page_id']) || !is_numeric($_GET['page_id'])) { |
32 | 42 |
header("Location: index.php"); |
... | ... | |
34 | 44 |
} else { |
35 | 45 |
$page_id = $_GET['page_id']; |
36 | 46 |
} |
37 |
|
|
38 |
// Create new admin object |
|
39 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
40 |
$admin = new admin('Pages', 'pages_modify'); |
|
41 |
|
|
42 |
if (!$admin->checkFTAN()) |
|
47 |
/* |
|
48 |
if( (!($page_id = $admin->checkIDKEY('page_id', 0, $_SERVER['REQUEST_METHOD']))) ) |
|
43 | 49 |
{ |
44 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],'index.php');
|
|
50 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
|
45 | 51 |
exit(); |
46 | 52 |
} |
47 |
|
|
53 |
*/ |
|
48 | 54 |
// Get perms |
49 | 55 |
// $database = new database(); |
50 | 56 |
$results = $database->query("SELECT admin_groups,admin_users FROM ".TABLE_PREFIX."pages WHERE page_id = '$page_id'"); |
... | ... | |
117 | 123 |
} |
118 | 124 |
// Check for error or print success message |
119 | 125 |
if($database->is_error()) { |
120 |
$admin->print_error($database->get_error(), ADMIN_URL.'/pages/sections.php?page_id='.$page_id); |
|
126 |
$admin->print_error($database->get_error(), ADMIN_URL.'/pages/sections.php?page_id='.$page_id );
|
|
121 | 127 |
} else { |
122 |
$admin->print_success($MESSAGE['PAGES']['SECTIONS_PROPERTIES_SAVED'], ADMIN_URL.'/pages/sections.php?page_id='.$page_id); |
|
128 |
$admin->print_success($MESSAGE['PAGES']['SECTIONS_PROPERTIES_SAVED'], ADMIN_URL.'/pages/sections.php?page_id='.$page_id );
|
|
123 | 129 |
} |
124 | 130 |
|
125 | 131 |
// Print admin footer |
branches/2.8.x/wb/admin/pages/index.php | ||
---|---|---|
19 | 19 |
require('../../config.php'); |
20 | 20 |
require_once(WB_PATH.'/framework/class.admin.php'); |
21 | 21 |
$admin = new admin('Pages', 'pages'); |
22 |
|
|
23 |
$admin->clearIDKEY(); |
|
24 |
|
|
22 | 25 |
// Include the WB functions file |
23 | 26 |
require_once(WB_PATH.'/framework/functions.php'); |
24 | 27 |
// eggsurplus: add child pages for a specific page |
... | ... | |
66 | 69 |
|
67 | 70 |
print set_node ($parent,$par); |
68 | 71 |
|
69 |
// $database = new database(); |
|
70 |
|
|
71 | 72 |
// Get page list from database |
72 | 73 |
$sql = 'SELECT * FROM `'.TABLE_PREFIX.'pages` WHERE `parent` = '.$parent.' '; |
73 | 74 |
$sql .= (PAGE_TRASH != 'inline') ? 'AND `visibility` != \'deleted\' ' : ' '; |
... | ... | |
156 | 157 |
</td> |
157 | 158 |
<?php if($admin->get_permission('pages_modify') == true && $can_modify == true) { ?> |
158 | 159 |
<td class="list_menu_title"> |
159 |
<a href="<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>"> |
|
160 |
<a href="<?php echo ADMIN_URL; ?>/pages/modify.php?page_id=<?php echo /*$admin->getIDKEY($page['page_id'])*/ $page['page_id']; ?>" title="<?php echo $TEXT['MODIFY']; ?>">
|
|
160 | 161 |
<?php if($page['visibility'] == 'public') { ?> |
161 | 162 |
<img src="<?php echo THEME_URL; ?>/images/visible_16.png" alt="<?php echo $TEXT['VISIBILITY']; ?>: <?php echo $TEXT['PUBLIC']; ?>" class="page_list_rights" /> |
162 | 163 |
<?php } elseif($page['visibility'] == 'private') { ?> |
... | ... | |
208 | 209 |
<td class="list_actions"> |
209 | 210 |
<?php if($page['visibility'] != 'deleted') { ?> |
210 | 211 |
<?php if($admin->get_permission('pages_settings') == true && $can_modify == true) { ?> |
211 |
<a href="<?php echo ADMIN_URL; ?>/pages/settings.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $TEXT['SETTINGS']; ?>"> |
|
212 |
<a href="<?php echo ADMIN_URL; ?>/pages/settings.php?page_id=<?php echo /*$admin->getIDKEY($page['page_id'])*/ $page['page_id']; ?>" title="<?php echo $TEXT['SETTINGS']; ?>">
|
|
212 | 213 |
<img src="<?php echo THEME_URL; ?>/images/modify_16.png" alt="<?php echo $TEXT['SETTINGS']; ?>" /> |
213 | 214 |
</a> |
214 | 215 |
<?php } ?> |
215 | 216 |
<?php } else { ?> |
216 |
<a href="<?php echo ADMIN_URL; ?>/pages/restore.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $TEXT['RESTORE']; ?>"> |
|
217 |
<a href="<?php echo ADMIN_URL; ?>/pages/restore.php?page_id=<?php echo /*$admin->getIDKEY($page['page_id'])*/ $page['page_id']; ?>" title="<?php echo $TEXT['RESTORE']; ?>">
|
|
217 | 218 |
<img src="<?php echo THEME_URL; ?>/images/restore_16.png" alt="<?php echo $TEXT['RESTORE']; ?>" /> |
218 | 219 |
</a> |
219 | 220 |
<?php } ?> |
... | ... | |
224 | 225 |
// Work-out if we should show the "manage dates" link |
225 | 226 |
if(MANAGE_SECTIONS == 'enabled' && $admin->get_permission('pages_modify')==true && $can_modify==true) |
226 | 227 |
{ |
227 |
|
|
228 | 228 |
$sql = 'SELECT `publ_start`, `publ_end` FROM `'.TABLE_PREFIX.'sections` '; |
229 | 229 |
$sql .= 'WHERE `page_id` = '.$page['page_id'].' AND `module` != \'menu_link\' '; |
230 | 230 |
$query_sections = $database->query($sql); |
... | ... | |
246 | 246 |
{ |
247 | 247 |
$file=$admin->page_is_active($page)?"clock_16.png":"clock_red_16.png"; |
248 | 248 |
?> |
249 |
<a href="<?php echo ADMIN_URL; ?>/pages/sections.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $HEADING['MANAGE_SECTIONS']; ?>"> |
|
249 |
<a href="<?php echo ADMIN_URL; ?>/pages/sections.php?page_id=<?php echo /*$admin->getIDKEY($page['page_id'])*/ $page['page_id']; ?>" title="<?php echo $HEADING['MANAGE_SECTIONS']; ?>">
|
|
250 | 250 |
<img src="<?php echo THEME_URL."/images/$file"; ?>" alt="<?php echo $HEADING['MANAGE_SECTIONS']; ?>" /> |
251 | 251 |
</a> |
252 | 252 |
<?php } else { ?> |
253 |
<a href="<?php echo ADMIN_URL; ?>/pages/sections.php?page_id=<?php echo $page['page_id']; ?>" title="<?php echo $HEADING['MANAGE_SECTIONS']; ?>"> |
|
253 |
<a href="<?php echo ADMIN_URL; ?>/pages/sections.php?page_id=<?php echo /*$admin->getIDKEY($page['page_id'])*/ $page['page_id']; ?>" title="<?php echo $HEADING['MANAGE_SECTIONS']; ?>">
|
|
254 | 254 |
<img src="<?php echo THEME_URL; ?>/images/noclock_16.png" alt="<?php echo $HEADING['MANAGE_SECTIONS']; ?>" /></a> |
255 | 255 |
<?php } ?> |
256 | 256 |
<?php } ?> |
... | ... | |
279 | 279 |
<?php } ?> |
280 | 280 |
</td> |
281 | 281 |
<td class="list_actions"> |
282 |
<?php if($admin->get_permission('pages_delete') == true && $can_modify == true) { ?> |
|
283 |
<a href="javascript:confirm_link('<?php echo $MESSAGE['PAGES_DELETE_CONFIRM']; ?>?','<?php echo ADMIN_URL; ?>/pages/delete.php?page_id=<?php echo $page['page_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>"> |
|
282 |
<?php if($admin->get_permission('pages_delete') == true && $can_modify == true) { // add IdKey ?>
|
|
283 |
<a href="javascript:confirm_link('<?php echo $MESSAGE['PAGES_DELETE_CONFIRM']; ?>?','<?php echo ADMIN_URL; ?>/pages/delete.php?page_id=<?php echo /*$admin->getIDKEY($page['page_id'])*/ $page['page_id']; ?>');" title="<?php echo $TEXT['DELETE']; ?>">
|
|
284 | 284 |
<img src="<?php echo THEME_URL; ?>/images/delete_16.png" alt="<?php echo $TEXT['DELETE']; ?>" /> |
285 | 285 |
</a> |
286 | 286 |
<?php } ?> |
... | ... | |
350 | 350 |
// Work-out if we should check for existing page_code |
351 | 351 |
$field_sql = $database->query("DESCRIBE ".TABLE_PREFIX."pages page_code"); |
352 | 352 |
$field_set = $field_sql->numRows(); |
353 |
|
|
354 | 353 |
$par = array(); |
355 | 354 |
$par['num_subs'] = 1; |
356 | 355 |
$editable_pages = make_list(0, 0); |
... | ... | |
358 | 357 |
$editable_pages = 0; |
359 | 358 |
} |
360 | 359 |
?></div><?php |
360 |
|
|
361 | 361 |
if(intval($editable_pages) == 0 ) { |
362 | 362 |
?> |
363 | 363 |
<div class="empty_list"> |
branches/2.8.x/wb/admin/pages/settings2.php | ||
---|---|---|
15 | 15 |
* @lastmodified $Date$ |
16 | 16 |
* |
17 | 17 |
*/ |
18 |
/* */ |
|
18 | 19 |
|
20 |
// Create new admin object and print admin header |
|
21 |
require('../../config.php'); |
|
22 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
23 |
$admin = new admin('Pages', 'pages_settings'); |
|
24 |
|
|
25 |
if (!$admin->checkFTAN()) |
|
26 |
{ |
|
27 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],'index.php'); |
|
28 |
exit(); |
|
29 |
} |
|
30 |
|
|
19 | 31 |
// Get page id |
20 | 32 |
if(!isset($_POST['page_id']) || !is_numeric($_POST['page_id'])) |
21 | 33 |
{ |
... | ... | |
25 | 37 |
$page_id = $_POST['page_id']; |
26 | 38 |
} |
27 | 39 |
|
28 |
// Create new admin object and print admin header |
|
29 |
require('../../config.php'); |
|
30 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
31 |
$admin = new admin('Pages', 'pages_settings'); |
|
32 |
|
|
33 |
if (!$admin->checkFTAN()) |
|
40 |
/* |
|
41 |
if( (!($page_id = $admin->checkIDKEY('page_id', 0, $_SERVER['REQUEST_METHOD']))) ) |
|
34 | 42 |
{ |
35 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],'index.php');
|
|
43 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
|
36 | 44 |
exit(); |
37 | 45 |
} |
46 |
*/ |
|
38 | 47 |
|
39 | 48 |
// Include the WB functions file |
40 | 49 |
require_once(WB_PATH.'/framework/functions.php'); |
branches/2.8.x/wb/admin/pages/modify.php | ||
---|---|---|
15 | 15 |
* @lastmodified $Date$ |
16 | 16 |
* |
17 | 17 |
*/ |
18 |
/* |
|
19 |
*/ |
|
20 |
// Create new admin object |
|
21 |
require('../../config.php'); |
|
22 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
18 | 23 |
|
24 |
$admin = new admin('Pages', 'pages_modify'); |
|
25 |
|
|
19 | 26 |
// Get page id |
20 | 27 |
if(!isset($_GET['page_id']) || !is_numeric($_GET['page_id'])) { |
21 | 28 |
header("Location: index.php"); |
... | ... | |
24 | 31 |
$page_id = $_GET['page_id']; |
25 | 32 |
} |
26 | 33 |
|
27 |
// Create new admin object |
|
28 |
require('../../config.php'); |
|
29 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
34 |
/* |
|
35 |
if( (!($page_id = $admin->checkIDKEY('page_id', 0, $_SERVER['REQUEST_METHOD']))) ) |
|
36 |
{ |
|
37 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
|
38 |
exit(); |
|
39 |
} |
|
40 |
*/ |
|
30 | 41 |
|
31 |
$admin = new admin('Pages', 'pages_modify'); |
|
32 |
|
|
33 | 42 |
// Get perms |
34 | 43 |
if(!$admin->get_page_permission($page_id,'admin')) { |
35 | 44 |
$admin->print_error($MESSAGE['PAGES']['INSUFFICIENT_PERMISSIONS']); |
... | ... | |
57 | 66 |
|
58 | 67 |
$template->set_var(array( |
59 | 68 |
'PAGE_ID' => $results_array['page_id'], |
69 |
// 'PAGE_IDKEY' => $admin->getIDKEY($results_array['page_id']), |
|
70 |
'PAGE_IDKEY' => $results_array['page_id'], |
|
60 | 71 |
'PAGE_TITLE' => ($results_array['page_title']), |
61 | 72 |
'MENU_TITLE' => ($results_array['menu_title']), |
62 |
'FTAN' => 'FTAN', |
|
63 | 73 |
'ADMIN_URL' => ADMIN_URL, |
64 | 74 |
'WB_URL' => WB_URL, |
65 | 75 |
'WB_PATH' => WB_PATH, |
branches/2.8.x/wb/admin/pages/sections.php | ||
---|---|---|
25 | 25 |
header('Location: '.ADMIN_URL.'/pages/index.php'); |
26 | 26 |
exit(0); |
27 | 27 |
} |
28 |
/* */ |
|
29 |
$debug = false; // to show position and section_id |
|
30 |
If(!defined('DEBUG')) { define('DEBUG',$debug);} |
|
31 |
// Create new admin object |
|
32 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
33 |
$admin = new admin('Pages', 'pages_modify'); |
|
28 | 34 |
|
29 | 35 |
// Get page id |
30 | 36 |
if(!isset($_GET['page_id']) || !is_numeric($_GET['page_id'])) |
... | ... | |
35 | 41 |
$page_id = $_GET['page_id']; |
36 | 42 |
} |
37 | 43 |
|
38 |
$debug = false; // to show position and section_id |
|
39 |
If(!defined('DEBUG')) { define('DEBUG',$debug);} |
|
40 |
// Create new admin object |
|
41 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
42 |
$admin = new admin('Pages', 'pages_modify'); |
|
44 |
/* |
|
45 |
if( (!($page_id = $admin->checkIDKEY('page_id', 0, $_SERVER['REQUEST_METHOD']))) ) |
|
46 |
{ |
|
47 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']); |
|
48 |
exit(); |
|
49 |
} |
|
50 |
*/ |
|
43 | 51 |
|
44 | 52 |
// Check if we are supposed to add or delete a section |
45 | 53 |
if(isset($_GET['section_id']) && is_numeric($_GET['section_id'])) |
... | ... | |
71 | 79 |
require(WB_PATH.'/framework/class.order.php'); |
72 | 80 |
$order = new order(TABLE_PREFIX.'sections', 'position', 'section_id', 'page_id'); |
73 | 81 |
$order->clean($page_id); |
74 |
$admin->print_success($TEXT['SUCCESS'], ADMIN_URL.'/pages/sections.php?page_id='.$page_id);
|
|
82 |
$admin->print_success($TEXT['SUCCESS'], ADMIN_URL.'/pages/sections.php?page_id='.$admin->getIDKEY($page_id));
|
|
75 | 83 |
$admin->print_footer(); |
76 | 84 |
exit(); |
77 | 85 |
} |
... | ... | |
181 | 189 |
// set first defaults and messages |
182 | 190 |
$template->set_var(array( |
183 | 191 |
'PAGE_ID' => $results_array['page_id'], |
192 |
// 'PAGE_IDKEY' => $admin->getIDKEY($results_array['page_id']), |
|
193 |
'PAGE_IDKEY' => $results_array['page_id'], |
|
184 | 194 |
'TEXT_PAGE' => $TEXT['PAGE'], |
185 | 195 |
'PAGE_TITLE' => ($results_array['page_title']), |
186 | 196 |
'MENU_TITLE' => ($results_array['menu_title']), |
... | ... | |
203 | 213 |
|
204 | 214 |
// Insert variables |
205 | 215 |
$template->set_var(array( |
206 |
'VAR_PAGE_ID' => $results_array['page_id'], |
|
216 |
'PAGE_ID' => $results_array['page_id'], |
|
217 |
// 'PAGE_IDKEY' => $admin->getIDKEY($results_array['page_id']), |
|
218 |
'PAGE_IDKEY' => $results_array['page_id'], |
|
207 | 219 |
'VAR_PAGE_TITLE' => $results_array['page_title'], |
208 |
'SETTINGS_LINK' => ADMIN_URL.'/pages/settings.php?page_id='.$results_array['page_id'], |
|
209 |
'MODIFY_LINK' => ADMIN_URL.'/pages/modify.php?page_id='.$results_array['page_id'] |
|
210 |
)
|
|
220 |
'SETTINGS_LINK' => ADMIN_URL.'/pages/settings.php?page_id='./*$admin->getIDKEY()*/$results_array['page_id'],
|
|
221 |
'MODIFY_LINK' => ADMIN_URL.'/pages/modify.php?page_id='./*$admin->getIDKEY()*/$results_array['page_id']
|
|
222 |
) |
|
211 | 223 |
); |
212 | 224 |
|
213 | 225 |
$sql = 'SELECT `section_id`,`module`,`position`,`block`,`publ_start`,`publ_end` '; |
... | ... | |
233 | 245 |
{ |
234 | 246 |
$edit_page = ''; |
235 | 247 |
} |
236 |
$edit_page_0 = '<a id="sid'.$section['section_id'].'" href="'.ADMIN_URL.'/pages/modify.php?page_id='.$page_id;
|
|
248 |
$edit_page_0 = '<a id="sid'.$section['section_id'].'" href="'.ADMIN_URL.'/pages/modify.php?page_id='./*$admin->getIDKEY()*/$results_array['page_id'];
|
|
237 | 249 |
$edit_page_1 = $section['section_id'].'">'.$section['module'].'</a>'; |
238 | 250 |
if(SECTION_BLOCKS) |
239 | 251 |
{ |
... | ... | |
252 | 264 |
'NAME_SIZE' => 300, |
253 | 265 |
'INPUT_ATTRIBUTE' => $input_attribute, |
254 | 266 |
'VAR_SECTION_ID' => $section['section_id'], |
267 |
// 'VAR_SECTION_IDKEY' => $admin->getIDKEY($section['section_id']), |
|
268 |
'VAR_SECTION_IDKEY' => $section['section_id'], |
|
255 | 269 |
'VAR_POSITION' => $section['position'], |
256 | 270 |
'LINK_MODIFY_URL_VAR_MODUL_NAME' => $edit_page, |
257 | 271 |
'SELECT' => '', |
... | ... | |
284 | 298 |
'NAME_SIZE' => 300, |
285 | 299 |
'INPUT_ATTRIBUTE' => $input_attribute, |
286 | 300 |
'VAR_SECTION_ID' => $section['section_id'], |
301 |
// 'VAR_SECTION_IDKEY' => $admin->getIDKEY($section['section_id']), |
|
302 |
'VAR_SECTION_IDKEY' => $section['section_id'], |
|
287 | 303 |
'VAR_POSITION' => $section['position'], |
288 | 304 |
'LINK_MODIFY_URL_VAR_MODUL_NAME' => $edit_page, |
289 | 305 |
'NAME' => htmlentities(strip_tags($block[1])), |
branches/2.8.x/wb/admin/interface/version.php | ||
---|---|---|
52 | 52 |
|
53 | 53 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
54 | 54 |
if(!defined('VERSION')) define('VERSION', '2.8.2.RC5'); |
55 |
if(!defined('REVISION')) define('REVISION', '1400');
|
|
55 |
if(!defined('REVISION')) define('REVISION', '1402');
|
|
56 | 56 |
|
57 | 57 |
?> |
branches/2.8.x/wb/framework/class.admin.php | ||
---|---|---|
116 | 116 |
} |
117 | 117 |
|
118 | 118 |
$header_template->set_var( array( |
119 |
'SECTION_NAME' => $MENU[strtoupper($this->section_name)],
|
|
120 |
'BODY_TAGS' => $body_tags,
|
|
121 |
'WEBSITE_TITLE' => ($title['value']),
|
|
122 |
'TEXT_ADMINISTRATION' => $TEXT['ADMINISTRATION'],
|
|
123 |
'CURRENT_USER' => $MESSAGE['START']['CURRENT_USER'],
|
|
124 |
'DISPLAY_NAME' => $this->get_display_name(),
|
|
125 |
'CHARSET' => $charset,
|
|
126 |
'LANGUAGE' => strtolower(LANGUAGE),
|
|
127 |
'VERSION' => VERSION,
|
|
128 |
'REVISION' => REVISION,
|
|
129 |
'WB_URL' => WB_URL,
|
|
130 |
'ADMIN_URL' => ADMIN_URL,
|
|
131 |
'THEME_URL' => THEME_URL,
|
|
132 |
'TITLE_START' => $MENU['START'],
|
|
133 |
'TITLE_VIEW' => $MENU['VIEW'],
|
|
134 |
'TITLE_HELP' => $MENU['HELP'],
|
|
135 |
'TITLE_LOGOUT' => $MENU['LOGOUT'],
|
|
136 |
'URL_VIEW' => $view_url,
|
|
137 |
'URL_HELP' => 'http://www.websitebaker2.org/',
|
|
138 |
'BACKEND_MODULE_CSS' => $this->register_backend_modfiles('css'), // adds backend.css
|
|
139 |
'BACKEND_MODULE_JS' => $this->register_backend_modfiles('js') // adds backend.js
|
|
140 |
)
|
|
141 |
);
|
|
119 |
'SECTION_NAME' => $MENU[strtoupper($this->section_name)], |
|
120 |
'BODY_TAGS' => $body_tags, |
|
121 |
'WEBSITE_TITLE' => ($title['value']), |
|
122 |
'TEXT_ADMINISTRATION' => $TEXT['ADMINISTRATION'], |
|
123 |
'CURRENT_USER' => $MESSAGE['START']['CURRENT_USER'], |
|
124 |
'DISPLAY_NAME' => $this->get_display_name(), |
|
125 |
'CHARSET' => $charset, |
|
126 |
'LANGUAGE' => strtolower(LANGUAGE), |
|
127 |
'VERSION' => VERSION, |
|
128 |
'REVISION' => REVISION, |
|
129 |
'WB_URL' => WB_URL, |
|
130 |
'ADMIN_URL' => ADMIN_URL, |
|
131 |
'THEME_URL' => THEME_URL, |
|
132 |
'TITLE_START' => $MENU['START'], |
|
133 |
'TITLE_VIEW' => $MENU['VIEW'], |
|
134 |
'TITLE_HELP' => $MENU['HELP'], |
|
135 |
'TITLE_LOGOUT' => $MENU['LOGOUT'], |
|
136 |
'URL_VIEW' => $view_url, |
|
137 |
'URL_HELP' => 'http://www.websitebaker2.org/', |
|
138 |
'BACKEND_MODULE_CSS' => $this->register_backend_modfiles('css'), // adds backend.css |
|
139 |
'BACKEND_MODULE_JS' => $this->register_backend_modfiles('js') // adds backend.js |
|
140 |
) |
|
141 |
); |
|
142 | 142 |
|
143 | 143 |
// Create the menu |
144 | 144 |
$menu = array( |
... | ... | |
188 | 188 |
$footer_template->set_var(array( |
189 | 189 |
'BACKEND_BODY_MODULE_JS' => $this->register_backend_modfiles_body('js'), |
190 | 190 |
'WB_URL' => WB_URL, |
191 |
'WB_PATH' => WB_PATH, |
|
192 | 191 |
'ADMIN_URL' => ADMIN_URL, |
193 | 192 |
'THEME_URL' => THEME_URL, |
194 | 193 |
) ); |
branches/2.8.x/wb/templates/wb_theme/templates/pages_modify.htt | ||
---|---|---|
1 |
<!-- BEGIN main_block -->
|
|
2 |
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%" style="margin-bottom: 10px;">
|
|
3 |
<tr style="background-color: #F0F0F0;">
|
|
4 |
<td valign="middle" align="left">
|
|
5 |
<h2>{HEADING_MODIFY_PAGE}</h2>
|
|
6 |
</td>
|
|
7 |
<td align="right">
|
|
8 |
{TEXT_CURRENT_PAGE}:
|
|
9 |
<b>{PAGE_TITLE}</b>
|
|
10 |
-
|
|
11 |
<a href="{ADMIN_URL}/pages/settings.php?page_id={PAGE_ID}&{FTAN2}">{TEXT_CHANGE_SETTINGS}</a>
|
|
12 |
<!-- BEGIN show_section_block -->
|
|
13 |
<font style="{DISPLAY_MANAGE_SECTIONS}">-</font>
|
|
14 |
<a href="{ADMIN_URL}/pages/sections.php?page_id={PAGE_ID}&{FTAN2}" style="{DISPLAY_MANAGE_SECTIONS}">{TEXT_MANAGE_SECTIONS}</a>
|
|
15 |
<!-- END show_section_block -->
|
|
16 |
<font style="color: #999999;" class="{CLASS_DISPLAY_MODIFIED}"><br />
|
|
17 |
<!-- BEGIN show_modify_block -->
|
|
18 |
{LAST_MODIFIED} {MODIFIED_BY} ({MODIFIED_BY_USERNAME}), {MODIFIED_WHEN}
|
|
19 |
<!-- END show_modify_block -->
|
|
20 |
</font>
|
|
21 |
</td>
|
|
22 |
</tr>
|
|
23 |
</table>
|
|
1 |
<!-- BEGIN main_block --> |
|
2 |
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%" style="margin-bottom: 10px;"> |
|
3 |
<tr style="background-color: #F0F0F0;"> |
|
4 |
<td valign="middle" align="left"> |
|
5 |
<h2>{HEADING_MODIFY_PAGE}</h2> |
|
6 |
</td> |
|
7 |
<td align="right"> |
|
8 |
{TEXT_CURRENT_PAGE}: |
|
9 |
<b>{PAGE_TITLE}</b> |
|
10 |
- |
|
11 |
<a href="{ADMIN_URL}/pages/settings.php?page_id={PAGE_IDKEY}&{FTAN2}">{TEXT_CHANGE_SETTINGS}</a>
|
|
12 |
<!-- BEGIN show_section_block --> |
|
13 |
<font style="{DISPLAY_MANAGE_SECTIONS}">-</font> |
|
14 |
<a href="{ADMIN_URL}/pages/sections.php?page_id={PAGE_IDKEY}&{FTAN2}" style="{DISPLAY_MANAGE_SECTIONS}">{TEXT_MANAGE_SECTIONS}</a>
|
|
15 |
<!-- END show_section_block --> |
|
16 |
<font style="color: #999999;" class="{CLASS_DISPLAY_MODIFIED}"><br /> |
|
17 |
<!-- BEGIN show_modify_block --> |
|
18 |
{LAST_MODIFIED} {MODIFIED_BY} ({MODIFIED_BY_USERNAME}), {MODIFIED_WHEN} |
|
19 |
<!-- END show_modify_block --> |
|
20 |
</font> |
|
21 |
</td> |
|
22 |
</tr> |
|
23 |
</table> |
|
24 | 24 |
<!-- END main_block --> |
branches/2.8.x/wb/templates/wb_theme/templates/pages_sections.htt | ||
---|---|---|
1 |
<!-- BEGIN main_block -->
|
|
2 |
<div class="jsadmin jcalendar hide"></div>
|
|
3 |
<table cellpadding="0" cellspacing="0" class="sections_header">
|
|
4 |
<tr>
|
|
5 |
<td valign="middle" align="left">
|
|
6 |
<h2>{HEADING_MANAGE_SECTIONS}</h2>
|
|
7 |
</td>
|
|
8 |
<td>ID: {PAGE_ID}</td>
|
|
9 |
<td align="right">{TEXT_CURRENT_PAGE}: <b>{PAGE_TITLE}</b>
|
|
10 |
-
|
|
11 |
<a href="{ADMIN_URL}/pages/modify.php?page_id={PAGE_ID}">{HEADING_MODIFY_PAGE}</a>
|
|
12 |
-
|
|
13 |
<a href="{ADMIN_URL}/pages/settings.php?page_id={PAGE_ID}">{TEXT_CHANGE_SETTINGS}</a>
|
|
14 |
</td>
|
|
15 |
</tr>
|
|
16 |
</table>
|
|
17 |
|
|
18 |
<form name="section_properties" action="{ADMIN_URL}/pages/sections_save.php?page_id={VAR_PAGE_ID}" method="post">
|
|
19 |
{FTAN}
|
|
20 |
|
|
21 |
<table cellpadding="5" cellspacing="0" align="center" border="0" width="100%">
|
|
22 |
<tr class="sections_list">
|
|
23 |
<td valign="middle" width="{NAME_SIZE}">{TEXT_TYPE}:</td>
|
|
24 |
<td {STYLE_DISPLAY_SECTION_BLOCK}>{TEXT_BLOCK}:</td>
|
|
25 |
<td class="header_list_pubdate_start">{TEXT_PUBL_START_DATE}:</td>
|
|
26 |
<td class="header_list_pubdate_end">{TEXT_PUBL_END_DATE}:</td>
|
|
27 |
<td class="header_list_sections_actions" colspan="3">{TEXT_ACTIONS}:</td>
|
|
28 |
<td class="header_list_section_id">{TEXT_SID}</td>
|
|
29 |
<td valign="middle" align="left"{DISPLAY_DEBUG}>{TEXT_PID}</td>
|
|
30 |
</tr>
|
|
31 |
<!-- BEGIN section_block -->
|
|
32 |
<tr onmouseover="this.style.backgroundColor = '#F1F8DD'" onmouseout="this.style.backgroundColor = '#FFF'">
|
|
33 |
<td style="display: none;">
|
|
34 |
<input type="hidden" name="page_id" value="{VAR_PAGE_ID}" />
|
|
35 |
<input type="hidden" name="section_id" value="{VAR_SECTION_ID}" />
|
|
36 |
{VAR_SECTION_ID}
|
|
37 |
</td>
|
|
38 |
|
|
39 |
<td valign="middle" width="{NAME_SIZE}">{LINK_MODIFY_URL_VAR_MODUL_NAME}</td>
|
|
40 |
|
|
41 |
<td valign="middle" class="{INPUT_ATTRIBUTE}"{STYLE_DISPLAY_SECTION_BLOCK}>
|
|
42 |
<select name="block{VAR_SECTION_ID}" class="input_narrow">
|
|
43 |
{SET_NONE_DISPLAY_OPTION}
|
|
44 |
<!-- BEGIN block_block -->
|
|
45 |
<option value="{VALUE}"{SELECTED}>{NAME}</option>
|
|
46 |
<!-- END block_block -->
|
|
47 |
</select>
|
|
48 |
</td>
|
|
49 |
|
|
50 |
<td valign="middle" nowrap="nowrap" width="120"><input type="text" id="start_date{VAR_SECTION_ID}" name="start_date{VAR_SECTION_ID}" value="{VALUE_PUBL_START}" class="input_normal" />
|
|
51 |
<img src="{THEME_URL}/images/{CLOCK_16_PNG}" id="trigger_start{VAR_SECTION_ID}" style="cursor: pointer;" title="{TEXT_CALENDAR}" alt="start" />
|
|
52 |
<img src="{THEME_URL}/images/{CLOCK_DEL_16_PNG}" style="cursor: pointer;" alt="del" title="{TEXT_DELETE_DATE}" onclick="document.section_properties.start_date{VAR_SECTION_ID}.value=''" />
|
|
53 |
</td>
|
|
54 |
|
|
55 |
<td valign="middle" nowrap="nowrap" width="120"><input type="text" id="end_date{VAR_SECTION_ID}" name="end_date{VAR_SECTION_ID}" value="{VALUE_PUBL_END}" class="input_narrow" />
|
|
56 |
<img src="{THEME_URL}/images/{CLOCK_16_PNG}" id="trigger_stop{VAR_SECTION_ID}" alt="end" style="cursor: pointer;" title="{TEXT_CALENDAR}" />
|
|
57 |
<img src="{THEME_URL}/images/{CLOCK_DEL_16_PNG}" style="cursor: pointer;" alt="del" title="{TEXT_DELETE_DATE}" onclick="document.section_properties.end_date{VAR_SECTION_ID}.value=''" />
|
|
58 |
</td>
|
|
59 |
|
|
60 |
<td valign="middle" width="20">
|
|
61 |
{VAR_MOVE_UP_URL}
|
|
62 |
</td>
|
|
63 |
|
|
64 |
<td valign="middle" width="20">
|
|
65 |
{VAR_MOVE_DOWN_URL}
|
|
66 |
</td>
|
|
67 |
|
|
68 |
<td valign="middle" width="20">
|
|
69 |
<a href="javascript: confirm_link('{TEXT_ARE_YOU_SURE}', '{ADMIN_URL}/pages/sections.php?page_id={VAR_PAGE_ID}&section_id={VAR_SECTION_ID}');">
|
|
70 |
<img src="{THEME_URL}/images/{DELETE_16_PNG}" alt="X" />
|
|
71 |
</a>
|
|
72 |
</td>
|
|
73 |
<td valign="middle" align="right">
|
|
74 |
{VAR_SECTION_ID}
|
|
75 |
</td>
|
|
76 |
<td valign="middle" align="right"{DISPLAY_DEBUG}>
|
|
77 |
{POSITION}
|
|
78 |
</td>
|
|
79 |
</tr>
|
|
80 |
<!-- END section_block -->
|
|
81 |
<tr>
|
|
82 |
<td valign="middle" align="right" colspan="{DEBUG_COLSPAN_SIZE}"><input type="submit" name="save" value="{TEXT_SAVE}" class="input_medium" /></td>
|
|
83 |
</tr>
|
|
84 |
</table>
|
|
85 |
</form>
|
|
86 |
|
|
87 |
<h2>{TEXT_ADD_SECTION}</h2>
|
|
88 |
<form name="add" action="{ADMIN_URL}/pages/sections.php?page_id={VAR_PAGE_ID}" method="post">
|
|
89 |
<input type="hidden" name="page_id" value="{VAR_PAGE_ID}" />
|
|
90 |
{FTAN}
|
|
91 |
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%">
|
|
92 |
<tr>
|
|
93 |
<td width="100%">
|
|
94 |
<select name="module" class="input_full">
|
|
95 |
<!-- BEGIN module_block -->
|
|
96 |
<option value="{VALUE}"{SELECTED}>{NAME}</option>
|
|
97 |
<!-- END module_block -->
|
|
98 |
</select>
|
|
99 |
</td>
|
|
100 |
<td >
|
|
101 |
<input type="submit" name="submit" value="{TEXT_ADD}" class="input_medium" />
|
|
102 |
</td>
|
|
103 |
</tr>
|
|
104 |
</table>
|
|
105 |
</form>
|
|
106 |
<!-- BEGIN calendar_block -->
|
|
107 |
<script type="text/javascript" >
|
|
108 |
var section_id = '{VAR_SECTION_ID}';
|
|
109 |
var start_date = '{start_date}';
|
|
110 |
var end_date = '{end_date}';
|
|
111 |
var trigger_start = '{trigger_start}';
|
|
112 |
var trigger_end = '{trigger_end}';
|
|
113 |
var jscal_today = '{jscal_today}';
|
|
114 |
var jscal_ifformat = '{jscal_ifformat}';
|
|
115 |
var jscal_firstday = {jscal_firstday};
|
|
116 |
var showsTime = {showsTime};
|
|
117 |
var timeFormat = {timeFormat};
|
|
118 |
</script>
|
|
119 |
<script type="text/javascript" src="{ADMIN_URL}/pages/page_calendar.js" ></script>
|
|
120 |
<!-- END calendar_block -->
|
|
1 |
<!-- BEGIN main_block --> |
|
2 |
<div class="jsadmin jcalendar hide"></div> |
|
3 |
<table cellpadding="0" cellspacing="0" class="sections_header"> |
|
4 |
<tr> |
|
5 |
<td valign="middle" align="left"> |
|
6 |
<h2>{HEADING_MANAGE_SECTIONS}</h2> |
|
7 |
</td> |
|
8 |
<td>ID: {PAGE_ID}</td> |
|
9 |
<td align="right">{TEXT_CURRENT_PAGE}: <b>{PAGE_TITLE}</b> |
|
10 |
- |
|
11 |
<a href="{ADMIN_URL}/pages/modify.php?page_id={PAGE_IDKEY}">{HEADING_MODIFY_PAGE}</a>
|
|
12 |
- |
|
13 |
<a href="{ADMIN_URL}/pages/settings.php?page_id={PAGE_IDKEY}">{TEXT_CHANGE_SETTINGS}</a>
|
|
14 |
</td> |
|
15 |
</tr> |
|
16 |
</table> |
|
17 |
|
|
18 |
<form name="section_properties" action="{ADMIN_URL}/pages/sections_save.php?page_id={PAGE_IDKEY}" method="post">
|
|
19 |
{FTAN} |
|
20 |
|
|
21 |
<table cellpadding="5" cellspacing="0" align="center" border="0" width="100%"> |
|
22 |
<tr class="sections_list"> |
|
23 |
<td valign="middle" width="{NAME_SIZE}">{TEXT_TYPE}:</td> |
|
24 |
<td {STYLE_DISPLAY_SECTION_BLOCK}>{TEXT_BLOCK}:</td> |
|
25 |
<td class="header_list_pubdate_start">{TEXT_PUBL_START_DATE}:</td> |
|
26 |
<td class="header_list_pubdate_end">{TEXT_PUBL_END_DATE}:</td> |
|
27 |
<td class="header_list_sections_actions" colspan="3">{TEXT_ACTIONS}:</td> |
|
28 |
<td class="header_list_section_id">{TEXT_SID}</td> |
|
29 |
<td valign="middle" align="left"{DISPLAY_DEBUG}>{TEXT_PID}</td> |
|
30 |
</tr> |
|
31 |
<!-- BEGIN section_block --> |
|
32 |
<tr onmouseover="this.style.backgroundColor = '#F1F8DD'" onmouseout="this.style.backgroundColor = '#FFF'"> |
|
33 |
<td style="display: none;"> |
|
34 |
<input type="hidden" name="page_id" value="{PAGE_IDKEY}" />
|
|
35 |
<input type="hidden" name="section_id" value="{VAR_SECTION_ID}" /> |
|
36 |
{VAR_SECTION_ID} |
|
37 |
</td> |
|
38 |
|
|
39 |
<td valign="middle" width="{NAME_SIZE}">{LINK_MODIFY_URL_VAR_MODUL_NAME}</td> |
|
40 |
|
|
41 |
<td valign="middle" class="{INPUT_ATTRIBUTE}"{STYLE_DISPLAY_SECTION_BLOCK}> |
|
42 |
<select name="block{VAR_SECTION_ID}" class="input_narrow"> |
|
43 |
{SET_NONE_DISPLAY_OPTION} |
|
44 |
<!-- BEGIN block_block --> |
|
45 |
<option value="{VALUE}"{SELECTED}>{NAME}</option> |
|
46 |
<!-- END block_block --> |
|
47 |
</select> |
|
48 |
</td> |
|
49 |
|
|
50 |
<td valign="middle" nowrap="nowrap" width="120"><input type="text" id="start_date{VAR_SECTION_ID}" name="start_date{VAR_SECTION_ID}" value="{VALUE_PUBL_START}" class="input_normal" /> |
|
51 |
<img src="{THEME_URL}/images/{CLOCK_16_PNG}" id="trigger_start{VAR_SECTION_ID}" style="cursor: pointer;" title="{TEXT_CALENDAR}" alt="start" /> |
|
52 |
<img src="{THEME_URL}/images/{CLOCK_DEL_16_PNG}" style="cursor: pointer;" alt="del" title="{TEXT_DELETE_DATE}" onclick="document.section_properties.start_date{VAR_SECTION_ID}.value=''" /> |
|
53 |
</td> |
|
54 |
|
|
55 |
<td valign="middle" nowrap="nowrap" width="120"><input type="text" id="end_date{VAR_SECTION_ID}" name="end_date{VAR_SECTION_ID}" value="{VALUE_PUBL_END}" class="input_narrow" /> |
|
56 |
<img src="{THEME_URL}/images/{CLOCK_16_PNG}" id="trigger_stop{VAR_SECTION_ID}" alt="end" style="cursor: pointer;" title="{TEXT_CALENDAR}" /> |
|
57 |
<img src="{THEME_URL}/images/{CLOCK_DEL_16_PNG}" style="cursor: pointer;" alt="del" title="{TEXT_DELETE_DATE}" onclick="document.section_properties.end_date{VAR_SECTION_ID}.value=''" /> |
|
58 |
</td> |
|
59 |
|
|
60 |
<td valign="middle" width="20"> |
|
61 |
{VAR_MOVE_UP_URL} |
|
62 |
</td> |
|
63 |
|
|
64 |
<td valign="middle" width="20"> |
|
65 |
{VAR_MOVE_DOWN_URL} |
|
66 |
</td> |
|
67 |
|
|
68 |
<td valign="middle" width="20"> |
|
69 |
<a href="javascript: confirm_link('{TEXT_ARE_YOU_SURE}', '{ADMIN_URL}/pages/sections.php?page_id={PAGE_IDKEY}&section_id={VAR_SECTION_ID}');">
|
|
70 |
<img src="{THEME_URL}/images/{DELETE_16_PNG}" alt="X" /> |
|
71 |
</a> |
|
72 |
</td> |
|
73 |
<td valign="middle" align="right"> |
|
74 |
{VAR_SECTION_ID} |
|
75 |
</td> |
|
76 |
<td valign="middle" align="right"{DISPLAY_DEBUG}> |
|
77 |
{POSITION} |
|
78 |
</td> |
|
79 |
</tr> |
|
80 |
<!-- END section_block --> |
|
81 |
<tr> |
|
82 |
<td valign="middle" align="right" colspan="{DEBUG_COLSPAN_SIZE}"><input type="submit" name="save" value="{TEXT_SAVE}" class="input_medium" /></td> |
|
83 |
</tr> |
|
84 |
</table> |
|
85 |
</form> |
|
86 |
|
|
87 |
<h2>{TEXT_ADD_SECTION}</h2> |
|
88 |
<form name="add" action="{ADMIN_URL}/pages/sections.php?page_id={PAGE_IDKEY}" method="post">
|
|
89 |
<input type="hidden" name="page_id" value="{PAGE_IDKEY}" />
|
|
90 |
{FTAN} |
|
91 |
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%"> |
|
92 |
<tr> |
|
93 |
<td width="100%"> |
|
94 |
<select name="module" class="input_full"> |
|
95 |
<!-- BEGIN module_block --> |
|
96 |
<option value="{VALUE}"{SELECTED}>{NAME}</option> |
|
97 |
<!-- END module_block --> |
|
98 |
</select> |
|
99 |
</td> |
|
100 |
<td > |
|
101 |
<input type="submit" name="submit" value="{TEXT_ADD}" class="input_medium" /> |
|
102 |
</td> |
|
103 |
</tr> |
|
104 |
</table> |
|
105 |
</form> |
|
106 |
<!-- BEGIN calendar_block --> |
|
107 |
<script type="text/javascript" > |
|
108 |
var section_id = '{VAR_SECTION_ID}'; |
|
109 |
var start_date = '{start_date}'; |
|
110 |
var end_date = '{end_date}'; |
|
111 |
var trigger_start = '{trigger_start}'; |
|
112 |
var trigger_end = '{trigger_end}'; |
|
113 |
var jscal_today = '{jscal_today}'; |
|
114 |
var jscal_ifformat = '{jscal_ifformat}'; |
|
115 |
var jscal_firstday = {jscal_firstday}; |
|
116 |
var showsTime = {showsTime}; |
|
117 |
var timeFormat = {timeFormat}; |
|
118 |
</script> |
|
119 |
<script type="text/javascript" src="{ADMIN_URL}/pages/page_calendar.js" ></script> |
|
120 |
<!-- END calendar_block --> |
|
121 | 121 |
<!-- END main_block --> |
branches/2.8.x/wb/templates/wb_theme/templates/pages_settings.htt | ||
---|---|---|
1 | 1 |
<!-- BEGIN main_block --> |
2 | 2 |
|
3 |
<script src="{ADMIN_URL}/pages/page_settings.js" type="text/javascript" language="javascript"></script>
|
|
3 |
<script src="{ADMIN_URL}/pages/page_settings.js" type="text/javascript"></script> |
|
4 | 4 |
|
5 | 5 |
<table summary="" cellpadding="5" cellspacing="0" border="0" align="center" width="100%" style="margin-bottom: 10px;"> |
6 | 6 |
<tr style="background-color: #F0F0F0;"> |
... | ... | |
12 | 12 |
{TEXT_CURRENT_PAGE}: |
13 | 13 |
<b>{PAGE_TITLE}</b> |
14 | 14 |
- |
15 |
<a href="{ADMIN_URL}/pages/modify.php?page_id={PAGE_ID}">{TEXT_MODIFY_PAGE}</a> |
|
15 |
<a href="{ADMIN_URL}/pages/modify.php?page_id={PAGE_IDKEY}">{TEXT_MODIFY_PAGE}</a>
|
|
16 | 16 |
<font style="{DISPLAY_MANAGE_SECTIONS}">-</font> |
17 |
<a href="{ADMIN_URL}/pages/sections.php?page_id={PAGE_ID}" style="{DISPLAY_MANAGE_SECTIONS}">{TEXT_MANAGE_SECTIONS}</a> |
|
17 |
<a href="{ADMIN_URL}/pages/sections.php?page_id={PAGE_IDKEY}" style="{DISPLAY_MANAGE_SECTIONS}">{TEXT_MANAGE_SECTIONS}</a>
|
|
18 | 18 |
<br /> |
19 | 19 |
<font style="color: #999999;" class="{DISPLAY_MODIFIED}"> |
20 | 20 |
{LAST_MODIFIED} {MODIFIED_BY} ({MODIFIED_BY_USERNAME}), {MODIFIED_WHEN} |
branches/2.8.x/wb/templates/argos_theme/templates/pages_modify.htt | ||
---|---|---|
1 |
<!-- BEGIN main_block -->
|
|
2 |
|
|
3 |
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%" style="margin-bottom:10px;">
|
|
4 |
<tr style="background:#f0f0f0;">
|
|
5 |
<td valign="middle" align="left"><h2>{HEADING_MODIFY_PAGE}</h2></td>
|
|
6 |
<td align="left" width="20%">ID: {PAGE_ID}</td>
|
|
7 |
<td align="right">
|
|
8 |
{TEXT_CURRENT_PAGE}:
|
|
9 |
<b>{PAGE_TITLE}</b>
|
|
10 |
-
|
|
11 |
<a href="{ADMIN_URL}/pages/settings.php?page_id={PAGE_ID}&{FTAN2}">{TEXT_CHANGE_SETTINGS}</a>
|
|
12 |
<!-- BEGIN show_section_block -->
|
|
13 |
<font style="{DISPLAY_MANAGE_SECTIONS}">-</font>
|
|
14 |
<a href="{ADMIN_URL}/pages/sections.php?page_id={PAGE_ID}&{FTAN2}" style="{DISPLAY_MANAGE_SECTIONS}">{TEXT_MANAGE_SECTIONS}</a>
|
|
15 |
<!-- END show_section_block -->
|
|
16 |
<font style="color:#999;" class="{CLASS_DISPLAY_MODIFIED}"><br />
|
|
17 |
<!-- BEGIN show_modify_block -->
|
|
18 |
{LAST_MODIFIED} {MODIFIED_BY} ({MODIFIED_BY_USERNAME}), {MODIFIED_WHEN}
|
|
19 |
<!-- END show_modify_block -->
|
|
20 |
</font>
|
|
21 |
</td>
|
|
22 |
</tr>
|
|
23 |
</table>
|
|
24 |
|
|
1 |
<!-- BEGIN main_block --> |
|
2 |
|
|
3 |
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%" style="margin-bottom:10px;"> |
|
4 |
<tr style="background:#f0f0f0;"> |
|
5 |
<td valign="middle" align="left"><h2>{HEADING_MODIFY_PAGE}</h2></td> |
|
6 |
<td align="left" width="20%">ID: {PAGE_ID}</td> |
|
7 |
<td align="right"> |
|
8 |
{TEXT_CURRENT_PAGE}: |
|
9 |
<b>{PAGE_TITLE}</b> |
|
10 |
- |
|
11 |
<a href="{ADMIN_URL}/pages/settings.php?page_id={PAGE_IDKEY}">{TEXT_CHANGE_SETTINGS}</a>
|
|
12 |
<!-- BEGIN show_section_block --> |
|
13 |
<font style="{DISPLAY_MANAGE_SECTIONS}">-</font> |
|
14 |
<a href="{ADMIN_URL}/pages/sections.php?page_id={PAGE_IDKEY}" style="{DISPLAY_MANAGE_SECTIONS}">{TEXT_MANAGE_SECTIONS}</a>
|
|
15 |
<!-- END show_section_block --> |
|
16 |
<font style="color:#999;" class="{CLASS_DISPLAY_MODIFIED}"><br /> |
|
17 |
<!-- BEGIN show_modify_block --> |
|
18 |
{LAST_MODIFIED} {MODIFIED_BY} ({MODIFIED_BY_USERNAME}), {MODIFIED_WHEN} |
|
19 |
<!-- END show_modify_block --> |
|
20 |
</font> |
|
21 |
</td> |
|
22 |
</tr> |
|
23 |
</table> |
|
24 |
|
|
25 | 25 |
<!-- END main_block --> |
branches/2.8.x/wb/templates/argos_theme/templates/pages_sections.htt | ||
---|---|---|
1 |
<!-- BEGIN main_block -->
|
|
2 |
<div class="jsadmin jcalendar hide"></div>
|
|
3 |
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%" style="margin-bottom:10px;">
|
|
4 |
<tr style="background:#f0f0f0;">
|
|
5 |
<td valign="middle" align="left"><h2>{HEADING_MANAGE_SECTIONS}</h2></td>
|
|
6 |
<td align="left" width="20%">ID: {PAGE_ID}</td>
|
|
7 |
<td align="right">{TEXT_CURRENT_PAGE}: <b>{PAGE_TITLE}</b>
|
|
8 |
-
|
|
9 |
<a href="{ADMIN_URL}/pages/modify.php?page_id={PAGE_ID}">{HEADING_MODIFY_PAGE}</a>
|
|
10 |
-
|
|
11 |
<a href="{ADMIN_URL}/pages/settings.php?page_id={PAGE_ID}">{TEXT_CHANGE_SETTINGS}</a>
|
|
12 |
</td>
|
|
13 |
</tr>
|
|
14 |
</table>
|
|
15 |
|
|
16 |
<form name="section_properties" action="{ADMIN_URL}/pages/sections_save.php?page_id={VAR_PAGE_ID}" method="post">
|
|
17 |
{FTAN}
|
|
18 |
|
|
19 |
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="img_noborder">
|
|
20 |
<tr class="sections_list">
|
|
21 |
<td class="header_list_type">{TEXT_TYPE}</td>
|
|
22 |
<td class="header_list_block"><span {STYLE_DISPLAY_SECTION_BLOCK}>{TEXT_BLOCK} </span></td>
|
|
23 |
<td class="header_list_pubdate_start">{TEXT_PUBL_START_DATE}</td>
|
|
24 |
<td class="header_list_pubdate_end">{TEXT_PUBL_END_DATE}</td>
|
|
25 |
<td class="header_list_sections_actions" colspan="3">{TEXT_ACTIONS}</td>
|
|
26 |
<td class="header_list_section_id">ID</td>
|
|
27 |
<td {DISPLAY_DEBUG}>{TEXT_PID}</td>
|
|
28 |
</tr>
|
|
29 |
<!-- BEGIN section_block -->
|
|
30 |
<tr class="sectionrow">
|
|
31 |
<td align="right" style="display:none;">
|
|
32 |
<input type="hidden" name="page_id" value="{VAR_PAGE_ID}" />
|
|
33 |
<input type="hidden" name="section_id" value="{VAR_SECTION_ID}" />
|
|
34 |
{VAR_SECTION_ID}
|
|
35 |
</td>
|
|
36 |
|
|
37 |
<td>{LINK_MODIFY_URL_VAR_MODUL_NAME}</td>
|
|
38 |
|
|
39 |
<td class="{INPUT_ATTRIBUTE}"><span {STYLE_DISPLAY_SECTION_BLOCK}>
|
|
40 |
<select name="block{VAR_SECTION_ID}" class="input_normal">
|
|
41 |
{SET_NONE_DISPLAY_OPTION}
|
|
42 |
<!-- BEGIN block_block -->
|
|
43 |
<option value="{VALUE}"{SELECTED}>{NAME}</option>
|
|
44 |
<!-- END block_block -->
|
|
45 |
</select></span>
|
|
46 |
</td>
|
|
47 |
|
|
48 |
<td class="list_pubdate_start"><input type="text" id="start_date{VAR_SECTION_ID}" name="start_date{VAR_SECTION_ID}" value="{VALUE_PUBL_START}" class="input_normal" />
|
|
49 |
<img src="{THEME_URL}/images/calendar_16.png" id="trigger_start{VAR_SECTION_ID}" style="cursor:pointer;" title="{TEXT_CALENDAR}" alt="{TEXT_CALENDAR}" />
|
|
50 |
<img src="{THEME_URL}/images/{CLOCK_DEL_16_PNG}" style="cursor:pointer;" alt="{TEXT_DELETE_DATE}" title="{TEXT_DELETE_DATE}" onclick="document.section_properties.start_date{VAR_SECTION_ID}.value=''" />
|
|
51 |
</td>
|
|
52 |
|
|
53 |
<td class="list_pubdate_end"><input type="text" id="end_date{VAR_SECTION_ID}" name="end_date{VAR_SECTION_ID}" value="{VALUE_PUBL_END}" class="input_normal" />
|
|
54 |
<img src="{THEME_URL}/images/calendar_16.png" id="trigger_stop{VAR_SECTION_ID}" alt="{TEXT_CALENDAR}" style="cursor: pointer;" title="{TEXT_CALENDAR}" />
|
|
55 |
<img src="{THEME_URL}/images/{CLOCK_DEL_16_PNG}" style="cursor:pointer;" alt="{TEXT_DELETE_DATE}" title="{TEXT_DELETE_DATE}" onclick="document.section_properties.end_date{VAR_SECTION_ID}.value=''" />
|
|
56 |
</td>
|
|
57 |
|
|
58 |
<td>{VAR_MOVE_UP_URL}</td>
|
|
59 |
|
|
60 |
<td>{VAR_MOVE_DOWN_URL}</td>
|
|
61 |
|
|
62 |
<td>
|
|
63 |
<a href="javascript: confirm_link('{TEXT_ARE_YOU_SURE}', '{ADMIN_URL}/pages/sections.php?page_id={VAR_PAGE_ID}&section_id={VAR_SECTION_ID}');">
|
|
64 |
<img src="{THEME_URL}/images/{DELETE_16_PNG}" alt="{TEXT_DELETE}" border="0" />
|
|
65 |
</a>
|
|
66 |
</td>
|
|
67 |
|
|
68 |
<td class="list_section_id">{VAR_SECTION_ID}</td>
|
|
69 |
|
|
70 |
<td {DISPLAY_DEBUG}>{POSITION}</td>
|
|
71 |
</tr>
|
|
72 |
<!-- END section_block -->
|
|
73 |
<tr>
|
|
74 |
<td align="left" colspan="{DEBUG_COLSPAN_SIZE}">
|
|
75 |
<br />
|
|
76 |
<input type="submit" name="save" value="{TEXT_SAVE}" class="input_medium" />
|
|
77 |
</td>
|
|
78 |
</tr>
|
|
79 |
</table>
|
|
80 |
</form>
|
|
81 |
<br />
|
|
82 |
<h2>{TEXT_ADD_SECTION}</h2>
|
|
83 |
<form name="add" action="{ADMIN_URL}/pages/sections.php?page_id={VAR_PAGE_ID}" method="post">
|
|
84 |
<input type="hidden" name="page_id" value="{VAR_PAGE_ID}" />
|
|
85 |
{FTAN}
|
|
86 |
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%">
|
|
87 |
<tr>
|
|
88 |
<td width="50%" valign="middle">
|
|
89 |
<select name="module" class="input_large">
|
|
90 |
<!-- BEGIN module_block -->
|
|
91 |
<option value="{VALUE}"{SELECTED}>{NAME}</option>
|
|
92 |
<!-- END module_block -->
|
|
93 |
</select>
|
|
94 |
|
|
95 |
<input type="submit" name="submit" value="{TEXT_ADD}" class="input_medium" />
|
|
96 |
</td>
|
|
97 |
</tr>
|
|
98 |
</table>
|
|
99 |
</form>
|
|
100 |
<!-- BEGIN calendar_block -->
|
|
101 |
<script type="text/javascript" >
|
|
102 |
var section_id = '{VAR_SECTION_ID}';
|
|
103 |
var start_date = '{start_date}';
|
|
104 |
var end_date = '{end_date}';
|
|
105 |
var trigger_start = '{trigger_start}';
|
|
106 |
var trigger_end = '{trigger_end}';
|
|
107 |
var jscal_today = '{jscal_today}';
|
|
108 |
var jscal_ifformat = '{jscal_ifformat}';
|
|
109 |
var jscal_firstday = {jscal_firstday};
|
|
110 |
var showsTime = {showsTime};
|
|
111 |
var timeFormat = {timeFormat};
|
|
112 |
</script>
|
|
113 |
<script type="text/javascript" src="{ADMIN_URL}/pages/page_calendar.js" ></script>
|
|
114 |
<!-- END calendar_block -->
|
|
1 |
<!-- BEGIN main_block --> |
|
2 |
<div class="jsadmin jcalendar hide"></div> |
|
3 |
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%" style="margin-bottom:10px;"> |
|
4 |
<tr style="background:#f0f0f0;"> |
|
5 |
<td valign="middle" align="left"><h2>{HEADING_MANAGE_SECTIONS}</h2></td> |
|
6 |
<td align="left" width="20%">ID: {PAGE_ID}</td> |
|
7 |
<td align="right">{TEXT_CURRENT_PAGE}: <b>{PAGE_TITLE}</b> |
|
8 |
- |
|
9 |
<a href="{ADMIN_URL}/pages/modify.php?page_id={PAGE_IDKEY}">{HEADING_MODIFY_PAGE}</a>
|
|
10 |
- |
|
11 |
<a href="{ADMIN_URL}/pages/settings.php?page_id={PAGE_IDKEY}">{TEXT_CHANGE_SETTINGS}</a>
|
|
12 |
</td> |
|
13 |
</tr> |
|
14 |
</table> |
|
15 |
|
|
16 |
<form name="section_properties" action="{ADMIN_URL}/pages/sections_save.php?page_id={PAGE_IDKEY}" method="post">
|
|
17 |
{FTAN} |
|
18 |
|
|
19 |
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="img_noborder"> |
|
20 |
<tr class="sections_list"> |
|
21 |
<td class="header_list_type">{TEXT_TYPE}</td> |
|
22 |
<td class="header_list_block"><span {STYLE_DISPLAY_SECTION_BLOCK}>{TEXT_BLOCK} </span></td> |
|
23 |
<td class="header_list_pubdate_start">{TEXT_PUBL_START_DATE}</td> |
|
24 |
<td class="header_list_pubdate_end">{TEXT_PUBL_END_DATE}</td> |
|
25 |
<td class="header_list_sections_actions" colspan="3">{TEXT_ACTIONS}</td> |
|
26 |
<td class="header_list_section_id">ID</td> |
|
27 |
<td {DISPLAY_DEBUG}>{TEXT_PID}</td> |
|
28 |
</tr> |
|
29 |
<!-- BEGIN section_block --> |
|
30 |
<tr class="sectionrow"> |
|
31 |
<td align="right" style="display:none;"> |
|
32 |
<input type="hidden" name="page_id" value="{PAGE_IDKEY}" />
|
|
33 |
<input type="hidden" name="section_id" value="{VAR_SECTION_ID}" /> |
|
34 |
{VAR_SECTION_ID} |
|
35 |
</td> |
|
36 |
|
|
37 |
<td>{LINK_MODIFY_URL_VAR_MODUL_NAME}</td> |
|
38 |
|
|
39 |
<td class="{INPUT_ATTRIBUTE}"><span {STYLE_DISPLAY_SECTION_BLOCK}> |
|
40 |
<select name="block{VAR_SECTION_ID}" class="input_normal"> |
|
41 |
{SET_NONE_DISPLAY_OPTION} |
|
42 |
<!-- BEGIN block_block --> |
|
43 |
<option value="{VALUE}"{SELECTED}>{NAME}</option> |
|
44 |
<!-- END block_block --> |
|
45 |
</select></span> |
|
46 |
</td> |
|
47 |
|
|
48 |
<td class="list_pubdate_start"><input type="text" id="start_date{VAR_SECTION_ID}" name="start_date{VAR_SECTION_ID}" value="{VALUE_PUBL_START}" class="input_normal" /> |
|
49 |
<img src="{THEME_URL}/images/calendar_16.png" id="trigger_start{VAR_SECTION_ID}" style="cursor:pointer;" title="{TEXT_CALENDAR}" alt="{TEXT_CALENDAR}" /> |
|
50 |
<img src="{THEME_URL}/images/{CLOCK_DEL_16_PNG}" style="cursor:pointer;" alt="{TEXT_DELETE_DATE}" title="{TEXT_DELETE_DATE}" onclick="document.section_properties.start_date{VAR_SECTION_ID}.value=''" /> |
|
51 |
</td> |
|
52 |
|
|
53 |
<td class="list_pubdate_end"><input type="text" id="end_date{VAR_SECTION_ID}" name="end_date{VAR_SECTION_ID}" value="{VALUE_PUBL_END}" class="input_normal" /> |
|
54 |
<img src="{THEME_URL}/images/calendar_16.png" id="trigger_stop{VAR_SECTION_ID}" alt="{TEXT_CALENDAR}" style="cursor: pointer;" title="{TEXT_CALENDAR}" /> |
|
55 |
<img src="{THEME_URL}/images/{CLOCK_DEL_16_PNG}" style="cursor:pointer;" alt="{TEXT_DELETE_DATE}" title="{TEXT_DELETE_DATE}" onclick="document.section_properties.end_date{VAR_SECTION_ID}.value=''" /> |
|
56 |
</td> |
|
57 |
|
|
58 |
<td>{VAR_MOVE_UP_URL}</td> |
|
59 |
|
|
60 |
<td>{VAR_MOVE_DOWN_URL}</td> |
|
61 |
|
|
62 |
<td> |
|
63 |
<a href="javascript: confirm_link('{TEXT_ARE_YOU_SURE}', '{ADMIN_URL}/pages/sections.php?page_id={PAGE_IDKEY}&section_id={VAR_SECTION_ID}');">
|
|
64 |
<img src="{THEME_URL}/images/{DELETE_16_PNG}" alt="{TEXT_DELETE}" border="0" /> |
|
65 |
</a> |
|
66 |
</td> |
|
67 |
|
|
68 |
<td class="list_section_id">{VAR_SECTION_ID}</td> |
|
69 |
|
|
70 |
<td {DISPLAY_DEBUG}>{POSITION}</td> |
|
71 |
</tr> |
|
72 |
<!-- END section_block --> |
|
73 |
<tr> |
|
74 |
<td align="left" colspan="{DEBUG_COLSPAN_SIZE}"> |
|
75 |
<br /> |
|
76 |
<input type="submit" name="save" value="{TEXT_SAVE}" class="input_medium" /> |
|
77 |
</td> |
|
78 |
</tr> |
|
79 |
</table> |
|
80 |
</form> |
|
81 |
<br /> |
|
82 |
<h2>{TEXT_ADD_SECTION}</h2> |
|
83 |
<form name="add" action="{ADMIN_URL}/pages/sections.php?page_id={PAGE_IDKEY}" method="post">
|
|
84 |
<input type="hidden" name="page_id" value="{PAGE_IDKEY}" />
|
|
85 |
{FTAN} |
|
86 |
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%"> |
|
87 |
<tr> |
|
88 |
<td width="50%" valign="middle"> |
|
89 |
<select name="module" class="input_large"> |
|
90 |
<!-- BEGIN module_block --> |
|
91 |
<option value="{VALUE}"{SELECTED}>{NAME}</option> |
|
92 |
<!-- END module_block --> |
|
93 |
</select> |
|
94 |
|
|
95 |
<input type="submit" name="submit" value="{TEXT_ADD}" class="input_medium" /> |
|
96 |
</td> |
|
97 |
</tr> |
|
98 |
</table> |
|
99 |
</form> |
|
100 |
<!-- BEGIN calendar_block --> |
|
101 |
<script type="text/javascript" > |
|
102 |
var section_id = '{VAR_SECTION_ID}'; |
|
103 |
var start_date = '{start_date}'; |
|
104 |
var end_date = '{end_date}'; |
|
105 |
var trigger_start = '{trigger_start}'; |
|
106 |
var trigger_end = '{trigger_end}'; |
|
107 |
var jscal_today = '{jscal_today}'; |
|
108 |
var jscal_ifformat = '{jscal_ifformat}'; |
|
109 |
var jscal_firstday = {jscal_firstday}; |
|
110 |
var showsTime = {showsTime}; |
|
111 |
var timeFormat = {timeFormat}; |
|
112 |
</script> |
|
113 |
<script type="text/javascript" src="{ADMIN_URL}/pages/page_calendar.js" ></script> |
|
114 |
<!-- END calendar_block --> |
|
115 | 115 |
<!-- END main_block --> |
branches/2.8.x/wb/templates/argos_theme/templates/pages_settings.htt | ||
---|---|---|
10 | 10 |
{TEXT_CURRENT_PAGE}: |
11 | 11 |
<b>{PAGE_TITLE}</b> |
12 | 12 |
- |
13 |
<a href="{ADMIN_URL}/pages/modify.php?page_id={PAGE_ID}">{TEXT_MODIFY_PAGE}</a> |
|
13 |
<a href="{ADMIN_URL}/pages/modify.php?page_id={PAGE_IDKEY}">{TEXT_MODIFY_PAGE}</a>
|
|
14 | 14 |
<font style="{DISPLAY_MANAGE_SECTIONS}">-</font> |
15 |
<a href="{ADMIN_URL}/pages/sections.php?page_id={PAGE_ID}" style="{DISPLAY_MANAGE_SECTIONS}">{TEXT_MANAGE_SECTIONS}</a> |
|
15 |
<a href="{ADMIN_URL}/pages/sections.php?page_id={PAGE_IDKEY}" style="{DISPLAY_MANAGE_SECTIONS}">{TEXT_MANAGE_SECTIONS}</a>
|
|
16 | 16 |
<br /> |
17 | 17 |
<font style="color:#999;" class="{DISPLAY_MODIFIED}"> |
18 | 18 |
{LAST_MODIFIED} {MODIFIED_BY} ({MODIFIED_BY_USERNAME}), {MODIFIED_WHEN} |
Also available in: Unified diff
secure peparing and beginning fix admin/pages