This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/task/view.tpl

110 lines
4.8 KiB
Smarty
Raw Normal View History

2009-08-03 04:10:16 +00:00
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
2009-08-03 04:10:16 +00:00
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
2009-08-03 04:10:16 +00:00
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
2009-08-03 04:10:16 +00:00
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
2009-08-03 04:10:16 +00:00
<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&amp;module=task_log&amp;task_log_task_id={$record.id}&amp;_escape=1&amp;order_by=date_orig&amp;desc=">{osb f=tt module=task_log method=view}</a></td>
<td style="width: 65%; text-align: right;"> <a href="?_page=task:view&amp;id={$record.id}&amp;ids={$VAR.ids}&amp;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>
2009-08-03 04:10:16 +00:00
{include file='file:../core/view_post.tpl'}
</form>
{/if}