You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
166 lines
7.5 KiB
166 lines
7.5 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>YaCy '#[clientname]#': Peer Steering</title>
|
|
#(showtable)#::
|
|
<link rel="alternate" type="application/xml" title="Tables" href="Tables.rss?table=#[table]#" />
|
|
#(/showtable)#
|
|
#%env/templates/metas.template%#
|
|
<script type="text/javascript">
|
|
<!--
|
|
// The chrome browser is getting the wrong value if we try to get the value inside the script "var checkStatus=inputs.elements[0].checked;" - so now the value is a parameter
|
|
function checkAll (formToCheckAll, checkStatus) {
|
|
var inputs=document.getElementById(formToCheckAll);
|
|
//var checkStatus=inputs.elements[0].checked;
|
|
for (var i =0; i < inputs.elements.length; i++) {
|
|
inputs.elements[i].checked = checkStatus;
|
|
}
|
|
}
|
|
-->
|
|
</script>
|
|
<script type="text/javascript">
|
|
function submitchange(from) {
|
|
document.getElementById("apilist").action = "Table_API_p.html#" + from;
|
|
document.getElementById ("scheduleevent").value = "true";
|
|
document.getElementById("current_schedule_pk").value = from;
|
|
document.getElementById("apilist").submit();
|
|
}
|
|
</script>
|
|
<script type="text/javascript" src="/js/sorttable.js"></script>
|
|
</head>
|
|
<body id="Tables">
|
|
|
|
<div id="api">
|
|
<a href="/api/table_p.xml?table=api&count=100&search=" id="apilink"><img src="/env/grafics/api.png" width="60" height="40" alt="API"/></a>
|
|
<span>The information that is presented on this page can also be retrieved as XML
|
|
Click the API icon to see the XML.
|
|
To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de/wiki/index.php/Dev:API">API wiki page</a>.</span>
|
|
</div>
|
|
|
|
<div id="fullcontent">
|
|
#(inline)##%env/templates/header.template%#
|
|
|
|
<h2>Steering of API Actions</h2>
|
|
<p>This table shows actions that had been issued on the YaCy interface
|
|
to change the configuration or to request crawl actions.
|
|
These recorded actions can be used to repeat specific actions and to send them
|
|
to a scheduler for a periodic execution.
|
|
</p>::#(/inline)#
|
|
#(showtable)#::
|
|
<form action="Table_API_p.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8" id="apilist">
|
|
<fieldset>
|
|
<legend><label for="apilist">Recorded Actions</label></legend>
|
|
<br />
|
|
<span id="resCounter" style="display: inline;">
|
|
#(navigation)#
|
|
::
|
|
#(left)#<img src="env/grafics/navdl.gif" alt="no previous page" />::<a href="Table_API_p.html?startRecord=#[startRecord]#&maximumRecords=#[maximumRecords]#&inline=#(inline)#false::true#(/inline)#&filter=#[filter]#" target="_self"><img src="env/grafics/navsl.gif" alt="previous page" /></a>#(/left)#
|
|
#[startRecord]#-#[to]# of #[of]#
|
|
#(right)#<img src="env/grafics/navdr.gif" alt="no next page" />::<a href="Table_API_p.html?startRecord=#[startRecord]#&maximumRecords=#[maximumRecords]#&inline=#(inline)#false::true#(/inline)#&filter=#[filter]#" target="_self"><img src="env/grafics/navsr.gif" alt="next page" /></a>#(/right)#
|
|
<img src="env/grafics/nave.gif" alt="" />
|
|
#(/navigation)#
|
|
|
|
<input type="hidden" name="startRecord" value="#[startRecord]#" />
|
|
<input type="hidden" name="maximumRecords" value="#[maximumRecords]#" />
|
|
<input type="hidden" name="inline" value="#(inline)#false::true#(/inline)#" />
|
|
<input type="hidden" name="filter" value="#[filter]#" />
|
|
<input type="text" name="query" value="#[query]#" style="font-size:16px;float:left;border:0px;height:20px;background-image:url('env/grafics/find.gif');background-repeat:no-repeat;background-position:right top;" />
|
|
|
|
</span>
|
|
<br/>
|
|
<div style="clear:both;">
|
|
<table class="sortable" style="border:0px; padding:2px; border-spacing:1px">
|
|
<tr class="TableHeader" valign="bottom">
|
|
<th class="sorttable_nosort"><input type="checkbox" id="allswitch" onclick="checkAll(this.form.id, this.checked);" /></th>
|
|
<th>Type</th>
|
|
<th style="width: 100%;">Comment</th>
|
|
<th>Call<br/>Count</th>
|
|
<th>Recording<br/>Date</th>
|
|
<th>Last Exec<br/>Date</th>
|
|
<th>Next Exec<br/>Date</th>
|
|
<th class="sorttable_nosort">Scheduler</th>
|
|
#(inline)#<th class="sorttable_nosort">URL</th>::#(/inline)#
|
|
</tr>
|
|
#{list}#
|
|
<tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#" id="#[pk]#">
|
|
<td align="left"><input type="checkbox" name="item_#[count]#" value="mark_#[pk]#" /></td>
|
|
<td>#[type]#</td>
|
|
<td>#[comment]#</td>
|
|
<td>#[callcount]#</td>
|
|
<td>#[dateRecording]#</td>
|
|
<td>#[dateLastExec]#</td>
|
|
<td>#[dateNextExec]#</td>
|
|
<td>
|
|
#(scheduler)#
|
|
<select name="repeat_select_#[pk]#" onchange='submitchange("#[pk]#")'>
|
|
<option value="off" selected="selected">no repetition</option>
|
|
<option value="on">activate scheduler</option>
|
|
</select>
|
|
::
|
|
<table>
|
|
<tr><td>
|
|
<select name="repeat_time_#[pk]#" onchange='submitchange("#[pk]#")'>
|
|
#{scale}#
|
|
<option value="#[time]#" #(selected)#::selected="selected"#(/selected)#>#[time]#</option>
|
|
#{/scale}#
|
|
</select>
|
|
</td><td>
|
|
<select name="repeat_unit_#[pk]#" onchange='submitchange("#[pk]#")'>
|
|
<option value="selminutes" #(selectedMinutes)#::selected="selected"#(/selectedMinutes)#>minutes</option>
|
|
<option value="selhours" #(selectedHours)#::selected="selected"#(/selectedHours)#>hours</option>
|
|
<option value="seldays" #(selectedDays)#::selected="selected"#(/selectedDays)#>days</option>
|
|
</select>
|
|
</td></tr>
|
|
</table>
|
|
#(/scheduler)#
|
|
</td>
|
|
#(inline)#<td>#[url]#</td>::#(/inline)#
|
|
</tr>
|
|
#{/list}#
|
|
</table>
|
|
</div>
|
|
</fieldset>
|
|
<p>
|
|
<input type="hidden" name="scheduleevent" id="scheduleevent" value="false" />
|
|
<input type="hidden" name="current_schedule_pk" id="current_schedule_pk" value="" />
|
|
<input type="hidden" name="num" value="#[num]#" />
|
|
<input type="submit" name="execrows" value="Execute Selected Actions" />
|
|
<input type="submit" name="deleterows" value="Delete Selected Actions" />
|
|
</p>
|
|
|
|
</form>
|
|
#(/showtable)#
|
|
#(showexec)#::
|
|
<form action="#">
|
|
<fieldset>
|
|
<legend><label for="table">Result of API execution</label></legend>
|
|
<table class="sortable" style="border:0px; padding:2px; border-spacing:1px">
|
|
<tr class="TableHeader" valign="bottom">
|
|
<td>Status</td>
|
|
<td>URL</td>
|
|
</tr>
|
|
#{list}#
|
|
<tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#">
|
|
<td>#[status]#</td>
|
|
<td>#[url]#</td>
|
|
</tr>
|
|
#{/list}#
|
|
</table>
|
|
</fieldset>
|
|
</form>
|
|
|
|
#(/showexec)#
|
|
#(showschedulerhint)#::
|
|
Scheduled actions are executed after the next execution date has arrived within a time frame of #[tfminutes]# minutes.
|
|
#(/showschedulerhint)#
|
|
#(inline)##%env/templates/footer.template%#::#(/inline)#
|
|
</div>
|
|
<script type="text/javascript">
|
|
<!--
|
|
parentPage = parent.document.getElementById('APITable');
|
|
if (parentPage != null) parentPage.height = document.getElementById('fullcontent').offsetHeight + 30;
|
|
-->
|
|
</script>
|
|
</body>
|
|
</html>
|