diff --git a/wbce/admin/pages/page_tree/page_tree.php b/wbce/admin/pages/page_tree/page_tree.php index 9b92e417a..eb279029b 100644 --- a/wbce/admin/pages/page_tree/page_tree.php +++ b/wbce/admin/pages/page_tree/page_tree.php @@ -1,327 +1,327 @@ -query("SELECT * FROM `".TABLE_PREFIX."pages` ORDER BY position ASC"); -$number_all_pages = $pages->numRows(); - -$refs = array(); -$list = array(); -// check if thorns wysiwyg history & draft is installed -$use_working_copy = (file_exists(WB_PATH.'/modules/wysiwyg/manage_history.php'))?true:false; - -// create $list[] Array -while($page = $pages->fetchRow()) { - $thisref = &$refs[ $page['page_id'] ]; - - $thisref['parent'] = $page['parent']; - $thisref['root_parent'] = $page['root_parent']; - $thisref['menu_title'] = $page['menu_title']; - $thisref['page_title'] = $page['page_title']; - $thisref['level'] = $page['level']; - $thisref['visibility'] = $page['visibility']; - $thisref['admin_groups'] = $page['admin_groups']; - $thisref['admin_users'] = $page['admin_users']; - $thisref['position'] = $page['position']; - $thisref['page_id'] = $page['page_id']; - $thisref['link'] = $page['link']; - - if ($page['parent'] == 0){ - $pages_list[ $page['page_id'] ] = &$thisref; - }else{ - $refs[ $page['parent'] ]['children'][ $page['page_id'] ] = &$thisref; - } -} - -/** - * - * function draw_pagetree() - */ -function draw_pagetree($pages_list) { - global $admin, $database, $use_working_copy, $icons_dir, $TEXT, $HEADING, $MESSAGE; - $siblings = count($pages_list); - - $html = "', $p['page_id'])."\n"; - } - } - $html .= ''; - // class="page_list" for all UL's larger than parent=0 - $ULpage_listClass = ($p['parent'] != 0) ? ' class="page_list"' : ''; - // display:block depending on cookie (JS Admin Toggle) - $ULblockStyle = (isset($_COOKIE['p'.$p['parent']]) && $_COOKIE['p'.$p['parent']]) ? ' style="display: block; "' : ''; - - return @sprintf($html, $p['parent'],$ULpage_listClass.$ULblockStyle); -} -?> -
-

-
- style="display:none;"> - - - - - - - - - -
/ : <title> ():PageID:::
-('.$TEXT['NONE_FOUND'].')
'; -?> -:   - '428837', 'hidden'=> '9B0808', 'registered'=> 'A96807', 'private'=> '086A97', 'none'=> 'AB3334'); - if (PAGE_TRASH == 'inline') - $visibility_legend['deleted'] = '2A3540'; -?> -
- (): -$color) - echo '  '.ucfirst($TEXT[strtoupper($icon)]).' '; - -if(isset($use_dragdrop_switch) && $use_dragdrop_switch == TRUE){ - $query_order_pages = "SELECT `value` FROM `".TABLE_PREFIX."mod_jsadmin` WHERE `name` = 'mod_jsadmin_ajax_order_pages'"; - $set_dd = $database->get_one($query_order_pages); - if($set_dd == 0){ - $set_dd = 1; - $TXT_ENABLE = $TEXT['DISABLED']; - }elseif($set_dd == 1){ - $set_dd = 0; - $TXT_ENABLE = $TEXT['ACTIVE']; - } -?> - - - - -
- +query("SELECT * FROM `".TABLE_PREFIX."pages` ORDER BY position ASC"); +$number_all_pages = $pages->numRows(); + +$refs = array(); +$list = array(); +// check if thorns wysiwyg history & draft is installed +$use_working_copy = (file_exists(WB_PATH.'/modules/wysiwyg/manage_history.php'))?true:false; + +// create $list[] Array +while($page = $pages->fetchRow()) { + $thisref = &$refs[ $page['page_id'] ]; + + $thisref['parent'] = $page['parent']; + $thisref['root_parent'] = $page['root_parent']; + $thisref['menu_title'] = $page['menu_title']; + $thisref['page_title'] = $page['page_title']; + $thisref['level'] = $page['level']; + $thisref['visibility'] = $page['visibility']; + $thisref['admin_groups'] = $page['admin_groups']; + $thisref['admin_users'] = $page['admin_users']; + $thisref['position'] = $page['position']; + $thisref['page_id'] = $page['page_id']; + $thisref['link'] = $page['link']; + + if ($page['parent'] == 0){ + $pages_list[ $page['page_id'] ] = &$thisref; + }else{ + $refs[ $page['parent'] ]['children'][ $page['page_id'] ] = &$thisref; + } +} + +/** + * + * function draw_pagetree() + */ +function draw_pagetree($pages_list) { + global $admin, $database, $use_working_copy, $icons_dir, $TEXT, $HEADING, $MESSAGE; + $siblings = count($pages_list); + + $html = "', $p['page_id'])."\n"; + } + } + $html .= ''; + // class="page_list" for all UL's larger than parent=0 + $ULpage_listClass = ($p['parent'] != 0) ? ' class="page_list"' : ''; + // display:block depending on cookie (JS Admin Toggle) + $ULblockStyle = (isset($_COOKIE['p'.$p['parent']]) && $_COOKIE['p'.$p['parent']]) ? ' style="display: block; "' : ''; + + return @sprintf($html, $p['parent'],$ULpage_listClass.$ULblockStyle); +} +?> +
+

+
+ style="display:none;"> + + + + + + + + + +
/ : <title> ():PageID:::
+('.$TEXT['NONE_FOUND'].')
'; +?> +:   + '428837', 'hidden'=> '9B0808', 'registered'=> 'A96807', 'private'=> '086A97', 'none'=> 'AB3334'); + if (PAGE_TRASH == 'inline') + $visibility_legend['deleted'] = '2A3540'; +?> +
+ (): +$color) + echo '  '.ucfirst($TEXT[strtoupper($icon)]).' '; + +if(isset($use_dragdrop_switch) && $use_dragdrop_switch == TRUE){ + $query_order_pages = "SELECT `value` FROM `".TABLE_PREFIX."mod_jsadmin` WHERE `name` = 'mod_jsadmin_ajax_order_pages'"; + $set_dd = $database->get_one($query_order_pages); + if($set_dd == 0){ + $set_dd = 1; + $TXT_ENABLE = $TEXT['DISABLED']; + }elseif($set_dd == 1){ + $set_dd = 0; + $TXT_ENABLE = $TEXT['ACTIVE']; + } +?> + + + + +
+ diff --git a/wbce/templates/advancedThemeWbFlat/templates/pages_sections.htt b/wbce/templates/advancedThemeWbFlat/templates/pages_sections.htt index 3dc1fed4a..b4e5e6a46 100644 --- a/wbce/templates/advancedThemeWbFlat/templates/pages_sections.htt +++ b/wbce/templates/advancedThemeWbFlat/templates/pages_sections.htt @@ -73,12 +73,12 @@ - + {TEXT_CALENDAR} {TEXT_DELETE_DATE} - + {TEXT_CALENDAR} {TEXT_DELETE_DATE}