110 lines
4.8 KiB
Smarty
110 lines
4.8 KiB
Smarty
{assign var=meth value=':'|explode:$VAR._page}
|
|
<!-- {$meth.0}:{$meth.1} -->
|
|
|
|
{$method->exe($meth.0,$meth.1)}
|
|
{if ($method->result == false)}
|
|
{$block->display('core:method_error')}
|
|
{else}
|
|
{include file='file:../core/view_pre.tpl'}
|
|
|
|
<!-- Display the field validation -->
|
|
{if $form_validation}
|
|
{$block->display('core:alert_fields')}
|
|
{/if}
|
|
|
|
<!-- Display each record -->
|
|
<form id="view" method="post" action="" enctype="multipart/form-data">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
|
<tr>
|
|
<td>
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
|
<tr valign="top">
|
|
<td class="table_heading">{osb f=tt}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td class="row1">
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=name}</td>
|
|
<td style="width: 65%;"><input type="text" name="task_name" value="{$record.name}" size="32"/></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=date_last}</td>
|
|
<td style="width: 65%;">{$list->date_time($record.date_last)}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=date_run}</td>
|
|
<td style="width: 65%;">{$list->date_time($record.date_run)}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=status}</td>
|
|
<td style="width: 65%;">{$list->bool('task_status',$record.status,'form_field')}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=log}</td>
|
|
<td style="width: 65%;">{$list->bool('task_log',$record.log,'form_field')}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=date_start}</td>
|
|
<td style="width: 65%;">{$list->calender_view('task_date_start',$record.date_start,'form_field')}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=date_expire}</td>
|
|
<td style="width: 65%;">{$list->calender_view('task_date_expire',$record.date_expire,'form_field')}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=description}</td>
|
|
<td style="width: 65%;"><textarea name="task_description" cols="40" rows="5" >{$record.description}</textarea></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=type}</td>
|
|
<td style="width: 65%;">{$list->menu_staticlist('tasktype','task_type','task_type','','form_menu')}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=command}</td>
|
|
<td style="width: 65%;"><input type="text" name="task_command" value="{$record.command}" size="32"/></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=int_min}</td>
|
|
<td style="width: 65%;"><input type="text" name="task_int_min" value="{$record.int_min}" size="32"/></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=int_hour}</td>
|
|
<td style="width: 65%;"><input type="text" name="task_int_hour" value="{$record.int_hour}" size="32"/></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=int_month_day}</td>
|
|
<td style="width: 65%;"><input type="text" name="task_int_month_day" value="{$record.int_month_day}" size="32"/></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=int_month}</td>
|
|
<td style="width: 65%;"><input type="text" name="task_int_month" value="{$record.int_month}" size="32"/></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=int_week_day}</td>
|
|
<td style="width: 65%;"><input type="text" name="task_int_week_day" value="{$record.int_week_day}" size="32"/></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td class="row1">
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="row1">
|
|
<tr>
|
|
<td style="width: 35%;"><a href="?_page=core:search&module=task_log&task_log_task_id={$record.id}&_escape=1&order_by=date_orig&desc=">{osb f=tt module=task_log method=view}</a></td>
|
|
<td style="width: 65%; text-align: right;"> <a href="?_page=task:view&id={$record.id}&ids={$VAR.ids}&do%5B%5D=task:run">{t}Run{/t}</a></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
{include file='file:../core/view_tr_submit_delete.tpl'}
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{include file='file:../core/view_post.tpl'}
|
|
</form>
|
|
{/if}
|