├── .gitignore ├── README ├── ajax.php ├── app ├── ajax.bootstrap.php ├── bootstrap.php ├── controllers │ ├── charts │ │ └── charts.php │ ├── content │ │ └── content.php │ ├── form │ │ ├── form.Ajax.php │ │ └── form.php │ ├── install │ │ ├── install.ajax.php │ │ └── install.php │ └── test │ │ └── test.php ├── index.html ├── log │ └── index.html ├── models │ ├── Content.php │ └── Menu.php └── views │ ├── charts │ └── charts.html │ ├── content │ ├── content.html │ └── content.php │ ├── css │ └── style.css │ ├── img │ ├── bg.gif │ └── logo_mini.gif │ ├── index.html │ └── not_found.html ├── changes ├── config ├── db.php ├── directory.php ├── index.html ├── mail.php ├── route.php ├── settings.php └── url.php ├── index.php ├── install-notes.txt ├── license.txt ├── system ├── const │ └── constants.php ├── language │ ├── de │ │ ├── de.gif │ │ ├── form.php │ │ ├── generic.php │ │ └── user.php │ ├── en │ │ ├── en.gif │ │ ├── form.php │ │ ├── generic.php │ │ └── user.php │ ├── es │ │ ├── es.gif │ │ ├── form.php │ │ ├── generic.php │ │ └── user.php │ └── index.html └── library │ ├── Charts.php │ ├── Controller.php │ ├── DB.php │ ├── Email.php │ ├── Email │ ├── Phpmailer_email.class.php │ └── phpmailer │ │ ├── LICENSE │ │ ├── class.phpmailer.php │ │ ├── class.pop3.php │ │ ├── class.smtp.php │ │ └── language │ │ └── phpmailer.lang-en.php │ ├── Form.php │ ├── Form │ ├── Rain_Form.php │ ├── lang │ │ ├── en.php │ │ ├── es.php │ │ └── it.php │ ├── plugins │ │ └── tiny_mce │ │ │ ├── jquery.tinymce.js │ │ │ ├── langs │ │ │ └── en.js │ │ │ ├── license.txt │ │ │ ├── plugins │ │ │ ├── advhr │ │ │ │ ├── css │ │ │ │ │ └── advhr.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ └── rule.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ └── rule.htm │ │ │ ├── advimage │ │ │ │ ├── css │ │ │ │ │ └── advimage.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── image.htm │ │ │ │ ├── img │ │ │ │ │ └── sample.gif │ │ │ │ ├── js │ │ │ │ │ └── image.js │ │ │ │ └── langs │ │ │ │ │ └── en_dlg.js │ │ │ ├── advlink │ │ │ │ ├── css │ │ │ │ │ └── advlink.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ └── advlink.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ └── link.htm │ │ │ ├── advlist │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── autoresize │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── autosave │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ └── langs │ │ │ │ │ └── en.js │ │ │ ├── bbcode │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── contextmenu │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── directionality │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── emotions │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── emotions.htm │ │ │ │ ├── img │ │ │ │ │ ├── smiley-cool.gif │ │ │ │ │ ├── smiley-cry.gif │ │ │ │ │ ├── smiley-embarassed.gif │ │ │ │ │ ├── smiley-foot-in-mouth.gif │ │ │ │ │ ├── smiley-frown.gif │ │ │ │ │ ├── smiley-innocent.gif │ │ │ │ │ ├── smiley-kiss.gif │ │ │ │ │ ├── smiley-laughing.gif │ │ │ │ │ ├── smiley-money-mouth.gif │ │ │ │ │ ├── smiley-sealed.gif │ │ │ │ │ ├── smiley-smile.gif │ │ │ │ │ ├── smiley-surprised.gif │ │ │ │ │ ├── smiley-tongue-out.gif │ │ │ │ │ ├── smiley-undecided.gif │ │ │ │ │ ├── smiley-wink.gif │ │ │ │ │ └── smiley-yell.gif │ │ │ │ ├── js │ │ │ │ │ └── emotions.js │ │ │ │ └── langs │ │ │ │ │ └── en_dlg.js │ │ │ ├── example │ │ │ │ ├── dialog.htm │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── img │ │ │ │ │ └── example.gif │ │ │ │ ├── js │ │ │ │ │ └── dialog.js │ │ │ │ └── langs │ │ │ │ │ ├── en.js │ │ │ │ │ └── en_dlg.js │ │ │ ├── fullpage │ │ │ │ ├── css │ │ │ │ │ └── fullpage.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── fullpage.htm │ │ │ │ ├── js │ │ │ │ │ └── fullpage.js │ │ │ │ └── langs │ │ │ │ │ └── en_dlg.js │ │ │ ├── fullscreen │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ └── fullscreen.htm │ │ │ ├── iespell │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── inlinepopups │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── skins │ │ │ │ │ └── clearlooks2 │ │ │ │ │ │ ├── img │ │ │ │ │ │ ├── alert.gif │ │ │ │ │ │ ├── button.gif │ │ │ │ │ │ ├── buttons.gif │ │ │ │ │ │ ├── confirm.gif │ │ │ │ │ │ ├── corners.gif │ │ │ │ │ │ ├── horizontal.gif │ │ │ │ │ │ └── vertical.gif │ │ │ │ │ │ └── window.css │ │ │ │ └── template.htm │ │ │ ├── insertdatetime │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── layer │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── legacyoutput │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── media │ │ │ │ ├── css │ │ │ │ │ ├── content.css │ │ │ │ │ └── media.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── img │ │ │ │ │ ├── flash.gif │ │ │ │ │ ├── flv_player.swf │ │ │ │ │ ├── quicktime.gif │ │ │ │ │ ├── realmedia.gif │ │ │ │ │ ├── shockwave.gif │ │ │ │ │ ├── trans.gif │ │ │ │ │ └── windowsmedia.gif │ │ │ │ ├── js │ │ │ │ │ ├── embed.js │ │ │ │ │ └── media.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ └── media.htm │ │ │ ├── nonbreaking │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── noneditable │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── pagebreak │ │ │ │ ├── css │ │ │ │ │ └── content.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ └── img │ │ │ │ │ ├── pagebreak.gif │ │ │ │ │ └── trans.gif │ │ │ ├── paste │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ ├── pastetext.js │ │ │ │ │ └── pasteword.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ ├── pastetext.htm │ │ │ │ └── pasteword.htm │ │ │ ├── preview │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── example.html │ │ │ │ ├── jscripts │ │ │ │ │ └── embed.js │ │ │ │ └── preview.html │ │ │ ├── print │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── save │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── searchreplace │ │ │ │ ├── css │ │ │ │ │ └── searchreplace.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ └── searchreplace.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ └── searchreplace.htm │ │ │ ├── spellchecker │ │ │ │ ├── css │ │ │ │ │ └── content.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ └── img │ │ │ │ │ └── wline.gif │ │ │ ├── style │ │ │ │ ├── css │ │ │ │ │ └── props.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ └── props.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ └── props.htm │ │ │ ├── tabfocus │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── table │ │ │ │ ├── cell.htm │ │ │ │ ├── css │ │ │ │ │ ├── cell.css │ │ │ │ │ ├── row.css │ │ │ │ │ └── table.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ ├── cell.js │ │ │ │ │ ├── merge_cells.js │ │ │ │ │ ├── row.js │ │ │ │ │ └── table.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ ├── merge_cells.htm │ │ │ │ ├── row.htm │ │ │ │ └── table.htm │ │ │ ├── template │ │ │ │ ├── blank.htm │ │ │ │ ├── css │ │ │ │ │ └── template.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ └── template.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ └── template.htm │ │ │ ├── visualchars │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── wordcount │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ └── xhtmlxtras │ │ │ │ ├── abbr.htm │ │ │ │ ├── acronym.htm │ │ │ │ ├── attributes.htm │ │ │ │ ├── cite.htm │ │ │ │ ├── css │ │ │ │ ├── attributes.css │ │ │ │ └── popup.css │ │ │ │ ├── del.htm │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── ins.htm │ │ │ │ ├── js │ │ │ │ ├── abbr.js │ │ │ │ ├── acronym.js │ │ │ │ ├── attributes.js │ │ │ │ ├── cite.js │ │ │ │ ├── del.js │ │ │ │ ├── element_common.js │ │ │ │ └── ins.js │ │ │ │ └── langs │ │ │ │ └── en_dlg.js │ │ │ ├── themes │ │ │ ├── advanced │ │ │ │ ├── about.htm │ │ │ │ ├── anchor.htm │ │ │ │ ├── charmap.htm │ │ │ │ ├── color_picker.htm │ │ │ │ ├── editor_template.js │ │ │ │ ├── editor_template_src.js │ │ │ │ ├── image.htm │ │ │ │ ├── img │ │ │ │ │ ├── colorpicker.jpg │ │ │ │ │ └── icons.gif │ │ │ │ ├── js │ │ │ │ │ ├── about.js │ │ │ │ │ ├── anchor.js │ │ │ │ │ ├── charmap.js │ │ │ │ │ ├── color_picker.js │ │ │ │ │ ├── image.js │ │ │ │ │ ├── link.js │ │ │ │ │ └── source_editor.js │ │ │ │ ├── langs │ │ │ │ │ ├── en.js │ │ │ │ │ └── en_dlg.js │ │ │ │ ├── link.htm │ │ │ │ ├── skins │ │ │ │ │ ├── default │ │ │ │ │ │ ├── content.css │ │ │ │ │ │ ├── dialog.css │ │ │ │ │ │ ├── img │ │ │ │ │ │ │ ├── buttons.png │ │ │ │ │ │ │ ├── items.gif │ │ │ │ │ │ │ ├── menu_arrow.gif │ │ │ │ │ │ │ ├── menu_check.gif │ │ │ │ │ │ │ ├── progress.gif │ │ │ │ │ │ │ └── tabs.gif │ │ │ │ │ │ └── ui.css │ │ │ │ │ └── o2k7 │ │ │ │ │ │ ├── content.css │ │ │ │ │ │ ├── dialog.css │ │ │ │ │ │ ├── img │ │ │ │ │ │ ├── button_bg.png │ │ │ │ │ │ ├── button_bg_black.png │ │ │ │ │ │ └── button_bg_silver.png │ │ │ │ │ │ ├── ui.css │ │ │ │ │ │ ├── ui_black.css │ │ │ │ │ │ └── ui_silver.css │ │ │ │ └── source_editor.htm │ │ │ └── simple │ │ │ │ ├── editor_template.js │ │ │ │ ├── editor_template_src.js │ │ │ │ ├── img │ │ │ │ └── icons.gif │ │ │ │ ├── langs │ │ │ │ └── en.js │ │ │ │ └── skins │ │ │ │ ├── default │ │ │ │ ├── content.css │ │ │ │ └── ui.css │ │ │ │ └── o2k7 │ │ │ │ ├── content.css │ │ │ │ ├── img │ │ │ │ └── button_bg.png │ │ │ │ └── ui.css │ │ │ ├── tiny_mce.js │ │ │ ├── tiny_mce_popup.js │ │ │ ├── tiny_mce_src.js │ │ │ └── utils │ │ │ ├── editable_selects.js │ │ │ ├── form_utils.js │ │ │ ├── mctabs.js │ │ │ └── validate.js │ └── tpl │ │ ├── default.css │ │ ├── default.php │ │ └── img │ │ └── loading.gif │ ├── Group.php │ ├── Loader.php │ ├── Model.php │ ├── Router.php │ ├── Session.php │ ├── User.php │ ├── User │ ├── Rain_Group.php │ ├── Rain_User.php │ └── Rain_User_Localization.php │ ├── User_Localization.php │ ├── View.php │ ├── View │ ├── Rain │ │ ├── Tpl.php │ │ ├── TplCompileRain 2.php │ │ ├── TplCompileRain.php │ │ ├── TplCompileRain_1.php │ │ └── TplCompileTwig.php │ ├── Raintpl_View.php │ └── rain.tpl.class.php │ ├── error.functions.php │ ├── functions.php │ └── index.html └── web ├── assign_execution_time.csv ├── css └── box.css ├── js └── jquery │ ├── jquery.form.js │ ├── jquery.min.js │ └── jquery.validate.min.js └── uploads └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_store 2 | cache/ 3 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | ----------------------------------------------------------------- 2 | 3 | Welcome to Rain Framework v.2 4 | 5 | ----------------------------------------------------------------- 6 | 7 | 8 | INTRODUCTION 9 | =================== 10 | 11 | RainFramework is an MVC framework for PHP, it has a strong but easy structure, 12 | it divides logic by presentation, with the following MVC organization: 13 | 14 | 15 | MODELS 16 | ^ 17 | user | 18 | input > LOADER ----> CONTROLLERS ----> VIEWS 19 | 20 | 21 | 22 | - LOADER, is the heart of the framework: 23 | * get the input 24 | * include libraries 25 | * init settings 26 | * connect database 27 | * authenticate the user 28 | * load the controller, selected by the user with the URI (es index.php/news/list/) 29 | * draw the output 30 | 31 | - CONTROLLERS, are the components that do "stuff", they load Models to retrieve data and draw the output with views 32 | 33 | - MODELS, get the information from database 34 | 35 | - VIEWS, are HTML templates, loaded with RainTPL -------------------------------------------------------------------------------- /ajax.php: -------------------------------------------------------------------------------- 1 | ajax_mode(); 15 | 16 | $loader->init_settings(); 17 | $loader->init_language('en'); 18 | $loader->init_db(); 19 | $loader->auth_user(); 20 | //$loader->auth_user(); 21 | $loader->init_session(); 22 | $loader->auto_load_controller(); 23 | 24 | // -- end -------------------------------------------------------------------------------- /app/bootstrap.php: -------------------------------------------------------------------------------- 1 | init_settings();//load the settings 6 | $loader->init_db(); 7 | $loader->init_session(); 8 | $loader->init_language();//set the language 9 | //$loader->auth_user(); 10 | $loader->init_theme();//set theme 11 | $loader->init_js(); 12 | 13 | #-------------------------------- 14 | # Auto Load the Controller 15 | # init_route set the controller/action/params 16 | # to load the controller 17 | #-------------------------------- 18 | $loader->auto_load_controller(); 19 | 20 | #-------------------------------- 21 | # Load model 22 | # load the model and assign the result 23 | # @params model, action, params, assign_to 24 | #-------------------------------- 25 | $loader->load_menu(); 26 | 27 | #-------------------------------- 28 | # Assign Layout variables 29 | #-------------------------------- 30 | $loader->assign( 'title', 'RainFramework' ); 31 | 32 | #-------------------------------- 33 | # Print the layout 34 | #-------------------------------- 35 | $loader->draw(); 36 | -------------------------------------------------------------------------------- /app/controllers/charts/charts.php: -------------------------------------------------------------------------------- 1 | load_library("Charts"); 11 | $data = array( array('OSX', 10), array('Win', 3 ), array('Unix', 7 ) ); 12 | $this->Charts->set_data($data) ; 13 | //$chart_pie = $this->Charts->draw_pie(); 14 | 15 | $this->Charts->load_csv( WEBSITE_DIR . "assign_execution_time.csv" ) ; 16 | $chart_line = $this->Charts->draw_line(); 17 | 18 | $tpl = new View; 19 | $tpl->assign( "chart_pie", $chart_pie ); 20 | $tpl->assign( "chart_line", $chart_line ); 21 | $tpl->draw( "charts/charts" ); 22 | 23 | } 24 | 25 | } 26 | 27 | ?> -------------------------------------------------------------------------------- /app/controllers/content/content.php: -------------------------------------------------------------------------------- 1 | load_model("content","content_obj"); 9 | 10 | $content_row = $this->content_obj->get(); 11 | 12 | // Load view 13 | $tpl = new View; 14 | $tpl->assign( $content_row ); 15 | $tpl->draw('content/content'); 16 | 17 | } 18 | 19 | } 20 | 21 | ?> -------------------------------------------------------------------------------- /app/controllers/form/form.Ajax.php: -------------------------------------------------------------------------------- 1 | ajax_mode( true, true ); 9 | echo $name = get_post('name'); 10 | 11 | } 12 | 13 | } 14 | 15 | ?> -------------------------------------------------------------------------------- /app/controllers/form/form.php: -------------------------------------------------------------------------------- 1 | 1, "b"=>2 ); 19 | $this->load_library( "Form", "form" ); 20 | $this->form->init_form( URL . "ajax.php/form/save/", "get" ); 21 | $this->form->open_table( "Table title" ); 22 | $this->form->add_hidden( 'a', 1 ); 23 | $this->form->add_item( 'text', 'name', 'text', 'description', null, 'required' ); 24 | $this->form->add_item( 'text', 'email', 'email', 'insert your email', null, 'required,email' ); 25 | $this->form->add_item( 'password', 'pw', 'password', 'insert your pw' ); 26 | $this->form->add_item( 'select', 'sel', 'select', 'make your choice', null, null, array('options'=>$options) ); 27 | $this->form->add_item( 'checkbox', 'check', 'select', 'make your choice', null, null, array('options'=>$options) ); 28 | $this->form->add_item( 'textarea', 'textarea', 'textarea', 'description' ); 29 | $this->form->add_item( 'word', 'word', 'textarea', 'description' ); 30 | $this->form->add_item( 'file', 'file', 'filename', 'upload a file' ); 31 | $this->form->add_item( 'yes', 'yes', 'enable', 'do you want to enable?' ); 32 | $this->form->add_html( 'this is plain html' ); 33 | $this->form->add_button(); 34 | $this->form->close_table(); 35 | $this->form->draw( $use_ajax = true, $return_string = false ); 36 | 37 | } 38 | 39 | } 40 | 41 | ?> -------------------------------------------------------------------------------- /app/controllers/install/install.php: -------------------------------------------------------------------------------- 1 | '; 14 | echo '

