Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

added searchtable function to more tables in interface you can now sort by any column in most tables in YaCy just by clicking on the headline column of the table

orbiter27b2998eb460
diff --git a/htroot/Table_API_p.html b/htroot/Table_API_p.html
index 557c79fd8..8cc480f17 100644
--- a/htroot/Table_API_p.html
+++ b/htroot/Table_API_p.html
@@ -23,6 +23,7 @@
}
-->
</script>
+ <script src="/js/sorttable.js"></script>
</head>
<body id="Tables">
#%env/templates/header.template%#
@@ -37,7 +38,7 @@
<form action="Table_API_p.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8" name="apilist">
<fieldset>
<legend><label for="table">Recorded Actions</label></legend>
- <table border="0" cellpadding="2" cellspacing="1">
+ <table class="sortable" border="0" cellpadding="2" cellspacing="1">
<tr class="TableHeader" valign="bottom">
<td><input type="checkbox" name="allswitch" onclick="setall(this.form.name, this.value)" /></td>
<td>Date</td>
@@ -67,7 +68,7 @@
<form action="#">
<fieldset>
<legend><label for="table">Result of API execution</label></legend>
- <table border="0" cellpadding="2" cellspacing="1">
+ <table class="sortable" border="0" cellpadding="2" cellspacing="1">
<tr class="TableHeader" valign="bottom">
<td>Status</td>
<td>URL</td>
diff --git a/htroot/Tables_p.html b/htroot/Tables_p.html
index 6cf224fa9..7d94bf9f3 100644
--- a/htroot/Tables_p.html
+++ b/htroot/Tables_p.html
@@ -23,6 +23,7 @@
}
-->
</script>
+ <script src="/js/sorttable.js"></script>
</head>
<body id="Tables">
#%env/templates/header.template%#
@@ -48,7 +49,7 @@
<form action="Tables_p.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8" name="tablelisting">
<fieldset>
<legend><label for="table">Table Editor: showing table '#[table]#'</label></legend>
- <table border="0" cellpadding="2" cellspacing="1">
+ <table class="sortable" border="0" cellpadding="2" cellspacing="1">
<tr class="TableHeader" valign="bottom">
<td><input type="checkbox" name="allswitch" onclick="setall(this.form.name, this.value)" /></td>
<td>PK</td>
diff --git a/htroot/api/table_p.html b/htroot/api/table_p.html
index 496588b64..6a32b267f 100644
--- a/htroot/api/table_p.html
+++ b/htroot/api/table_p.html
@@ -7,12 +7,13 @@
#(/showtable)#
#%env/templates/metas.template%#
</head>
+ <script src="/js/sorttable.js"></script>
<body id="Table">
#(showtable)#::
<form action="/Tables_p.html" method="post" target="_parent" enctype="multipart/form-data" accept-charset="UTF-8" name="tablelisting">
<fieldset>
<legend><label for="table">Table: '#[table]#'</label></legend>
- <table border="0" cellpadding="2" cellspacing="1">
+ <table class="sortable" border="0" cellpadding="2" cellspacing="1">
<tr class="TableHeader" valign="bottom">
#(showpk)#::<td>PK</td>#(/showpk)#
#{columns}#
diff --git a/htroot/yacyinteractive.html b/htroot/yacyinteractive.html
index 884ab11f2..f56903f48 100644
--- a/htroot/yacyinteractive.html
+++ b/htroot/yacyinteractive.html
@@ -59,7 +59,7 @@ function updatepage(str) {
if (totalResults > 0) {
var item;
- html += "<table class=\"networkTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" width=\"99%\">";
+ html += "<table class=\"sortable\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" width=\"99%\">";
html += "<tr class=\"TableHeader\" valign=\"bottom\">";
html += "<td>Name</td>";
html += "<td width=\"60\">Size</td>";
@@ -78,6 +78,7 @@ function updatepage(str) {
}
//]]>
</script>
+<script src="/js/sorttable.js"></script>
</head>
<body>
<script type="text/javascript">