Importer/views/twig/admin/desc/list.html.twig

192 lines
8.7 KiB
Twig

{% include "headitem.html.twig" with {title: "GENERAL_ADMIN_TITLE"|translate, box: "list"} %}
{% set where = oView.getListFilter() %}
{% if readonly %}
{% set readonly = "readonly disabled" %}
{% else %}
{% set readonly = "" %}
{% endif %}
<style>
#liste td.listheader{
padding:3px 0;
text-transform:none;
}
#liste {
padding : 0;
}
</style>
<script type="text/javascript">
<!--
window.onload = function () {
top.reloadEditFrame();
{% if updatelist == 1 %}
top.oxid.admin.updateList('{{ oxid }}');
{% endif %}
}
//-->
</script>
<div id="liste">
<form name="search" id="search" action="{{ oViewConf.getSelfLink()|raw }}" method="post">
{% include "_formparams.html.twig" with {cl: oViewConf.getActiveClassName(), lstrt: lstrt, actedit: actedit, oxid: oxid, fnc: "", language: actlang, editlanguage: actlang} %}
<table cellspacing="0" cellpadding="0" border="0" width="100%" align="center">
<colgroup>
<col width="3%">
<col width="3%">
<col width="20%">
<col width="20%">
<col width="20%">
<col width="10%">
<col width="2%">
</colgroup>
<tr>
<td>
<div class="r1">
<div class="b1">&nbsp;</div>
</div>
</td>
<td>
<div class="r1">
<div class="b1">&nbsp;</div>
</div>
</td>
<td>
<input type="text" maxlength="128" name="where[d3importerdesc][oxfield]"
value="{{ where.d3importerdesc.oxfield }}">
</td>
<td>
<input type="text" maxlength="128" name="where[d3importerdesc][oxdesc]"
value="{{ where.d3importerdesc.oxdesc }}">
</td>
<td>
<input type="text" maxlength="128" name="where[d3importerdesc][oxorder]"
value="{{ where.d3importerdesc.oxorder }}">
</td>
<td>
<input type="submit" name="submitit" value="{{ translate({ ident: "GENERAL_SEARCH" }) }}"
onClick="Javascript:document.search.lstrt.value=0;">
</td>
<td>
<div class="r1">
<div class="b1">&nbsp;</div>
</div>
</td>
</tr>
<tr>
<td class="listheader" height="15" width="30" align="center">
<a href="Javascript:top.oxid.admin.setSorting(document.search, 'd3importerdesc', 'oxisdisabled', 'asc');document.search.submit();">
{{ translate({ ident: "GENERAL_ACTIVTITLE" }) }}
</a>
</td>
<td class="listheader" align="center">
<a href="Javascript:top.oxid.admin.setSorting(document.search, 'd3importerdesc', 'oxispic', 'desc');document.search.submit();">
{{ translate({ ident: "D3IMPORTERDESC_OXISPIC" }) }}
</a>
</td>
<td class="listheader">
<a href="Javascript:top.oxid.admin.setSorting(document.search, 'd3importerdesc', 'oxfield', 'asc');document.search.submit();">
{{ translate({ ident: "D3IMPORTERDESC_OXFIELD" }) }}
</a>
</td>
<td class="listheader">
<a href="Javascript:top.oxid.admin.setSorting(document.search, 'd3importerdesc', 'oxdesc', 'asc');document.search.submit();">
{{ translate({ ident: "D3IMPORTERDESC_OXDESC" }) }}
</a>
</td>
<td class="listheader">
<a href="Javascript:top.oxid.admin.setSorting(document.search, 'd3importerdesc', 'oxdesc_1', 'asc');document.search.submit();">
{{ translate({ ident: "D3IMPORTERDESC_OXDESC_1" }) }}
</a>
</td>
<td class="listheader" colspan="2">
<a href="Javascript:top.oxid.admin.setSorting(document.search, 'd3importerdesc', 'oxorder', 'asc');document.search.submit();">
{{ translate({ ident: "D3IMPORTERDESC_OXORDER" }) }}
</a>
</td>
</tr>
{% set blWhite = "" %}
{% set _cnt = 0 %}
{% for listitem in mylist %}
{% set _cnt = _cnt+1 %}
<tr id="row.{{ _cnt }}">
{% set listclass = "listitem"|cat(blWhite) %}
{% if listitem.d3importerdesc__oxid.value == oxid %}
{% set listclass = "listitem4" %}
{% endif %}
<td valign="top"
class="{{ listclass }}{% if listitem.d3importerdesc__oxisdisabled.value == 0 %} active{% endif %}"
height="15">
<div class="listitemfloating">
<a href="Javascript:top.oxid.admin.editThis('{{ listitem.d3importerdesc__oxid.value }}');"
class="{{ listclass }}">&nbsp</a></div>
</td>
<td valign="top"
class="{{ listclass }}{% if listitem.d3importerdesc__oxispic.value == 1 %} active{% endif %}"
height="15">
<div class="listitemfloating">&nbsp</div>
</td>
<td valign="top" class="{{ listclass }}">
<div class="listitemfloating">
<a href="Javascript:top.oxid.admin.editThis('{{ listitem.d3importerdesc__oxid.value }}');"
class="{{ listclass }}">
{{ listitem.d3importerdesc__oxfield.value }}
</a>
</div>
</td>
<td valign="top" class="{{ listclass }}">
<div class="listitemfloating">
<a href="Javascript:top.oxid.admin.editThis('{{ listitem.d3importerdesc__oxid.value }}');"
class="{{ listclass }}">
{{ listitem.d3importerdesc__oxdesc.value }}
</a>
</div>
</td>
<td valign="top" class="{{ listclass }}">
<div class="listitemfloating">
<a href="Javascript:top.oxid.admin.editThis('{{ listitem.d3importerdesc__oxid.value }}');"
class="{{ listclass }}">
{{ listitem.d3importerdesc__oxdesc_1.value }}
</a>
</div>
</td>
<td valign="top" class="{{ listclass }}">
<div class="listitemfloating">
<a href="Javascript:top.oxid.admin.editThis('{{ listitem.d3importerdesc__oxid.value }}');"
class="{{ listclass }}">
{{ listitem.d3importerdesc__oxorder.value }}
</a>
</div>
</td>
<td class="{{ listclass }}">
{% if not readonly %}
<a href="Javascript:top.oxid.admin.deleteThis('{{ listitem.d3importerdesc__oxid.value }}');"
class="delete" id="del.{{ _cnt }}"
title="" {% include "help.html.twig" with {helpid: "item_delete"} %}></a>
{% endif %}
</td>
</tr>
{% if blWhite == "2" %}
{% set blWhite = "" %}
{% else %}
{% set blWhite = "2" %}
{% endif %}
{% endfor %}
{% include "pagenavisnippet.html.twig" with {colspan: "7"} %}
</table>
</form>
</div>
<script type="text/javascript">
if (parent.parent) {
parent.parent.sShopTitle = "{{ actshopobj.oxshops__oxname.getRawValue()|addslashes }}";
parent.parent.sMenuItem = "{{ translate({ ident: "d3mxdesc" }) }}";
parent.parent.sMenuSubItem = "{{ translate({ ident: "D3_D3IMPORTERDESC_MENUSUBITEM" }) }}";
parent.parent.sWorkArea = "{{ _act }}";
parent.parent.setTitle();
}
</script>
{% include "bottomitem.html.twig" %}