Smarty template updates for testing, edit templates updates, translation strings update

This commit is contained in:
Clemens Schwaighofer
2022-04-06 14:51:21 +09:00
parent e5309b5dbc
commit 4b0e9b44c3
13 changed files with 1629 additions and 1567 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -33,26 +33,26 @@ function pop(theURL, winName, features) {
<!-- ERROR MSG END //-->
<!-- TOP MENU START //-->
<tr>
<td width="{$table_width}" class="menu_bgcolor" valign="top">
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<form method="post">
<tr>
<td width="{$table_width}" class="menu_bgcolor" valign="top">
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<form method="post">
<tr>
<td bgcolor="{$HEADER_COLOR}" class="normal">
Hello <b>{$USER_NAME|upper}</b> [{$EUID}] from the group <b>{$GROUP_NAME}</b> with Access Level <b>{$GROUP_LEVEL}</b>
</td>
<td bgcolor="{$HEADER_COLOR}" class="normal" align="right">
<input type="submit" name="login_logout" value="Logout">
</td>
</tr>
</form>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<tr>
</tr>
</form>
</table>
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<tr>
{* foreach menu *}
{foreach from=$menu_data item=menu_element}
{* if split factor is reached *}
{if $menu_element.splitfactor_in}
<td class="menu_fgcolor" class="small" valign="top">
<td class="menu_fgcolor" class="small" valign="top">
{/if}
{if $menu_element.position}
<b><a href="{$menu_element.filename}">{$menu_element.pagename}</a></b><br>
@@ -67,22 +67,22 @@ function pop(theURL, winName, features) {
</td>
{/if}
{/foreach}
</tr>
</table>
<table width="100%" border="0" cellpadding="10" cellspacing="1">
<tr>
<td class="edit_fgcolor_alt" class="headline" align="center">
{$page_name}
</td>
</tr>
</table>
</td>
</tr>
</tr>
</table>
<table width="100%" border="0" cellpadding="10" cellspacing="1">
<tr>
<td class="edit_fgcolor_alt" class="headline" align="center">
{$page_name}
</td>
</tr>
</table>
</td>
</tr>
<!-- TOP MENU END //-->
<tr>
<td width="{$table_width}" class="edit_bgcolor">
<form method="post" name="edit_form" style="margin-block-end: 0em;">
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<tr>
<td width="{$table_width}" class="edit_bgcolor">
<form method="post" name="edit_form" style="margin-block-end: 0em;">
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<!-- LOAD START //-->
{include file="edit_load.tpl"}
<!-- LOAD END //-->
@@ -93,23 +93,23 @@ function pop(theURL, winName, features) {
{if $form_yes}
{include file="edit_save_delete.tpl"}
{if $form_my_page_name == "edit_pages" && $filename_exist}
<tr>
<td class="edit_fgcolor" class="normal">
Filename:
</td>
<td class="edit_fgcolor" class="normal">
{$filename}
<input type="hidden" name="filename" value="{$filename}">
</td>
</tr>
<tr>
<td class="edit_fgcolor" class="normal">
Filename:
</td>
<td class="edit_fgcolor" class="normal">
{$filename}
<input type="hidden" name="filename" value="{$filename}">
</td>
</tr>
{/if}
{include file="edit_elements.tpl"}
{include file="edit_hidden.tpl"}
{include file="edit_save_delete.tpl"}
{/if}
</table>
</form>
</td>
</table>
</form>
</td>
</tr>
</table>
</body>

View File

@@ -8,16 +8,16 @@
********************************************************************
*}
<tr>
<td class="edit_fgcolor_alt" class="normal">
{t}Create new media:{/t}
</td>
<td class="edit_fgcolor_alt" class="normal">
{if $new.show_checkbox}
<input type="checkbox" name="really_new" value="yes">&nbsp;{t}really{/t}&nbsp;
{else}
<input type="hidden" name="really_new" value="yes">
{/if}
<input type="submit" name="new" value="{$new.new_name}">
</td>
</tr>
<tr>
<td class="edit_fgcolor_alt" class="normal">
{t}Create new media:{/t}
</td>
<td class="edit_fgcolor_alt" class="normal">
{if $new.show_checkbox}
<input type="checkbox" name="really_new" value="yes">&nbsp;{t}really{/t}&nbsp;
{else}
<input type="hidden" name="really_new" value="yes">
{/if}
<input type="submit" name="new" value="{$new.new_name}">
</td>
</tr>

View File

@@ -25,7 +25,7 @@
<!-- ERROR MSG END //-->
<!-- BODY START //-->
<tr>
<td class="edit_bgcolor">
<td class="edit_bgcolor">
<table width="100%" border="0" cellpadding="2" cellspacing="1">
<!-- ANFANG Neu //-->
<form method="post" enctype="multipart/form-data">
@@ -68,7 +68,7 @@
</form>
<!-- ENDE FOOTER //-->
</table>
</td>
</td>
</tr>
<!-- BODY END //-->
</table>

View File

@@ -26,7 +26,7 @@
<input type="submit" name="delete" value="{t}Delete{/t}">
{else}
<td class="edit_fgcolor_alt" class="normal">
&nbsp;
&nbsp;
{/if}
</td>
</tr>

View File

@@ -1,16 +1,27 @@
<div>
{$SMARTY_TEST}
</div>
<div>
TRANSLATION CLASS (OUT): {$TRANSLATE_TEST}
SMARTY_TEST: {$SMARTY_TEST}
</div>
<div {popup width="250" caption="Info" text="Text block<br>Control"} style="border: 1px solid black; margin: 5px 0 5px 0; padding: 5px;">
POPUP HERE (hover mouse)
</div>
<div>
<b>Outside translation test</b><br>
TRANSLATION CLASS (OUT): {$TRANSLATE_TEST}<br>
TRANSLATION CLASS (SMARTY): {$TRANSLATE_TEST_SMARTY}
</div>
<div>
<select id="drop_down_test" name="drop_down_test">
{html_options options=$drop_down_test selected=$drop_down_test_selected}
</select>
<b>Translate Test with replace:</b><br>
ORIGINAL: Original with string: %1 ({$replace})<br>
TRANSLATED: {t 1=$replace}Original with string: %1{/t}<br>
TRANSLATED (escape): {t escape=on 1=$replace}Original with string: %1{/t}
</div>
<div>
<b>Variable variables:</b><br>
Test: {$test}<br>
Foo: {$foo}<br>
{assign var="bar" value="test"}
vFoo ($test = $foo = bar): {$test|getvar}<br>
vFoo ($bar = $test = foo): {$bar|getvar}
</div>
<div class="jq-container">
<div id="jq-test" class="jp-test">
@@ -23,11 +34,30 @@
</div>
</div>
<div class="loop-test">
<div>LOOP TEST</div>
<div><b>LOOP TEST</b></div>
{section name=page_list start=1 loop=$loop_start+1}
<div>LOOP OUTPUT: {$smarty.section.page_list.index}</div>
{/section}
</div>
<div>
<select id="drop_down_test" name="drop_down_test">
{html_options options=$drop_down_test selected=$drop_down_test_selected}
</select>
</div>
<div>
<select id="drop_down_test_nested" name="drop_down_test_nested">
{html_options options=$drop_down_test_nested selected=$drop_down_test_nested_selected}
</select>
</div>
<div>
{html_radios name="radio_test" options=$radio_test selected=$radio_test_selected}
</div>
<div>
{html_checkboxes name="checkbox_test" options=$checkbox_test selected=$checkbox_test_selected}
</div>
<div>
{html_checkboxes name="checkbox_test_pos" options=$checkbox_test selected=$checkbox_test_pos_selected pos=$checkbox_test_pos}
</div>
{* progresss indicator *}
<div id="indicator"></div>
{* the action confirm box *}