mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-15 06:01:19 +00:00
do not show table of scheduler classes if none exists
This commit is contained in:
parent
718ac96777
commit
276245a395
|
@ -263,42 +263,44 @@ $(document).ready( function() {
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<?php
|
<?php
|
||||||
echo "<table class=\"table _table-condensed\">\n";
|
if(!empty($GLOBALS['SEEDDMS_SCHEDULER']['tasks'])) {
|
||||||
print "<thead>\n<tr>\n";
|
echo "<table class=\"table _table-condensed\">\n";
|
||||||
print "<th>".getMLText('scheduler_class')."</th>\n";
|
print "<thead>\n<tr>\n";
|
||||||
print "<th>".getMLText('scheduler_class_description')."</th>\n";
|
print "<th>".getMLText('scheduler_class')."</th>\n";
|
||||||
print "<th>".getMLText('scheduler_class_parameter')."</th>\n";
|
print "<th>".getMLText('scheduler_class_description')."</th>\n";
|
||||||
print "<th></th>\n";
|
print "<th>".getMLText('scheduler_class_parameter')."</th>\n";
|
||||||
print "</tr></thead><tbody>\n";
|
print "<th></th>\n";
|
||||||
$errmsgs = array();
|
print "</tr></thead><tbody>\n";
|
||||||
foreach($GLOBALS['SEEDDMS_SCHEDULER']['tasks'] as $extname=>$tasks) {
|
$errmsgs = array();
|
||||||
foreach($tasks as $taskname=>$task) {
|
foreach($GLOBALS['SEEDDMS_SCHEDULER']['tasks'] as $extname=>$tasks) {
|
||||||
echo "<tr>";
|
foreach($tasks as $taskname=>$task) {
|
||||||
echo "<td>";
|
echo "<tr>";
|
||||||
echo $extname."::".$taskname;
|
echo "<td>";
|
||||||
echo "</td>";
|
echo $extname."::".$taskname;
|
||||||
echo "<td width=\"100%\">";
|
echo "</td>";
|
||||||
echo $task->getDescription();
|
echo "<td width=\"100%\">";
|
||||||
echo "</td>";
|
echo $task->getDescription();
|
||||||
echo "<td>";
|
echo "</td>";
|
||||||
$params = $task->getAdditionalParams();
|
echo "<td>";
|
||||||
foreach($params as $param)
|
$params = $task->getAdditionalParams();
|
||||||
$k[] = $param['name'];
|
foreach($params as $param)
|
||||||
echo implode(', ', $k);
|
$k[] = $param['name'];
|
||||||
echo "</td>";
|
echo implode(', ', $k);
|
||||||
echo "<td>";
|
echo "</td>";
|
||||||
print "<div class=\"list-action\">";
|
echo "<td>";
|
||||||
$t = $scheduler->getTasksByExtension($extname, $taskname);
|
print "<div class=\"list-action\">";
|
||||||
if($t) {
|
$t = $scheduler->getTasksByExtension($extname, $taskname);
|
||||||
print "<a class=\"listtasks\" data-extension=\"".$extname."\" data-task=\"".$taskname."\" href=\"../out/out.SchedulerTaskMgr.php?extension=".$extname."&task=".$taskname."\" title=\"".getMLText("list_tasks")."\"><i class=\"icon-list\"></i></a>";
|
if($t) {
|
||||||
|
print "<a class=\"listtasks\" data-extension=\"".$extname."\" data-task=\"".$taskname."\" href=\"../out/out.SchedulerTaskMgr.php?extension=".$extname."&task=".$taskname."\" title=\"".getMLText("list_tasks")."\"><i class=\"icon-list\"></i></a>";
|
||||||
|
}
|
||||||
|
print "<a class=\"addtask\" data-extension=\"".$extname."\" data-task=\"".$taskname."\" href=\"../out/out.SchedulerTaskMgr.php?extension=".$extname."&task=".$taskname."\" title=\"".getMLText("add_task")."\"><i class=\"icon-plus\"></i></a>";
|
||||||
|
print "</div>";
|
||||||
|
echo "</td>";
|
||||||
|
echo "</tr>";
|
||||||
}
|
}
|
||||||
print "<a class=\"addtask\" data-extension=\"".$extname."\" data-task=\"".$taskname."\" href=\"../out/out.SchedulerTaskMgr.php?extension=".$extname."&task=".$taskname."\" title=\"".getMLText("add_task")."\"><i class=\"icon-plus\"></i></a>";
|
|
||||||
print "</div>";
|
|
||||||
echo "</td>";
|
|
||||||
echo "</tr>";
|
|
||||||
}
|
}
|
||||||
|
echo "</tbody></table>\n";
|
||||||
}
|
}
|
||||||
echo "</tbody></table>\n";
|
|
||||||
?>
|
?>
|
||||||
<div id="listtasks" class="ajax" data-view="SchedulerTaskMgr" data-action="tasklist"></div>
|
<div id="listtasks" class="ajax" data-view="SchedulerTaskMgr" data-action="tasklist"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user