110 lines
5.4 KiB
Smarty
110 lines
5.4 KiB
Smarty
{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}
|
|
{include file='file:../core/view_pre.tpl'}
|
|
|
|
<!-- Display the field validation -->
|
|
{if $form_validation}
|
|
{$block->display('core:alert_fields')}
|
|
{/if}
|
|
|
|
<!-- 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}
|
|
|
|
<script type="text/javascript">
|
|
<!--
|
|
var static_var_id = {$record.id};
|
|
|
|
{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>
|