aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/out_cgi_search_sqlite.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/out_cgi_search_sqlite.org')
-rw-r--r--org/out_cgi_search_sqlite.org32
1 files changed, 23 insertions, 9 deletions
diff --git a/org/out_cgi_search_sqlite.org b/org/out_cgi_search_sqlite.org
index 62f456d..32e11ea 100644
--- a/org/out_cgi_search_sqlite.org
+++ b/org/out_cgi_search_sqlite.org
@@ -122,6 +122,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",
@@ -139,6 +142,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,
@@ -815,7 +821,7 @@ string show_matched_objects (string fn) {
<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">
@@ -874,6 +880,7 @@ string show_matched_objects (string fn) {
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; }
@@ -1310,17 +1317,11 @@ string show_matched_objects (string fn) {
<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>
┃");
@@ -1717,7 +1718,11 @@ LIMIT %%s OFFSET %%s
#+NAME: cgi_sqlite_select_statement_0
#+BEGIN_SRC d
(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;
@@ -1819,9 +1824,17 @@ LIMIT %%s OFFSET %%s
#+BEGIN_SRC d
}
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;
}
@@ -1899,3 +1912,4 @@ dub --force --compiler=ldc2 && sudo cp -v cgi-bin/spine-search /usr/lib/cgi-bin/
http://localhost/cgi-bin/spine-search?
#+END_SRC
+