modcfg pages added

This commit is contained in:
Daniel Seifert 2011-02-27 11:55:21 +00:00
parent c59a64d3c3
commit c02049bf20
10 changed files with 417 additions and 0 deletions

9
.gitattributes vendored
View File

@ -146,12 +146,19 @@ Sources/doku/12_gaTrackingOverview-Dateien/local_extensions.css -text
Sources/doku/12_gaTrackingOverview-Dateien/semantic_headers.css -text Sources/doku/12_gaTrackingOverview-Dateien/semantic_headers.css -text
Sources/doku/12_gaTrackingOverview-Dateien/star_off.gif -text Sources/doku/12_gaTrackingOverview-Dateien/star_off.gif -text
Sources/doku/12_gaTrackingOverview.html -text Sources/doku/12_gaTrackingOverview.html -text
changed_full/440-447/out/admin/de/d3_googleanalytics_lang.php -text
changed_full/440-447/out/admin/tpl/d3_cfg_googleanalytics_main.tpl -text
changed_full/440-447/out/basic/tpl/_footer.tpl -text changed_full/440-447/out/basic/tpl/_footer.tpl -text
changed_full/440-447/out/basic/tpl/basket.tpl -text changed_full/440-447/out/basic/tpl/basket.tpl -text
changed_full/440-447/out/basic/tpl/dyn/mini_basket.tpl -text changed_full/440-447/out/basic/tpl/dyn/mini_basket.tpl -text
changed_full/440-447/out/basic/tpl/inc/d3GoogleAnalytics.tpl -text changed_full/440-447/out/basic/tpl/inc/d3GoogleAnalytics.tpl -text
changed_full/440-447/out/basic/tpl/inc/popup_basket.tpl -text changed_full/440-447/out/basic/tpl/inc/popup_basket.tpl -text
changed_full/440-447/out/basic/tpl/user.tpl -text changed_full/440-447/out/basic/tpl/user.tpl -text
copy_this/admin/d3_cfg_googleanalytics.php -text
copy_this/admin/d3_cfg_googleanalytics_licence.php -text
copy_this/admin/d3_cfg_googleanalytics_list.php -text
copy_this/admin/d3_cfg_googleanalytics_main.php -text
copy_this/modules/d3GoogleAnalytics/menu.xml -text
copy_this/modules/d3GoogleAnalytics/views/d3_oxcmp_utils_googleAnalytics.php -text copy_this/modules/d3GoogleAnalytics/views/d3_oxcmp_utils_googleAnalytics.php -text
setup+doku/Google[!!-~]Analytics-Installation.pdf -text setup+doku/Google[!!-~]Analytics-Installation.pdf -text
setup+doku/adwords_1.png -text setup+doku/adwords_1.png -text
@ -159,3 +166,5 @@ setup+doku/adwords_2.png -text
setup+doku/analytics_1.png -text setup+doku/analytics_1.png -text
setup+doku/analytics_2.png -text setup+doku/analytics_2.png -text
setup+doku/install.txt -text setup+doku/install.txt -text
setup+doku/install_pe_ce.sql -text
setup+doku/update.sql -text

View File

@ -0,0 +1,27 @@
<?php
$sLangName = "Deutsch";
$iLangNr = 0;
// -------------------------------
// RESOURCE IDENTITFIER = STRING
// -------------------------------
$aLang = array(
//Navigation
'charset' => 'ISO-8859-15',
'd3mxd3modules' => 'D³ Module',
'd3mxgoogleanalytics' => 'Google Analytics',
'd3mxgoogleanalytics_settings' => 'Einstellungen',
'd3tbclgoogleanalytics_main' => 'Stamm',
'D3_GOOGLEANALYTICS_CFG_TITLE' => 'Google Analytics Schnittstelle - Einstellungen',
);
/*
[{ oxmultilang ident="GENERAL_YOUWANTTODELETE" }]
*/

View File

