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,73 +1,46 @@
{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="host_registrar_plugin_add" name="host_registrar_plugin_add" method="post" action="">
<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 width="65%" class="table_heading">
<center>
{translate module=host_registrar_plugin}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="50%">
{translate module=host_registrar_plugin}
field_status
{/translate}
</td>
<td width="50%">
{ $list->bool("host_registrar_plugin_status", $VAR.host_registrar_plugin_status, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=host_registrar_plugin}
field_name
{/translate}
</td>
<td width="50%">
<input type="text" name="host_registrar_plugin_name" value="{$VAR.host_registrar_plugin_name}" {if $host_registrar_plugin_name == true}class="form_field_error"{/if}>
</td>
</tr>
</table>
{assign var=thistype value="add"}
{assign var="afile" value=$VAR.host_registrar_plugin_file}
{assign var="ablock" value="host_registrar_plugin:plugin_cfg_"}
{assign var="blockfile" value="$ablock$afile"}
{ $block->display($blockfile) }
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%"></td>
<td width="50%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="host_registrar_plugin:view">
<input type="hidden" name="_page_current" value="host_registrar_plugin:add">
<input type="hidden" name="do[]" value="host_registrar_plugin:add">
<input type="hidden" name="host_registrar_plugin_file" value="{$VAR.host_registrar_plugin_file}">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=status}</td>
<td style="width: 65%;">{$list->bool('host_registrar_plugin_status',$VAR.host_registrar_plugin_status,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=name}</td>
<td style="width: 65%;"><input type="text" name="host_registrar_plugin_name" value="{$VAR.host_registrar_plugin_name}" {if $host_registrar_plugin_name == true}class="form_field_error"{/if}/></td>
</tr>
</table>
{assign var=thistype value='add'}
{assign var='afile' value=$VAR.host_registrar_plugin_file}
{assign var='ablock' value='host_registrar_plugin:plugin_cfg_'}
{assign var='blockfile' value="$ablock$afile"}
{$block->display($blockfile)}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -1,87 +1,39 @@
{ if $thistype != "add" }
{$list->unserial($host_registrar_plugin.plugin_data, "plugin_data")}
{ else}
{assign var=plugin_data value=$VAR.host_registrar_plugin_data}
{if $thistype != 'add'}
{$list->unserial($record.plugin_data,'plugin_data')}
{else}
{assign var=plugin_data value=$VAR.host_registrar_plugin_data}
{/if}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%">
{translate module=host_registrar_plugin}
primary_ns
{/translate}
</td>
<td width="50%">
<input type="text" name="host_registrar_plugin_plugin_data[ns1]" value="{$plugin_data.ns1}" class="form_field">
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=host_registrar_plugin}
secondary_ns
{/translate}
</td>
<td width="50%">
<input type="text" name="host_registrar_plugin_plugin_data[ns2]" value="{$plugin_data.ns2}" class="form_field">
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=host_registrar_plugin}
primary_nsip
{/translate}
</td>
<td width="50%">
<input type="text" name="host_registrar_plugin_plugin_data[ns1ip]" value="{$plugin_data.ns1ip}" class="form_field">
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=host_registrar_plugin}
secondary_nsip
{/translate}
</td>
<td width="50%">
<input type="text" name="host_registrar_plugin_plugin_data[ns2ip]" value="{$plugin_data.ns2ip}" class="form_field">
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=host_registrar_plugin}
manual_add_email
{/translate}
</td>
<td width="50%">
{ $list->menu("", "host_registrar_plugin_plugin_data[manual_add_email]", "staff", "nickname", $plugin_data.manual_add_email, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=host_registrar_plugin}
manual_renew_email
{/translate}
</td>
<td width="50%">
{ $list->menu("", "host_registrar_plugin_plugin_data[manual_renew_email]", "staff", "nickname", $plugin_data.manual_renew_email, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=host_registrar_plugin}
manual_transfer_email
{/translate}
</td>
<td width="50%">
{ $list->menu("", "host_registrar_plugin_plugin_data[manual_transfer_email]", "staff", "nickname", $plugin_data.manual_transfer_email, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=host_registrar_plugin}
manual_park_email
{/translate}
</td>
<td width="50%">
{ $list->menu("", "host_registrar_plugin_plugin_data[manual_park_email]", "staff", "nickname", $plugin_data.manual_park_email, "form_menu") }
</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=primary_ns}</td>
<td style="width: 65%;"><input type="text" name="host_registrar_plugin_plugin_data[ns1]" value="{$plugin_data.ns1}" class="form_field"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=secondary_ns}</td>
<td style="width: 65%;"><input type="text" name="host_registrar_plugin_plugin_data[ns2]" value="{$plugin_data.ns2}" class="form_field"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=primary_nsip}</td>
<td style="width: 65%;"><input type="text" name="host_registrar_plugin_plugin_data[ns1ip]" value="{$plugin_data.ns1ip}" class="form_field"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=secondary_nsip}</td>
<td style="width: 65%;"><input type="text" name="host_registrar_plugin_plugin_data[ns2ip]" value="{$plugin_data.ns2ip}" class="form_field"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=manual_add_email}</td>
<td style="width: 65%;">{$list->menu('','host_registrar_plugin_plugin_data[manual_add_email]','staff','nickname',$plugin_data.manual_add_email,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=manual_renew_email}</td>
<td style="width: 65%;">{$list->menu('','host_registrar_plugin_plugin_data[manual_renew_email]','staff','nickname',$plugin_data.manual_renew_email,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=manual_transfer_email}</td>
<td style="width: 65%;">{$list->menu('','host_registrar_plugin_plugin_data[manual_transfer_email]','staff','nickname',$plugin_data.manual_transfer_email,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=manual_park_email}</td>
<td style="width: 65%;">{$list->menu('','host_registrar_plugin_plugin_data[manual_park_email]','staff','nickname',$plugin_data.manual_park_email,'form_menu')}</td>
</tr>
</table>

View File

@@ -1,98 +1,48 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe("host_registrar_plugin","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>
{include file='file:../core/search_show_pre.tpl'}
{literal}
<script language="JavaScript">
<!-- START
var module = 'host_registrar_plugin';
{/literal}
{if $VAR._print == TRUE}
var p = '&_escape=y&_print=y';
{else}
var p = '';
{/if}{literal}
var IMAGE = '{/literal}{$NONSSL_IMAGE}{literal}';
var order = '{/literal}{$order}{literal}';
var sort1 = '{/literal}{$sort}{literal}';
var search_id = '{/literal}{$search_id}{literal}';
var page = {/literal}{$page}{literal};
var pages = '{/literal}{$pages}{literal}';
var results = '{/literal}{$results}{literal}';
var limit = '{/literal}{$limit}{literal}';
record_arr = new Array ({/literal}{$limit}{literal});
var i = 0;
// END -->
</script>
<SCRIPT SRC="themes/{/literal}{$THEME_NAME}{literal}/search.js"></SCRIPT>
{/literal}
<!-- SHOW THE SEARCH NAVIGATION MENU -->
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
<!-- BEGIN THE RESULTS CONTENT AREA -->
<div id="search_results" onKeyPress="key_handler(event);">
<table id="main1" width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<form id="form1" name="form1" method="post" action="">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<!-- DISPLAY THE SEARCH HEADING -->
<tr valign="middle" align="center" class="table_heading">
<td width="43" class="table_heading">&nbsp; </td>
<td width="744" class="table_heading">
{translate module=host_registrar_plugin}
field_name
{/translate}
</td>
<td width="196" class="table_heading">&nbsp; </td>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$host_registrar_plugin item=record}
<tr class="{$record._C}">
<td width="43">&nbsp;
{if $record.status == "1"}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" border="0" width="16" height="16">
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" border="0" width="16" height="16">
{/if}
</td>
<td width="744">&nbsp;
{$record.name}
</td>
<td width="196">
<div align="center">&nbsp; &nbsp;
{if $record.status == "1"}
<a href="?_page=host_registrar_plugin:view&id={$record.id}">
{translate module=host_registrar_plugin}
view
{/translate}
</a>
{else}
<a href="?_page=host_registrar_plugin:add&host_registrar_plugin_file={$record.name}">
{translate module=host_registrar_plugin}
install
{/translate}
</a>
{/if}
</div>
</td>
</tr>
{/foreach}
<!-- END OF RESULT LOOP -->
</table>
</td>
</tr>
</form>
</table>
<!-- BEGIN THE RESULTS CONTENT AREA -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<!-- DISPLAY THE SEARCH HEADING -->
<tr valign="middle" align="center" class="table_heading">
<td class="table_heading" style="width: 20px;">&nbsp;</td>
<td class="table_heading">{translate module=host_registrar_plugin}field_name{/translate}</td>
<td class="table_heading">&nbsp;</td>
</tr>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$host_registrar_plugin item=record}
<tr class="{$record._C}">
<td>
{if $record.status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" alt="Enabled" width="16" height="16" style="border: 0px;"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" alt="Disabled" width="16" height="16" style="border: 0px;"/>
{/if}
</td>
<td>{$record.name}</td>
<td style="text-align: center;">
{if $record.status == '1'}
<a href="?_page=host_registrar_plugin:view&amp;id={$record.id}">{t}View / Edit Plugin{/t}</a>
{else}
<a href="?_page=host_registrar_plugin:add&amp;host_registrar_plugin_file={$record.name}">{t}Install Plugin{/t}</a>
{/if}
</td>
</tr>
{/foreach}
<!-- END OF RESULT LOOP -->
</table>
</td>
</tr>
</table>
</form>
{/if}
</div>

View File

@@ -1,113 +1,52 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{ $method->exe("host_registrar_plugin","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 = 'host_registrar_plugin';
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=$host_registrar_plugin item=host_registrar_plugin}
<!-- 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="host_registrar_plugin_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">
<center>
{translate module=host_registrar_plugin}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="50%">
{translate module=host_registrar_plugin}
field_status
{/translate}
</td>
<td width="50%">
{ $list->bool("host_registrar_plugin_status", $host_registrar_plugin.status, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="50%">
{translate module=host_registrar_plugin}
field_name
{/translate}
</td>
<td width="50%">
<input type="text" name="host_registrar_plugin_name" value="{$host_registrar_plugin.name}" size="32">
</td>
</tr>
</table>
{assign var=thistype value="edit"}
{assign var="afile" value=$host_registrar_plugin.file}
{assign var="ablock" value="host_registrar_plugin:plugin_cfg_"}
{assign var="blockfile" value="$ablock$afile"}
{ $block->display($blockfile) }
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="50%"></td>
<td width="50%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$host_registrar_plugin.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="host_registrar_plugin:view">
<input type="hidden" name="host_registrar_plugin_id" value="{$host_registrar_plugin.id}">
<input type="hidden" name="do[]" value="host_registrar_plugin:update">
<input type="hidden" name="id" value="{$VAR.id}">
<input type="hidden" name="host_registrar_plugin_file" value="{$host_registrar_plugin.file}">
</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=status}</td>
<td style="width: 65%;">{$list->bool('host_registrar_plugin_status',$record.status,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=name}</td>
<td style="width: 65%;"><input type="text" name="host_registrar_plugin_name" value="{$record.name}" size="32"/></td>
</tr>
</table>
{assign var=thistype value='edit'}
{assign var='afile' value=$record.file}
{assign var='ablock' value='host_registrar_plugin:plugin_cfg_'}
{assign var='blockfile' value="$ablock$afile"}
{$block->display($blockfile)}
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
{/if}