2010-12-02 23:34:41 +00:00
|
|
|
{if $printTemplate}
|
|
|
|
|
{* this is the xmlform template *}
|
|
|
|
|
<table id="{$form->name}" class="toolbarBackground" width='{$form->width}' cellspacing="0" cellpadding="0">
|
|
|
|
|
<tr>
|
|
|
|
|
{* LEFT MENU *}
|
|
|
|
|
<td valign='top' class="pm__toolbar" width='{$form->width}'>
|
2011-02-18 14:03:33 +00:00
|
|
|
<table>
|
|
|
|
|
<tr>
|
2010-12-02 23:34:41 +00:00
|
|
|
{php}$this->assign('cols', 0);{/php}
|
|
|
|
|
{foreach from=$form->fields item=field index=abc}
|
2012-12-20 12:05:05 -04:00
|
|
|
{if ($field->type!='private')}
|
2011-02-18 14:03:33 +00:00
|
|
|
<td>
|
2010-12-02 23:34:41 +00:00
|
|
|
{if ($field->type==='javascript')}
|
|
|
|
|
{elseif ($field->type==='phpvariable')}
|
|
|
|
|
{elseif ($field->type==='')}
|
|
|
|
|
{else}
|
|
|
|
|
{* elseif ($field->type==='link') || ($field->type==='menu') *}{$field->field}{/if}
|
2012-12-20 12:05:05 -04:00
|
|
|
</td>
|
|
|
|
|
{/if}
|
2010-12-02 23:34:41 +00:00
|
|
|
{/foreach}
|
|
|
|
|
|
|
|
|
|
{php}
|
|
|
|
|
//This will add registered HTML toolbar options from plugins
|
2017-12-04 13:25:35 +00:00
|
|
|
$oPluginRegistry = PMPluginRegistry::getSingleton();
|
2010-12-02 23:34:41 +00:00
|
|
|
$oPluginRegistry->getToolbarOptions("NORMAL");
|
|
|
|
|
{/php}
|
2011-02-18 14:03:33 +00:00
|
|
|
</tr>
|
|
|
|
|
</table>
|
2010-12-02 23:34:41 +00:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
{foreach from=$form->fields item=field}
|
|
|
|
|
{if ($field->type==='javascript')}
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
{$field->field}
|
|
|
|
|
</script>
|
|
|
|
|
{/if}
|
|
|
|
|
{/foreach}
|
|
|
|
|
{/if}
|