Thanks for using Rainframework!

'; 15 | echo 'To Install and Use some Classes you will add some informations about you'; 16 | 17 | //load form class 18 | $this->load_library("Form", "form"); 19 | $this->form->init_form(URL . "ajax.php/install/install" , "post"); 20 | $this->form->open_table("Userdata"); 21 | $this->form->add_item("text" , "adminname" , "Admin-Name" , "Enter here your Adminname maybe needed later!!" , null , "required"); 22 | $this->form->add_item("text" , "adminemail" , "Admin-Email" , "for Login" , null , "required,email"); 23 | $this->form->add_item("password" , "adminpassword1" , "Admin-Password" , "for Login" , null , "required" , array("id"=>"adminpass1")); 24 | $this->form->add_item("password" , "adminpassword2" , "Admin-Password2" , "Repeat your Password" , null , "required"); 25 | $this->form->add_button(); 26 | $this->form->add_validation("adminpassword2" , 'equalTo="#adminpass1"' , "not equalTo Admin-Password"); 27 | $this->form->close_table(); 28 | $this->form->draw($ajax = true , $return_string = false); 29 | 30 | echo '
'; 31 | echo 'installerversion BETA.1.0'; 32 | echo '
'; 33 | } 34 | 35 | } -------------------------------------------------------------------------------- /app/controllers/test/test.php: -------------------------------------------------------------------------------- 1 | ajax_mode( true, true ); 24 | echo draw_msg( 'hei' ); 25 | } 26 | 27 | } 28 | 29 | ?> -------------------------------------------------------------------------------- /app/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Forbidden Access.

