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,141 +1,67 @@
{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="email_queue_add" name="email_queue_add" method="post" action="">
{$COOKIE_FORM}
<table width="500" 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">
<center>
{translate module=email_queue}title_add{/translate}
</center>
</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=email_queue}
field_date_orig
{/translate}</td>
<td width="65%">
{$list->date_time("")} <input type="hidden" name="email_queue_date_orig" value="{$smarty.now}">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_date_last
{/translate}</td>
<td width="65%">
{$list->date_time("")} <input type="hidden" name="email_queue_date_last" value="{$smarty.now}">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_status
{/translate}</td>
<td width="65%">
{ $list->bool("email_queue_status", $VAR.email_queue_status, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_account_id
{/translate}</td>
<td width="65%">
{html_select_account name="email_queue_account_id" default=$VAR.email_queue_account_id}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_email_template
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_email_template" value="{$VAR.email_queue_email_template}" {if $email_queue_email_template == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_sql1
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_sql1" value="{$VAR.email_queue_sql1}" {if $email_queue_sql1 == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_sql2
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_sql2" value="{$VAR.email_queue_sql2}" {if $email_queue_sql2 == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_sql3
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_sql3" value="{$VAR.email_queue_sql3}" {if $email_queue_sql3 == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_sql4
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_sql4" value="{$VAR.email_queue_sql4}" {if $email_queue_sql4 == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_sql5
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_sql5" value="{$VAR.email_queue_sql5}" {if $email_queue_sql5 == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_var
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_var" value="{$VAR.email_queue_var}" {if $email_queue_var == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%"></td>
<td width="65%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="email_queue:view">
<input type="hidden" name="_page_current" value="email_queue:add">
<input type="hidden" name="do[]" value="email_queue:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<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=status}</td>
<td style="width: 65%;">{$list->bool('email_queue_status',$VAR.email_queue_status,'form_menu')}</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=email_queue_account_id default=$VAR.email_queue_account_id}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=email_template}</td>
<td style="width: 65%;"><input type="text" name="email_queue_email_template" value="{$VAR.email_queue_email_template}" {if $email_queue_email_template == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=sql1}</td>
<td style="width: 65%;"><input type="text" name="email_queue_sql1" value="{$VAR.email_queue_sql1}" {if $email_queue_sql1 == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=sql2}</td>
<td style="width: 65%;"><input type="text" name="email_queue_sql2" value="{$VAR.email_queue_sql2}" {if $email_queue_sql2 == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=sql3}</td>
<td style="width: 65%;"><input type="text" name="email_queue_sql3" value="{$VAR.email_queue_sql3}" {if $email_queue_sql3 == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=sql4}</td>
<td style="width: 65%;"><input type="text" name="email_queue_sql4" value="{$VAR.email_queue_sql4}" {if $email_queue_sql4 == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=sql5}</td>
<td style="width: 65%;"><input type="text" name="email_queue_sql5" value="{$VAR.email_queue_sql5}" {if $email_queue_sql5 == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=var}</td>
<td style="width: 65%;"><input type="text" name="email_queue_var" value="{$VAR.email_queue_var}" {if $email_queue_var == true}class="form_field_error"{/if}/></td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -1,108 +1,53 @@
{ $method->exe("email_queue","search_form") }
{ 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}
<form name="email_queue_search" method="post" action="">
{$COOKIE_FORM}
<table width="500" 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">
<center>
{translate module=email_queue}title_search{/translate}
</center>
</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=email_queue}
field_date_orig
{/translate}</td>
<td width="65%">
{ $list->calender_search("email_queue_date_orig", $VAR.email_queue_date_orig, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_date_last
{/translate}</td>
<td width="65%">
{ $list->calender_search("email_queue_date_last", $VAR.email_queue_date_last, "form_field", "") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_status
{/translate}</td>
<td width="65%">
{ $list->bool("email_queue_status", "all", "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_account_id
{/translate}</td>
<td width="65%">
{html_select_account name="email_queue_account_id" default=$VAR.email_queue_account_id}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_email_template
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_email_template" value="{$VAR.email_queue_email_template}" {if $email_queue_email_template == true}class="form_field_error"{/if}> &nbsp;&nbsp;{translate}search_partial{/translate}
</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="{$email_queue_limit}">
</td>
</tr>
<form id="search_form" method="post" action="" enctype="multipart/form-data">
<!-- 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 class="form_menu" name="order_by">
{foreach from=$email_queue item=record}
<option value="{$record.field}">{$record.translate}</option>
{/foreach}
</select>
</td>
</tr>
<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_orig}</td>
<td style="width: 65%;">{$list->calender_search('email_queue_date_orig',$VAR.email_queue_date_orig,'form_field','')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=date_last}</td>
<td style="width: 65%;">{$list->calender_search('email_queue_date_last',$VAR.email_queue_date_last,'form_field','')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=status}</td>
<td style="width: 65%;">{$list->bool('email_queue_status','all')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=account_id}</td>
<td style="width: 65%;">{osb f=html_select_account name='email_queue_account_id' default=$VAR.email_queue_account_id}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=email_template}</td>
<td style="width: 65%;"><input type="text" name="email_queue_email_template" value="{$VAR.email_queue_email_template}" {if $email_queue_email_template == true}class="form_field_error"{/if}/>&nbsp;&nbsp;{t}"%" for partial match{/t}</td>
</tr>
{include file='file:../core/search_post.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<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="email_queue">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{ $block->display("core:saved_searches") }
{ $block->display("core:recent_searches") }
</form>
{$block->display('core:saved_searches')}
{$block->display('core:recent_searches')}
{/if}

View File

@@ -1,119 +1,12 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe("email_queue","search_show")}
{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}
{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 = 'email_queue';
{/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="5%" class="table_heading">&nbsp;</td>
<td width="23.75%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=email_queue}field_date_orig{/translate}{literal}','date_orig'));
</script>
{/literal}
</td>
<td width="23.75%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=email_queue}field_status{/translate}{literal}','status'));
</script>
{/literal}
</td>
<td width="23.75%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=email_queue}field_account_id{/translate}{literal}','account_id'));
</script>
{/literal}
</td>
<td width="23.75%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=email_queue}field_email_template{/translate}{literal}','email_template'));
</script>
{/literal}
</td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$email_queue item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=email_queue:view&id={$record.id},{$COOKIE_URL}';" 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="5%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td>&nbsp;{$list->date_time($record.date_orig)}</td>
<td>&nbsp;{if $record.status == "1"}{translate}true{/translate}{else}{translate}false{/translate}{/if}</td>
<td>&nbsp;{$record.account_id}</td>
<td>&nbsp;{$record.email_template}</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}{$COOKIE_URL}', 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,191 +1,83 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{ $method->exe("email_queue","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 = 'email_queue';
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=$email_queue item=email_queue} <a name="{$email_queue.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="email_queue_view" method="post" action="">
{$COOKIE_FORM}
<table width="500" 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">
<center>
{translate module=email_queue}title_view{/translate}
</center>
</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=email_queue}
field_date_orig
{/translate}</td>
<td width="65%">
{$list->date_time($email_queue.date_orig)}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_date_last
{/translate}</td>
<td width="65%">
{$list->date_time($email_queue.date_last)}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_status
{/translate}</td>
<td width="65%">
{ $list->bool("email_queue_status", $email_queue.status, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_account_id
{/translate}</td>
<td width="65%">
{html_select_account name="email_queue_account_id" default=$email_queue.account_id}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_email_template
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_email_template" value="{$email_queue.email_template}" size="32">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_sql1
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_sql1" value="{$email_queue.sql1}" size="32">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_sql2
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_sql2" value="{$email_queue.sql2}" size="32">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_sql3
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_sql3" value="{$email_queue.sql3}" size="32">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_sql4
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_sql4" value="{$email_queue.sql4}" size="32">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_sql5
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_sql5" value="{$email_queue.sql5}" size="32">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=email_queue}
field_var
{/translate}</td>
<td width="65%">
<input type="text" name="email_queue_var" value="{$email_queue.var}" size="32">
</td>
</tr>
<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="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('{$email_queue.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="email_queue:view">
<input type="hidden" name="email_queue_id" value="{$email_queue.id}">
<input type="hidden" name="do[]" value="email_queue:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
{/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 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 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=status}</td>
<td style="width: 65%;">{$list->bool('email_queue_status',$record.status)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=account_id}</td>
<td style="width: 65%;">{osb f=html_select_account name='email_queue_account_id' default=$record.account_id}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=email_template}</td>
<td style="width: 65%;"><input type="text" name="email_queue_email_template" value="{$record.email_template}" size="32"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=sql1}</td>
<td style="width: 65%;"><input type="text" name="email_queue_sql1" value="{$record.sql1}" size="32"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=sql2}</td>
<td style="width: 65%;"><input type="text" name="email_queue_sql2" value="{$record.sql2}" size="32"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=sql3}</td>
<td style="width: 65%;"><input type="text" name="email_queue_sql3" value="{$record.sql3}" size="32"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=sql4}</td>
<td style="width: 65%;"><input type="text" name="email_queue_sql4" value="{$record.sql4}" size="32"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=sql5}</td>
<td style="width: 65%;"><input type="text" name="email_queue_sql5" value="{$record.sql5}" size="32"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=var}</td>
<td style="width: 65%;"><input type="text" name="email_queue_var" value="{$record.var|htmlspecialchars}" size="32"/></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}