First upload
This commit is contained in:
135
shop/source/Application/views/admin/tpl/popups/actions_article.tpl
Executable file
135
shop/source/Application/views/admin/tpl/popups/actions_article.tpl
Executable file
@@ -0,0 +1,135 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=actions_article&synchoxid=[{$oxid}]',
|
||||
{ selectionMode: "single" }
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
YAHOO.oxid.container1.onSave = function()
|
||||
{
|
||||
var aSelRows= YAHOO.oxid.container1.getSelectedRows();
|
||||
if ( aSelRows.length ) {
|
||||
oParam = YAHOO.oxid.container1.getRecord(aSelRows[0]);
|
||||
$('actionarticle_artnum').innerHTML = oParam._oData._0;
|
||||
$('actionarticle_title').innerHTML = oParam._oData._1;
|
||||
$('remBtn').disabled = false;
|
||||
$D.setStyle( $('_article'), 'visibility', '' );
|
||||
|
||||
updateParentFrame( oParam._oData._0 + ' ' + oParam._oData._1 );
|
||||
}
|
||||
}
|
||||
YAHOO.oxid.container1.addArticle = function()
|
||||
{
|
||||
var callback = {
|
||||
success: YAHOO.oxid.container1.onSave,
|
||||
failure: YAHOO.oxid.container1.onFailure,
|
||||
scope: YAHOO.oxid.container1
|
||||
};
|
||||
var aSelRows= YAHOO.oxid.container1.getSelectedRows();
|
||||
if ( aSelRows.length ) {
|
||||
oParam = YAHOO.oxid.container1.getRecord(aSelRows[0]);
|
||||
sRequest = '&oxarticleid=' + oParam._oData._6;
|
||||
}
|
||||
YAHOO.util.Connect.asyncRequest( 'GET', '[{$oViewConf->getAjaxLink()}]&cmpid=container1&container=actions_article&fnc=setactionarticle&oxid=[{$oxid}]'+sRequest, callback );
|
||||
}
|
||||
YAHOO.oxid.container1.onRemove = function()
|
||||
{
|
||||
$('actionarticle_artnum').innerHTML = '';
|
||||
$('actionarticle_title').innerHTML = '';
|
||||
$('remBtn').disabled = true;
|
||||
$D.setStyle( $('_article'), 'visibility', 'hidden' );
|
||||
|
||||
updateParentFrame( "---" );
|
||||
}
|
||||
YAHOO.oxid.container1.onFailure = function() { /* currently does nothing */ }
|
||||
YAHOO.oxid.container1.remArticle = function()
|
||||
{
|
||||
var callback = {
|
||||
success: YAHOO.oxid.container1.onRemove,
|
||||
failure: YAHOO.oxid.container1.onFailure,
|
||||
scope: YAHOO.oxid.container1
|
||||
};
|
||||
YAHOO.util.Connect.asyncRequest( 'GET', '[{$oViewConf->getAjaxLink()}]&cmpid=container1&container=actions_article&fnc=removeactionarticle&oxid=[{$oxid}]', callback );
|
||||
|
||||
}
|
||||
// subscribint event listeners on buttons
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
$E.addListener( $('remBtn'), "click", YAHOO.oxid.container1.remArticle, $('remBtn') );
|
||||
$E.addListener( $('saveBtn'), "click", YAHOO.oxid.container1.addArticle, $('saveBtn') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
|
||||
// updating parent frame after assignment..
|
||||
function updateParentFrame( sArticleTitle )
|
||||
{
|
||||
try {
|
||||
if (window.opener && window.opener.document && window.opener.document.myedit) {
|
||||
window.opener.document.getElementById("assignedArticleTitle").innerHTML = sArticleTitle;
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<tr class="edittext">
|
||||
<td >[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="PROMOTIONS_ARTICLE_ALLITEMS"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-left:4px;padding-right:10px">
|
||||
<select name="artcat" id="artcat" style="width:100%;" class="editinput">
|
||||
[{foreach from=$artcattree->aList item=pcat}]
|
||||
<option value="[{$pcat->oxcategories__oxid->value}]">[{$pcat->oxcategories__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input id="saveBtn" type="button" class="edittext oxid-aoc-button" value="[{oxmultilang ident="PROMOTIONS_ARTICLE_ASSIGNARTICLE"}]">
|
||||
<input id="remBtn" type="button" class="edittext oxid-aoc-button" value="[{oxmultilang ident="PROMOTIONS_ARTICLE_UNASSIGNARTICLE"}]" [{if !$actionarticle_artnum}] disabled [{/if}]>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="edittext" id="_article" [{if !$actionarticle_artnum}] style="visibility:hidden" [{/if}]>
|
||||
<b>[{oxmultilang ident="PROMOTIONS_ARTICLE_ASSIGNEDARTICLE"}]:</b>
|
||||
<b id="actionarticle_artnum">[{$actionarticle_artnum}]</b> <b id="actionarticle_title">[{$actionarticle_title}]</b>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
68
shop/source/Application/views/admin/tpl/popups/actions_groups.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/actions_groups.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=actions_groups&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=actions_groups&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addPromotionGroup';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removePromotionGroup';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="GENERAL_ALLGROUPS2"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="PROMOTION_USERS_SETGROUPS"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
140
shop/source/Application/views/admin/tpl/popups/actions_main.tpl
Executable file
140
shop/source/Application/views/admin/tpl/popups/actions_main.tpl
Executable file
@@ -0,0 +1,140 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=actions_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}], sortable: false
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=actions_main&oxid=[{$oxid}]'
|
||||
);
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addarttoact';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removeartfromact';
|
||||
}
|
||||
YAHOO.oxid.container2.subscribe( "dataReturnEvent", function()
|
||||
{
|
||||
$D.setStyle( $('orderup'), 'visibility', 'hidden' );
|
||||
$D.setStyle( $('orderdown'), 'visibility', 'hidden' );
|
||||
})
|
||||
YAHOO.oxid.container2.subscribe( "rowClickEvent", function( oParam )
|
||||
{
|
||||
var sVisibility = 'hidden';
|
||||
if ( YAHOO.oxid.container2.getSelectedRows().length ) {
|
||||
sVisibility = '';
|
||||
}
|
||||
$D.setStyle($('orderup'), 'visibility', sVisibility );
|
||||
$D.setStyle($('orderdown'), 'visibility', sVisibility );
|
||||
})
|
||||
YAHOO.oxid.container2.setOrderUp = function()
|
||||
{
|
||||
var aSelRows = YAHOO.oxid.container2.getSelectedRows();
|
||||
|
||||
if ( aSelRows.length ) {
|
||||
sOxid = YAHOO.oxid.container2.getRecord(aSelRows[0])._oData._7;
|
||||
YAHOO.oxid.container2.modRequest = function( sRequest ) { return sRequest+'&fnc=setSorting&sortoxid='+sOxid+'&direction=up'; }
|
||||
YAHOO.oxid.container2.getDataSource().flushCache();
|
||||
YAHOO.oxid.container2.getPage( 0 );
|
||||
YAHOO.oxid.container2.modRequest = function( sRequest ) { return sRequest; }
|
||||
}
|
||||
}
|
||||
YAHOO.oxid.container2.setOrderDown = function()
|
||||
{
|
||||
var aSelRows = YAHOO.oxid.container2.getSelectedRows();
|
||||
if ( aSelRows.length ) {
|
||||
sOxid = YAHOO.oxid.container2.getRecord(aSelRows[0])._oData._7;
|
||||
YAHOO.oxid.container2.modRequest = function( sRequest ) { return sRequest+'&fnc=setSorting&sortoxid='+sOxid+'&direction=down'; }
|
||||
YAHOO.oxid.container2.getDataSource().flushCache();
|
||||
YAHOO.oxid.container2.getPage( 0 );
|
||||
YAHOO.oxid.container2.modRequest = function( sRequest ) { return sRequest; }
|
||||
}
|
||||
}
|
||||
$E.addListener( $('orderup'), "click", YAHOO.oxid.container2.setOrderUp, $('orderup') );
|
||||
$E.addListener( $('orderdown'), "click", YAHOO.oxid.container2.setOrderDown, $('orderdown') );
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="45%" />
|
||||
<col width="1%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="3">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="ACTIONS_MAIN_ALLARTICLES"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="ACTIONS_MAIN_ALLARTICLESWITHATTR"}]</b></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$artcattree->aList item=pcat}]
|
||||
<option value="[{$pcat->oxcategories__oxid->value}]">[{$pcat->oxcategories__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
<td valign="middle">
|
||||
<input class="edittext" type="button" id="orderup" value="/\" style="visibility:hidden"><br><br>
|
||||
<input class="edittext" type="button" id="orderdown" value="\/" style="visibility:hidden">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
68
shop/source/Application/views/admin/tpl/popups/adminrights_user.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/adminrights_user.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=adminrights_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=adminrights_main&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addusertorole';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removeuserfromrole';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="ADMINRIGHTS_MAIN_ALLMEMBERS"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="ADMINRIGHTS_MAIN_USERSINROLE"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
177
shop/source/Application/views/admin/tpl/popups/article_accessories.tpl
Executable file
177
shop/source/Application/views/admin/tpl/popups/article_accessories.tpl
Executable file
@@ -0,0 +1,177 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function () {
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc('container1',
|
||||
[[{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{
|
||||
key: '_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]
|
||||
}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}]],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=article_accessories&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc('container2',
|
||||
[[{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{
|
||||
key: '_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],sortable: false,
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]
|
||||
}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}]],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=article_accessories&oxid=[{$oxid}]'
|
||||
)
|
||||
YAHOO.oxid.container1.modRequest = function (request) {
|
||||
var selectedArticleCategory = $('artcat');
|
||||
if (selectedArticleCategory.selectedIndex) {
|
||||
request += '&oxid=' + selectedArticleCategory.options[selectedArticleCategory.selectedIndex].value + '&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return request;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function () {
|
||||
YAHOO.oxid.container1.getPage(0);
|
||||
}
|
||||
YAHOO.oxid.container1.getDropAction = function () {
|
||||
return 'fnc=addarticleacc';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function () {
|
||||
return 'fnc=removearticleacc';
|
||||
}
|
||||
|
||||
// sort Accessories
|
||||
|
||||
YAHOO.oxid.orderBtn = function (upId, downId, autoHide) {
|
||||
YAHOO.oxid.orderBtn.oUp = new YAHOO.widget.Button(upId);
|
||||
YAHOO.oxid.orderBtn.oDown = new YAHOO.widget.Button(downId);
|
||||
|
||||
YAHOO.oxid.orderBtn.hide = function () {
|
||||
$D.setStyle(YAHOO.oxid.orderBtn.oUp, 'visibility', 'hidden');
|
||||
$D.setStyle(YAHOO.oxid.orderBtn.oDown, 'visibility', 'hidden');
|
||||
};
|
||||
|
||||
YAHOO.oxid.orderBtn.show = function () {
|
||||
$D.setStyle(YAHOO.oxid.orderBtn.oUp, 'visibility', 'visible');
|
||||
$D.setStyle(YAHOO.oxid.orderBtn.oDown, 'visibility', 'visible');
|
||||
};
|
||||
|
||||
YAHOO.oxid.orderBtn.addOn = function (onUp, onDown) {
|
||||
YAHOO.oxid.orderBtn.oUp.on("click", onUp);
|
||||
YAHOO.oxid.orderBtn.oDown.on("click", onDown);
|
||||
};
|
||||
|
||||
if (autoHide) {
|
||||
YAHOO.oxid.orderBtn.hide();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
YAHOO.oxid.orderBtn('orderup', 'orderdown', true);
|
||||
|
||||
YAHOO.oxid.container2.subscribe("rowClickEvent", function () {
|
||||
var visibility = 'hidden';
|
||||
if (YAHOO.oxid.container2.getSelectedRows().length) {
|
||||
visibility = '';
|
||||
}
|
||||
$D.setStyle($('orderup'), 'visibility', visibility);
|
||||
$D.setStyle($('orderdown'), 'visibility', visibility);
|
||||
})
|
||||
|
||||
YAHOO.oxid.container2.subscribe("dataReturnEvent", function () {
|
||||
$D.setStyle($('orderup'), 'visibility', 'hidden');
|
||||
$D.setStyle($('orderdown'), 'visibility', 'hidden');
|
||||
})
|
||||
|
||||
YAHOO.oxid.container2.setOrderUp = function () {
|
||||
|
||||
var selectedRows = YAHOO.oxid.container2.getSelectedRows();
|
||||
var oxidId = YAHOO.oxid.container2.getRecord(selectedRows[0])._oData._7;
|
||||
|
||||
if (selectedRows.length) {
|
||||
YAHOO.oxid.container2.modRequest = function (request) {
|
||||
return request + '&fnc=sortAccessoriesList&sortoxid=' + oxidId + '&direction=up';
|
||||
}
|
||||
YAHOO.oxid.container2.getDataSource().flushCache();
|
||||
YAHOO.oxid.container2.getPage(0);
|
||||
YAHOO.oxid.container2.modRequest = function (request) {
|
||||
return request;
|
||||
}
|
||||
}
|
||||
}
|
||||
YAHOO.oxid.container2.setOrderDown = function () {
|
||||
var selectedRows = YAHOO.oxid.container2.getSelectedRows();
|
||||
var oxidId = YAHOO.oxid.container2.getRecord(selectedRows[0])._oData._7;
|
||||
|
||||
if (selectedRows.length) {
|
||||
YAHOO.oxid.container2.modRequest = function (request) {
|
||||
return request + '&fnc=sortAccessoriesList&sortoxid=' + oxidId + '&direction=down';
|
||||
}
|
||||
YAHOO.oxid.container2.getDataSource().flushCache();
|
||||
YAHOO.oxid.container2.getPage(0);
|
||||
YAHOO.oxid.container2.modRequest = function (request) {
|
||||
return request;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$E.addListener($('orderup'), "click", YAHOO.oxid.container2.setOrderUp, $('orderup'));
|
||||
$E.addListener($('orderdown'), "click", YAHOO.oxid.container2.setOrderDown, $('orderdown'));
|
||||
$E.addListener($('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat'));
|
||||
}
|
||||
$E.onDOMReady(initAoc);
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="ARTICLE_CROSSSELLING_ALLITEMS"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="ARTICLE_CROSSSELLING_EXTRAS"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$artcattree->aList item=pcat}]
|
||||
<option value="[{$pcat->oxcategories__oxid->value}]">[{$pcat->oxcategories__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
<td valign="middle" rowspan="2">
|
||||
<input class="edittext" type="button" id="orderup" value="/\" style="visibility:hidden"><br><br>
|
||||
<input class="edittext" type="button" id="orderdown" value="\/" style="visibility:hidden">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
118
shop/source/Application/views/admin/tpl/popups/article_attribute.tpl
Executable file
118
shop/source/Application/views/admin/tpl/popups/article_attribute.tpl
Executable file
@@ -0,0 +1,118 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=article_attribute&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=article_attribute&oxid=[{$oxid}]'
|
||||
)
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addattr';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removeattr';
|
||||
}
|
||||
YAHOO.oxid.container2.subscribe( "rowClickEvent", function( oParam )
|
||||
{
|
||||
var aSelRows= YAHOO.oxid.container2.getSelectedRows();
|
||||
if ( aSelRows.length ) {
|
||||
oParam = YAHOO.oxid.container2.getRecord(aSelRows[0]);
|
||||
$('_attrname').innerHTML = oParam._oData._0;
|
||||
$('attr_value').value = oParam._oData._2;
|
||||
$('attr_oxid').value = oParam._oData._3;
|
||||
$D.setStyle( $('arrt_conf'), 'visibility', '' );
|
||||
} else {
|
||||
$D.setStyle( $('arrt_conf'), 'visibility', 'hidden' );
|
||||
}
|
||||
})
|
||||
YAHOO.oxid.container2.subscribe( "dataReturnEvent", function()
|
||||
{
|
||||
$D.setStyle( $('arrt_conf'), 'visibility', 'hidden' );
|
||||
})
|
||||
YAHOO.oxid.container2.onSave = function()
|
||||
{
|
||||
YAHOO.oxid.container1.getDataSource().flushCache();
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
YAHOO.oxid.container2.getDataSource().flushCache();
|
||||
YAHOO.oxid.container2.getPage( 0 );
|
||||
}
|
||||
YAHOO.oxid.container2.onFailure = function() { /* currently does nothing */ }
|
||||
YAHOO.oxid.container2.saveAttribute = function()
|
||||
{
|
||||
var callback = {
|
||||
success: YAHOO.oxid.container2.onSave,
|
||||
failure: YAHOO.oxid.container2.onFailure,
|
||||
scope: YAHOO.oxid.container2
|
||||
};
|
||||
YAHOO.util.Connect.asyncRequest( 'GET', '[{$oViewConf->getAjaxLink()}]&cmpid=container2&container=article_attribute&fnc=saveAttributeValue&oxid=[{$oxid}]&attr_value=' + encodeURIComponent( $('attr_value').value ) + '&attr_oxid=' + encodeURIComponent( $('attr_oxid').value ), callback );
|
||||
|
||||
}
|
||||
// subscribint event listeners on buttons
|
||||
$E.addListener( $('saveBtn'), "click", YAHOO.oxid.container2.saveAttribute, $('saveBtn') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="40%" />
|
||||
<col width="20%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="3">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center" valign="top"><b>[{oxmultilang ident="ARTICLE_ATTRIBUTE_NOATTRIBUTE"}]</b></td>
|
||||
<td align="center" valign="top"><b>[{oxmultilang ident="ARTICLE_ATTRIBUTE_ITEMSATTRIBUTE"}]</b></td>
|
||||
<td align="center" valign="top">[{oxmultilang ident="ARTICLE_ATTRIBUTE_SELECTONEATTR"}]:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
<td valign="top" align="center" class="edittext" id="arrt_conf" style="visibility:hidden">
|
||||
<br><br>
|
||||
<b id="_attrname">[{$attr_name}]</b>:<br><br>
|
||||
<input id="attr_oxid" type="hidden">
|
||||
<input id="attr_value" class="editinput" type="text"><br><br>
|
||||
<input id="saveBtn" type="button" class="edittext" value="[{oxmultilang ident="ARTICLE_ATTRIBUTE_SAVE"}]">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
120
shop/source/Application/views/admin/tpl/popups/article_bundle.tpl
Executable file
120
shop/source/Application/views/admin/tpl/popups/article_bundle.tpl
Executable file
@@ -0,0 +1,120 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=article_bundle&synchoxid=[{$oxid}]',
|
||||
{ selectionMode: "single" }
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
YAHOO.oxid.container1.onSave = function()
|
||||
{
|
||||
var aSelRows= YAHOO.oxid.container1.getSelectedRows();
|
||||
if ( aSelRows.length ) {
|
||||
oParam = YAHOO.oxid.container1.getRecord(aSelRows[0]);
|
||||
$('bundle_artnum').innerHTML = oParam._oData._0;
|
||||
$('bundle_title').innerHTML = oParam._oData._1;
|
||||
$('remBtn').disabled = false;
|
||||
$D.setStyle( $('_bundle'), 'visibility', '' );
|
||||
}
|
||||
}
|
||||
YAHOO.oxid.container1.addBundle = function()
|
||||
{
|
||||
var callback = {
|
||||
success: YAHOO.oxid.container1.onSave,
|
||||
failure: YAHOO.oxid.container1.onFailure,
|
||||
scope: YAHOO.oxid.container1
|
||||
};
|
||||
var aSelRows= YAHOO.oxid.container1.getSelectedRows();
|
||||
if ( aSelRows.length ) {
|
||||
oParam = YAHOO.oxid.container1.getRecord(aSelRows[0]);
|
||||
sRequest = '&oxbundleid=' + oParam._oData._6;
|
||||
}
|
||||
YAHOO.util.Connect.asyncRequest( 'GET', '[{$oViewConf->getAjaxLink()}]&cmpid=container1&container=article_bundle&fnc=addarticlebundle&oxid=[{$oxid}]'+sRequest, callback );
|
||||
|
||||
}
|
||||
YAHOO.oxid.container1.onRemove = function()
|
||||
{
|
||||
$('bundle_artnum').innerHTML = '';
|
||||
$('bundle_title').innerHTML = '';
|
||||
$('remBtn').disabled = true;
|
||||
$D.setStyle( $('_bundle'), 'visibility', 'hidden' );
|
||||
}
|
||||
YAHOO.oxid.container1.onFailure = function() { /* currently does nothing */ }
|
||||
YAHOO.oxid.container1.remBundle = function()
|
||||
{
|
||||
var callback = {
|
||||
success: YAHOO.oxid.container1.onRemove,
|
||||
failure: YAHOO.oxid.container1.onFailure,
|
||||
scope: YAHOO.oxid.container1
|
||||
};
|
||||
YAHOO.util.Connect.asyncRequest( 'GET', '[{$oViewConf->getAjaxLink()}]&cmpid=container1&container=article_bundle&fnc=removearticlebundle&oxid=[{$oxid}]', callback );
|
||||
|
||||
}
|
||||
// subscribint event listeners on buttons
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
$E.addListener( $('remBtn'), "click", YAHOO.oxid.container1.remBundle, $('remBtn') );
|
||||
$E.addListener( $('saveBtn'), "click", YAHOO.oxid.container1.addBundle, $('saveBtn') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<tr class="edittext">
|
||||
<td >[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="ARTICLE_BUNDLE_ALLITEMS"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-left:4px;padding-right:10px">
|
||||
<select name="artcat" id="artcat" style="width:100%;" class="editinput">
|
||||
[{foreach from=$artcattree->aList item=pcat}]
|
||||
<option value="[{$pcat->oxcategories__oxid->value}]">[{$pcat->oxcategories__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input id="saveBtn" type="button" class="edittext oxid-aoc-button" value="[{oxmultilang ident="ARTICLE_BUNDLE_ASSIGNARTICLE"}]">
|
||||
<input id="remBtn" type="button" class="edittext oxid-aoc-button" value="[{oxmultilang ident="ARTICLE_BUNDLE_UNASSIGNARTICLE"}]" [{if !$bundle_artnum}] disabled [{/if}]>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="edittext" id="_bundle" [{if !$bundle_artnum}] style="visibility:hidden" [{/if}]>
|
||||
<b>[{oxmultilang ident="ARTICLE_BUNDLE_ASSIGNEDARTICLE"}]:</b>
|
||||
<b id="bundle_artnum">[{$bundle_artnum}]</b> <b id="bundle_title">[{$bundle_title}]</b>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
94
shop/source/Application/views/admin/tpl/popups/article_crossselling.tpl
Executable file
94
shop/source/Application/views/admin/tpl/popups/article_crossselling.tpl
Executable file
@@ -0,0 +1,94 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=article_crossselling&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=article_crossselling&oxid=[{$oxid}]'
|
||||
)
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addarticlecross';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removearticlecross';
|
||||
}
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="ARTICLE_CROSSSELLING_ALLITEMS"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="ARTICLE_CROSSSELLING_CROSSSELLING"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$artcattree->aList item=pcat}]
|
||||
<option value="[{$pcat->oxcategories__oxid->value}]">[{$pcat->oxcategories__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
131
shop/source/Application/views/admin/tpl/popups/article_extend.tpl
Executable file
131
shop/source/Application/views/admin/tpl/popups/article_extend.tpl
Executable file
@@ -0,0 +1,131 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
sortable:true
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=article_extend&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.aoc.custFormatter = function( elCell, oRecord, oColumn, oData )
|
||||
{
|
||||
// checking if all needed data is set
|
||||
if ( elCell && oRecord ) {
|
||||
if ( oData ) {
|
||||
elCell.innerHTML = '<div>'+oData.toString()+'</div>';
|
||||
}
|
||||
if ( oData = oRecord.getData() ) {
|
||||
if ( oData._4 == "0" ) {
|
||||
$D.addClass( elCell, "oxid-aoc-primary-cat" );
|
||||
} else {
|
||||
$D.removeClass( elCell, "oxid-aoc-primary-cat" );
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
sortable:true,
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=article_extend&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addcat';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removecat';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.oActiveBtn = new YAHOO.widget.Button('makeact');
|
||||
|
||||
YAHOO.oxid.container2.subscribe( "rowSelectEvent", function( oParam )
|
||||
{
|
||||
if ( oData = oParam.record.getData() ) {
|
||||
if ( oData._4 ) {
|
||||
$('defcat').value = oData._5;
|
||||
YAHOO.oxid.container2.oActiveBtn.set("disabled", false);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
YAHOO.oxid.container2.onActive = function()
|
||||
{
|
||||
YAHOO.oxid.container1.getDataSource().flushCache();
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
YAHOO.oxid.container2.getDataSource().flushCache();
|
||||
YAHOO.oxid.container2.getPage( 0 );
|
||||
}
|
||||
YAHOO.oxid.container2.onFailure = function() { /* currently does nothing */}
|
||||
|
||||
YAHOO.oxid.container2.makeActive = function()
|
||||
{
|
||||
var callback = {
|
||||
success: YAHOO.oxid.container2.onActive,
|
||||
failure: YAHOO.oxid.container2.onFailure,
|
||||
scope: YAHOO.oxid.container2
|
||||
};
|
||||
|
||||
YAHOO.util.Connect.asyncRequest( 'GET', '[{$oViewConf->getAjaxLink()}]&cmpid=container2&container=article_extend&fnc=setasdefault&oxid=[{$oxid}]'+'&defcat='+$('defcat').value, callback );
|
||||
YAHOO.oxid.container2.oActiveBtn.disable();
|
||||
}
|
||||
|
||||
|
||||
YAHOO.oxid.container2.subscribe( "dataReturnEvent", function() { YAHOO.oxid.container2.oActiveBtn.on("click", YAHOO.oxid.container2.makeActive, this );} );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="ARTICLE_EXTEND_ALLCATS"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="ARTICLE_EXTEND_ARTINCATS"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions">
|
||||
<input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn">
|
||||
<input type="hidden" id="defcat">
|
||||
<input type="button" id="makeact" value="[{oxmultilang ident="ARTICLE_EXTEND_DEFAULT"}]" style="width:140px;" disabled>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
72
shop/source/Application/views/admin/tpl/popups/article_selection.tpl
Executable file
72
shop/source/Application/views/admin/tpl/popups/article_selection.tpl
Executable file
@@ -0,0 +1,72 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=article_selection&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=article_selection&oxid=[{$oxid}]'
|
||||
);
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addsel';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removesel';
|
||||
}
|
||||
//$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="ARTICLE_ATTRIBUTE_NOSELLIST"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="ARTICLE_ATTRIBUTE_ITEMSSELLIST"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
190
shop/source/Application/views/admin/tpl/popups/attribute_category.tpl
Executable file
190
shop/source/Application/views/admin/tpl/popups/attribute_category.tpl
Executable file
@@ -0,0 +1,190 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=attribute_category&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=attribute_category&oxid=[{$oxid}]',
|
||||
{ selectionMode:'single' }
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addcattoattr';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removecatfromattr';
|
||||
}
|
||||
|
||||
YAHOO.oxid.orderBtn = function(upId,downId,autoHide)
|
||||
{
|
||||
YAHOO.oxid.orderBtn.oUp = new YAHOO.widget.Button(upId);
|
||||
YAHOO.oxid.orderBtn.oDown = new YAHOO.widget.Button(downId);
|
||||
|
||||
YAHOO.oxid.orderBtn.hide = function()
|
||||
{
|
||||
$D.setStyle(YAHOO.oxid.orderBtn.oUp , 'visibility', 'hidden');
|
||||
$D.setStyle(YAHOO.oxid.orderBtn.oDown, 'visibility', 'hidden');
|
||||
};
|
||||
|
||||
YAHOO.oxid.orderBtn.show = function()
|
||||
{
|
||||
$D.setStyle(YAHOO.oxid.orderBtn.oUp , 'visibility', 'visible');
|
||||
$D.setStyle(YAHOO.oxid.orderBtn.oDown, 'visibility', 'visible');
|
||||
};
|
||||
|
||||
YAHOO.oxid.orderBtn.addOn = function(onUp,onDown)
|
||||
{
|
||||
YAHOO.oxid.orderBtn.oUp.on("click", onUp);
|
||||
YAHOO.oxid.orderBtn.oDown.on("click", onDown);
|
||||
};
|
||||
|
||||
if(autoHide){
|
||||
YAHOO.oxid.orderBtn.hide();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
YAHOO.oxid.container3 = null;
|
||||
|
||||
YAHOO.oxid.orderBtn('orderup','orderdown',true);
|
||||
|
||||
YAHOO.oxid.container2.subscribe( "dataReturnEvent", function( oParam ) {
|
||||
resetSortingContainer();
|
||||
})
|
||||
//
|
||||
YAHOO.oxid.container2.subscribe( "rowSelectEvent", function( oParam )
|
||||
{
|
||||
var sOxid = oParam.record._oData._4;
|
||||
|
||||
if ( YAHOO.oxid.container3 != null && ( !YAHOO.oxid.container3._lastRecord || YAHOO.oxid.container3._lastRecord != oParam.record ) ) {
|
||||
resetSortingContainer();
|
||||
}
|
||||
|
||||
if ( YAHOO.oxid.container3 == null) {
|
||||
YAHOO.oxid.container3 = new YAHOO.oxid.aoc( 'container3',
|
||||
[ [{foreach from=$oxajax.container3 item=aItem key=iKey}]
|
||||
{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}], sortable: false
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]},
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=attribute_order&oxid='+sOxid,
|
||||
{ selectionMode:'single' }
|
||||
)
|
||||
//
|
||||
YAHOO.oxid.container3._lastRecord = false;
|
||||
YAHOO.oxid.container3.subscribe( "dataReturnEvent", function()
|
||||
{
|
||||
YAHOO.oxid.orderBtn.hide();
|
||||
})
|
||||
YAHOO.oxid.container3.subscribe( "rowClickEvent", function( oParam )
|
||||
{
|
||||
if ( YAHOO.oxid.container3.getSelectedRows().length ) {
|
||||
YAHOO.oxid.orderBtn.show();
|
||||
}else{
|
||||
YAHOO.oxid.orderBtn.hide();
|
||||
}
|
||||
})
|
||||
YAHOO.oxid.container3.setOrderUp = function()
|
||||
{
|
||||
var aSelRows = YAHOO.oxid.container3.getSelectedRows();
|
||||
if ( aSelRows.length ) {
|
||||
sOxid = YAHOO.oxid.container3.getRecord(aSelRows[0])._oData._2;
|
||||
YAHOO.oxid.container3.modRequest = function( sRequest ) { return sRequest+'&fnc=setSorting&sortoxid='+sOxid+'&direction=up'; }
|
||||
YAHOO.oxid.container3.getDataSource().flushCache();
|
||||
YAHOO.oxid.container3.getPage( 0 );
|
||||
}
|
||||
}
|
||||
YAHOO.oxid.container3.setOrderDown = function()
|
||||
{
|
||||
var aSelRows = YAHOO.oxid.container3.getSelectedRows();
|
||||
if ( aSelRows.length ) {
|
||||
sOxid = YAHOO.oxid.container3.getRecord(aSelRows[0])._oData._2;
|
||||
YAHOO.oxid.container3.modRequest = function( sRequest ) { return sRequest+'&fnc=setSorting&sortoxid='+sOxid+'&direction=down'; }
|
||||
YAHOO.oxid.container3.getDataSource().flushCache();
|
||||
YAHOO.oxid.container3.getPage( 0 );
|
||||
}
|
||||
}
|
||||
|
||||
YAHOO.oxid.orderBtn.addOn(YAHOO.oxid.container3.setOrderUp,YAHOO.oxid.container3.setOrderDown);
|
||||
YAHOO.oxid.container3._lastRecord = oParam.record;
|
||||
}
|
||||
})
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
function resetSortingContainer()
|
||||
{
|
||||
if ( YAHOO.oxid.container3.oContextMenu ) {
|
||||
YAHOO.oxid.container3.oContextMenu.destroy();
|
||||
}
|
||||
YAHOO.oxid.container3 = null;
|
||||
$('container3').innerHTML = '';
|
||||
YAHOO.oxid.orderBtn.hide();
|
||||
}
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="3" width="33%" />
|
||||
<col width="1%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="4">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="ATTRIBUTE_CATEGORY_ALLCATEGORY"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="ATTRIBUTE_CATEGORY_ATRCATEGORY"}]</b></td>
|
||||
<td align="center" valign="top">[{oxmultilang ident="ATTRIBUTE_CATEGORY_ATRLIST"}]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
<td valign="top" id="container3"></td>
|
||||
<td valign="middle" rowspan="2">
|
||||
<input class="edittext" type="button" id="orderup" value="/\" style="visibility:hidden"><br><br>
|
||||
<input class="edittext" type="button" id="orderdown" value="\/" style="visibility:hidden">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
94
shop/source/Application/views/admin/tpl/popups/attribute_main.tpl
Executable file
94
shop/source/Application/views/admin/tpl/popups/attribute_main.tpl
Executable file
@@ -0,0 +1,94 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=attribute_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=attribute_main&oxid=[{$oxid}]'
|
||||
);
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addattrarticle';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removeattrarticle';
|
||||
}
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="ATTRIBUTE_MAIN_ALLITEMS"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="ATTRIBUTE_MAIN_ITEMSWITHATTR"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$artcattree->aList item=pcat}]
|
||||
<option value="[{$pcat->oxcategories__oxid->value}]">[{$pcat->oxcategories__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
93
shop/source/Application/views/admin/tpl/popups/category_main.tpl
Executable file
93
shop/source/Application/views/admin/tpl/popups/category_main.tpl
Executable file
@@ -0,0 +1,93 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=category_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=category_main&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addarticle';
|
||||
}
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removearticle';
|
||||
}
|
||||
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="CATEGORY_MAIN_ALLITEMS"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="CATEGORY_MAIN_ITEMSINCATEGORY"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$artcattree->aList item=pcat}]
|
||||
<option value="[{$pcat->oxcategories__oxid->value}]">[{$pcat->oxcategories__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
123
shop/source/Application/views/admin/tpl/popups/category_order.tpl
Executable file
123
shop/source/Application/views/admin/tpl/popups/category_order.tpl
Executable file
@@ -0,0 +1,123 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=category_order&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
sortable: false
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=category_order&oxid=[{$oxid}]'
|
||||
);
|
||||
// disabling filters for second container
|
||||
if ( YAHOO.oxid.container2._aFilters ) {
|
||||
for ( var i=0; i < YAHOO.oxid.container2._aFilters.length; i++ ) {
|
||||
YAHOO.oxid.container2._aFilters[i].disabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addcatorderarticle';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removecatorderarticle';
|
||||
}
|
||||
|
||||
// subscribing buttons
|
||||
YAHOO.oxid.container1.oDeleteBtn = new YAHOO.widget.Button('deleteBtn');
|
||||
YAHOO.oxid.container1.oSaveBtn = new YAHOO.widget.Button('saveBtn');
|
||||
|
||||
YAHOO.oxid.container1.onSuccessCalback = function( oResponse )
|
||||
{
|
||||
YAHOO.oxid.container1.oSaveBtn.set("disabled", oResponse.responseText.indexOf("0") == -1);
|
||||
|
||||
}
|
||||
YAHOO.oxid.container2.onSuccessCalback = function( oResponse )
|
||||
{
|
||||
//YAHOO.oxid.container1.oSaveBtn.set("disabled",oResponse.responseText != "0");
|
||||
YAHOO.oxid.container1.oSaveBtn.set("disabled", oResponse.responseText.indexOf("0") == -1);
|
||||
}
|
||||
YAHOO.oxid.container2.onOrder = function()
|
||||
{
|
||||
YAHOO.oxid.container1.getDataSource().flushCache();
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
YAHOO.oxid.container2.getDataSource().flushCache();
|
||||
YAHOO.oxid.container2.getPage( 0 );
|
||||
}
|
||||
YAHOO.oxid.container2.onFailure = function() { /* currently does nothing */}
|
||||
YAHOO.oxid.container2.saveOrder = function( oEvt )
|
||||
{
|
||||
var callback = {
|
||||
success: YAHOO.oxid.container2.onOrder,
|
||||
failure: YAHOO.oxid.container2.onFailure,
|
||||
scope: YAHOO.oxid.container2
|
||||
};
|
||||
YAHOO.util.Connect.asyncRequest( 'GET', '[{$oViewConf->getAjaxLink()}]&cmpid=container2&container=category_order&fnc=saveneworder&oxid=[{$oxid}]&aoc=1', callback );
|
||||
};
|
||||
YAHOO.oxid.container2.deleteOrder = function( oEvt )
|
||||
{
|
||||
var callback = {
|
||||
success: YAHOO.oxid.container2.onOrder,
|
||||
failure: YAHOO.oxid.container2.onFailure,
|
||||
scope: YAHOO.oxid.container2
|
||||
};
|
||||
|
||||
YAHOO.util.Connect.asyncRequest( 'GET', '[{$oViewConf->getAjaxLink()}]&cmpid=container2&container=category_order&fnc=remneworder&oxid=[{$oxid}]', callback );
|
||||
};
|
||||
// subscribing event listeners on buttons
|
||||
YAHOO.oxid.container1.oDeleteBtn.on("click", YAHOO.oxid.container2.deleteOrder);
|
||||
YAHOO.oxid.container1.oSaveBtn.on("click", YAHOO.oxid.container2.saveOrder);
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="CATEGORY_ORDER_ACTSORT"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="CATEGORY_ORDER_NEWSORT"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"></td>
|
||||
<td align="left" class="oxid-aoc-actions">
|
||||
<input type="button" id="saveBtn" class="edittext" disabled value="[{oxmultilang ident="CATEGORY_ORDER_NEWSORTSAVE"}]" [{$readonly}]>
|
||||
<input type="button" id="deleteBtn" class="edittext" value="[{oxmultilang ident="CATEGORY_ORDER_DELETESORT"}]" [{$readonly}]>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
94
shop/source/Application/views/admin/tpl/popups/delivery_articles.tpl
Executable file
94
shop/source/Application/views/admin/tpl/popups/delivery_articles.tpl
Executable file
@@ -0,0 +1,94 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=delivery_articles&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=delivery_articles&oxid=[{$oxid}]'
|
||||
)
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addarttodel';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removeartfromdel';
|
||||
}
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_ARTICLES_ALLATRICLES"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_ARTICLES_SETARTICLES"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$artcattree->aList item=pcat}]
|
||||
<option value="[{$pcat->oxcategories__oxid->value}]">[{$pcat->oxcategories__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
72
shop/source/Application/views/admin/tpl/popups/delivery_categories.tpl
Executable file
72
shop/source/Application/views/admin/tpl/popups/delivery_categories.tpl
Executable file
@@ -0,0 +1,72 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=delivery_categories&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=delivery_categories&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addcattodel';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removecatfromdel';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_ARTICLES_ALLCATEGORIES"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_ARTICLES_SETCATEGORIES"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
68
shop/source/Application/views/admin/tpl/popups/delivery_groups.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/delivery_groups.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=delivery_groups&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=delivery_groups&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addgrouptodel';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removegroupfromdel';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="GENERAL_ALLGROUPS2"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_USERS_SETGROUPS"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
68
shop/source/Application/views/admin/tpl/popups/delivery_main.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/delivery_main.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=delivery_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=delivery_main&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addcountrytodel';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removecountryfromdel';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_COUNTRIES_ALLCOUNTRIES"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_COUNTRIES_SETCOUNTRIES"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
93
shop/source/Application/views/admin/tpl/popups/delivery_users.tpl
Executable file
93
shop/source/Application/views/admin/tpl/popups/delivery_users.tpl
Executable file
@@ -0,0 +1,93 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=delivery_users&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=delivery_users&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addusertodel';
|
||||
}
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removeuserfromdel';
|
||||
}
|
||||
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_USERS_ALLUSERSINGROUP"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_USERS_SETUSER"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$allgroups2 item=allgroupitem}]
|
||||
<option value="[{$allgroupitem->oxgroups__oxid->value}]">[{$allgroupitem->oxgroups__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
68
shop/source/Application/views/admin/tpl/popups/deliveryset_country.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/deliveryset_country.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=deliveryset_country&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=deliveryset_country&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addcountrytoset';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removecountryfromset';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_COUNTRIES_ALLCOUNTRIES"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_COUNTRIES_SETCOUNTRIES"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
68
shop/source/Application/views/admin/tpl/popups/deliveryset_groups.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/deliveryset_groups.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=deliveryset_groups&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=deliveryset_groups&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addgrouptoset';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removegroupfromset';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="GENERAL_ALLGROUPS2"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_USERS_SETGROUPS"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
68
shop/source/Application/views/admin/tpl/popups/deliveryset_main.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/deliveryset_main.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=deliveryset_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=deliveryset_main&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addtoset';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removefromset';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERYSET_MAIN_ALLDELIVERYCOST"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERYSET_MAIN_SELDELIVERYCOST"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
68
shop/source/Application/views/admin/tpl/popups/deliveryset_payment.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/deliveryset_payment.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=deliveryset_payment&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=deliveryset_payment&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addpaytoset';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removepayfromset';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERYSET_PAYMENT_ALLPAYMENTS"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERYSET_PAYMENT_SELPAYMENTS"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
93
shop/source/Application/views/admin/tpl/popups/deliveryset_users.tpl
Executable file
93
shop/source/Application/views/admin/tpl/popups/deliveryset_users.tpl
Executable file
@@ -0,0 +1,93 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=deliveryset_users&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=deliveryset_users&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addusertoset';
|
||||
}
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removeuserfromset';
|
||||
}
|
||||
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_USERS_ALLUSERSINGROUP"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_USERS_SETUSER"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$allgroups2 item=allgroupitem}]
|
||||
<option value="[{$allgroupitem->oxgroups__oxid->value}]">[{$allgroupitem->oxgroups__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
94
shop/source/Application/views/admin/tpl/popups/discount_articles.tpl
Executable file
94
shop/source/Application/views/admin/tpl/popups/discount_articles.tpl
Executable file
@@ -0,0 +1,94 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=discount_articles&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=discount_articles&oxid=[{$oxid}]'
|
||||
);
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=adddiscart';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removediscart';
|
||||
}
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DISCOUNT_ARTICLES_ALLATRICLES"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DISCOUNT_ARTICLES_SETARTICLES"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$artcattree->aList item=pcat}]
|
||||
<option value="[{$pcat->oxcategories__oxid->value}]">[{$pcat->oxcategories__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
72
shop/source/Application/views/admin/tpl/popups/discount_categories.tpl
Executable file
72
shop/source/Application/views/admin/tpl/popups/discount_categories.tpl
Executable file
@@ -0,0 +1,72 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=discount_categories&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=discount_categories&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=adddisccat';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removedisccat';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DISCOUNT_ARTICLES_ALLCATEGORIES"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DISCOUNT_ARTICLES_SETCATEGORIES"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
68
shop/source/Application/views/admin/tpl/popups/discount_groups.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/discount_groups.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=discount_groups&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=discount_groups&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=adddiscgroup';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removediscgroup';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="GENERAL_ALLGROUPS2"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DISCOUNT_USERS_SETGROUPS"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
90
shop/source/Application/views/admin/tpl/popups/discount_item.tpl
Executable file
90
shop/source/Application/views/admin/tpl/popups/discount_item.tpl
Executable file
@@ -0,0 +1,90 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=discount_item&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=discount_item&oxid=[{$oxid}]'
|
||||
);
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=adddiscart';
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removediscart';
|
||||
}
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DISCOUNT_ARTICLES_ALLATRICLES"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DISCOUNT_ARTICLES_SETARTICLES"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$artcattree->aList item=pcat}]
|
||||
<option value="[{$pcat->oxcategories__oxid->value}]">[{$pcat->oxcategories__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
68
shop/source/Application/views/admin/tpl/popups/discount_main.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/discount_main.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=discount_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=discount_main&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=adddisccountry';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removedisccountry';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DISCOUNT_COUNTRIES_ALLCOUNTRIES"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DISCOUNT_COUNTRIES_SETCOUNTRIES"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
93
shop/source/Application/views/admin/tpl/popups/discount_users.tpl
Executable file
93
shop/source/Application/views/admin/tpl/popups/discount_users.tpl
Executable file
@@ -0,0 +1,93 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=discount_users&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=discount_users&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=adddiscuser';
|
||||
}
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removediscuser';
|
||||
}
|
||||
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DISCOUNT_USERS_ALLUSERSINGROUP"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DISCOUNT_USERS_SETUSER"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$allgroups2 item=allgroupitem}]
|
||||
<option value="[{$allgroupitem->oxgroups__oxid->value}]">[{$allgroupitem->oxgroups__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
32
shop/source/Application/views/admin/tpl/popups/headitem.tpl
Executable file
32
shop/source/Application/views/admin/tpl/popups/headitem.tpl
Executable file
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>[{$title}]</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=[{$charset}]">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="[{$oViewConf->getResourceUrl()}]yui/build/reset-fonts/reset-fonts.css">
|
||||
<link rel="stylesheet" type="text/css" href="[{$oViewConf->getResourceUrl()}]yui/build/base/base-min.css">
|
||||
<link rel="stylesheet" type="text/css" href="[{$oViewConf->getResourceUrl()}]yui/build/assets/skins/sam/skin.css">
|
||||
|
||||
<script type="text/javascript" src="[{$oViewConf->getResourceUrl()}]yui/build/utilities/utilities.js"></script>
|
||||
<script type="text/javascript" src="[{$oViewConf->getResourceUrl()}]yui/build/container/container-min.js"></script>
|
||||
<script type="text/javascript" src="[{$oViewConf->getResourceUrl()}]yui/build/menu/menu-min.js"></script>
|
||||
<script type="text/javascript" src="[{$oViewConf->getResourceUrl()}]yui/build/button/button-min.js"></script>
|
||||
<script type="text/javascript" src="[{$oViewConf->getResourceUrl()}]yui/build/datasource/datasource-min.js"></script>
|
||||
<script type="text/javascript" src="[{$oViewConf->getResourceUrl()}]yui/build/datatable/datatable-min.js"></script>
|
||||
<script type="text/javascript" src="[{$oViewConf->getResourceUrl()}]yui/build/json/json-min.js"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="[{$oViewConf->getResourceUrl()}]aoc.css">
|
||||
<!--[if IE 8]><link rel="stylesheet" type="text/css" href="[{$oViewConf->getResourceUrl()}]aoc_ie8.css"><![endif]-->
|
||||
<script type="text/javascript" src="[{ $oViewConf->getResourceUrl()}]yui/oxid-aoc.js"></script>
|
||||
|
||||
[{if $readonly}]
|
||||
[{assign var="readonly" value="readonly disabled"}]
|
||||
[{else}]
|
||||
[{assign var="readonly" value=""}]
|
||||
[{/if}]
|
||||
|
||||
</head>
|
||||
<body class="yui-skin-sam">
|
||||
[{include file="inc_error.tpl" Errorlist=$Errors.default}]
|
||||
90
shop/source/Application/views/admin/tpl/popups/manufacturer_main.tpl
Executable file
90
shop/source/Application/views/admin/tpl/popups/manufacturer_main.tpl
Executable file
@@ -0,0 +1,90 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=manufacturer_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=manufacturer_main&oxid=[{$oxid}]'
|
||||
);
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addmanufacturer';
|
||||
}
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removemanufacturer';
|
||||
}
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="MANUFACTURER_MAIN_ALLITEMS"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="MANUFACTURER_MAIN_ITEMSWITHMANUFACTURER"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$artcattree->aList item=pcat}]
|
||||
<option value="[{$pcat->oxcategories__oxid->value}]">[{$pcat->oxcategories__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
68
shop/source/Application/views/admin/tpl/popups/news_main.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/news_main.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=news_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=news_main&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addgrouptonews';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removegroupfromnews';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="NEWS_MAIN_NOTSHOWFORGROUP"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="NEWS_MAIN_SHOWFORGROUP"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
80
shop/source/Application/views/admin/tpl/popups/newsletter_selection.tpl
Executable file
80
shop/source/Application/views/admin/tpl/popups/newsletter_selection.tpl
Executable file
@@ -0,0 +1,80 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=newsletter_selection&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=newsletter_selection&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addgrouptonewsletter';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removegroupfromnewsletter';
|
||||
}
|
||||
YAHOO.oxid.container1.onSuccessCalback = reloadParentFrame;
|
||||
YAHOO.oxid.container2.onSuccessCalback = reloadParentFrame;
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
// reloading frame after group assignment..
|
||||
function reloadParentFrame()
|
||||
{
|
||||
try {
|
||||
if (window.opener && window.opener.document && window.opener.document.myedit) {
|
||||
window.opener.document.myedit.submit();
|
||||
}
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="GENERAL_ALLGROUPS2"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="NEWSLETTER_SELECTION_USEDGROUP"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
68
shop/source/Application/views/admin/tpl/popups/payment_country.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/payment_country.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=payment_country&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=payment_country&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addpaycountry';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removepaycountry';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="PAYMENT_COUNTRY_ALLCOUNTRIES"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="PAYMENT_COUNTRY_SELCOUNTRIES"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
68
shop/source/Application/views/admin/tpl/popups/payment_main.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/payment_main.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=payment_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=payment_main&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addpaygroup';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removepaygroup';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="PAYMENT_MAIN_NOTAVAILIBLEINGROUP"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="PAYMENT_MAIN_AVAILIBLEINGROUP"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
68
shop/source/Application/views/admin/tpl/popups/roles_begroups.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/roles_begroups.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=roles_begroups&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=roles_begroups&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addgrouptoberoles';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removegroupfromberoles';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="GENERAL_ALLGROUPS2"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_USERS_SETGROUPS"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
93
shop/source/Application/views/admin/tpl/popups/roles_beuser.tpl
Executable file
93
shop/source/Application/views/admin/tpl/popups/roles_beuser.tpl
Executable file
@@ -0,0 +1,93 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=roles_beuser&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=roles_beuser&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addusertoberoles';
|
||||
}
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removeuserfromberoles';
|
||||
}
|
||||
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_USERS_ALLUSERSINGROUP"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_USERS_SETUSER"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$allgroups2 item=allgroupitem}]
|
||||
<option value="[{$allgroupitem->oxgroups__oxid->value}]">[{$allgroupitem->oxgroups__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
67
shop/source/Application/views/admin/tpl/popups/roles_fegroups.tpl
Executable file
67
shop/source/Application/views/admin/tpl/popups/roles_fegroups.tpl
Executable file
@@ -0,0 +1,67 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=roles_fegroups&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=roles_fegroups&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addgrouptoferoles';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removegroupfromferoles';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="GENERAL_ALLGROUPS2"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="DELIVERY_USERS_SETGROUPS"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
179
shop/source/Application/views/admin/tpl/popups/selectlist_main.tpl
Executable file
179
shop/source/Application/views/admin/tpl/popups/selectlist_main.tpl
Executable file
@@ -0,0 +1,179 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=selectlist_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=selectlist_main&oxid=[{$oxid}]'
|
||||
);
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addarttosel';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removeartfromsel';
|
||||
}
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
|
||||
YAHOO.oxid.container3 = null;
|
||||
YAHOO.oxid.container2.subscribe( "dataReturnEvent", function( oParam ) {
|
||||
if ( YAHOO.oxid.container3.oContextMenu ) {
|
||||
YAHOO.oxid.container3.oContextMenu.destroy();
|
||||
}
|
||||
YAHOO.oxid.container3 = null;
|
||||
$('container3').innerHTML = '';
|
||||
$D.setStyle( $('orderup'), 'visibility', 'hidden' );
|
||||
$D.setStyle( $('orderdown'), 'visibility', 'hidden' );
|
||||
})
|
||||
//
|
||||
YAHOO.oxid.container2.subscribe( "rowSelectEvent", function( oParam )
|
||||
{
|
||||
var sOxid = oParam.record._oData._7;
|
||||
if ( YAHOO.oxid.container3 == null) {
|
||||
YAHOO.oxid.container3 = new YAHOO.oxid.aoc( 'container3',
|
||||
[ [{foreach from=$oxajax.container3 item=aItem key=iKey}]
|
||||
{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}],
|
||||
formatter: YAHOO.oxid.aoc.custFormatter,
|
||||
sortable: false
|
||||
[{/if}]},
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=selectlist_order&oxid='+sOxid,
|
||||
{ selectionMode:'single' }
|
||||
)
|
||||
//
|
||||
YAHOO.oxid.container3._lastRecord = false;
|
||||
YAHOO.oxid.container3.subscribe( "dataReturnEvent", function()
|
||||
{
|
||||
$D.setStyle( $('orderup'), 'visibility', 'hidden' );
|
||||
$D.setStyle( $('orderdown'), 'visibility', 'hidden' );
|
||||
})
|
||||
YAHOO.oxid.container3.subscribe( "rowClickEvent", function( oParam )
|
||||
{
|
||||
var sVisibility = 'hidden';
|
||||
if ( YAHOO.oxid.container3.getSelectedRows().length ) {
|
||||
sVisibility = '';
|
||||
}
|
||||
$D.setStyle($('orderup'), 'visibility', sVisibility );
|
||||
$D.setStyle($('orderdown'), 'visibility', sVisibility );
|
||||
})
|
||||
YAHOO.oxid.container3.setOrderUp = function()
|
||||
{
|
||||
var aSelRows = YAHOO.oxid.container3.getSelectedRows();
|
||||
if ( aSelRows.length ) {
|
||||
sOxid = YAHOO.oxid.container3.getRecord(aSelRows[0])._oData._4;
|
||||
YAHOO.oxid.container3.modRequest = function( sRequest ) { return sRequest+'&fnc=setSorting&sortoxid='+sOxid+'&direction=up'; }
|
||||
YAHOO.oxid.container3.getDataSource().flushCache();
|
||||
YAHOO.oxid.container3.getPage( 0 );
|
||||
}
|
||||
}
|
||||
YAHOO.oxid.container3.setOrderDown = function()
|
||||
{
|
||||
var aSelRows = YAHOO.oxid.container3.getSelectedRows();
|
||||
if ( aSelRows.length ) {
|
||||
sOxid = YAHOO.oxid.container3.getRecord(aSelRows[0])._oData._4;
|
||||
YAHOO.oxid.container3.modRequest = function( sRequest ) { return sRequest+'&fnc=setSorting&sortoxid='+sOxid+'&direction=down'; }
|
||||
YAHOO.oxid.container3.getDataSource().flushCache();
|
||||
YAHOO.oxid.container3.getPage( 0 );
|
||||
}
|
||||
}
|
||||
|
||||
$E.addListener( $('orderup'), "click", YAHOO.oxid.container3.setOrderUp, $('orderup') );
|
||||
$E.addListener( $('orderdown'), "click", YAHOO.oxid.container3.setOrderDown, $('orderdown') );
|
||||
YAHOO.oxid.container3._lastRecord = oParam.record;
|
||||
} else if ( !YAHOO.oxid.container3._lastRecord || YAHOO.oxid.container3._lastRecord != oParam.record ) {
|
||||
YAHOO.oxid.container3._lastRecord = oParam.record;
|
||||
YAHOO.oxid.container3.modRequest = function( sRequest ) { return sRequest+'&oxid='+sOxid; }
|
||||
YAHOO.oxid.container3.getPage( 0 );
|
||||
}
|
||||
})
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="3" width="32%" />
|
||||
<col span="1" width="4%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="4">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center" valign="top"><b>[{oxmultilang ident="GENERAL_ALLITEMS"}]</b></td>
|
||||
<td align="center" valign="top">
|
||||
<b>[{oxmultilang ident="SELECTLIST_MAIN_ITEMSWITHCHOSLIST"}]</b><br />
|
||||
<b>[{oxmultilang ident="GENERAL_CLICKFORDETAILS"}]</b>
|
||||
</td>
|
||||
<td align="center" valign="top">[{oxmultilang ident="SELECTLIST_MAIN_CHOSENITEMSLIST"}]</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$artcattree->aList item=pcat}]
|
||||
<option value="[{$pcat->oxcategories__oxid->value}]">[{$pcat->oxcategories__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
<td valign="top" id="container3"></td>
|
||||
<td valign="middle" rowspan="2">
|
||||
<input class="edittext" type="button" id="orderup" value="/\" style="visibility:hidden"><br><br>
|
||||
<input class="edittext" type="button" id="orderdown" value="\/" style="visibility:hidden">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
106
shop/source/Application/views/admin/tpl/popups/shop_default_category.tpl
Executable file
106
shop/source/Application/views/admin/tpl/popups/shop_default_category.tpl
Executable file
@@ -0,0 +1,106 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=shop_default_category&synchoxid=[{$oxid}]',
|
||||
{ selectionMode: "single" }
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
return sRequest;
|
||||
}
|
||||
|
||||
// subscribint buttons
|
||||
YAHOO.oxid.container1.oRemoveBtn = new YAHOO.widget.Button('remBtn');
|
||||
YAHOO.oxid.container1.oSaveBtn = new YAHOO.widget.Button('saveBtn');
|
||||
|
||||
YAHOO.oxid.container1.onSave = function()
|
||||
{
|
||||
var aSelRows= YAHOO.oxid.container1.getSelectedRows();
|
||||
if ( aSelRows.length ) {
|
||||
oParam = YAHOO.oxid.container1.getRecord(aSelRows[0]);
|
||||
$('defcat_title').innerHTML = oParam._oData._0;
|
||||
YAHOO.oxid.container1.oRemoveBtn.set("disabled",false);
|
||||
$D.setStyle( $('_defcat'), 'visibility', '' );
|
||||
}
|
||||
}
|
||||
YAHOO.oxid.container1.assignCat = function()
|
||||
{
|
||||
var callback = {
|
||||
success: YAHOO.oxid.container1.onSave,
|
||||
failure: YAHOO.oxid.container1.onFailure,
|
||||
scope: YAHOO.oxid.container1
|
||||
};
|
||||
var aSelRows= YAHOO.oxid.container1.getSelectedRows();
|
||||
if ( aSelRows.length ) {
|
||||
oParam = YAHOO.oxid.container1.getRecord(aSelRows[0]);
|
||||
sRequest = '&oxcatid=' + oParam._oData._3;
|
||||
}
|
||||
YAHOO.util.Connect.asyncRequest( 'GET', '[{$oViewConf->getAjaxLink()}]&cmpid=container1&container=shop_default_category&fnc=assignCat&oxid=[{$oxid}]'+sRequest, callback );
|
||||
|
||||
}
|
||||
YAHOO.oxid.container1.onRemove = function()
|
||||
{
|
||||
$('defcat_title').innerHTML = '';
|
||||
YAHOO.oxid.container1.oRemoveBtn.set("disabled",true);
|
||||
$D.setStyle( $('_defcat'), 'visibility', 'hidden' );
|
||||
}
|
||||
YAHOO.oxid.container1.onFailure = function() { /* currently does nothing */ }
|
||||
YAHOO.oxid.container1.unassignCat = function()
|
||||
{
|
||||
var callback = {
|
||||
success: YAHOO.oxid.container1.onRemove,
|
||||
failure: YAHOO.oxid.container1.onFailure,
|
||||
scope: YAHOO.oxid.container1
|
||||
};
|
||||
YAHOO.util.Connect.asyncRequest( 'GET', '[{$oViewConf->getAjaxLink()}]&cmpid=container1&container=shop_default_category&fnc=unassignCat&oxid=[{$oxid}]', callback );
|
||||
|
||||
}
|
||||
// subscribing listeners on buttons
|
||||
YAHOO.oxid.container1.oRemoveBtn.on("click", YAHOO.oxid.container1.unassignCat);
|
||||
YAHOO.oxid.container1.oSaveBtn.on("click", YAHOO.oxid.container1.assignCat);
|
||||
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<tr class="edittext">
|
||||
<td >[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="SHOP_CONFIG_ACTIVECATEGORYBYSTART"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions">
|
||||
<input id="saveBtn" type="button" value="[{oxmultilang ident="SHOP_CONFIG_ASSIGNDEFAULTCAT"}]">
|
||||
<input id="remBtn" type="button" value="[{oxmultilang ident="SHOP_CONFIG_UNASSIGNDEFAULTCAT"}]" [{if !$defcat}] disabled [{/if}]>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="edittext" id="_defcat" [{if !$defcat}] style="visibility:hidden" [{/if}]>
|
||||
<b>[{oxmultilang ident="SHOP_CONFIG_ASSIGNEDDEFAULTCAT"}]:</b>
|
||||
<b id="defcat_title">[{$defcat->oxcategories__oxtitle->value}]</b>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
68
shop/source/Application/views/admin/tpl/popups/user_main.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/user_main.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=user_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=user_main&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addusertogroup';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removeuserfromgroup';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="GENERAL_ALLGROUPS2"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="GENERAL_INGROUP"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
68
shop/source/Application/views/admin/tpl/popups/usergroup_main.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/usergroup_main.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=usergroup_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=usergroup_main&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addusertougroup';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removeuserfromugroup';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="USERGROUP_MAIN_ALLMEMBERS"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="USERGROUP_MAIN_MEMBERINGROUP"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
90
shop/source/Application/views/admin/tpl/popups/vendor_main.tpl
Executable file
90
shop/source/Application/views/admin/tpl/popups/vendor_main.tpl
Executable file
@@ -0,0 +1,90 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=vendor_main&synchoxid=[{$oxid}]'
|
||||
);
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=vendor_main&oxid=[{$oxid}]'
|
||||
);
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addvendor';
|
||||
}
|
||||
YAHOO.oxid.container1.modRequest = function( sRequest )
|
||||
{
|
||||
oSelect = $('artcat');
|
||||
if ( oSelect.selectedIndex ) {
|
||||
sRequest += '&oxid='+oSelect.options[oSelect.selectedIndex].value+'&synchoxid=[{$oxid}]';
|
||||
}
|
||||
return sRequest;
|
||||
}
|
||||
YAHOO.oxid.container1.filterCat = function( e, OObj )
|
||||
{
|
||||
YAHOO.oxid.container1.getPage( 0 );
|
||||
}
|
||||
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removevendor';
|
||||
}
|
||||
$E.addListener( $('artcat'), "change", YAHOO.oxid.container1.filterCat, $('artcat') );
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="VENDOR_MAIN_ALLITEMS"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="VENDOR_MAIN_ITEMSWITHVENDOR"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-category">
|
||||
<select name="artcat" id="artcat">
|
||||
[{foreach from=$artcattree->aList item=pcat}]
|
||||
<option value="[{$pcat->oxcategories__oxid->value}]">[{$pcat->oxcategories__oxtitle->value}]</option>
|
||||
[{/foreach}]
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
68
shop/source/Application/views/admin/tpl/popups/voucherserie_groups.tpl
Executable file
68
shop/source/Application/views/admin/tpl/popups/voucherserie_groups.tpl
Executable file
@@ -0,0 +1,68 @@
|
||||
[{include file="popups/headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]
|
||||
|
||||
<script type="text/javascript">
|
||||
initAoc = function()
|
||||
{
|
||||
YAHOO.oxid.container1 = new YAHOO.oxid.aoc( 'container1',
|
||||
[ [{foreach from=$oxajax.container1 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container1&container=voucherserie_groups&synchoxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
[{assign var="sSep" value=""}]
|
||||
|
||||
YAHOO.oxid.container2 = new YAHOO.oxid.aoc( 'container2',
|
||||
[ [{foreach from=$oxajax.container2 item=aItem key=iKey}]
|
||||
[{$sSep}][{strip}]{ key:'_[{$iKey}]', ident: [{if $aItem.4}]true[{else}]false[{/if}]
|
||||
[{if !$aItem.4}],
|
||||
label: '[{oxmultilang ident="GENERAL_AJAX_SORT_"|cat:$aItem.0|oxupper}]',
|
||||
visible: [{if $aItem.2}]true[{else}]false[{/if}]
|
||||
[{/if}]}
|
||||
[{/strip}]
|
||||
[{assign var="sSep" value=","}]
|
||||
[{/foreach}] ],
|
||||
'[{$oViewConf->getAjaxLink()}]cmpid=container2&container=voucherserie_groups&oxid=[{$oxid}]'
|
||||
);
|
||||
|
||||
YAHOO.oxid.container1.getDropAction = function()
|
||||
{
|
||||
return 'fnc=addgrouptovoucher';
|
||||
}
|
||||
YAHOO.oxid.container2.getDropAction = function()
|
||||
{
|
||||
return 'fnc=removegroupfromvoucher';
|
||||
}
|
||||
}
|
||||
$E.onDOMReady( initAoc );
|
||||
</script>
|
||||
|
||||
<table width="100%">
|
||||
<colgroup>
|
||||
<col span="2" width="50%" />
|
||||
</colgroup>
|
||||
<tr class="edittext">
|
||||
<td colspan="2">[{oxmultilang ident="GENERAL_AJAX_DESCRIPTION"}]<br>[{oxmultilang ident="GENERAL_FILTERING"}]<br /><br /></td>
|
||||
</tr>
|
||||
<tr class="edittext">
|
||||
<td align="center"><b>[{oxmultilang ident="GENERAL_ALLGROUPS2"}]</b></td>
|
||||
<td align="center"><b>[{oxmultilang ident="VOUCHERSERIE_GROUPS_INGROUP"}]</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" id="container1"></td>
|
||||
<td valign="top" id="container2"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_ASSIGNALL"}]" id="container1_btn"></td>
|
||||
<td class="oxid-aoc-actions"><input type="button" value="[{oxmultilang ident="GENERAL_AJAX_UNASSIGNALL"}]" id="container2_btn"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user