Changes to AgileBill
This commit is contained in:
@@ -1,179 +1,95 @@
|
||||
|
||||
{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_server_add" name="host_server_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_server}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_server}
|
||||
field_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{if $VAR.host_server_status != ""}
|
||||
{ $list->bool("host_server_status", $VAR.host_server_status, "form_menu") }
|
||||
{else}
|
||||
{ $list->bool("host_server_status", "1", "form_menu") }
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_debug
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->bool("host_server_debug", $VAR.host_server_debug, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="host_server_name" value="{$VAR.host_server_name}" {if $host_server_name == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_notes
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<textarea name="host_server_notes" cols="40" rows="5" {if $host_server_notes == true}class="form_field_error"{/if}>{$VAR.host_server_notes}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_provision_plugin
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->menu_files("", "host_server_provision_plugin", $VAR.host_server_provision_plugin, "provision_plugin", "", ".php", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_name_based
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{if $VAR.host_server_name_based != "" }
|
||||
{ $list->bool("host_server_name_based", $VAR.host_server_name_based, "form_menu") }
|
||||
{else}
|
||||
{ $list->bool("host_server_name_based", "1", "form_menu") }
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_name_based_ip
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="host_server_name_based_ip" value="{$VAR.host_server_name_based_ip}" {if $host_server_name_based_ip == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_ip_based
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->bool("host_server_ip_based", $VAR.host_server_ip_based, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_ip_based_ip
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<textarea name="host_server_ip_based_ip" cols="40" rows="5" {if $host_server_ip_based_ip == true}class="form_field_error"{/if}>{$VAR.host_server_ip_based_ip}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_registrar_plugin}
|
||||
primary_ns
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="host_server_ns_primary" value="{$VAR.host_server_ns_primary}" size="32">
|
||||
</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_server_ns_secondary" value="{$VAR.host_server_ns_secondary}" size="32">
|
||||
</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_server_ns_ip_primary" value="{$VAR.host_server_ns_ip_primary}" size="32">
|
||||
</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_server_ns_ip_secondary" value="{$VAR.host_server_ns_ip_secondary}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<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_server:view">
|
||||
<input type="hidden" name="_page_current" value="host_server:add">
|
||||
<input type="hidden" name="do[]" value="host_server:add">
|
||||
</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%;">
|
||||
{if $VAR.host_server_status != ''}
|
||||
{$list->bool('host_server_status',$VAR.host_server_status,'form_menu')}
|
||||
{else}
|
||||
{$list->bool('host_server_status','1','form_menu')}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=debug}</td>
|
||||
<td style="width: 65%;">{$list->bool('host_server_debug',$VAR.host_server_debug,'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_server_name" value="{$VAR.host_server_name}" {if $host_server_name == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=notes}</td>
|
||||
<td style="width: 65%;"><textarea name="host_server_notes" cols="40" rows="5" {if $host_server_notes == true}class="form_field_error"{/if}>{$VAR.host_server_notes}</textarea></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=provision_plugin}</td>
|
||||
<td style="width: 65%;">{$list->menu_files('','host_server_provision_plugin',$VAR.host_server_provision_plugin,'provision_plugin','','.php','form_menu')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=name_based}</td>
|
||||
<td style="width: 65%;">
|
||||
{if $VAR.host_server_name_based != ''}
|
||||
{$list->bool('host_server_name_based',$VAR.host_server_name_based,'form_menu')}
|
||||
{else}
|
||||
{$list->bool('host_server_name_based','1','form_menu')}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=name_based_ip}</td>
|
||||
<td style="width: 65%;"><input type="text" name="host_server_name_based_ip" value="{$VAR.host_server_name_based_ip}" {if $host_server_name_based_ip == true}class="form_field_error"{/if}/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=ip_based}</td>
|
||||
<td style="width: 65%;">{$list->bool('host_server_ip_based',$VAR.host_server_ip_based,'form_menu')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=ip_based_ip}</td>
|
||||
<td style="width: 65%;"><textarea name="host_server_ip_based_ip" cols="40" rows="5" {if $host_server_ip_based_ip == true}class="form_field_error"{/if}>{$VAR.host_server_ip_based_ip}</textarea></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_server_ns_primary" value="{$VAR.host_server_ns_primary}" size="32"/></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_server_ns_secondary" value="{$VAR.host_server_ns_secondary}" size="32"/></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_server_ns_ip_primary" value="{$VAR.host_server_ns_ip_primary}" size="32"/></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_server_ns_ip_secondary" value="{$VAR.host_server_ns_ip_secondary}" size="32"/></td>
|
||||
</tr>
|
||||
{include file='file:../core/add_tr_submit.tpl'}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
@@ -1,140 +1,12 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
|
||||
{$method->exe("host_server","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 = 'host_server';
|
||||
{/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="34" class="table_heading"> </td>
|
||||
<td width="59" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=host_server}field_status{/translate}{literal}','status'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="150" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=host_server}field_name{/translate}{literal}','name'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="192" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=host_server}field_provision_plugin{/translate}{literal}','provision_plugin'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="218" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=host_server}field_name_based_ip{/translate}{literal}','name_based_ip'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="115" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=host_server}field_max_accounts{/translate}{literal}','max_accounts'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$host_server item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=host_server: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="34">
|
||||
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
||||
</td>
|
||||
<td width="59">
|
||||
{if $record.status == "1"}
|
||||
{translate}
|
||||
true
|
||||
{/translate}
|
||||
{else}
|
||||
{translate}
|
||||
false
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="150">
|
||||
{$record.name}
|
||||
</td>
|
||||
<td width="192">
|
||||
{$record.provision_plugin}
|
||||
</td>
|
||||
<td width="218">
|
||||
{$record.name_based_ip}
|
||||
</td>
|
||||
<td width="115">
|
||||
{$record.max_accounts}
|
||||
</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>
|
||||
<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,260 +1,109 @@
|
||||
{ $method->exe("host_server","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 = 'host_server';
|
||||
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=$host_server item=host_server} <a name="{$host_server.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="host_server_view" id="host_server_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_server}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_server}
|
||||
field_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->bool("host_server_status", $host_server.status, "onChange=\"submit()\"") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_debug
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->bool("host_server_debug", $host_server.debug, "onChange=\"submit()\"") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="host_server_name" value="{$host_server.name}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_notes
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<textarea name="host_server_notes" cols="35" rows="2" >{$host_server.notes}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_max_accounts
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="host_server_max_accounts" value="{$host_server.max_accounts}" size="5">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $next_server == true}
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_next_host_server_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<select name=host_server_next_host_server_id >
|
||||
{html_options options=$next_server_options selected=$host_server.next_host_server_id}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_name_based
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->bool("host_server_name_based", $host_server.name_based, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_name_based_ip
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="host_server_name_based_ip" value="{$host_server.name_based_ip}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_ip_based
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->bool("host_server_ip_based", $host_server.ip_based, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_ip_based_ip
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<textarea name="host_server_ip_based_ip" cols="35" rows="5" >{$host_server.ip_based_ip}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_server}
|
||||
field_provision_plugin
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{ $list->menu_files("", "host_server_provision_plugin", $host_server.provision_plugin, "provision_plugin", "", ".php", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{translate module=host_registrar_plugin}
|
||||
primary_ns
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="50%">
|
||||
<input type="text" name="host_server_ns_primary" value="{$host_server.ns_primary}" size="32">
|
||||
</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_server_ns_secondary" value="{$host_server.ns_secondary}" size="32">
|
||||
</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_server_ns_ip_primary" value="{$host_server.ns_ip_primary}" size="32">
|
||||
</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_server_ns_ip_secondary" value="{$host_server.ns_ip_secondary}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{assign var="ablock" value="host_provision_plugin:plugin_cfg_"}
|
||||
{assign var="afile" value=$host_server.provision_plugin}
|
||||
{assign var="blockfile" value="$ablock$afile"}
|
||||
{ $block->display($blockfile) }
|
||||
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="50%">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
</td>
|
||||
<td width="50%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right">
|
||||
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$host_server.id}','{$VAR.id}');">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="_page" value="host_server:view">
|
||||
<input type="hidden" name="host_server_id" value="{$host_server.id}">
|
||||
<input type="hidden" name="do[]" value="host_server: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=status}</td>
|
||||
<td style="width: 65%;">{$list->bool('host_server_status',$record.status,'" onchange="submit()')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=debug}</td>
|
||||
<td style="width: 65%;">{$list->bool('host_server_debug',$record.debug,'" onchange="submit()')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=name}</td>
|
||||
<td style="width: 65%;"><input type="text" name="host_server_name" value="{$record.name}" size="32"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=notes}</td>
|
||||
<td style="width: 65%;"><textarea name="host_server_notes" cols="35" rows="2" >{$record.notes}</textarea></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=max_accounts}</td>
|
||||
<td style="width: 65%;"><input type="text" name="host_server_max_accounts" value="{$record.max_accounts}" size="5"/></td>
|
||||
</tr>
|
||||
{if $next_server == true}
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=next_host_server_id}</td>
|
||||
<td style="width: 65%;">
|
||||
<select name="host_server_next_host_server_id">
|
||||
{html_options options=$next_server_options selected=$record.next_host_server_id}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=name_based}</td>
|
||||
<td style="width: 65%;">{$list->bool('host_server_name_based',$record.name_based,'form_menu')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=name_based_ip}</td>
|
||||
<td style="width: 65%;"><input type="text" name="host_server_name_based_ip" value="{$record.name_based_ip}" size="32"/></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=ip_based}</td>
|
||||
<td style="width: 65%;">{$list->bool('host_server_ip_based',$record.ip_based,'form_menu')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=ip_based_ip}</td>
|
||||
<td style="width: 65%;"><textarea name="host_server_ip_based_ip" cols="35" rows="5" >{$record.ip_based_ip}</textarea></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=provision_plugin}</td>
|
||||
<td style="width: 65%;">{$list->menu_files('','host_server_provision_plugin',$record.provision_plugin,'provision_plugin','','.php','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_server_ns_primary" value="{$record.ns_primary}" size="32"/></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_server_ns_secondary" value="{$record.ns_secondary}" size="32"/></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_server_ns_ip_primary" value="{$record.ns_ip_primary}" size="32"/></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_server_ns_ip_secondary" value="{$record.ns_ip_secondary}" size="32"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
{assign var='ablock' value='host_provision_plugin:plugin_cfg_'}
|
||||
{assign var='afile' value=$record.provision_plugin}
|
||||
{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}
|
||||
|
Reference in New Issue
Block a user