ADR2 is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

Commit 21

User picture
  • Author: psychobunny
  • 2011-03-13 01:49 (about 3 years ago)

Files Affected

 
2021
77
$resurrect = $HTTP_POST_VARS['resurrect'];
77
$resurrect = $HTTP_POST_VARS['resurrect'];
78
 
78
 
79
 
79
 
80
//@@@ START: initiate display and menus @@@
 
 
81
//
 
 
82
// adr_construct_frame: frame_id, container_id, text_content, frame_border, frame_background, position, { custom_width, custom_height, custom_left, custom_top }
 
 
83
//
 
 
84
// 'position' places the frame in predetermined locations, for now we have: main, label_top, sidebar_left, canvas (to add images, ex: adr_battle). Easy to add more. Optionally you can use the custom dimensions.
 
 
85
// TODO: ACP to allow user to toy around with menu/frame layout,positions, and content.
 
 
86
 
80
 
87
$frame[0]=adr_construct_frame(1, 0, 'Explore', 'Adr_previous_box', '',0,0,0,0);
 
 
88
$frame[1]=adr_construct_frame(1, 0, 'Menu', 'Adr_menu', '', 0,0,80,0);
 
 
89
$frame[2]=adr_stat_box($adr_char);
 
 
90
//$frame[3]=adr_chat_box($adr_char);
 
 
91
 
81
 
92
// if one of the frame's contents will be a menu, define it. Otherwise its best to set it to -1
82
#### START: AJAX ######################################################
93
$frame_is_menu = 1;
83
// Initialize DIVs that the browser will draw
94
$menu_selected = 0;
84
// $ajax->div( TEXT, CSS_CLASS, { TYPE, CUSTOM_WIDTH, CUSTOM_HEIGHT, CUSTOM_LEFT, CUSTOM_TOP } );
95
// adr_construct_menu: menu_text, { location, post_parameters | get_parameters }
85
$ajax->div('Explore', 'Adr_previous_box');
 
 
86
$ajax->div('Menu', 'Adr_menu', 'MENU');
96
 
87
 
97
$menu[0]=adr_construct_menu($lang['Adr_temple'], "adr_temple.$phpEx", " ");
88
// Add custom template
98
$menu[1]=adr_construct_menu($lang['Adr_character_stats_monster'], "adr_battle.$phpEx", " ");
89
// $theme->include_template( TEMPLATE_FILE, { FUNCTION } );
99
$menu[2]=adr_construct_menu($lang['Adr_inventory_page_name'], "adr_character_inventory.$phpEx", " ");
90
$thm->include_template('stat_box.thm','stat_box();');
100
$menu[3]=adr_construct_menu($lang['Adr_forge'], "adr_forge.$phpEx", " ");
 
 
101
$menu[4]=adr_construct_menu($lang['Logout'], "login.$phpEx", "logout=true");
 
 
102
 
91
 
 
 
92
// Construct Menu
 
 
93
// $ajax->menu( TEXT, LOCATION, {POST | GET } );
 
 
94
$ajax->menu($lang["Adr_temple"], "adr_temple.$phpEx");
 
 
95
$ajax->menu($lang['Adr_shops_page_name'], "adr_shops.$phpEx");
 
 
96
$ajax->menu($lang['Adr_character_stats_monster'], "adr_battle.$phpEx");
 
 
97
$ajax->menu($lang['Adr_inventory_page_name'], "adr_character_inventory.$phpEx");
 
 
98
$ajax->menu($lang['Adr_forge'], "adr_forge.$phpEx");
 
 
99
$ajax->menu($lang['Logout'], "login.$phpEx", "logout=true");
 
 
100
$ajax->menu_selected = 0; //initial cursor location - optional
 
 
101
include_once ('adr/modules/adr_modules.php');
 
 
102
// Send data to browser
 
 
103
$ajax->send();
 
 
104
#### END: AJAX ######################################################
 
 
105
 
 
 
106
 
103
//@@@ END: initiate display and menus @@@
107
//@@@ END: initiate display and menus @@@
104
 
108
 
105
 
109
 
...
 
...
 
110
}
114
}
111
 
115
 
112
 
116
 
113
//$text = '';
 
 
114
 
 
 
115
adr_ajax_send ($frame,$menu,$menu_selected,$frame_is_menu,$text);
 
 
116
 
 
 
117
?> 
117
?>