![]() |
eFinancialPlanner
V1.0 (proof of concept)
Personal Financial Planning based on Maslowian Portfolio Theory
|
Public Member Functions | |
| html_helper () | |
| void | footer (string tab_name, string extraInfo="") |
| void | show_home () |
| void | header (int iid=0, bool addSavingsPlan=false, bool addPlots=false) |
| string | get_string (const std::string &varName) |
| void | show_toolBar (string tab_name, string usrName="") |
| void | next_step (int stepNbr, int subStepNbr) |
| void | aside (const string &textLine) |
| void | cout_box_color (string the_color) |
| string | get_box_color_class (string the_color) |
| string | get_glyphicon (string the_color) |
| string | terms_of_use () |
| string | privacy_policy () |
| string | cookie_policy () |
| string | collapse_open (string parent_id, string title, int nbr, bool add_triangle=true, bool is_open=true, string xtra_body_class="") |
| string | collapse_close (string parent_id="", int nbr=0, bool add_triangle=true) |
Public Attributes | |
| const string | c_salt = "k35f9vfgDtjTe1" |
| const string | seriesColorsGoalPlot ="[ 'rgba(160, 0, 0, 0.6)', 'rgba(0, 0, 160, 0.6)', 'rgba(0, 160, 0, 0.6)', \"#000\", \"#663\", \"#958c12\", \"#953579\", \"#4b5de4\", \"#d8b83f\", \"#ff5800\", \"#0085cc\"]" |
| const string | assetClassColors ="['#999', '#0c3', '#396', '#0c9', '#3cf', '#69f', '#96f', '#f93', '#fc3', '#f63', '#33f']" |
Private Types | |
| typedef std::map< string, string > | STRMAP |
| typedef std::map< int, STRMAP > | STEPDEF |
Private Member Functions | |
| void | header_menu_bar () |
| void | parse_date_time () |
| void | show_args (int argc, char **argv) |
| void | parse_breadcrumb (int tab, int sub_tab) |
| void | parse_title (int tab, int sub_tab) |
| int | get_prev_step (int theStep, int theSubStep) |
| int | get_prev_sub_step (int theStep, int theSubStep) |
| int | get_next_step (int theStep, int theSubStep) |
| int | get_next_sub_step (int theStep, int theSubStep) |
| bool | sub_step_exists (int theStep, int theSubStep) |
| int | get_step_nbr (string step_name) |
| int | get_sub_step_nbr (string sub_step_name) |
| void | show_social () |
| void | navbar_start () |
| void | navbar_item (int k, string usr_name="", string tab_name="") |
| void | navbar_end () |
| void | navbar_box (int k, string usr_name="") |
Private Attributes | |
| const std::map< int, string > | c_photos_phdb |
| const string | c_photos_phdb_dir = "/img/" |
| const string | c_content_header = "Content-type:text/html\r\n\r\n" |
| const string | c_doc_type = "<!DOCTYPE html>" |
| std::map< int, string > | scale125i2s |
| a scale from 1 to 5, int to string More... | |
| STEPDEF | steps |
| std::map< int, STEPDEF > | sub_steps |
| std::map< string, int > | step_nbrs |
| std::map< string, int > | sub_step_nbrs |
| const string | c_right_menu_names [NBR_RIGHT_MENU] = {"My Account","Disclaimers","Log Out"} |
| const string | c_right_menu_urls [NBR_RIGHT_MENU] |
| const string | c_arrow = " <img src=\"" + oConfig.css_dir + "next.gif\" border=\"0\" width=\"5\" height=\"9\" alt=\"\" class=\"noPadding\"> " |
Definition at line 1 of file html_helper.class.cpp.
|
private |
Definition at line 47 of file html_helper.class.cpp.
|
private |
Definition at line 46 of file html_helper.class.cpp.
| html_helper::html_helper | ( | ) |
CONSTRUCTOR ==> initalizations
note that these definitions cannot be done at declaration (must be in a function!)
HOME
login & registert
Personalize
Goals
Assets & cash flows
feedback
simulation
followup
Definition at line 125 of file html_helper.class.cpp.
| void html_helper::aside | ( | const string & | textLine | ) |
aside
Definition at line 1119 of file html_helper.class.cpp.
|
inline |
collapse_close
Definition at line 401 of file html_helper.class.cpp.
|
inline |
collapse_open
< note the "in": the jqplot chart won't render in hidden div's :-(
Definition at line 375 of file html_helper.class.cpp.
|
inline |
terms_of_use
Definition at line 1312 of file html_helper.class.cpp.
| void html_helper::cout_box_color | ( | string | the_color | ) |
cout_box_color
sends the appropriate class (for the div surrounding a goal)
Definition at line 1233 of file html_helper.class.cpp.
| void html_helper::footer | ( | string | tab_name, |
| string | extraInfo = "" |
||
| ) |
footer
Definition at line 428 of file html_helper.class.cpp.
| string html_helper::get_box_color_class | ( | string | the_color | ) |
get_box_color_class
Definition at line 1246 of file html_helper.class.cpp.
| string html_helper::get_glyphicon | ( | string | the_color | ) |
get_glyphicon
Definition at line 1261 of file html_helper.class.cpp.
|
inlineprivate |
get_next_step
Definition at line 230 of file html_helper.class.cpp.
|
inlineprivate |
get_next_sub_step
Definition at line 250 of file html_helper.class.cpp.
|
inlineprivate |
get_prev_step
Definition at line 215 of file html_helper.class.cpp.
|
inlineprivate |
get_prev_sub_step
xxxxxxxxxxxxxxxxxxxxxxxxxxxNOT OK!!!!!!!!!!! TODO: repair this function, it does not work for the step after one with sub-steps
Definition at line 284 of file html_helper.class.cpp.
|
private |
get_step_nbr
Definition at line 334 of file html_helper.class.cpp.
| string html_helper::get_string | ( | const std::string & | varName | ) |
Definition at line 785 of file html_helper.class.cpp.
|
private |
get_sub_step_nbr
Definition at line 354 of file html_helper.class.cpp.
| void html_helper::header | ( | int | iid = 0, |
| bool | addSavingsPlan = false, |
||
| bool | addPlots = false |
||
| ) |
header
addPlots –> adds the jqPlot sources to display graphs addSavingsPlan –> adds the show/hide buttons for the savings plan
=== jquery
=== jqplot
=== bespoke javascript
=== date-picker
=== the presentation (bootstrap)
=== fonts
=== body
< if it is not in an iframe, then the menu is parsed, otherwise we assume that it is done by the calling webpage
Definition at line 562 of file html_helper.class.cpp.
|
private |
header_menu_bar
Definition at line 539 of file html_helper.class.cpp.
|
inlineprivate |
navbar_box
parses the box in that contains the username, links to my_account, Disclaimers, etc.
Definition at line 948 of file html_helper.class.cpp.
|
inlineprivate |
|
inlineprivate |
navbar_item
adds one item to the navigation bar
Definition at line 821 of file html_helper.class.cpp.
|
inlineprivate |
navbar_start
open the environment in which the navigation bar will reside
Definition at line 802 of file html_helper.class.cpp.
| void html_helper::next_step | ( | int | stepNbr, |
| int | subStepNbr | ||
| ) |
next_step
Definition at line 1046 of file html_helper.class.cpp.
|
private |
parse_breadcrumb
parse the breadcrumb given the location as tab, subtab
< if there is a sub-tab, then show it
< if there is a sub-tab, then show it
Definition at line 1158 of file html_helper.class.cpp.
|
private |
parse_date_time
Definition at line 529 of file html_helper.class.cpp.
|
private |
parse_title
parses the title section to cout, given the location as tab, subtab
Definition at line 1198 of file html_helper.class.cpp.
|
inline |
privacy_policy
Definition at line 1303 of file html_helper.class.cpp.
|
private |
| void html_helper::show_home | ( | ) |
|
private |
show_social shows the badges for the social media (with underlying links to follow, etc.)
Definition at line 1138 of file html_helper.class.cpp.
| void html_helper::show_toolBar | ( | string | tab_name, |
| string | usrName = "" |
||
| ) |
show_toolBar
Definition at line 988 of file html_helper.class.cpp.
|
inlineprivate |
sub_step_exists
Definition at line 308 of file html_helper.class.cpp.
|
inline |
terms_of_use
Definition at line 1294 of file html_helper.class.cpp.
| const string html_helper::assetClassColors ="['#999', '#0c3', '#396', '#0c9', '#3cf', '#69f', '#96f', '#f93', '#fc3', '#f63', '#33f']" |
Definition at line 23 of file html_helper.class.cpp.
|
private |
Definition at line 112 of file html_helper.class.cpp.
|
private |
Definition at line 42 of file html_helper.class.cpp.
|
private |
Definition at line 43 of file html_helper.class.cpp.
|
private |
Definition at line 39 of file html_helper.class.cpp.
|
private |
Definition at line 41 of file html_helper.class.cpp.
|
private |
Definition at line 106 of file html_helper.class.cpp.
|
private |
| const string html_helper::c_salt = "k35f9vfgDtjTe1" |
Definition at line 9 of file html_helper.class.cpp.
|
private |
a scale from 1 to 5, int to string
Definition at line 45 of file html_helper.class.cpp.
| const string html_helper::seriesColorsGoalPlot ="[ 'rgba(160, 0, 0, 0.6)', 'rgba(0, 0, 160, 0.6)', 'rgba(0, 160, 0, 0.6)', \"#000\", \"#663\", \"#958c12\", \"#953579\", \"#4b5de4\", \"#d8b83f\", \"#ff5800\", \"#0085cc\"]" |
Definition at line 19 of file html_helper.class.cpp.
|
private |
Definition at line 55 of file html_helper.class.cpp.
|
private |
Definition at line 48 of file html_helper.class.cpp.
|
private |
Definition at line 56 of file html_helper.class.cpp.
|
private |
Definition at line 49 of file html_helper.class.cpp.