Changes to AgileBill
This commit is contained in:
@@ -1,104 +0,0 @@
|
||||
|
||||
|
||||
<!-- Display the form validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- Display the form to collect the input values -->
|
||||
<form id="import_add" name="import_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=import}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=import}
|
||||
field_date_orig
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_date_orig" value="{$VAR.import_date_orig}" {if $import_date_orig == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=import}
|
||||
field_plugin
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_plugin" value="{$VAR.import_plugin}" {if $import_plugin == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=import}
|
||||
field_module
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_module" value="{$VAR.import_module}" {if $import_module == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=import}
|
||||
field_local_table
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_local_table" value="{$VAR.import_local_table}" {if $import_local_table == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=import}
|
||||
field_ab_table
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_ab_table" value="{$VAR.import_ab_table}" {if $import_ab_table == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=import}
|
||||
field_remote_id
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_remote_id" value="{$VAR.import_remote_id}" {if $import_remote_id == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=import}
|
||||
field_ab_id
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_ab_id" value="{$VAR.import_ab_id}" {if $import_ab_id == 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="import:view">
|
||||
<input type="hidden" name="_page_current" value="import:add">
|
||||
<input type="hidden" name="do[]" value="import:add">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
@@ -1,91 +1,48 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{ $method->exe("import","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
{$method->exe($meth.0,'view')}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
|
||||
<form name="import_view" method="post" action="">
|
||||
{$COOKIE_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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{$name}
|
||||
</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="65%">{$instructions}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$import item=import}
|
||||
<form id="view" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="69%">
|
||||
{$import.desc}
|
||||
</td>
|
||||
<td width="31%">
|
||||
{if $import.status == 'ready'}
|
||||
<a href="?_page=core:blank&plugin={$VAR.plugin}&action={$import.name}&do[]=import:do_action">
|
||||
{translate module=import}
|
||||
{$import.status}
|
||||
{/translate}
|
||||
</a>
|
||||
{elseif $import.status == 'done'}
|
||||
<a href="?_page=import:import&plugin={$VAR.plugin}&action={$import.name}&do[]=import:undo_action">
|
||||
{translate module=import}
|
||||
{$import.status}
|
||||
{/translate}
|
||||
(
|
||||
{$import.records}
|
||||
) </a>
|
||||
{elseif $import.status == 'pending' }
|
||||
{translate module=import}
|
||||
{$import.status}
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<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%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="_page" value="import:view">
|
||||
<input type="hidden" name="import_id" value="{$import.id}">
|
||||
<input type="hidden" name="do[]" value="import:update">
|
||||
<input type="hidden" name="id" value="{$VAR.id}">
|
||||
</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">{$name}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td>{$instructions}</td>
|
||||
</tr>
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$import item=record}
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td style="width: 75%;">{$record.desc}</td>
|
||||
<td style="width: 25%;">
|
||||
{if $record.status == 'ready'}
|
||||
<a href="?_page=core:blank&plugin={$VAR.plugin}&action={$record.name}&do[]=import:do_action">{t}{$record.status}{/t}</a>
|
||||
{elseif $record.status == 'done'}
|
||||
<a href="?_page=import:import&plugin={$VAR.plugin}&action={$record.name}&do[]=import:undo_action">{t}{$record.status}{/t} ({$record.records})</a>
|
||||
{elseif $record.status == 'pending' }
|
||||
{t}{$record.status}{/t}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
{/if}
|
||||
|
@@ -1,76 +1,30 @@
|
||||
{$method->exe("import","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 = 'import';
|
||||
{/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}
|
||||
{include file='file:../core/search_show_pre.tpl'}
|
||||
|
||||
<!-- SHOW THE SEARCH NAVIGATION MENU -->
|
||||
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
{$method->exe_noauth($meth.0,'tpl_search_show')}
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$search_show item=record}
|
||||
<tr class="{$record._C}">
|
||||
<td>{$record.name|capitalize}</td>
|
||||
<td><div style="text-align: center;"><a href="?_page=import:import&plugin={$record.name}">{t}Plugin Options{/t}</a></div></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<!-- END OF RESULT LOOP -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- 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="744" class="table_heading">
|
||||
{translate module=import}
|
||||
plugin
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="196" class="table_heading"> </td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$import item=record}
|
||||
<tr class="{$record._C}">
|
||||
<td width="744">
|
||||
{$record.name|capitalize}
|
||||
</td>
|
||||
<td width="196">
|
||||
<div align="center"> <a href="?_page=import:import&plugin={$record.name}">
|
||||
{translate module=import}
|
||||
view
|
||||
{/translate}
|
||||
</a> </div>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<!-- END OF RESULT LOOP -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
{/if}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{/if}
|
||||
|
@@ -1,154 +1,67 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{ $method->exe("import","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 = 'import';
|
||||
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=$import item=import} <a name="{$import.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="import_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=import}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=import}
|
||||
field_date_orig
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_date_orig" value="{$import.date_orig}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=import}
|
||||
field_plugin
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_plugin" value="{$import.plugin}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=import}
|
||||
field_module
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_module" value="{$import.module}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=import}
|
||||
field_local_table
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_local_table" value="{$import.local_table}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=import}
|
||||
field_ab_table
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_ab_table" value="{$import.ab_table}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=import}
|
||||
field_remote_id
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_remote_id" value="{$import.remote_id}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=import}
|
||||
field_ab_id
|
||||
{/translate}</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="import_ab_id" value="{$import.ab_id}" 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('{$import.id}','{$VAR.id}');">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="_page" value="import:view">
|
||||
<input type="hidden" name="import_id" value="{$import.id}">
|
||||
<input type="hidden" name="do[]" value="import: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 width="35%">{osb f=tf field=date_orig}</td>
|
||||
<td width="65%"><input type="text" name="import_date_orig" value="{$record.date_orig}" size="32"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=plugin}</td>
|
||||
<td width="65%"><input type="text" name="import_plugin" value="{$record.plugin}" size="32"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=module}</td>
|
||||
<td width="65%"><input type="text" name="import_module" value="{$record.module}" size="32"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=local_table}</td>
|
||||
<td width="65%"><input type="text" name="import_local_table" value="{$record.local_table}" size="32"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=ab_table}</td>
|
||||
<td width="65%"><input type="text" name="import_ab_table" value="{$record.ab_table}" size="32"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=remote_id}</td>
|
||||
<td width="65%"><input type="text" name="import_remote_id" value="{$record.remote_id}" size="32"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{osb f=tf field=ab_id}</td>
|
||||
<td width="65%"><input type="text" name="import_ab_id" value="{$record.ab_id}" 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}
|
||||
|
Reference in New Issue
Block a user