@ -0,0 +1,238 @@
[{include file="headitem.tpl" title="D3_GOOGLEANALYTICS_CFG_TITLE"|oxmultilangassign}]
<link rel="stylesheet" type="text/css" href="[{$oViewConf->getResourceUrl() }]d3_mod_cfg.css">
<script type="text/javascript">
<!--
[{ if $updatelist == 1}]
UpdateList('[{ $oxid }]');
[{ /if}]
function UpdateList( sID)
{
var oSearch = parent.list.document.getElementById("search");
oSearch.oxid.value=sID;
oSearch.fnc.value='';
oSearch.submit();
}
function EditThis( sID)
{
var oTransfer = document.getElementById("transfer");
oTransfer.oxid.value=sID;
oTransfer.cl.value='';
oTransfer.submit();
var oSearch = parent.list.document.getElementById("search");
oSearch.actedit.value = 0;
oSearch.oxid.value=sID;
oSearch.submit();
}
function _groupExp(el) {
var _cur = el.parentNode;
if (_cur.className == "exp") _cur.className = "";
else _cur.className = "exp";
}
-->
</script>
<style type="text/css">
<!--
.questbox{
background-color: #07f;
color: white;
float: right;
position: relative;
display: block;
padding: 1px 4px;
font-weight: bold;
z-index: 98;
cursor: help;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 10px;
line-height: 12px;
}
.helptextbox{
background-color: white;
color: black;
border: 1px solid black;
position: absolute;
overflow: hidden;
padding: 5px;
margin-top: 15px;
width: 300px;
z-index: 99;
}
fieldset{
border: 1px inset black;
background-color: #F0F0F0;
}
legend{
font-weight: bold;
}
dl dt{
font-weight: normal;
width: 55%;
}
.ext_edittext {
padding: 2px;
}
td.edittext {
white-space: normal;
}
-->
</style>
[{ if $readonly}]
[{assign var="readonly" value="readonly disabled"}]
[{else}]
[{assign var="readonly" value=""}]
[{/if}]
<form name="transfer" id="transfer" action="[{ $oViewConf->getSelfLink() }]" method="post">
[{ $oViewConf->getHiddenSid() }]
<input type="hidden" name="oxid" value="[{ $oxid }]">
<input type="hidden" name="cl" value="[{ $oViewConf->getActiveClassName() }]">
<input type="hidden" name="actshop" value="[{ $shop->id }]">
<input type="hidden" name="editlanguage" value="[{ $editlanguage }]">
</form>
<form name="myedit" id="myedit" action="[{ $oViewConf->getSelfLink() }]" method="post">
[{ $oViewConf->getHiddenSid() }]
<input type="hidden" name="cl" value="[{ $oViewConf->getActiveClassName() }]">
<input type="hidden" name="fnc" value="save">
<input type="hidden" name="oxid" value="[{ $oxid }]">
<input type="hidden" name="editval[d3_cfg_mod__oxid]" value="[{ $oxid }]">
<table border="0" width="98%">
<tr>
<td valign="top" class="edittext">
<table style="width: 100%">
<tr>
<td style="width:50%; border-right: 1px solid #999;">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="edittext ext_edittext">
[{oxmultilang ident="D3_CFG_MOD_GENERAL_MODULEACTIVE"}]
</td>
<td class="edittext ext_edittext">
<input type="hidden" name="editval[d3_cfg_mod__oxactive]" value='0'>
<input class="edittext ext_edittext" type="checkbox" name="editval[d3_cfg_mod__oxactive]" value='1' [{if $edit->d3_cfg_mod__oxactive->value == 1}]checked[{/if}]>
</td>
</tr>
<tr>
<td class="edittext ext_edittext">
[{if $value->d3_cfg_mod__blMultiVariants_debug == 1}]<span style="font-weight: bold; color: darkred;">[{/if}][{oxmultilang ident="D3_CFG_MOD_GENERAL_DEBUGACTIVE"}][{if $value->d3_cfg_mod__blMultiVariants_debug == 1}]</span>[{/if}]&nbsp;
</td>
<td class="edittext ext_edittext">
<input type="hidden" name="value[d3_cfg_mod__blMultiVariants_debug]" value="0">
<input class="edittext ext_edittext" type="checkbox" name="value[d3_cfg_mod__blMultiVariants_debug]" value='1' [{if $value->d3_cfg_mod__blMultiVariants_debug == 1}]checked[{/if}]>
</td>
</tr>
</table>
</td>
<td>
[{assign var="blD3HasLog" value=$oView->checkD3Log() }]
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="edittext ext_edittext" style="width: 100%;">
[{if $blD3HasLog}]
[{oxmultilang ident="D3_CFG_MOD_GENERAL_MODULELOGGING"}]
[{/if}]
</td>
<td class="edittext ext_edittext" align="left">
[{if $blD3HasLog}]
<select name="editval[d3_cfg_mod__oxismodulelog]" class="edittext">
<option value="0" [{if $edit->d3_cfg_mod__oxismodulelog->value == 0}]selected[{/if}]>[{oxmultilang ident="D3_CFG_MOD_GENERAL_MODULELOGGING_NONE"}]</option>
<option value="1" [{if $edit->d3_cfg_mod__oxismodulelog->value == 1}]selected[{/if}]>[{oxmultilang ident="D3_CFG_MOD_GENERAL_MODULELOGGING_ALL"}]</option>
<option value="2" [{if $edit->d3_cfg_mod__oxismodulelog->value == 2}]selected[{/if}]>[{oxmultilang ident="D3_CFG_MOD_GENERAL_MODULELOGGING_ERRORS"}]</option>
</select>
[{/if}]
</td>
</tr>
<tr>
<td class="edittext ext_edittext" style="width: 100%;">
&nbsp;
</td>
<td class="edittext ext_edittext" align="left">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
</table>
[{if $oView->getValueStatus() == 'error'}]
<hr>
<b>[{oxmultilang ident="D3_CFG_MOD_GENERAL_NOCONFIG_DESC"}]</b><br>
<input type="submit" value="[{oxmultilang ident="D3_CFG_MOD_GENERAL_NOCONFIG_BTN"}]">
</form>
[{else}]
<div class="groupExp">
<div class="">
<a class="rc" onclick="_groupExp(this); return false;" href="#">
<b>
[{oxmultilang ident="D3_MULTIVAR_MAIN"}]
</b>
</a>
<dl>
<dt>
[{oxmultilang ident="D3_MULTIVAR_MAIN_USEAJAX"}]
</dt>
<dd>
<input type="hidden" name="value[d3_cfg_mod__blMultiVariants_useAjax]" value="0">
<input class="edittext ext_edittext" type="checkbox" value="1" name="value[d3_cfg_mod__blMultiVariants_useAjax]" [{if $value->d3_cfg_mod__blMultiVariants_useAjax == 1}]checked[{/if}]>
[{ oxinputhelp ident="D3_MULTIVAR_MAIN_USEAJAX_DESC" }]
</dd>
<div class="spacer"></div>
</dl>
<dl>
<dt>
[{oxmultilang ident="D3_MULTIVAR_MAIN_SEPARATOR"}]
</dt>
<dd>
<input class="edittext ext_edittext" type="text" size="1" maxlength="1" name="value[d3_cfg_mod__sMultiVariants_separator]" value='[{if $value->d3_cfg_mod__sMultiVariants_separator}][{$value->d3_cfg_mod__sMultiVariants_separator}][{else}]|[{/if}]'>
[{ oxinputhelp ident="D3_MULTIVAR_MAIN_SEPARATOR_DESC" }]
</dd>
<div class="spacer"></div>
</dl>
</div>
</div>
<table width="100%">
<tr>
<td class="edittext ext_edittext" align="left"><br>
<span class="d3modcfg_btn icon status_ok">
<input type="submit" name="save" value="[{oxmultilang ident="D3_CFG_MOD_GENERAL_SAVE"}]">
<div></div>
</span>
</td>
</tr>
</table>
[{/if}]
[{include file="bottomitem.tpl"}]
<script type="text/javascript">
if (parent.parent)
{ parent.parent.sShopTitle = "[{$actshopobj->oxshops__oxname->getRawValue()|oxaddslashes}]";
parent.parent.sMenuItem = "[{oxmultilang ident="d3mxmultivariants"}]";
parent.parent.sMenuSubItem = "[{oxmultilang ident="d3tbclmultivariants_main"}]";
parent.parent.sWorkArea = "[{$_act}]";
parent.parent.setTitle();
}
</script>

