Initial Commit of AgileBill Open Source
This commit is contained in:
107
themes/default/blocks/staff/add.tpl
Normal file
107
themes/default/blocks/staff/add.tpl
Normal file
@@ -0,0 +1,107 @@
|
||||
|
||||
|
||||
<!-- Display the form validation -->
|
||||
{if $form_validation}
|
||||
{ $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>
|
||||
|
||||
{ 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>
|
126
themes/default/blocks/staff/search_form.tpl
Normal file
126
themes/default/blocks/staff/search_form.tpl
Normal file
@@ -0,0 +1,126 @@
|
||||
|
||||
{ $method->exe("staff","search_form") }
|
||||
{ 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}>
|
||||
|
||||
{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") }
|
||||
{/if}
|
135
themes/default/blocks/staff/search_show.tpl
Normal file
135
themes/default/blocks/staff/search_show.tpl
Normal file
@@ -0,0 +1,135 @@
|
||||
{$method->exe("staff","search_show")}
|
||||
{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"> </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">
|
||||
{$record.nickname}
|
||||
</td>
|
||||
<td width="199">
|
||||
{$record.account_id}
|
||||
</td>
|
||||
<td width="287">
|
||||
{if $record.notify_new == "1"}
|
||||
{translate}
|
||||
true
|
||||
{/translate}
|
||||
{else}
|
||||
{translate}
|
||||
false
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="248">
|
||||
{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>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
145
themes/default/blocks/staff/staff.tpl
Normal file
145
themes/default/blocks/staff/staff.tpl
Normal file
@@ -0,0 +1,145 @@
|
||||
<!-- Display the form validation -->
|
||||
{if $form_validation}
|
||||
{ $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%"> </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>
|
||||
|
194
themes/default/blocks/staff/view.tpl
Normal file
194
themes/default/blocks/staff/view.tpl
Normal file
@@ -0,0 +1,194 @@
|
||||
|
||||
{ $method->exe("staff","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
|
||||
{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}
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$staff item=staff} <a name="{$staff.id}"></a>
|
||||
|
||||
<!-- 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"> </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}
|
||||
{/if}
|
Reference in New Issue
Block a user