58
58
void Html_Header::create (const vector <pair <string, string> > & breadcrumbs)
60
60
HtmlText * html_text = static_cast<HtmlText *>(m_html_text);
61
xml_node tableElement = html_text->new_table ();
62
xml_node tableRowElement = html_text->new_table_row (tableElement);
63
xml_node tableDataElement = html_text->new_table_data (tableRowElement);
61
xml_node table_element = html_text->new_table ();
62
xml_node table_row_element = html_text->new_table_row (table_element);
63
xml_node table_data_element = html_text->new_table_data (table_row_element);
64
64
for (auto breadcrumb : breadcrumbs) {
65
html_text->add_link (tableDataElement, breadcrumb.second, "", breadcrumb.first, "", ' ' + breadcrumb.first + ' ');
65
html_text->add_link (table_data_element, breadcrumb.second, "", breadcrumb.first, "", ' ' + breadcrumb.first + ' ');
67
tableDataElement = html_text->new_table_data (tableRowElement, true);
68
xml_node formElement = tableDataElement.append_child ("form");
67
table_data_element = html_text->new_table_data (table_row_element, true);
68
xml_node formElement = table_data_element.append_child ("form");
69
69
formElement.append_attribute ("action") = "/webbb/search";
70
70
formElement.append_attribute ("method") = "GET";
71
71
formElement.append_attribute ("name") = "search";