View File

@ -0,0 +1,30 @@
<?php
/**
* This module is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This module is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* For further informations, see <http://www.gnu.org/licenses/>.
*
* @link http://www.oxidmodule.com
* @link http://www.shopmodule.com
* @copyright (C) D3 Data Development
*/
class d3_cfg_multivariants extends d3_cfg_mod_
{
public function render()
{
$this->_aViewData['sListClass'] = 'd3_cfg_googleanalytics_list';
$this->_aViewData['sMainClass'] = 'd3_cfg_googleanalytics_main';
return parent::render();
}
}

View File

@ -0,0 +1,31 @@
<?php
/**
* This module is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This module is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* For further informations, see <http://www.gnu.org/licenses/>.
*
* @link http://www.oxidmodule.com
* @link http://www.shopmodule.com
* @copyright (C) D3 Data Development
*/
class d3_cfg_googleanalytics_licence extends d3_cfg_mod_licence {
protected $_sModId = 'd3_googleanalytics';
protected $_hasLicence = false;
protected $_hasNewsletterForm = false;
protected $_hasUpdate = true;
}

View File

@ -0,0 +1,35 @@
<?php
/**
* This module is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This module is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* For further informations, see <http://www.gnu.org/licenses/>.
*
* @link http://www.oxidmodule.com
* @link http://www.shopmodule.com
* @copyright (C) D3 Data Development
*/
class d3_cfg_multivariants_list extends d3_cfg_mod_list
{
protected $_blD3ShowLangSwitch = true;
public function render()
{
parent::render();
$this->_aViewData["default_edit"] = "d3_cfg_googleanalytics_main";
return $this->_sThisTemplate;
}
}

