// fixed #PSTEST-648 #PSTEST-645 #PSTEST-652 , htmlentities

This commit is contained in:
mMarinetti
2012-02-03 15:37:40 +00:00
parent e75e1d101f
commit 4ab430871d
@@ -40,7 +40,7 @@
<div class="leadin">{block name="leadin"}{/block}</div> <div class="leadin">{block name="leadin"}{/block}</div>
{/if} {/if}
{if isset($fields.title)}<h2>{$fields.title|escape:'htmlall'}</h2>{/if} {if isset($fields.title)}<h2>{$fields.title}</h2>{/if}
{block name="defaultForm"} {block name="defaultForm"}
<form id="{$table}_form" class="defaultForm {$name_controller}" action="{$current}&{$submit_action}=1&token={$token}" method="post" enctype="multipart/form-data" {if isset($style)}style="{$style}"{/if}> <form id="{$table}_form" class="defaultForm {$name_controller}" action="{$current}&{$submit_action}=1&token={$token}" method="post" enctype="multipart/form-data" {if isset($style)}style="{$style}"{/if}>
{if $form_id} {if $form_id}
@@ -52,7 +52,7 @@
{if $key == 'legend'} {if $key == 'legend'}
<legend> <legend>
{if isset($field.image)}<img src="{$field.image}" alt="{$field.title|escape:'htmlall'}" />{/if} {if isset($field.image)}<img src="{$field.image}" alt="{$field.title|escape:'htmlall'}" />{/if}
{$field.title|escape:'htmlall'} {$field.title}
</legend> </legend>
{elseif $key == 'description'} {elseif $key == 'description'}
<p class="description">{$field}</p> <p class="description">{$field}</p>
@@ -210,11 +210,11 @@
<img src="../img/admin/disabled.gif" alt="{$value.label}" title="{$value.label}" /> <img src="../img/admin/disabled.gif" alt="{$value.label}" title="{$value.label}" />
{/if} {/if}
{else} {else}
{$value.label|escape:'htmlall'} {$value.label}
{/if} {/if}
</label> </label>
{if isset($input.br) && $input.br}<br />{/if} {if isset($input.br) && $input.br}<br />{/if}
{if isset($value.p) && $value.p}<p>{$value.p|escape:'htmlall'}</p>{/if} {if isset($value.p) && $value.p}<p>{$value.p}</p>{/if}
{/foreach} {/foreach}
{elseif $input.type == 'textarea'} {elseif $input.type == 'textarea'}
{if isset($input.lang)} {if isset($input.lang)}
@@ -322,13 +322,13 @@
{if is_array($input.desc)} {if is_array($input.desc)}
{foreach $input.desc as $p} {foreach $input.desc as $p}
{if is_array($p)} {if is_array($p)}
<span id="{$p.id}">{$p.text|escape:'htmlall'}</span><br /> <span id="{$p.id}">{$p.text}</span><br />
{else} {else}
{$p}<br /> {$p}<br />
{/if} {/if}
{/foreach} {/foreach}
{else} {else}
{$input.desc|escape:'htmlall'} {$input.desc}
{/if} {/if}
</p> </p>
{/if} {/if}
@@ -352,14 +352,14 @@
{if is_array($field)} {if is_array($field)}
{foreach $field as $k => $p} {foreach $field as $k => $p}
{if is_array($p)} {if is_array($p)}
<span id="{$p.id}">{$p.text|escape:'htmlall'}</span><br /> <span id="{$p.id}">{$p.text}</span><br />
{else} {else}
{$p} {$p}
{if isset($field[$k+1])}<br />{/if} {if isset($field[$k+1])}<br />{/if}
{/if} {/if}
{/foreach} {/foreach}
{else} {else}
{$field|escape:'htmlall'} {$field}
{/if} {/if}
</p> </p>
{/if} {/if}