106 lines
4.7 KiB
Smarty
106 lines
4.7 KiB
Smarty
{assign var=meth value=':'|explode:$VAR._page}
|
|
<!-- {$meth.0}:{$meth.1} -->
|
|
|
|
<!-- Display the form validation -->
|
|
{if $form_validation}
|
|
{$block->display('core:alert_fields')}
|
|
{/if}
|
|
|
|
<!-- Display the form to collect the input values -->
|
|
<form id="add" 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=date_start}</td>
|
|
<td style="width: 65%;">{$list->calender_add('task_date_start',$VAR.task_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_add('task_date_expire',$VAR.task_date_expire,'form_field')}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=name}</td>
|
|
<td style="width: 65%;"><input type="text" name="task_name" value="{$VAR.task_name}" {if $task_name == true}class="form_field_error"{/if}/></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" {if $task_description == true}class="form_field_error"{/if}>{$VAR.task_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="{$VAR.task_command}" {if $task_command == true}class="form_field_error"{/if}/></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=int_min}</td>
|
|
<td style="width: 65%;">
|
|
{if $VAR.task_int_min == ''}
|
|
<input type="text" name="task_int_min" value="*" {if $task_int_min == true}class="form_field_error"{/if}/>
|
|
{else}
|
|
<input type="text" name="task_int_min" value="{$VAR.task_int_min}" {if $task_int_min == true}class="form_field_error"{/if}/>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=int_hour}</td>
|
|
<td style="width: 65%;">
|
|
{if $VAR.task_int_hour == ''}
|
|
<input type="text" name="task_int_hour" value="*" {if $task_int_hour == true}class="form_field_error"{/if}/>
|
|
{else}
|
|
<input type="text" name="task_int_hour" value="{$VAR.task_int_hour}" {if $task_int_hour == true}class="form_field_error"{/if}/>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=int_month_day}</td>
|
|
<td style="width: 65%;">
|
|
{if $VAR.task_int_month_day == ''}
|
|
<input type="text" name="task_int_month_day" value="*" {if $task_int_month_day == true}class="form_field_error"{/if}/>
|
|
{else}
|
|
<input type="text" name="task_int_month_day" value="{$VAR.task_int_month_day}" {if $task_int_month_day == true}class="form_field_error"{/if}/>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=int_month}</td>
|
|
<td style="width: 65%;">
|
|
{if $VAR.task_int_month == ''}
|
|
<input type="text" name="task_int_month" value="*" {if $task_int_month == true}class="form_field_error"{/if}/>
|
|
{else}
|
|
<input type="text" name="task_int_month" value="{$VAR.task_int_month}" {if $task_int_month == true}class="form_field_error"{/if}/>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=int_week_day}</td>
|
|
<td style="width: 65%;">
|
|
{if $VAR.task_int_week_day == ''}
|
|
<input type="text" name="task_int_week_day" value="*" {if $task_int_week_day == true}class="form_field_error"{/if}/>
|
|
{else}
|
|
<input type="text" name="task_int_week_day" value="{$VAR.task_int_week_day}" {if $task_int_week_day == true}class="form_field_error"{/if}/>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{include file='file:../core/add_tr_submit.tpl'}
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</form>
|