8 | 9 | 10 | -------------------------------------------------------------------------------- /app/log/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 403 Forbidden 4 | 5 | 6 | 7 |

Forbidden Access.

8 | 9 | 10 | -------------------------------------------------------------------------------- /app/models/Content.php: -------------------------------------------------------------------------------- 1 | 'Title', 'content'=>'Lorem ipsum dolor...' ); 13 | } 14 | 15 | 16 | } 17 | 18 | ?> -------------------------------------------------------------------------------- /app/models/Menu.php: -------------------------------------------------------------------------------- 1 | $voice, 'link'=> basename($_SERVER['SCRIPT_NAME']). '/' . $voice . '/', 'selected' => $selected==$voice ); 9 | } 10 | return $menu_list; 11 | } 12 | 13 | } 14 | 15 | ?> -------------------------------------------------------------------------------- /app/views/charts/charts.html: -------------------------------------------------------------------------------- 1 |
2 |

Charts

3 |
4 | {$chart_line} 5 | {$chart_pie} 6 |
7 |
8 | -------------------------------------------------------------------------------- /app/views/content/content.html: -------------------------------------------------------------------------------- 1 |
2 |

{$title}

3 |
{$content}
4 |
5 | -------------------------------------------------------------------------------- /app/views/content/content.php: -------------------------------------------------------------------------------- 1 |
2 |

