<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{config_load file="core.conf" scope="global" section=$ui_lang}
{config_load file="galery.conf" scope="local" section=$ui_lang}
<html>
<head>
<title>{$entry_info.entry_title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="modules/core/{$zap_theme|default:'core'}.css" rel="stylesheet" type="text/css" />
{literal}
<style type="text/css">
<!--
.red {background-color:#FFDFDF}
.green {background-color:#DFFFDF}
.yellow {background-color:#FFFF00}
.white {background-color:#FFFFFF}
.gray {background-color:#ebebeb}
.col1 {width:20px}
.col2 {width:180px}
.col3 {width:260px}
.col4 {width:80px}
.col5 {width:90px}
td.col3 input {font-weight:bold}
-->
</style>
<script type="text/javascript" src="modules/core/core.js"></script>
<script type="text/javascript">
function clickP(elementPre, elementSum) {
for (i = 0; i < elementSum; i ++) {
divId = 'div_' + elementPre + i;
divObj = document.getElementById(divId);
if (divObj) {
if (divObj.style.display == "none") {
divObj.style.display = "";
break;
}
}
}
}
function clickM(elementId) {
divId = 'div_row_' + elementId;
divObj = document.getElementById(divId);
if (divObj)
divObj.style.display = "none";
elementStatus = document.getElementById("status_" + elementId);
if (elementStatus)
elementStatus.selectedIndex = 0;
elementTheme = document.getElementById("t_id_" + elementId);
if (elementTheme)
elementTheme.selectedIndex = 0;
elementCaption = document.getElementById("cap_" + elementId);
elementCaption.value = "";
elementPriority = document.getElementById("prio_" + elementId);
elementPriority.value = "1";
elementUid = document.getElementById("uid_" + elementId);
elementUid.value = "0";
}
</script>
{/literal}
</head>
<body>
{strip}
<div class="docFrame">
<!-- Middle Frame -->
<p class="docFrameP">{#detailtabLabel#}</p>
<form id="folders_list" method="post" action="">
<div align="center">
<span class="brbcss"><input id="newObj2" class="bcss" type="button" onclick="clickP('row_',180)" value="{#newLabel#}" /></span>
{if $entry_info.entry_attr > 1}
<span class="brbcss"><input class="bcss" type="submit" value="√ {#saveButtonLabel#}" /></span>
{/if}
<span class="brbcss"><input id="newObj3" class="bcss" type="button" onclick="refreshOpener('{$SID}','{$entry_info.entry_id}','list','')" value="× {#closeButtonLabel#}" /></span>
</div>
<!-- warnings-->
{if $error_msg}
<div class="errorMessage"><a href="#" class="i18_warn" title="{#infoLabel#}"></a> {$error_msg}</div>
{/if}
{if $warning_msg}
<div class="warningMessage"><a href="#" class="i18_warn" title="{#infoLabel#}"></a> {$warning_msg}</div>
{/if}
<!-- warnings-->
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="lineBottom2">
<tr>
<td class="col1"><span class="tHd">#</span></td>
<td class="col2"><span class="tHd">{#themeLabel#}</span></td>
<td class="col3"><span class="tHd">{#folderLabel#}<span class="asterix">*</span></span></td>
<td class="col4"><span class="tHd">{#priorityLabel#}</span></td>
<td class="col5"><span class="tHd">{#statusLabel#}</span></td>
<td><span class="tHd">+/-</span></td>
</tr>
</table>
{section name=folders_counter loop=180 step=-1}
<div id="div_row_{$smarty.section.folders_counter.index}"{if !$folders_list[$smarty.section.folders_counter.index].id and $smarty.section.folders_counter.index} style="display:none"{/if}>
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="{cycle values='bgListCol1,bgListCol2'}">
<tr>
<td class="col1">{$folders_list[$smarty.section.folders_counter.index].id}</td>
<td class="col2"><select name="t_id_{$smarty.section.folders_counter.index}" id="t_id_{$smarty.section.folders_counter.index}">
{section name=customer loop=$theme_list}
<option value="{$theme_list[customer].id}"{if $folders_list[$smarty.section.folders_counter.index].theme_id eq $theme_list[customer].id} selected{/if}>{$theme_list[customer].title} #{$theme_list[customer].id}</option>
{/section}
</select></td>
<td class="col3"><input name="cap_{$smarty.section.folders_counter.index}" id="cap_{$smarty.section.folders_counter.index}" type="text" value="{$folders_list[$smarty.section.folders_counter.index].caption}" size="35" maxlength="64" /></td>
<td class="col4"><input name="prio_{$smarty.section.folders_counter.index}" id="prio_{$smarty.section.folders_counter.index}" type="text" value="{$folders_list[$smarty.section.folders_counter.index].priority|default:1}" size="5" maxlength="4" /></td>
<td class="col5"><select name="status_{$smarty.section.folders_counter.index}" id="status_{$smarty.section.folders_counter.index}"{if $folders_list[$smarty.section.folders_counter.index].status<2} class="red"{elseif $folders_list[$smarty.section.folders_counter.index].status>1 and $folders_list[$smarty.section.folders_counter.index].status<3} class="green"{else} class="yellow"{/if}>
{section name=customer loop=$status_list}
<option value="{$status_list[customer].id}"{if $folders_list[$smarty.section.folders_counter.index].status eq $status_list[customer].id} selected{/if}>{$status_list[customer].title}</option>
{/section}
</select></td>
<td><input name="uid_{$smarty.section.folders_counter.index}" id="uid_{$smarty.section.folders_counter.index}" type="hidden" value="{$folders_list[$smarty.section.folders_counter.index].id|default:0}" />
{if $folders_list[$smarty.section.folders_counter.index].id eq '1'}
<a href="javascript:clickP('row_',{$smarty.section.folders_counter.total})" class="i18_pl"></a>
{else}
<a href="javascript:clickM('{$smarty.section.folders_counter.index}');" class="i18_mn"></a>
{/if}
</td>
</tr>
</table>
</div>
{/section}
<br />
<input name="action" type="hidden" value="edit" />
<input name="subaction" type="hidden" value="folders" />
<input name="entry_id" type="hidden" value="{$entry_info.entry_id}" />
<div align="center">
<span class="brbcss"><input id="newObj1" class="bcss" type="button" onclick="clickP('row_',180)" value="{#newLabel#}" /></span>
{if $entry_info.entry_attr > 1}
<span class="brbcss"><input class="bcss" type="submit" value="√ {#saveButtonLabel#}" /></span>
{/if}
<span class="brbcss"><input id="newObj" class="bcss" type="button" onclick="refreshOpener('{$SID}','{$entry_info.entry_id}','list','')" value="× {#closeButtonLabel#}" /></span>
</div>
</form>
</div>
{/strip}
</body>
</html>