shop-old/themes/admin/templates/admin_object_edit.tpl
2026-04-20 01:03:43 +02:00

181 lines
8.2 KiB
Smarty

<div class="object_edit_table_toolbar">
<!-- first toolbar -->
<a class="close" href="{$table_data.edit_toolbar.close}"><img height="16" width="16" src="/themes/admin/media/images/fileclose.png" alt="Schlie&szlig;en" title="close" /><span>Schlie&szlig;en</span></a>
{if $table_data.edit_toolbar.save}
<a class="save selected_function inactive" href=""><img src="/themes/admin/media/images/filesave.png" alt="Speichern" title="save" /><span>Speichern</span></a>
{/if}
{if $table_data.edit_toolbar.send}
<a class="copy selected_function inactive" href=""><img src="/themes/admin/media/images/mail_send.png" alt="Senden" title="send" /><span>Senden</span></a>
{/if}
{if $table_data.edit_toolbar.undo}
<a class="copy selected_function inactive" href=""><img src="/themes/admin/media/images/copy.png" alt="Kopieren" title="undo" /><span>R&uuml;ckg&auml;ngig</span></a>
{/if}
{if $table_data.edit_toolbar.redo}
<a class="copy selected_function inactive" href=""><img src="/themes/admin/media/images/copy.png" alt="Kopieren" title="redo" /><span>Wiederholen</span></a>
{/if}
{if $table_data.edit_toolbar.copy}
<a class="copy selected_function inactive" href=""><img src="/themes/admin/media/images/copy.png" alt="Kopieren" title="copy" /><span>Kopieren</span></a>
{/if}
{if $table_data.edit_toolbar.new_password}
<a class="new_password selected_function" href=""><img src="/themes/admin/media/images/mail_send.png" alt="Test E-Mail" title="new password" /><span>Neues Passwort</span></a>
{/if}
{if $table_data.edit_toolbar.first_activation}
<a class="first_activation selected_function" href=""><img src="/themes/admin/media/images/mail_send.png" alt="Test E-Mail" title="first activation" /><span>Freischalten</span></a>
{/if}
{if $table_data.edit_toolbar.delete}
<a class="delete selected_function inactive" href=""><img src="/themes/admin/media/images/delete.png" alt="L&ouml;schen" title="delete" /><span>L&ouml;schen</span></a>
{/if}
{if $table_data.edit_toolbar.send_test}
<a class="test_send selected_function" href=""><img src="/themes/admin/media/images/mail_send.png" alt="Test E-Mail" title="Test E-Mail" /><span>Test E-Mail</span></a>
{/if}
{if $table_data.edit_toolbar.language}
<div class="language_wrapper">
<span>Sprache:</span>
<select class="lang" name="lang">
{foreach from=$table_data.edit_toolbar.language item=lang key=key}
<option value="{$key}">{$lang}</option>
{/foreach}
</select>
</div>
{/if}
<div style="clear:both;"></div>
</div>
<form method="post" action="" id="object_edit_form">
<table class="object_edit_table">
<tr>
<td colspan="10" style="text-align:center;background:#ffffff;">
<table border="0" cellpadding="2" cellspacing="1" style="width:942px;">
{foreach from=$table_data.edit_fields item=form_field}
<tr style="background:#dddddd;">
<!-- form title -->
{if $form_field.type == "form_title"}
<td colspan="2" style="text-align:left;background:#aaaaaa;font-weight:bold;">{$form_field.name}</td>
<!-- textarea field -->
{elseif $form_field.type == "multitext"}
<td style="font-weight:bold;text-align:left;">{$form_field.name}:</td>
<td style="text-align:left;">
<textarea style="text-align:left;width:500px;height:250px;" class="edit_field" id="{$form_field.db_field}" name="form_data[{$form_field.db_field}]" wrap="off">{$form_data[$form_field.db_field]}</textarea>
</td>
<!-- textarea field -->
{elseif $form_field.type == "formatedtext"}
<td style="font-weight:bold;text-align:left;">{$form_field.name}:</td>
<td style="text-align:left;">
<!-- multi language translation -->
{if isset($form_field.multi_lang) && $form_field.multi_lang}
{$form_data[$form_field.db_field]}<br>
{/if}
<textarea class="texteditor" id="{$form_field.db_field}" name="form_data[{$form_field.db_field}]" style="text-align:left;width:500px;height:250px;">{$form_data[$form_field.db_field]}</textarea>
</td>
<!-- readonly text -->
{elseif $form_field.type == "create_time"}
<td style="font-weight:bold;text-align:left;">{$form_field.name}:</td>
<td style="text-align:left;">
{$form_data[$form_field.db_field]}
</td>
<!-- image field -->
{elseif $form_field.type == "image"}
<td style="font-weight:bold;text-align:left;">
{$form_field.name}:<br>
{if {$form_data[$form_field.db_field]} == ''}
<input id="file_upload" name="logo_image" type="file" />
{/if}
</td>
<td style="text-align:left;">
{if {$form_data[$form_field.db_field]} != ''}
<div style="position:relative;overflow:hidden;width:100px;height:125px;border:1px solid #333333;">
<div style="position:relative;height:24px;width:100px;background:#90a6d4;border-bottom:1px solid #333333;">
<a rel="{$form_field.db_field}" class="delete_image" style="position:absolute;right:4px;top:4px;" href=""><img src="/themes/admin/media/images/delete.png" alt="L&ouml;schen" title="Löschen" /></a>
</div>
<div style="position:relative;width:100px;height:100px;background:#ffffff url({$form_field.file_directory}{$form_data[$form_field.db_field]}) center center no-repeat;"></div>
</div>
{else}
<p>Sie haben noch kein Bild hochgeladen. Folgende Dateiformate werden unterst&uuml;tzt: .jpeg .gif .png</p>
{/if}
</td>
<!-- password field -->
{elseif $form_field.type == "password"}
<td style="font-weight:bold;text-align:left;">{$form_field.name}:</td>
<td style="text-align:left;">
<!-- multi language translation -->
{if isset($form_field.multi_lang) && $form_field.multi_lang}
{$form_data[$form_field.db_field]}<br>
{/if}
<input style="text-align:left;width:500px;" class="edit_field" type="password" id="{$form_field.db_field}" name="form_data[{$form_field.db_field}]" value="{$form_data[$form_field.db_field]}" data-default="{$form_data[$form_field.db_field]}">
{if $form_field.info}
<span>{$form_field.info}</span>
{/if}
{if $form_field.function}
<input type="button" id="{$form_field.id}" value="{$form_field.function_name}">
{/if}
</td>
<!-- text field -->
{elseif !isset($form_field.values)}
<td style="font-weight:bold;text-align:left;">{$form_field.name}:</td>
<td style="text-align:left;">
<!-- multi language translation -->
{if isset($form_field.multi_lang) && $form_field.multi_lang}
{$form_data[$form_field.db_field]}<br>
{/if}
<input style="text-align:left;width:500px;" class="edit_field" type="text" id="{$form_field.db_field}" name="form_data[{$form_field.db_field}]" value="{$form_data[$form_field.db_field]}" data-default="{$form_data[$form_field.db_field]}">
{if $form_field.info}
<span>{$form_field.info}</span>
{/if}
{if $form_field.function}
<input type="button" id="{$form_field.id}" value="{$form_field.function_name}">
{/if}
</td>
<!-- selection field -->
{elseif is_array($form_field.values)}
<td style="font-weight:bold;text-align:left;">{$form_field.name}:</td>
<td style="text-align:left;">
<select name="{if isset($form_field.db_field)}form_data[{$form_field.db_field}]{else}{$form_field.name}{/if}" {if isset($form_field.id)}id="{$form_field.id}"{/if} class="edit_field">
{foreach from=$form_field.values item=option_value key=option_key}
<option value="{$option_key}" {if $option_key == $form_data[$form_field.db_field]}selected{/if}>{$option_value}</option>
{/foreach}
</select>
{if $form_field.function}
<input type="button" class="{$form_field.function}" value="{$form_field.function_name}">
{/if}
</td>
{/if}
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
</form>
<div class="object_list_table_footer" style="height:45px;">
</div>
<script type="text/javascript">
var edit_object_class_name = '{$table_data.object_name}';
var object_id = '{$table_data.object_id}';
</script>
{if $table_data.edit_js_file}
<script src="{$info->base_url}/themes/admin/media/js/{$table_data.edit_js_file}"></script>
{/if}
<script src="{$info->base_url}/themes/admin/media/js/admin_object_edit.js"></script>