Changes to AgileBill

This commit is contained in:
Deon George
2009-08-03 14:10:16 +10:00
parent 0a22cfe22c
commit 27aee719b0
1051 changed files with 219109 additions and 117219 deletions

View File

@@ -1,107 +1,42 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="staff_add" name="staff_add" method="post" action="">
<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 width="65%" class="table_heading">
<div align="center">
{translate module=staff}
title_add
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">
{translate module=staff}
field_account_id
{/translate}
</td>
<td width="65%">
{html_select_account name="staff_account_id" default=$VAR.staff_account_id}
</td>
</tr>
<tr valign="top">
<td width="35%" height="19">
{translate module=staff}
field_nickname
{/translate}
</td>
<td width="65%" height="19">
<input type="text" name="staff_nickname" value="{$VAR.staff_nickname}" {if $staff_nickname == true}class="form_field_error"{/if}>
</td>
</tr>
<form id="add" method="post" action="" enctype="multipart/form-data">
{ if $list->is_installed('ticket') }
<tr valign="top">
<td width="35%">
{translate module=staff}
field_department_avail
{/translate}
</td>
<td width="65%">
{ $list->check("", "staff_department_avail", "ticket_department", "name", $VAR.staff_department_avail, "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=staff}
field_notify_new
{/translate}
</td>
<td width="65%">
{ $list->bool("staff_notify_new", $VAR.staff_notify_new, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=staff}
field_notify_change
{/translate}
</td>
<td width="65%">
{ $list->bool("staff_notify_change", $VAR.staff_notify_change, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">{translate module=staff}field_signature{/translate}</td>
<td width="65%">{html_textarea name=staff_signature default=$VAR.staff_signature} </td>
</tr>
{else}
<input type="hidden" name="staff_department_avail" value="false">
{/if}
<tr valign="top">
<td></td>
<td><input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="staff:view">
<input type="hidden" name="_page_current" value="staff:add">
<input type="hidden" name="do[]" value="staff:add">
<input type="hidden" name="staff_date_orig" value="{$smarty.now}"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<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=account_id}</td>
<td style="width: 65%;">{osb f=autoselect module=account return=id field=staff_account_id default=$VAR.staff_account_id}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=nickname}</td>
<td style="width: 65%;"><input type="text" name="staff_nickname" value="{$VAR.staff_nickname}" {if $staff_nickname == true}class="form_field_error"{/if}/></td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="staff_department_avail" value="false"/>
</div>
</form>

View File

@@ -1,126 +1,54 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{ $method->exe("staff","search_form") }
{ if ($method->result == FALSE) }
{ $block->display("core:method_error") }
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
<form name="staff_search" method="post" action="">
<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 width="65%" class="table_heading">
<div align="center">
{translate module=staff}
title_search
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">
{translate module=staff}
field_date_orig
{/translate}
</td>
<td width="65%">
{ $list->calender_search("staff_date_orig", $VAR.staff_date_orig, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=staff}
field_account_id
{/translate}
</td>
<td width="65%">
{html_select_account name="staff_account_id" default=$VAR.staff_account_id}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=staff}
field_nickname
{/translate}
</td>
<td width="65%">
<input type="text" name="staff_nickname" value="{$VAR.staff_nickname}" {if $staff_nickname == true}class="form_field_error"{/if}>
&nbsp;&nbsp;
{translate}
search_partial
{/translate}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=staff}
field_notify_new
{/translate}
</td>
<td width="65%">
{ $list->bool("staff_notify_new", "all", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=staff}
field_notify_change
{/translate}
</td>
<td width="65%">
{ $list->bool("staff_notify_change", "all", "form_menu") }
</td>
</tr>
<!-- Define the results per page -->
<tr class="row1" valign="top">
<td width="35%">
{translate}
search_results_per
{/translate}
</td>
<td width="65%">
<input type="text" name="limit" size="5" value="{$staff_limit}">
</td>
</tr>
<!-- Define the order by field per page -->
<tr class="row1" valign="top">
<td width="35%">
{translate}
search_order_by
{/translate}
</td>
<td width="65%">
<select name="order_by">
{foreach from=$staff item=record}
<option value="{$record.field}">
{$record.translate}
</option>
{/foreach}
</select>
</td>
</tr>
<tr class="row1" valign="top">
<td width="35%"></td>
<td width="65%">
<input type="submit" name="Submit" value="{translate}search{/translate}" class="form_button">
<input type="hidden" name="_page" value="core:search">
<input type="hidden" name="_escape" value="Y">
<input type="hidden" name="module" value="staff">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{ $block->display("core:saved_searches") }
{ $block->display("core:recent_searches") }
<form id="search_form" 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 style="width: 65%;" 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_orig}</td>
<td style="width: 65%;">{$list->calender_search('staff_date_orig',$VAR.staff_date_orig,'form_field','')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=account_id}</td>
<td style="width: 65%;">{osb f=autoselect module=account return=id field=staff_account_id default=$VAR.staff_account_id}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=nickname}</td>
<td style="width: 65%;"><input type="text" name="staff_nickname" value="{$VAR.staff_nickname}" {if $staff_nickname == true}class="form_field_error"{/if}/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=notify_new}</td>
<td style="width: 65%;">{$list->bool('staff_notify_new','all')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=notify_change}</td>
<td style="width: 65%;">{$list->bool('staff_notify_change','all')}</td>
</tr>
{include file='file:../core/search_post.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{$block->display('core:saved_searches')}
{$block->display('core:recent_searches')}
{/if}

View File

@@ -1,135 +1,12 @@
{$method->exe("staff","search_show")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{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}
{if $results == 1}
{translate results=$results}search_result_count{/translate}
{else}
{translate results=$results}search_results_count{/translate}
{/if}
<BR>
{literal}
<script language="JavaScript">
<!-- START
var module = 'staff';
{/literal}
{if $VAR._print == TRUE}
var p = '&_escape=y&_print=y';
{else}
var p = '';
{/if}{literal}
var IMAGE = '{/literal}{$NONSSL_IMAGE}{literal}';
var order = '{/literal}{$order}{literal}';
var sort1 = '{/literal}{$sort}{literal}';
var search_id = '{/literal}{$search_id}{literal}';
var page = {/literal}{$page}{literal};
var pages = '{/literal}{$pages}{literal}';
var results = '{/literal}{$results}{literal}';
var limit = '{/literal}{$limit}{literal}';
record_arr = new Array ({/literal}{$limit}{literal});
var i = 0;
// END -->
</script>
<SCRIPT SRC="themes/{/literal}{$THEME_NAME}{literal}/search.js"></SCRIPT>
{/literal}
<!-- SHOW THE SEARCH NAVIGATION MENU -->
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
<!-- BEGIN THE RESULTS CONTENT AREA -->
<div id="search_results" onKeyPress="key_handler(event);">
<table id="main1" width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<form id="form1" name="form1" method="post" action="">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<!-- DISPLAY THE SEARCH HEADING -->
<tr valign="middle" align="center" class="table_heading">
<td width="43" class="table_heading">&nbsp;</td>
<td width="177" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=staff}field_nickname{/translate}{literal}','nickname'));
</script>
{/literal}
</td>
<td width="199" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=staff}field_account_id{/translate}{literal}','account_id'));
</script>
{/literal}
</td>
<td width="287" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=staff}field_notify_new{/translate}{literal}','notify_new'));
</script>
{/literal}
</td>
<td width="248" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=staff}field_notify_change{/translate}{literal}','notify_change'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$staff item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=staff:view&id={$record.id},';" onMouseOver="row_mouseover('{$record.id}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.id}', '{$record._C}', 'row_select');" class="{$record._C}">
<td align="center" width="43">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td width="177">&nbsp;
{$record.nickname}
</td>
<td width="199">&nbsp;
{$record.account_id}
</td>
<td width="287">&nbsp;
{if $record.notify_new == "1"}
{translate}
true
{/translate}
{else}
{translate}
false
{/translate}
{/if}
</td>
<td width="248">&nbsp;
{if $record.notify_change == "1"}
{translate}
true
{/translate}
{else}
{translate}
false
{/translate}
{/if}
</td>
</tr>
{literal}
<script language="JavaScript">row_sel('{/literal}{$record.id}{literal}', 0, '{/literal}{$record._C}{literal}'); record_arr[i] = '{/literal}{$record.id}{literal}'; i++; </script>
{/literal}
{/foreach}
<!-- END OF RESULT LOOP -->
</table>
</td>
</tr>
</form>
</table>
{if $VAR._print != TRUE}<br>
<center>
<input type="submit" name="Submit" value="{translate}view_edit{/translate}" onClick="mass_do('', module+':view', limit, module);" class="form_button">
<input type="submit" name="Submit" value="{translate}delete{/translate}" onClick="mass_do('delete', module+':search_show&search_id={$search_id}&page={$page}&order_by={$order}&{$sort}', limit, module);" class="form_button">
<input type="submit" name="Submit" value="{translate}select_all{/translate}" onClick="all_select(record_arr);" class="form_button">
<input type="submit" name="Submit" value="{translate}deselect_all{/translate}" onClick="all_deselect(record_arr);" class="form_button">
<input type="submit" name="Submit" value="{translate}range_select{/translate}" onClick="all_range_select(record_arr,limit);" class="form_button">
<br>
</center>
{include file='file:../core/search_show_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}
{/if}
</div>

View File

@@ -1,145 +1,98 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{$block->display('core:alert_fields')}
{/if}
<form name="contact" method="post" action="">
<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 width="65%" class="table_heading">
<div align="center">
{translate module=staff}
title_contact
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr>
<td>
{translate module=staff}
contact_options
{/translate}
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">
{translate module=staff}
contact_staff
{/translate}
</td>
<td width="65%">
{if $VAR.mail_staff_id == ""}
{ $list->menu("no", "mail_staff_id", "staff", "nickname", "all", "form_menu") }
{else}
{ $list->menu("no", "mail_staff_id", "staff", "nickname", $VAR.mail_staff_id, "form_menu") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=staff}
contact_department
{/translate}
</td>
<td width="65%">
{if $VAR.mail_department_id == ""}
{ $list->menu("no", "mail_department_id", "staff_department", "name", "all", "form_menu") }
{else}
{ $list->menu("no", "mail_department_id", "staff_department", "name", $VAR.mail_department_id, "form_menu") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=staff}
contact_name
{/translate}
</td>
<td width="65%">
<input type="text" name="mail_name" size="50" value="{$VAR.mail_name}">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=staff}
contact_email
{/translate}
</td>
<td width="65%">
<input type="text" name="mail_email" size="50" value="{$VAR.mail_email}">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
mail_subject
{/translate}
</td>
<td width="65%">
<input type="text" name="mail_subject" value="{$VAR.mail_subject}" size="50">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=account_admin}
mail_message
{/translate}
</td>
<td width="65%">
<textarea name="mail_message" {if $mail_message == true}class="form_field_error" {/if} cols="55" rows="6">{$VAR.mail_message}</textarea>
</td>
</tr>
<!-- static vars -->
{ $method->exe("staff","static_var")}
{foreach from=$static_var item=record}
<tr valign="top">
<td width="35%">
{$record.name}
</td>
<td width="65%">
{$record.html}
</td>
</tr>
{/foreach}
<tr valign="top">
<td width="35%">
{translate module=account_admin}
mail_priority
{/translate}
</td>
<td width="65%">
<select name="mail_priority">
<option value="0">{translate}false{/translate}</option>
<option value="1">{translate}true{/translate}</option>
</select>
</td>
</tr>
<tr valign="top">
<td width="35%">&nbsp;</td>
<td width="65%">
<input type="image" border="0" name="imageField" src="themes/{$THEME_NAME}/images/icons/mail_32.gif" alt="{translate}submit{/translate}">
<input type="hidden" name="_page" value="staff:staff">
<input type="hidden" name="do[]" value="staff:contact">
<input type="hidden" name="_page_current" value="staff:staff">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<form id="contact_form" 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>
<td>{t}To contact our staff, you may select their staff nickname below.
If you do not know any staff in the department you wish to correspond with, simply select the recipient department instead, and your message will be forwarded to the appropriate staff member when you send your message.
You do not need to select both a recipient department and recipient staff member; please just select one or the other.{/t}</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">{t}contact_staff{/t}</td>
<td width="65%">
{if $VAR.mail_staff_id == ''}
{$list->menu('no','mail_staff_id','staff','nickname','','form_menu',true)}
{else}
{$list->menu('no','mail_staff_id','staff','nickname',$VAR.mail_staff_id,'form_menu')}
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">{t}contact_department{/t}</td>
<td width="65%">
{if $VAR.mail_department_id == ''}
{$list->menu('no','mail_department_id','staff_department','name','','form_menu')}
{else}
{$list->menu('no','mail_department_id','staff_department','name',$VAR.mail_department_id,'form_menu')}
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">{t}contact_name{/t}</td>
<td width="65%"><input type="text" name="mail_name" size="50" value="{$VAR.mail_name}"/></td>
</tr>
<tr valign="top">
<td width="35%">{t}contact_email{/t}</td>
<td width="65%"><input type="text" name="mail_email" size="50" value="{$VAR.mail_email}"/></td>
</tr>
<tr valign="top">
<td width="35%">{t}mail_subject{/t}</td>
<td width="65%"><input type="text" name="mail_subject" value="{$VAR.mail_subject}" size="50"/></td>
</tr>
<tr valign="top">
<td width="35%">{t}mail_message{/t}</td>
<td width="65%"><textarea name="mail_message" {if $mail_message == true}class="form_field_error" {/if} cols="55" rows="6">{$VAR.mail_message}</textarea></td>
</tr>
<!-- static vars -->
{$method->exe('staff','static_var')}
{foreach from=$static_var item=record}
<tr valign="top">
<td width="35%">{$record.name}</td>
<td width="65%">{$record.html}</td>
</tr>
{/foreach}
<tr valign="top">
<td width="35%">{t}mail_priority{/t}</td>
<td width="65%">{$list->bool('mail_priority','')}</td>
</tr>
<tr valign="top">
<td width="35%">&nbsp;</td>
<td width="65%"><input type="image" border="0" name="imageField" src="themes/{$THEME_NAME}/images/icons/mail_32.gif" alt="{t}Submit{/t}"/></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="_page" value="{$VAR._page}"/>
<input type="hidden" name="_page_current" value="{$VAR._page}"/>
<input type="hidden" name="do[]" value="staff:contact"/>
</div>
</form>

