diff options
| author | theli <theli@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2006-08-13 13:29:50 +0000 |
|---|---|---|
| committer | theli <theli@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2006-08-13 13:29:50 +0000 |
| commit | 5e0b6f8f8391af9d82627b2f093d630f21a2dd6f (patch) | |
| tree | 50ff49beb3d638701a4495d302c73791f1370fb8 /htroot/sharedBlacklist_p.html | |
| parent | 6c8366aea15f7755ca8844c4f7470da5d220f2c4 (diff) | |
*) sorting peer name list on Blacklist_p.html
*) restructuring of sharedBlacklist_p.java
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2405 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/sharedBlacklist_p.html')
| -rw-r--r-- | htroot/sharedBlacklist_p.html | 79 |
1 files changed, 49 insertions, 30 deletions
diff --git a/htroot/sharedBlacklist_p.html b/htroot/sharedBlacklist_p.html index 5990291b9..e89ffc94e 100644 --- a/htroot/sharedBlacklist_p.html +++ b/htroot/sharedBlacklist_p.html @@ -7,7 +7,12 @@ <!--
function selectall(){
for(i = 1; i<= document.getElementsByName("num")[0].value; i++){
- document.getElementsByName(i)[0].checked = true;
+ document.getElementsByName("item" + i)[0].checked = true;
+ }
+}
+function deselectall(){
+ for(i = 1; i<= document.getElementsByName("num")[0].value; i++){
+ document.getElementsByName("item" + i)[0].checked = false;
}
}
-->
@@ -18,44 +23,58 @@ function selectall(){ <br><br>
<h2>Add Items to Blacklist</h2>
-#(page)#
-<p>This are all new Blacklist Entries from "#[name]#":</p>
-::
-#(/page)#
-<p>
-#(status)#
-::
-#{list}#
-<b>#[entry]#</b> was added to your Blacklist.<br>
-#{/list}#
-::
-File Error! Wrong Path?
-::
-YaCy-Peer "#[name]#" not found.
-::
-URL "#[address]#" not found or empty list.
-::
-Wrong Invocation! Please invoke with sharedBlacklist.html?name=PeerName
+<p class="info">
+#(status)#<!-- [0] -->
+::<!-- [1] -->
+ Unable to store the items into the blacklist file:<br>
+ <font color="red">#[error]#</font>
+::<!-- [2] -->
+ File Error! Wrong Path?
+::<!-- [3] -->
+ YaCy-Peer "<span class="settingsValue">#[name]#</span>" not found.
+::<!-- [4] -->
+ URL "<span class="settingsValue">#[address]#</span>" not found or empty list.
+::<!-- [5] -->
+ Wrong Invocation! Please invoke with sharedBlacklist.html?name=PeerName
#(/status)#
</p>
<form action="sharedBlacklist_p.html" method="post" enctype="multipart/form-data">
<input type="hidden" name="num" value="#[num]#">
-<input type="hidden" name="filename" value="#[filename]#">
+<input type="hidden" name="currentBlacklist" value="#[currentBlacklist]#">
<p>
-#(page)#
-<table border="1" cellspacing="1" cellpadding="3">
-<tr><th>Hostname/File/URL</th><th width="100%" align="left">Blocked Server</th><th> </th></tr>
-#{urllist}#
+#(page)#<!-- [0] -->
+<table>
+<tr>
+ <td><b>Blacklist source:</b></td>
+ <td><span class="settingsValue">#[source]#</span></td>
+</tr>
<tr>
-<td>#[name]#</td>
-<td>#[url]#</td>
-<td><input type="checkbox" name="#[count]#" value="#[url]#"></td>
+ <td><b>Blacklist target:</b></td>
+ <td><span class="settingsValue">#[target]#</span></td>
</tr>
-#{/urllist}#
-<tr><td colspan="3"><input type="button" onclick="selectall()" value="select all"><br><input type="submit" value="add" name="add"></td></tr>
</table>
-::
+<p />
+<table border="0" cellspacing="1" cellpadding="3" >
+ <tr class="TableHeader">
+ <th class="small" width="100%" align="left">Blacklist item</th>
+ <th class="small"> </th>
+ </tr>
+ #{urllist}#
+ <tr class="TableCell#(dark)#Light::Dark#(/dark)#" class="small">
+ <td>#[url]#</td>
+ <td><input type="checkbox" name="item#[count]#" value="#[url]#"></td>
+ </tr>
+ #{/urllist}#
+ <tr class="small" style="background-color: #eeeeee">
+ <td colspan="2">
+ <input type="button" onclick="selectall()" value="select all">
+ <input type="button" onclick="deselectall()" value="deselect all">
+ <input type="submit" value="add" name="add">
+ </td>
+ </tr>
+</table>
+::<!-- [1] -->
#(/page)#
</p>
</form>
|
