aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc_reform/io_out')
-rw-r--r--src/doc_reform/io_out/cgi_sqlite_search_form.d31
1 files changed, 22 insertions, 9 deletions
diff --git a/src/doc_reform/io_out/cgi_sqlite_search_form.d b/src/doc_reform/io_out/cgi_sqlite_search_form.d
index 4a77d48..9c95f7d 100644
--- a/src/doc_reform/io_out/cgi_sqlite_search_form.d
+++ b/src/doc_reform/io_out/cgi_sqlite_search_form.d
@@ -516,7 +516,7 @@ void cgi_function_intro(Cgi cgi) {
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>
- ≅ SiSU spine search form
+ %s
</title>
<meta name="sourcefile" content="SiSU.sst">
<link rel="generator" href="sisudoc.org">
@@ -575,6 +575,7 @@ void cgi_function_intro(Cgi cgi) {
background-color : #%s;
}
p.norm { }
+ p.center { text-align : center; }
p.i1 { padding-left : 1em; }
p.i2 { padding-left : 2em; }
p.i3 { padding-left : 3em; }
@@ -1005,17 +1006,11 @@ void cgi_function_intro(Cgi cgi) {
<tr><td width="20%%%%">
<table summary="home button / home information" border="0" cellpadding="2" cellspacing="0">
<tr><td align="left">
- <br><a href="http://sisudoc.org/" target="_top">
- <label for="find"><b>≅ SiSU spine</b></label>
- </a>
- <br><a href="http://git.sisudoc.org/" target="_top">
- git
- </a>
+ %s
</td></tr>
</table>
</td>
<td>
- <label for="find">(generated) search form</label>
</td></tr>
</table>
┃");
@@ -1342,7 +1337,11 @@ LIMIT %%s OFFSET %%s
cv.sql_match_offset,
);
(cv.checked_sql)
- ? cgi.write(previous_next ~ "<hr><font size=\"2\" color=\"#666666\">" ~ sql_select.the_body.strip.split("\n ").join(" ").split("\n").join("<br>") ~ "</font>\n")
+ ? cgi.write(previous_next
+ ~ "<hr><font size=\"2\" color=\"#666666\">"
+ ~ sql_select.the_body.strip.split("\n ").join(" ").split("\n").join("<br>")
+ ~ "</font>\n"
+ )
: "";
cgi.write(previous_next);
auto select_query_results = db.execute(sql_select.the_body).cached;
@@ -1426,9 +1425,17 @@ LIMIT %%s OFFSET %%s
}
}
cgi.write( previous_next);
+
} else { // offset_not_beyond_limit = false;
cgi.write("select_query_results empty<p>\n");
}
+ cgi.write("<br><p class=\"center\"><a href=\"http://sisudoc.org/\" target=\"_top\">
+<label for=\"find\"><b>≅ SiSU spine</b></label>
+</a> <label for=\"find\">(generated) search form</label>
+<br><a href=\"http://git.sisudoc.org/\" target=\"_top\">
+ git</a>
+</p>
+");
}
sql_search_query;
}
@@ -1447,6 +1454,9 @@ mixin GenericMain!cgi_function_intro;
get_doc_collection_sub_root(make_and_meta_struct.conf.output_path),
make_and_meta_struct.conf.output_path ~ "/sqlite/",
_sqlite_db_fn,
+ (opt_action.cgi_search_title.empty)
+ ? make_and_meta_struct.conf.w_srv_cgi_search_title
+ : opt_action.cgi_search_title,
(opt_action.css_theme_default) ? "FFFFFF" : "000000",
(opt_action.css_theme_default) ? "000000" : "CCCCCC",
(opt_action.css_theme_default) ? "FFFFFF" : "000000",
@@ -1464,6 +1474,9 @@ mixin GenericMain!cgi_function_intro;
(opt_action.css_theme_default) ? "FFFFFF" : "777777",
(opt_action.css_theme_default) ? "000000" : "FFFF48",
(opt_action.css_theme_default) ? "FFFF48" : "777748",
+ (opt_action.cgi_search_title.empty)
+ ? make_and_meta_struct.conf.w_srv_cgi_search_title
+ : opt_action.cgi_search_title,
(opt_action.css_theme_default) ? "222222" : "AAAAAA",
_cgi_search_script,
_sqlite_db_fn,