eFinancialPlanner  V1.0 (proof of concept)
Personal Financial Planning based on Maslowian Portfolio Theory
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
bootstrap.namespace.cpp
Go to the documentation of this file.
1 namespace bootstrap
2 {
3  void bs_modal(string title, string content, string id = "myModal", string b1_text = "", string b1_url = "");
4  void bs_navbar_start();
5  void bs_navbar_item(string my_text = "", string my_url = "#", bool is_active = false);
6  void bs_navbar_end();
7  void bs_navbar_end1();
8  void bs_navbar_end2();
9 }
10 
11 
17 inline void bootstrap::bs_modal(string title, string content, string id, string b1_text, string b1_url)
18 {// btn-lg
19  cout << "<button class=\"btn btn-default\" data-toggle=\"modal\" data-target=\"#" << id << "\">";
20  cout << title << "</button>";
21  cout << "<div class=\"modal fade\" id=\"" << id << "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"" << id + "label" << "\" aria-hidden=\"true\">";
22  cout << "<div class=\"modal-dialog\">";
23  cout << "<div class=\"modal-content\">";
24  cout << "<div class=\"modal-header\">";
25  cout << "<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">&times;</button>";
26  cout << "<h4 class=\"modal-title\" id=\"" << id + "label" << "\">" << title << "</h4>";
27  cout << "</div>";
28  cout << "<div class=\"modal-body\">" << content << "</div>";
29  cout << "<div class=\"modal-footer\">";
30  cout << "<button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Close</button>";
31  if (b1_text != "") cout << "<a href=\"" << b1_url << "\" class=\"btn btn-primary\">" << b1_text << "</button>";
32  //<button type=\"button\" class=\"btn btn-primary\">" << b1_text << "</button>";
33  cout << "</div>";
34  cout << "</div>";// <!-- /.modal-content -->
35  cout << "</div>";//<!-- /.modal -->";
36  cout << "</div>";//<!-- /.modal -->";
37 }
38 
45 {
46  cout << "<nav class=\"navbar navbar-default\">";
47  cout << "<div class=\"container-fluid\">";
48  cout << "<div class=\"navbar-header\">";
49 
50  cout << "<button type=\"button\" class=\"navbar-toggle collapsed\" data-toggle=\"collapse\" data-target=\"#pfp-menu\" aria-expanded=\"false\">";
51  cout << "<span class=\"sr-only\">Toggle navigation</span>";
52  cout << "<span class=\"icon-bar\"></span>";
53  cout << "<span class=\"icon-bar\"></span>";
54  cout << "<span class=\"icon-bar\"></span>";
55  cout << "</button>";
56 
57  cout << "<a class=\"navbar-brand\" href=\"#\"><img class=\"noPadding\" src=\"" << oConfig.img_dir << "ginkgo.png\" width=\"50px\"></a>";
58  cout << "</div>";
59 
60  // here follows the nav-items
61  cout << "<div class=\"collapse navbar-collapse\" id=\"pfp-menu\">";
62  cout << "<ul class=\"nav nav-tabs\">";
63 }
70 {
71  cout << "</ul>";
72 }
79 {
80  cout << "</div>";
81  cout << "</div>";
82  cout << "</nav>";
83 }
90 {
93 }
99 inline void bootstrap::bs_navbar_item(string my_text, string my_url, bool is_active)
100 {
101  cout << "<li role=\"presentation\" ";
102  if (is_active) {cout << "class=\"active\"";}
103  cout << "><a href=\"" << my_url << "\">" << my_text << "</a></li>";
104 }
void bs_modal(string title, string content, string id="myModal", string b1_text="", string b1_url="")
const string img_dir
void bs_navbar_item(string my_text="", string my_url="#", bool is_active=false)
config oConfig
mysql connection mysql connector from dev.mysql.com
Definition: efp.cpp:149