View File

@@ -1,194 +1,58 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{ $method->exe("staff","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
{literal}
<!-- Define the update delete function -->
<script language="JavaScript">
<!-- START
var module = 'staff';
var locations = '{/literal}{$VAR.module_id}{literal}';
if (locations != "")
{
refresh(0,'#'+locations)
}
// Mass update, view, and delete controller
function delete_record(id,ids)
{
temp = window.confirm("{/literal}{translate}alert_delete{/translate}{literal}");
if(temp == false) return;
var replace_id = id + ",";
ids = ids.replace(replace_id, '');
if(ids == '') {
var url = '?_page=core:search&module=' + module + '&do[]=' + module + ':delete&delete_id=' + id + COOKIE_URL;
window.location = url;
return;
} else {
var page = 'view&id=' +ids;
}
var doit = 'delete';
var url = '?_page='+ module +':'+ page +'&do[]=' + module + ':' + doit + '&delete_id=' + id + COOKIE_URL;
window.location = url;
}
// END -->
</script>
{/literal}
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Loop through each record -->
{foreach from=$staff item=staff} <a name="{$staff.id}"></a>
<!-- Display each record -->
<form id="view" method="post" action="" enctype="multipart/form-data">
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- Display each record -->
<form name="staff_view" method="post" action="">
<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 width="65%" class="table_heading">
<div align="center">
{translate module=staff}
title_view
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">
{translate module=staff}
field_date_orig
{/translate}
</td>
<td width="65%">
{ $list->date_time($staff.date_orig) }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=staff}
field_account_id
{/translate}
</td>
<td width="65%">
{html_select_account name="staff_account_id" default=$staff.account_id}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=staff}
field_nickname
{/translate}
</td>
<td width="65%">
<input type="text" name="staff_nickname" value="{$staff.nickname}" size="32">
</td>
</tr>
{ if $list->is_installed('ticket') }
<tr valign="top">
<td width="35%">
{translate module=staff}
field_department_avail
{/translate}
</td>
<td width="65%">
{ $list->check("", "staff_department_avail", "ticket_department", "name", $staff.department_avail, "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=staff}
field_notify_new
{/translate}
</td>
<td width="65%">
{ $list->bool("staff_notify_new", $staff.notify_new, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=staff}
field_notify_change
{/translate}
</td>
<td width="65%">
{ $list->bool("staff_notify_change", $staff.notify_change, "form_menu") }
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">{translate module=staff}field_signature{/translate}</td>
{else}
<input type="hidden" name="staff_department_avail" value="false">
{/if}
<td width="65%">{html_textarea name=staff_signature default=$staff.signature}
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td><input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button"></td>
<td align="right"><input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$staff.id}','{$VAR.id}');"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="staff:view">
<input type="hidden" name="staff_id" value="{$staff.id}">
<input type="hidden" name="do[]" value="staff:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{ if $list->is_installed('ticket') }
<form name="staff_view" method="post" action="">
<table width=100% border="0" cellspacing="0" cellpadding="1" class="table_background">
<tr>
<td class="table_heading">
<center>
{translate module=staff}
view_tickets
{/translate}
</center>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td width="35%"></td>
<td width="65%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<input type="submit" name="Submit2" value="{translate}submit{/translate}" class="form_button">
</td>
<td align="right">&nbsp; </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="core:search">
<input type="hidden" name="staff_id" value="{$staff.id}">
<input type="hidden" name="module" value="ticket">
<input type="hidden" name="_escape" value="1">
</form>
{/if}
{/foreach}
<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 module=staff field=date_orig}</td>
<td style="width: 65%;">{$list->date_time($record.date_orig)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf module=staff field=account_id}</td>
<td style="width: 65%;">{osb f=autoselect module=account return=id field=staff_account_id default=$record.account_id}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf module=staff field=nickname}</td>
<td style="width: 65%;"><input type="text" name="staff_nickname" value="{$record.nickname}" size="32" {if $staff_nickname == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=signature}</td>
<td style="width: 65%;">{html_textarea name=staff_signature default=$record.signature limit=50}</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'}
<div>
<input type="hidden" name="staff_department_avail" value="false"/>
</div>
</form>
{/if}