no comment code in tag <td class=FormFieldContent

This commit is contained in:
Alvaro Campos
2011-01-06 19:12:11 +00:00
parent 7ca1c4c050
commit 63663d6b85

View File

@@ -1,6 +1,6 @@
{if $printTemplate}
{* this is the xmlform template *}
<form id="{$form->id}" name="{$form->name}" action="{$form->action}" class="{$form->className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit="return validateForm('{$form->objectRequiredFields}');"> <div class="borderForm" style="width:{$form->width}; padding-left:0; padding-right:0; border-width:{$form->border};">
<form id="{$form->id}" name="{$form->name}" action="{$form->action}" class="{$form->className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit="return validateForm('{$form->objectRequiredFields}');"> <div class="borderForm" style="width:{$form->width}; padding-left:0; padding-right:0; border-width:{$form->border};">
<div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
<div class="content" style="height:{$form->height};" >
<table width="99%">
@@ -56,7 +56,6 @@
{else}
<tr>
<td class='FormLabel' width="{$form->labelWidth}">{if (isset($field->required)&&$field->required&&$field->mode==='edit')}<font color="red">* </font>{/if}{$field->label}</td>
<!-- <td class='FormFieldContent' width="{$form->width - $form->labelWidth}" >{$field->field} </td> //-->
<td class='FormFieldContent' width='{$form->fieldContentWidth}' {* width="{math equation="parseFloat(x)-parseFloat(y)" x=$form->width y=$form->labelWidth}" *}>{$field->field}</td>
</tr>
{/if}
@@ -69,32 +68,29 @@
</div>
<div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div></div>
</div>
{foreach from=$form->fields item=field}
{foreach from=$form->fields item=field}
{if ($field->type==='javascript')}
<script type="text/javascript">
{$field->field}
</script>
{/if}
{/foreach}
</form>
<script type="text/javascript">
{/foreach}
</form>
<script type="text/javascript">
{$dynaformSetFocus}
</script>
</script>
{/if}
{if $printJSFile}
{* TODO: include file='xmlformScript.html' *}
var form_{$form->id};
var object_{$form->name};
var i;
if (typeof(__aObjects__) === 'undefined') {literal}{{/literal}
{* TODO: include file='xmlformScript.html' *}
var form_{$form->id};
var object_{$form->name};
var i;
if (typeof(__aObjects__) === 'undefined') {literal}{{/literal}
var __aObjects__ = [];
{literal}}{/literal}
function loadForm_{$form->id}(ajaxServer)
{literal}{{/literal}
if (typeof(G_Form)==='undefined') return alert('form.js was not loaded');
{literal}}{/literal}
function loadForm_{$form->id}(ajaxServer)
{literal}{{/literal}
if (typeof(G_Form)==='undefined') return alert('form.js was not loaded');
form_{$form->id}=new G_Form(document.getElementById('{$form->id}'),'{$form->id}');
object_{$form->name} = form_{$form->id};
__aObjects__.push(object_{$form->name});
@@ -170,8 +166,8 @@ if (typeof(G_Form)==='undefined') return alert('form.js was not loaded');
{/if}
{/if}
{/foreach}
{literal}}{/literal}
{/if}
{if $printJavaScript}
leimnud.event.add(window,'load',function(){literal}{{/literal}loadForm_{$form->id}('{$form->ajaxServer}');if (typeof(dynaformOnload) !== 'undefined') {literal}{dynaformOnload();}}{/literal});
{/if}
{literal}}{/literal}
{/if}
{if $printJavaScript}
leimnud.event.add(window,'load',function(){literal}{{/literal}loadForm_{$form->id}('{$form->ajaxServer}');if (typeof(dynaformOnload) !== 'undefined') {literal}{dynaformOnload();}}{/literal});
{/if}