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,235 +1,47 @@
{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="static_var_add" name="static_var_form" 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=static_var}
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=static_var}
field_name
{/translate}
</td>
<td width="65%">
<input type="text" name="static_var_name" value="{$VAR.static_var_name}" {if $static_var_name == true}class="form_field_error"{/if} size="40">
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=static_var}
field_description
{/translate}
</td>
<td width="65%">
<textarea name="static_var_description" cols="40" rows="2" {if $static_var_description == true}class="form_field_error"{/if}>{$VAR.static_var_description}</textarea>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=static_var}
field_input_format
{/translate}
</td>
<td width="65%">
<select name="static_var_input_format" >
<option value="small_text"{if $VAR.static_var_input_format == "small_text"} selected{/if}>
{translate module=static_var}
small_text
{/translate}
</option>
<option value="medium_text"{if $VAR.static_var_input_format == "medium_text"} selected{/if}>
{translate module=static_var}
medium_text
{/translate}
</option>
<option value="large_text"{if $VAR.static_var_input_format == "large_text"} selected{/if}>
{translate module=static_var}
large_text
{/translate}
</option>
<option value="dropdown_list"{if $VAR.static_var_input_format == "dropdown_list"} selected{/if}>
{translate module=static_var}
dropdown_list
{/translate}
</option>
<option value="calendar"{if $VAR.static_var_input_format == "calendar"} selected{/if}>
{translate module=static_var}
calendar
{/translate}
</option>
<option value="file_upload"{if $VAR.static_var_input_format == "file_upload"} selected{/if}>
{translate module=static_var}
file_upload
{/translate}
</option>
<option value="status"{if $VAR.static_var_input_format == "status"} selected{/if}>
{translate module=static_var}
status
{/translate}
</option>
<option value="checkbox"{if $VAR.static_var_input_format == "checkbox"} selected{/if}>
{translate module=static_var}
checkbox
{/translate}
</option>
<option value="hidden"{if $VAR.static_var_input_format == "hidden"} selected{/if}>
{translate module=static_var}
hidden
{/translate}
</option>
</select>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=static_var}
field_validation_type
{/translate}
</td>
<td width="65%">
<select name="static_var_validation_type" >
<option value="none"{if $VAR.static_var_validation_type == "none"} selected{/if}>
{translate module=static_var}
none
{/translate}
</option>
<option value="any"{if $VAR.static_var_validation_type == "any"} selected{/if}>
{translate module=static_var}
any
{/translate}
</option>
<option value="email"{if $VAR.static_var_validation_type == "email"} selected{/if}>
{translate module=static_var}
email
{/translate}
</option>
<option value="date"{if $VAR.static_var_validation_type == "date"} selected{/if}>
{translate module=static_var}
date
{/translate}
</option>
<option value="address"{if $VAR.static_var_validation_type == "address"} selected{/if}>
{translate module=static_var}
address
{/translate}
</option>
<option value="zip"{if $VAR.static_var_validation_type == "zip"} selected{/if}>
{translate module=static_var}
zip
{/translate}
</option>
<option value="phone"{if $VAR.static_var_validation_type == "phone"} selected{/if}>
{translate module=static_var}
phone
{/translate}
</option>
<option value="credit_card"{if $VAR.static_var_validation_type == "credit_card"} selected{/if}>
{translate module=static_var}
credit_card
{/translate}
</option>
<option value="numeric"{if $VAR.static_var_validation_type == "numeric"} selected{/if}>
{translate module=static_var}
numeric
{/translate}
</option>
<option value="alphanumeric"{if $VAR.static_var_validation_type == "alphanumeric"} selected{/if}>
{translate module=static_var}
alphanumeric
{/translate}
</option>
<option value="non_numeric"{if $VAR.static_var_validation_type == "non_numeric"} selected{/if}>
{translate module=static_var}
non_numeric
{/translate}
</option>
</select>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=static_var}
field_convert_type
{/translate}
</td>
<td width="65%">
<select name="static_var_convert_type" >
<option value="none"{if $VAR.static_var_convert_type == "none"} selected{/if}>
{translate module=static_var}
none
{/translate}
</option>
<option value="date"{if $VAR.static_var_convert_type == "date"} selected{/if}>
{translate module=static_var}
date
{/translate}
</option>
<option value="md5"{if $VAR.static_var_convert_type == "md5"} selected{/if}>
{translate module=static_var}
md5
{/translate}
</option>
<option value="rc5"{if $VAR.static_var_convert_type == "rc5"} selected{/if}>
{translate module=static_var}
rc5
{/translate}
</option>
<option value="crypt"{if $VAR.static_var_convert_type == "crypt"} selected{/if}>
{translate module=static_var}
crypt
{/translate}
</option>
<option value="gpg"{if $VAR.static_var_convert_type == "gpg"} selected{/if}>
{translate module=static_var}
gpg
{/translate}
</option>
<option value="pgp"{if $VAR.static_var_convert_type == "pgp"} selected{/if}>
{translate module=static_var}
pgp
{/translate}
</option>
<option value="array"{if $VAR.static_var_convert_type == "array"} selected{/if}>
{translate module=static_var}
array
{/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="static_var:view">
<input type="hidden" name="_page_current" value="static_var:add">
<input type="hidden" name="do[]" value="static_var:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<form id="add" method="post" action="" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=name}</td>
<td style="width: 65%;"><input type="text" name="static_var_name" value="{$VAR.static_var_name}" {if $static_var_name == true}class="form_field_error"{/if} size="40"/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=description}</td>
<td style="width: 65%;"><textarea name="static_var_description" cols="40" rows="2" {if $static_var_description == true}class="form_field_error"{/if}>{$VAR.static_var_description}</textarea></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=input_format}</td>
<td style="width: 65%;">{$list->menu_staticlist('statictype','static_var_input_format','static_var_input_format','','form_menu')}</td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="static_var_validation_type" value="none"/>
<input type="hidden" name="static_var_convert_type" value="none"/>
<div>
</form>