3 |
4 |
5 | -------------------------------------------------------------------------------- /app/views/css/style.css: -------------------------------------------------------------------------------- 1 | body{font-family:Helvetica, Arial;font-size:12px;color:#444;background:#690;margin:0px;color:#444;height:100%;} 2 | a:link,a:visited,a:active{color:#333;text-decoration:none} 3 | a:hover{color:red;text-decoration:underline} 4 | img{border:0} 5 | h1,h2,h3{font-weight:normal;} 6 | h1{color:#393;font-size:24px;margin:3px 0 5px 0} 7 | h2{color:#6a6;font-size:20px;margin:0px} 8 | h3{color:#333;font-size:17px;margin:0px} 9 | 10 | #header{width:100%;height:215px;font-size:13px;color:#fff;} 11 | #header.doc{height:60px;} 12 | #menu{height:40px;line-height:40px;text-align:center;background:#360;text-shadow:1px 1px 1px #030;} 13 | #menu div{margin:0 auto;width:950px;} 14 | #menu img{margin:0 50px 0 0;float:left;margin-top:8px;} 15 | #menu form{background:#252;float:right;padding:0 12px;text-transform:uppercase;font-size:10px;} 16 | #menu input{border:0px;height:18px;color:#ccc;text-indent:5px;} 17 | #menu a{color:#eee;display:block;float:left;padding:0 20px;text-decoration:none;} 18 | #menu a.selected{background:#690;} 19 | #menu a:hover{background:#7a0;} 20 | #logo{width:950px;margin:30px auto;} 21 | 22 | #section{width:100%;min-width:950px;margin:0px auto;background:#360;} 23 | #section_inside{width:100%;background:#eee url(../img/bg.gif) repeat-x;} 24 | #section_inside_inside{padding:50px;overflow:hidden;color:#333;font-size:15px;} 25 | 26 | #footer{} 27 | #inner_footer{ width:950px;height:50px;margin:0px auto;padding:30px 0;color:#fff;font-size:12px;text-shadow:1px 1px 1px #039;} 28 | #footer a{color:#fff;} 29 | #footer .left{float:left;width:300px;} 30 | #footer .center{float:left;width:300px;text-align:center;} 31 | #footer .right{float:left;width:300px;text-align:right;} 32 | 33 | @font-face{font-family:Chunkfive;src: url(../fonts/Chunkfive.ttf);} -------------------------------------------------------------------------------- /app/views/img/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feulf/rainframework/9903751ae7644ed435accea7e0816d2230d502c4/app/views/img/bg.gif -------------------------------------------------------------------------------- /app/views/img/logo_mini.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/feulf/rainframework/9903751ae7644ed435accea7e0816d2230d502c4/app/views/img/logo_mini.gif -------------------------------------------------------------------------------- /app/views/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {$title} 5 | 6 | 7 | 8 | {$head} 9 | 10 | 11 | 12 | 13 | 14 |