View File

@ -0,0 +1,32 @@
<?php
/**
* This module is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This module is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* For further informations, see <http://www.gnu.org/licenses/>.
*
* @link http://www.oxidmodule.com
* @link http://www.shopmodule.com
* @copyright (C) D3 Data Development
*/
class d3_cfg_googleanalytics_main extends d3_cfg_mod_main
{
protected $_sThisTemplate = 'd3_cfg_googleanalytics_main.tpl';
protected $_sModId = 'd3_googleanalytics';
public function checkD3Log()
{
// there are no reasons to log anything
return false;
}
}

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="ISO-8859-15"?>
<OX>
<OXMENU id="d3mxd3modules">
<MAINMENU id="d3mxgoogleanalytics">
<SUBMENU id="d3mxgoogleanalytics_settings" cl="d3_cfg_googleanalytics" list="d3_cfg_googleanalytics_list">
<TAB id="d3tbclgoogleanalytics_main" cl="d3_cfg_googleanalytics_main" />
<TAB id="d3tbcl_licence" cl="d3_cfg_googleanalytics_licence" />
</SUBMENU>
</MAINMENU>
</OXMENU>
</OX>

View File

@ -0,0 +1,2 @@
REPLACE INTO `d3_cfg_mod` (`OXID`, `OXSHOPID`, `OXMODID`, `OXNAME`, `OXACTIVE`, `OXSERIAL`, `OXINSTALLDATE`, `OXVERSION`, `OXSHOPVERSION`, `OXISMODULELOG`, `OXREQUIREMENTS`, `OXVALUE`, `OXVALUE_1`, `OXVALUE_2`, `OXREVISION`, `OXNEWREVISION`) VALUES
('504bcce44c2539d8905980e80630ddf5', 'oxbaseshop', 'd3_googleanalytics', 'Google Analytics', 1, '', NOW(), '2.1.0', 'PE4 / CE4', 0, '', '', '', '', 9, 9);

2
setup+doku/update.sql Normal file
View File

@ -0,0 +1,2 @@
# ==== 2.0.0 PE4 => 2.1.0 PE4 / EE4 / CE4 ====
UPDATE `d3_cfg_mod` SET `OXVERSION` = '2.1.0', `OXINSTALLDATE` = NOW(), `OXREVISION` = '9', `OXNEWREVISION` = '9' WHERE `OXMODID` = 'd3_googleanalytics';