View File

@@ -1,130 +1,12 @@
{$method->exe("static_var","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 = 'static_var';
{/literal}
{if $VAR._print == TRUE}
var p = '&_escape=y&_print=y';
{else}
var p = '';
{/if}{literal}
var IMAGE = '{/literal}{$NONSSL_IMAGE}{literal}';
var order = '{/literal}{$order}{literal}';
var sort1 = '{/literal}{$sort}{literal}';
var search_id = '{/literal}{$search_id}{literal}';
var page = {/literal}{$page}{literal};
var pages = '{/literal}{$pages}{literal}';
var results = '{/literal}{$results}{literal}';
var limit = '{/literal}{$limit}{literal}';
record_arr = new Array ({/literal}{$limit}{literal});
var i = 0;
// END -->
</script>
<SCRIPT SRC="themes/{/literal}{$THEME_NAME}{literal}/search.js"></SCRIPT>
{/literal}
<!-- SHOW THE SEARCH NAVIGATION MENU -->
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
<!-- BEGIN THE RESULTS CONTENT AREA -->
<div id="search_results" onKeyPress="key_handler(event);">
<table id="main1" width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<form id="form1" name="form1" method="post" action="">
<tr>
<td>
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
<!-- DISPLAY THE SEARCH HEADING -->
<tr valign="middle" align="center" class="table_heading">
<td width="5%" class="table_heading">&nbsp;</td>
<td width="25%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=static_var}field_name{/translate}{literal}','name'));
</script>
{/literal}
</td>
<td width="27%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=static_var}field_input_format{/translate}{literal}','input_format'));
</script>
{/literal}
</td>
<td width="24%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=static_var}field_validation_type{/translate}{literal}','validation_type'));
</script>
{/literal}
</td>
<td width="19%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate module=static_var}field_convert_type{/translate}{literal}','convert_type'));
</script>
{/literal}
</td>
</tr>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$static_var item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=static_var: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 width="25%"> &nbsp;
{$record.name}
</td>
<td width="27%"> &nbsp;
{translate module=static_var}
{$record.input_format}
{/translate}
</td>
<td width="24%"> &nbsp;
{translate module=static_var}
{$record.validation_type}
{/translate}
</td>
<td width="19%"> &nbsp;
{translate module=static_var}
{$record.convert_type}
{/translate}
</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>

View File

@@ -1,329 +1,109 @@
{ $method->exe("static_var","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 = 'static_var';
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=$static_var item=static_var} <a name="{$static_var.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") }
<!-- 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 class="row0" valign="top">
<td style="width: 35%;">{osb f=tf field=name}</td>
<td style="width: 65%;"><textarea name="static_var_name" cols="50" rows="4">{$record.name|escape:"htmlall"}</textarea></td>
</tr>
<tr class="row1" valign="top">
<td style="width: 35%;">{osb f=tf field=description}</td>
<td style="width: 65%;"><textarea name="static_var_description" cols="50" rows="2" >{$record.description}</textarea></td>
</tr>
<tr class="row1" valign="top">
<td style="width: 35%;">{osb f=tf field=input_format}</td>
<td style="width: 65%;">{$list->menu_staticlist('statictype','static_var_input_format','static_var_input_format',$record.input_format,'form_menu')}</td>
</tr>
<tr class="row3" valign="top">
<td style="width: 35%;">{osb f=tf field=validation_type}</td>
<td style="width: 65%;">
<select name="static_var_validation_type" >
<option value="none"{if $record.validation_type == "none"} selected="selected"{/if}>{t}none{/t}</option>
<option value="any"{if $record.validation_type == "any"} selected="selected"{/if}>{t}Any{/t}</option>
<option value="email"{if $record.validation_type == "email"} selected="selected"{/if}>{t}Email{/t}</option>
<option value="date"{if $record.validation_type == "date"} selected="selected"{/if}>{t}Date{/t}</option>
<option value="address"{if $record.validation_type == "address"} selected="selected"{/if}>{t}Address{/t}</option>
<option value="zip"{if $record.validation_type == "zip"} selected="selected"{/if}>{t}Zip{/t}</option>
<option value="phone"{if $record.validation_type == "phone"} selected="selected"{/if}>{t}Phone{/t}</option>
<option value="credit_card"{if $record.validation_type == "credit_card"} selected="selected"{/if}>{t}Credit Card{/t}</option>
<option value="numeric"{if $record.validation_type == "numeric"} selected="selected"{/if}>{t}Numeric{/t}</option>
<option value="alphanumeric"{if $record.validation_type == "alphanumeric"} selected="selected"{/if}>{t}Alphanumeric{/t}</option>
<option value="non_numeric"{if $record.validation_type == "non_numeric"} selected="selected"{/if}>{t}Non Numeric{/t}</option>
</select>
</td>
</tr>
<tr class="row4" valign="top">
<td style="width: 35%;">{osb f=tf field=convert_type}</td>
<td style="width: 65%;">
<select name="static_var_convert_type" >
<option value="none"{if $record.convert_type == "none"} selected="selected"{/if}>{t}none{/t}</option>
<option value="date"{if $record.convert_type == "date"} selected="selected"{/if}>date</option>
<option value="md5"{if $record.convert_type == "md5"} selected="selected"{/if}>md5</option>
<option value="rc5"{if $record.convert_type == "rc5"} selected="selected"{/if}>rc5</option>
<option value="crypt"{if $record.convert_type == "crypt"} selected="selected"{/if}>crypt</option>
<option value="gpg"{if $record.convert_type == "gpg"} selected="selected"{/if}>gpg</option>
<option value="pgp"{if $record.convert_type == "pgp"} selected="selected"{/if}>pgp</option>
<option value="array"{if $record.convert_type == "array"} selected="selected"{/if}>array</option>
</select>
</td>
</tr>
<tr class="row1" valign="middle">
<td style="width: 35%;"><a href="javascript:showVars();">{t}View Custom Fields{/t}</a></td>
<td style="width: 65%;"><div style="text-align: right;"><a href="javascript:addVars();">{t}Add Custom Fields{/t}</a></div></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>
<div>
<br/>
</div>
<iframe name="iframe" id="iframe" style="border:0px; width:0px; height:0px;" scrolling="auto" frameborder="0" src="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
{/if}
<!-- Display each record -->
<form name="update_form" 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=static_var}
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 class="row0" valign="top">
<td width="50%">
{translate module=static_var}
field_name
{/translate}
</td>
<td width="50%">
<textarea name="static_var_name" cols="50" rows="4">{$static_var.name|escape:"htmlall"}</textarea>
</td>
</tr>
<tr class="row1" valign="top">
<td width="50%">
{translate module=static_var}
field_description
{/translate}
</td>
<td width="50%">
<textarea name="static_var_description" cols="50" rows="2" >{$static_var.description}</textarea>
</td>
</tr>
<tr class="row1" valign="top">
<td width="50%">
{translate module=static_var}
field_input_format
{/translate}
</td>
<td width="50%">
<select name="static_var_input_format" >
<option value="small_text"{if $static_var.input_format == "small_text"} selected{/if}>
{translate module=static_var}
small_text
{/translate}
</option>
<option value="medium_text"{if $static_var.input_format == "medium_text"} selected{/if}>
{translate module=static_var}
medium_text
{/translate}
</option>
<option value="large_text"{if $static_var.input_format == "large_text"} selected{/if}>
{translate module=static_var}
large_text
{/translate}
</option>
<option value="dropdown_list"{if $static_var.input_format == "dropdown_list"} selected{/if}>
{translate module=static_var}
dropdown_list
{/translate}
</option>
<option value="calendar"{if $static_var.input_format == "calendar"} selected{/if}>
{translate module=static_var}
calendar
{/translate}
</option>
<option value="file_upload"{if $static_var.input_format == "file_upload"} selected{/if}>
{translate module=static_var}
file_upload
{/translate}
</option>
<option value="status"{if $static_var.input_format == "status"} selected{/if}>
{translate module=static_var}
status
{/translate}
</option>
<option value="checkbox"{if $static_var.input_format == "checkbox"} selected{/if}>
{translate module=static_var}
checkbox
{/translate}
</option>
<option value="hidden"{if $static_var.input_format == "hidden"} selected{/if}>
{translate module=static_var}
hidden
{/translate}
</option>
</select>
</td>
</tr>
<tr class="row3" valign="top">
<td width="50%">
{translate module=static_var}
field_validation_type
{/translate}
</td>
<td width="50%">
<select name="static_var_validation_type" >
<option value="none"{if $static_var.validation_type == "none"} selected{/if}>
{translate module=static_var}
none
{/translate}
</option>
<option value="any"{if $static_var.validation_type == "any"} selected{/if}>
{translate module=static_var}
any
{/translate}
</option>
<option value="email"{if $static_var.validation_type == "email"} selected{/if}>
{translate module=static_var}
email
{/translate}
</option>
<option value="date"{if $static_var.validation_type == "date"} selected{/if}>
{translate module=static_var}
date
{/translate}
</option>
<option value="address"{if $static_var.validation_type == "address"} selected{/if}>
{translate module=static_var}
address
{/translate}
</option>
<option value="zip"{if $static_var.validation_type == "zip"} selected{/if}>
{translate module=static_var}
zip
{/translate}
</option>
<option value="phone"{if $static_var.validation_type == "phone"} selected{/if}>
{translate module=static_var}
phone
{/translate}
</option>
<option value="credit_card"{if $static_var.validation_type == "credit_card"} selected{/if}>
{translate module=static_var}
credit_card
{/translate}
</option>
<option value="numeric"{if $static_var.validation_type == "numeric"} selected{/if}>
{translate module=static_var}
numeric
{/translate}
</option>
<option value="alphanumeric"{if $static_var.validation_type == "alphanumeric"} selected{/if}>
{translate module=static_var}
alphanumeric
{/translate}
</option>
<option value="non_numeric"{if $static_var.validation_type == "non_numeric"} selected{/if}>
{translate module=static_var}
non_numeric
{/translate}
</option>
</select>
</td>
</tr>
<tr class="row4" valign="top">
<td width="50%">
{translate module=static_var}
field_convert_type
{/translate}
</td>
<td width="50%">
<select name="static_var_convert_type" >
<option value="none"{if $static_var.convert_type == "none"} selected{/if}>
{translate module=static_var}
none
{/translate}
</option>
<option value="date"{if $static_var.convert_type == "date"} selected{/if}>
{translate module=static_var}
date
{/translate}
</option>
<option value="md5"{if $static_var.convert_type == "md5"} selected{/if}>
{translate module=static_var}
md5
{/translate}
</option>
<option value="rc5"{if $static_var.convert_type == "rc5"} selected{/if}>
{translate module=static_var}
rc5
{/translate}
</option>
<option value="crypt"{if $static_var.convert_type == "crypt"} selected{/if}>
{translate module=static_var}
crypt
{/translate}
</option>
<option value="gpg"{if $static_var.convert_type == "gpg"} selected{/if}>
{translate module=static_var}
gpg
{/translate}
</option>
<option value="pgp"{if $static_var.convert_type == "pgp"} selected{/if}>
{translate module=static_var}
pgp
{/translate}
</option>
<option value="array"{if $static_var.convert_type == "array"} selected{/if}>
{translate module=static_var}
array
{/translate}
</option>
</select>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="50%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="static_var:view">
<input type="hidden" name="static_var_id" value="{$static_var.id}">
<input type="hidden" name="do[]" value="static_var:update">
<input type="hidden" name="id" value="{$VAR.id}">
<a href="javascript:showVars();"> </a><a href="javascript:addVars();"></a>
</td>
<td width="50%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp; </td>
<td align="right">
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$static_var.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="50%"><a href="javascript:showVars();">
{translate module=static_var}
title_view
{/translate}
</a></td>
<td width="50%">
<div align="right"><a href="javascript:addVars();">
{translate module=static_var}
title_add
{/translate}
</a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{/foreach}
{/if}
<center>
<iframe name="iframeStatic" id="iframeStatic" style="border:0px; width:0px; height:0px;" scrolling="auto" ALLOWTRANSPARENCY="true" frameborder="0" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
</center>
{literal}
<script language="JavaScript">
<!-- START
var static_var_id = {/literal}{$static_var.id}{literal};
function showVars() {
showIFrame('iframeStatic',getPageWidth(600),300,'?_page=core:search_iframe&module=static_relation&_escape=1&static_relation_static_var_id='+static_var_id+
'&_escape_next=1&_next_page_one=view&_next_page_none=add&name_id1=static_relation_static_var_id&val_id1='+static_var_id);
}
<script type="text/javascript">
<!--
var static_var_id = {$record.id};
function addVars() {
showIFrame('iframeStatic',getPageWidth(600),300,'?_page=static_relation:add&_escape=1&static_relation_static_var_id='+static_var_id);
}
// END -->
{literal}
function showVars() {
showIFrame('iframe',getPageWidth(600),300,'?_page=core:search&module=static_relation&static_relation_static_var_id='+static_var_id+'&_next_page_one=view&_next_page_none=add');
}
function addVars() {
showIFrame('iframe',getPageWidth(600),300,'?_page=static_relation:add&static_relation_static_var_id='+static_var_id);
}
{/literal}
//-->
</script>
{/literal}