Changes to AgileBill
This commit is contained in:
@@ -1,226 +1,105 @@
|
||||
|
||||
{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="setup_email_add" name="setup_email_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=setup_email}
|
||||
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=setup_email}
|
||||
field_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_name" value="{$VAR.setup_email_name}" {if $setup_email_name == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $list->is_installed("email_queue")}
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_queue
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("setup_email_queue", $VAR.setup_email_queue, "") }
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_notes
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_notes" value="{$VAR.setup_email_notes}" {if $setup_email_notes == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_from_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_from_name" value="{$VAR.setup_email_from_name}" {if $setup_email_from_name == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_from_email
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_from_email" value="{$VAR.setup_email_from_email}" {if $setup_email_from_email == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_cc_list
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<textarea name="setup_email_cc_list" cols="40" rows="5" {if $setup_email_cc_list == true}class="form_field_error"{/if}>{$VAR.setup_email_cc_list}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_bcc_list
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<textarea name="setup_email_bcc_list" cols="40" rows="5" {if $setup_email_bcc_list == true}class="form_field_error"{/if}>{$VAR.setup_email_bcc_list}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_type
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("setup_email_type", $VAR.setup_email_type, "form_menu") }
|
||||
<br>
|
||||
{translate module=setup_email}
|
||||
smtp_help
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%"> </td>
|
||||
<td width="65%"> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_server
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_server" value="{$VAR.setup_email_server}" {if $setup_email_server == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_username
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_username" value="{$VAR.setup_email_username}" {if $setup_email_username == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_password
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_password" value="{$VAR.setup_email_password}" {if $setup_email_password == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%"> </td>
|
||||
<td width="65%"> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_piping
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<select name="setup_email_piping">
|
||||
<option value="0" {if $VAR.setup_email_piping == "0"}selected{/if}></option>
|
||||
<option value="1" {if $VAR.setup_email_piping == "1"}selected{/if}>POP3</option>
|
||||
<option value="2" {if $VAR.setup_email_piping == "2"}selected{/if}>IMAP</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_piping_host
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_piping_host" value="{$VAR.setup_email_piping_host}" {if $setup_email_server == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_piping_username
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_piping_username" value="{$VAR.setup_email_piping_username}" {if $setup_email_server == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_piping_password
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_piping_password" value="{$VAR.setup_email_piping_password}" {if $setup_email_server == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_piping_action
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<select name="setup_email_piping_action">
|
||||
<option value="0" {if $VAR.setup_email_piping_action == "0"}selected{/if}>{translate module=setup_email}piping_action_leave{/translate}</option>
|
||||
<option value="1" {if $VAR.setup_email_piping_action == "1"}selected{/if}>{translate module=setup_email}piping_action_delete{/translate}</option>
|
||||
</select>
|
||||
</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="setup_email:view">
|
||||
<input type="hidden" name="_page_current" value="setup_email:add">
|
||||
<input type="hidden" name="do[]" value="setup_email: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 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=name}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_name" value="{$VAR.setup_email_name}" {if $setup_email_name == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
{if $list->is_installed('email_queue')}
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=queue}</td>
|
||||
<td style="width: 65%;">{$list->bool('setup_email_queue',$VAR.setup_email_queue)}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=notes}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_notes" value="{$VAR.setup_email_notes}" {if $setup_email_notes == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=from_name}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_from_name" value="{$VAR.setup_email_from_name}" {if $setup_email_from_name == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=from_email}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_from_email" value="{$VAR.setup_email_from_email}" {if $setup_email_from_email == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=cc_list}</td>
|
||||
<td style="width: 65%;"><textarea name="setup_email_cc_list" cols="40" rows="5" {if $setup_email_cc_list == true}class="form_field_error"{/if}>{$VAR.setup_email_cc_list}</textarea></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=bcc_list}</td>
|
||||
<td style="width: 65%;"><textarea name="setup_email_bcc_list" cols="40" rows="5" {if $setup_email_bcc_list == true}class="form_field_error"{/if}>{$VAR.setup_email_bcc_list}</textarea></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=type}</td>
|
||||
<td style="width: 65%;">{$list->bool('setup_email_type',$VAR.setup_email_type,'form_menu')}<br/>
|
||||
{t}If you select 'Yes', you will need to enter your SMTP server login details below.{/t}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=server}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_server" value="{$VAR.setup_email_server}" {if $setup_email_server == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=username}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_username" value="{$VAR.setup_email_username}" {if $setup_email_username == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=password}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_password" value="{$VAR.setup_email_password}" {if $setup_email_password == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=piping}</td>
|
||||
<td style="width: 65%;">{$list->menu_staticlist('email_piping','setup_email_piping','setup_email_piping',$VAR.setup_email_piping,'form_menu')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=piping_host}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_piping_host" value="{$VAR.setup_email_piping_host}" {if $setup_email_server == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=piping_username}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_piping_username" value="{$VAR.setup_email_piping_username}" {if $setup_email_server == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=piping_password}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_piping_password" value="{$VAR.setup_email_piping_password}" {if $setup_email_server == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=piping_action}</td>
|
||||
<td style="width: 65%;">{$list->menu_staticlist('email_piping_action','setup_email_piping_action','setup_email_piping_action',$VAR.setup_email_piping_action,'form_menu')}</td>
|
||||
</tr>
|
||||
{include file='file:../core/add_tr_submit.tpl'}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
@@ -1,129 +1,12 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
|
||||
{$method->exe("setup_email","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 = 'setup_email';
|
||||
{/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"> </td>
|
||||
<td width="15.8333333333%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=setup_email}field_name{/translate}{literal}','name'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="15.8333333333%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=setup_email}field_type{/translate}{literal}','type'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="15.8333333333%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=setup_email}field_from_name{/translate}{literal}','from_name'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="15.8333333333%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=setup_email}field_from_email{/translate}{literal}','from_email'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$setup_email item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=setup_email: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="5%">
|
||||
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
||||
</td>
|
||||
<td>
|
||||
{$record.name}
|
||||
</td>
|
||||
<td>
|
||||
{if $record.type == "1"}
|
||||
{translate}
|
||||
true
|
||||
{/translate}
|
||||
{else}
|
||||
{translate}
|
||||
false
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{$record.from_name}
|
||||
</td>
|
||||
<td>
|
||||
{$record.from_email}
|
||||
</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>
|
||||
|
@@ -1,281 +1,113 @@
|
||||
{ $method->exe("setup_email","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{literal}
|
||||
<script src="themes/{/literal}{$THEME_NAME}{literal}/view.js"></script>
|
||||
<script language="JavaScript">
|
||||
var module = 'setup_email';
|
||||
var locations = '{/literal}{$VAR.module_id}{literal}';
|
||||
var id = '{/literal}{$VAR.id}{literal}';
|
||||
var ids = '{/literal}{$VAR.ids}{literal}';
|
||||
var array_id = id.split(",");
|
||||
var array_ids = ids.split(",");
|
||||
var num=0;
|
||||
if(array_id.length > 2) {
|
||||
document.location = '?_page='+module+':view&id='+array_id[0]+'&ids='+id;
|
||||
}else if (array_ids.length > 2) {
|
||||
document.write(view_nav_top(array_ids,id,ids));
|
||||
}
|
||||
|
||||
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}
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{include file='file:../core/view_pre.tpl'}
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$setup_email item=setup_email} <a name="{$setup_email.id}"></a>
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{$block->display('core:alert_fields')}
|
||||
{/if}
|
||||
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- Display each record -->
|
||||
<form name="setup_email_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=setup_email}
|
||||
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=setup_email}
|
||||
field_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_name" value="{$setup_email.name}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $list->is_installed("email_queue")}
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_queue
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("setup_email_queue", $setup_email.queue, "onChange=\"submit()\"") }
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_notes
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_notes" value="{$setup_email.notes}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_from_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_from_name" value="{$setup_email.from_name}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_from_email
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_from_email" value="{$setup_email.from_email}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_cc_list
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<textarea name="setup_email_cc_list" cols="40" rows="5" >{$setup_email.cc_list}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_bcc_list
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<textarea name="setup_email_bcc_list" cols="40" rows="5" >{$setup_email.bcc_list}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_type
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("setup_email_type", $setup_email.type, "form_menu") }
|
||||
<br>
|
||||
{translate module=setup_email}
|
||||
smtp_help
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%"> </td>
|
||||
<td width="65%"> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_server
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_server" value="{$setup_email.server}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_username
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_username" value="{$setup_email.username}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_password
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="password" name="setup_email_password" value="{$setup_email.password}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%"></td>
|
||||
<td width="65%"> </td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_piping
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<select name="setup_email_piping">
|
||||
<option value="0" {if $setup_email.piping == "0"}selected{/if}></option>
|
||||
<option value="1" {if $setup_email.piping == "1"}selected{/if}>POP3</option>
|
||||
<option value="2" {if $setup_email.piping == "2"}selected{/if}>IMAP</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_piping_host
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_piping_host" value="{$setup_email.piping_host}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_piping_username
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="setup_email_piping_username" value="{$setup_email.piping_username}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_piping_password
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="password" name="setup_email_piping_password" value="{$setup_email.piping_password}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%">
|
||||
{translate module=setup_email}
|
||||
field_piping_action
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<select name="setup_email_piping_action">
|
||||
<option value="0" {if $setup_email.piping_action == "0"}selected{/if}>
|
||||
{translate module=setup_email}
|
||||
piping_action_leave
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="1" {if $setup_email.piping_action == "1"}selected{/if}>
|
||||
{translate module=setup_email}
|
||||
piping_action_delete
|
||||
{/translate}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
</td>
|
||||
<td width="65%" align="right">
|
||||
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$setup_email.id}','{$VAR.id}');">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="_page" value="setup_email:view">
|
||||
<input type="hidden" name="setup_email_id" value="{$setup_email.id}">
|
||||
<input type="hidden" name="do[]" value="setup_email:update">
|
||||
<input type="hidden" name="id" value="{$VAR.id}">
|
||||
</form>
|
||||
{/foreach}
|
||||
<!-- Display each record -->
|
||||
<form id="view" 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=name}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_name" value="{$record.name}" size="32"/></td>
|
||||
</tr>
|
||||
{if $list->is_installed('email_queue')}
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=queue}</td>
|
||||
<td style="width: 65%;">{$list->bool('setup_email_queue',$record.queue,'" onChange="submit()')}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=notes}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_notes" value="{$record.notes}" size="32"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=from_name}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_from_name" value="{$record.from_name}" size="32"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=from_email}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_from_email" value="{$record.from_email}" size="32"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=cc_list}</td>
|
||||
<td style="width: 65%;"><textarea name="setup_email_cc_list" cols="40" rows="5" >{$record.cc_list}</textarea></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=bcc_list}</td>
|
||||
<td style="width: 65%;"><textarea name="setup_email_bcc_list" cols="40" rows="5" >{$record.bcc_list}</textarea></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=type}</td>
|
||||
<td style="width: 65%;">{$list->bool('setup_email_type',$record.type)}<br/>
|
||||
{t}If you select 'Yes', you will need to enter your SMTP server login details below.{/t}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=server}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_server" value="{$record.server}" size="32"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=username}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_username" value="{$record.username}" size="32"/></td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td style="width: 35%;">{osb f=tf field=password}</td>
|
||||
<td style="width: 65%;"><input type="password" name="setup_email_password" value="{$record.password}" size="32"/></td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td style="width: 35%;">{osb f=tf field=piping}</td>
|
||||
<td style="width: 65%;">{$list->menu_staticlist('email_piping','setup_email_piping','setup_email_piping',$record.piping,'form_menu')}
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td style="width: 35%;">{osb f=tf field=piping_host}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_piping_host" value="{$record.piping_host}" size="32"/></td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td style="width: 35%;">{osb f=tf field=piping_username}</td>
|
||||
<td style="width: 65%;"><input type="text" name="setup_email_piping_username" value="{$record.piping_username}" size="32"/></td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td style="width: 35%;">{osb f=tf field=piping_password}</td>
|
||||
<td style="width: 65%;"><input type="password" name="setup_email_piping_password" value="{$record.piping_password}" size="32"/></td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td style="width: 35%;">{osb f=tf field=piping_action}</td>
|
||||
<td style="width: 65%;">{$list->menu_staticlist('email_piping_action','setup_email_piping_action','setup_email_piping_action',$record.piping_action,'form_menu')}</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}
|
||||
|
Reference in New Issue
Block a user