Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Novalnet-Technic committed Nov 10, 2021
0 parents commit ecd34fd
Show file tree
Hide file tree
Showing 1,226 changed files with 147,738 additions and 0 deletions.
1,954 changes: 1,954 additions & 0 deletions info.xml

Large diffs are not rendered by default.

Empty file added version/100/sql/install-100.sql
Empty file.
25 changes: 25 additions & 0 deletions version/1000/adminmenu/info.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* Novalnet payment method module
* This module is used for real time processing of
* Novalnet transaction of customers.
*
* Copyright (c) Novalnet AG
*
* Released under the GNU General Public License
* This free contribution made by request.
* If you have found this script useful a small
* recommendation as well as a comment on merchant form
* would be greatly appreciated.
*
* Script : info.php
*
*/

global $oPlugin, $smarty;

$urlpath = gibShopURL() . '/' . PFAD_PLUGIN . $oPlugin->cVerzeichnis . '/' . PFAD_PLUGIN_VERSION . $oPlugin->nVersion . '/' . PFAD_PLUGIN_PAYMENTMETHOD . 'img/logo.png';
$smarty->assign( 'NN_URL_PATH', gibShopURL() );
$smarty->assign( 'url_path', $urlpath);
print $smarty->fetch( $oPlugin->cAdminmenuPfad . 'template/info.tpl' );
?>
23 changes: 23 additions & 0 deletions version/1000/adminmenu/novalnet_admin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* Novalnet payment method module
* This module is used for real time processing of
* Novalnet transaction of customers.
*
* Copyright (c) Novalnet AG
*
* Released under the GNU General Public License
* This free contribution made by request.
* If you have found this script useful a small
* recommendation as well as a comment on merchant form
* would be greatly appreciated.
*
* Script : novalnet_admin.php
*
*/

global $oPlugin, $smarty;

$smarty->assign( 'NN_URL_PATH', gibShopURL() );
print $smarty->fetch( $oPlugin->cAdminmenuPfad . 'template/novalnet_admin.tpl' );
?>
51 changes: 51 additions & 0 deletions version/1000/adminmenu/order_view.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php
/**
* Novalnet payment method module
* This module is used for real time processing of
* Novalnet transaction of customers.
*
* Copyright (c) Novalnet AG
*
* Released under the GNU General Public License
* This free contribution made by request.
* If you have found this script useful a small
* recommendation as well as a comment on merchant form
* would be greatly appreciated.
*
* Script : order_view.php
*
*/

global $oPlugin, $smarty, $DB;

require_once( 'includes/admininclude.php' );
require_once( PFAD_ROOT . PFAD_ADMIN . PFAD_INCLUDES . 'blaetternavi.php' );
require_once( PFAD_ROOT . PFAD_CLASSES . 'class.JTL-Shop.Bestellung.php' );
require_once( PFAD_ROOT . PFAD_ADMIN . PFAD_INCLUDES . 'bestellungen_inc.php' );

// navigation
$nAnzahlProSeite = 10;
$oBlaetterNaviConf = baueBlaetterNaviGetterSetter(1, $nAnzahlProSeite);

// orders
$nAnzahlBestellungen = $DB->executeQuery("SELECT cNnorderid FROM xplugin_novalnetag_tnovalnet_status", 3);

$oBestellungArr = $DB->executeQuery("SELECT DISTINCT ord.kBestellung FROM tbestellung ord JOIN xplugin_novalnetag_tnovalnet_status nov WHERE ord.cBestellNr = nov.cNnorderid ORDER BY ord.kBestellung DESC {$oBlaetterNaviConf->cSQL1}", 2);

// fill
foreach ($oBestellungArr as &$oBestellung) {
$oBestellung = new Bestellung($oBestellung->kBestellung);
$oBestellung->fuelleBestellung(1, 0);
}

// navigation
$oBlaetterNaviUebersicht = baueBlaetterNavi($oBlaetterNaviConf->nAktuelleSeite1, $nAnzahlBestellungen, $nAnzahlProSeite);
$status = array('5' => 'teilversendet','4' => 'versendet', '3' => 'bezahlt', '2' => 'in Bearbeitung' , '1' => 'offen' , '-1' => 'Storno');
$smarty->assign( array (
'oBestellung_arr' => $oBestellungArr,
'oBestellung_status' => $status,
'oBlaetterNaviUebersicht' => $oBlaetterNaviUebersicht,
'ordersPathDir' => gibShopURL() . '/' . PFAD_PLUGIN . $oPlugin->cVerzeichnis . '/' . PFAD_PLUGIN_VERSION . $oPlugin->nVersion . '/' . PFAD_PLUGIN_PAYMENTMETHOD));

print $smarty->fetch( $oPlugin->cAdminmenuPfad . 'template/order_view.tpl' );
?>
28 changes: 28 additions & 0 deletions version/1000/adminmenu/template/info.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<table class="info">
<tr>
<td align="center" valign="top" width="10%">
<a href="https://www.novalnet.de/" target="_blank">
<img src="{$url_path}" alt="Novalnet AG" title="Novalnet AG" title="Novalnet AG" />
</a>
</td>
<td>
Als ein f&uuml;hrendes Unternehmen im Bereich Bezahldienstleistungen, ist es unser Ziel, unseren Kunden die beste und passendste Unterst&uuml;tzung zu bieten, sowohl f&uuml;r Technik und Verkauf als auch f&uuml;r die optimale Sicherheit Ihrer Daten. Unsere Payment-L&ouml;sungen sind so eingerichtet, dass sie im "Click-and-Go-Modus" voll in Ihren Shop integriert werden k&ouml;nnen. Unsere integrierten Payment-L&ouml;sungen sind benutzerfreundlich und lassen sich einfach in jedem Webshop oder in ein selbst entwickelten System integrieren. Auf diesem Weg bieten wir Ihnen viele einfache Optionen, unser System zu integrieren und dabei Zeit und Geld im technischen Bereich zu sparen. <br /><br />
Falls Sie weitere Informationen ben&ouml;tigen, k&ouml;nnen Sie unser Online-Portal f&uuml;r Endkunden unter <a href="https://card.novalnet.de/">https://card.novalnet.de/</a> rund um die Uhr besuchen oder unser Verkaufsteam <b><a href="mailto:sales@novalnet.de">(sales@novalnet.de)</a></b> kontaktieren.
</td>
</tr>
<tr>
<td align="center" valign="top" width="10%"></td>
<td>
Bitte konfigurieren Sie die Zahlungsarten &uuml;ber <a href="{$NN_URL_PATH}/admin/zahlungsarten.php">Kaufabwicklung -> Zahlungsarten</a> vollst&auml;ndig und f&uuml;gen Sie diese &uuml;ber <a href="{$NN_URL_PATH}/admin/versandarten.php">Kaufabwicklung -> Versandarten</a> zu den gew&uuml;nschten Versandarten hinzu!
</td>
</tr>
</table>
<script>
// <!--
{literal}
$(document).ready(function() {
$('#content > div.block').prepend('<a href="https://www.novalnet.de" target="_blank"><img style="float: right;" src={/literal}"{$url_path}"{literal} title="Novalnet AG" alt="Novalnet AG"/></a>');
});
{/literal}
// -->
</script>
13 changes: 13 additions & 0 deletions version/1000/adminmenu/template/novalnet_admin.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<link rel='stylesheet' type='text/css' href="{$ordersPathDir}css/novalnet_admin.css">
<label class="nn_map_header">
Loggen Sie sich hier mit Ihren Novalnet H&auml;ndler-Zugangsdaten ein. Um neue Zahlungsarten zu aktivieren, kontaktieren Sie bitte <a href="mailto:support@novalnet.de" style="font-weight: bold; color:#fff;cursor:pointer;">support@novalnet.de</a>
</label>
<iframe id="nn_iframe" frameborder="0"></iframe>
<script>
{literal}
$(document).ready(function() {
$('#nn_iframe').attr('src','https://admin.novalnet.de');
$('#nn_iframe').css({height:$(window).height(),width:$(window).width()});
});
{/literal}
</script>
59 changes: 59 additions & 0 deletions version/1000/adminmenu/template/order_view.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{if $oBestellung_arr|@count > 0 && $oBestellung_arr}
<div class=" block clearall">
<div class="left">
{if $oBlaetterNaviUebersicht->nAktiv == 1}
<div class="pages tright">
<span class="pageinfo">{#page#}: <strong>{$oBlaetterNaviUebersicht->nVon}</strong> - {$oBlaetterNaviUebersicht->nBis} {#from#} {$oBlaetterNaviUebersicht->nAnzahl}</span>
<a class="back" href="plugin.php?kPlugin={$oPlugin->kPlugin}&cPluginTab=Novalnet-Bestellungen&s1={$oBlaetterNaviUebersicht->nVoherige}{if isset($cSuche) && $cSuche|count_characters > 0}&cSuche={$cSuche}{/if}">&laquo;</a>
{if $oBlaetterNaviUebersicht->nAnfang != 0}<a href="plugin.php?kPlugin={$oPlugin->kPlugin}&cPluginTab=Novalnet-Bestellungen&s1={$oBlaetterNaviUebersicht->nAnfang}{if isset($cSuche) && $cSuche|count_characters > 0}&cSuche={$cSuche}{/if}">{$oBlaetterNaviUebersicht->nAnfang}</a> ... {/if}
{foreach name=blaetternavi from=$oBlaetterNaviUebersicht->nBlaetterAnzahl_arr item=Blatt}
<a class="page {if $oBlaetterNaviUebersicht->nAktuelleSeite == $Blatt}active{/if}" href="plugin.php?kPlugin={$oPlugin->kPlugin}&cPluginTab=Novalnet-Bestellungen&s1={$Blatt}{if isset($cSuche) && $cSuche|count_characters > 0}&cSuche={$cSuche}{/if}">{$Blatt}</a>
{/foreach}

{if $oBlaetterNaviUebersicht->nEnde != 0}
... <a class="page" href="plugin.php?kPlugin={$oPlugin->kPlugin}&cPluginTab=Novalnet-Bestellungen&s1={$oBlaetterNaviUebersicht->nEnde}{if isset($cSuche) && $cSuche|count_characters > 0}&cSuche={$cSuche}{/if}">{$oBlaetterNaviUebersicht->nEnde}</a>
{/if}
<a class="next" href="plugin.php?kPlugin={$oPlugin->kPlugin}&cPluginTab=Novalnet-Bestellungen&s1={$oBlaetterNaviUebersicht->nNaechste}{if isset($cSuche) && $cSuche|count_characters > 0}&cSuche={$cSuche}{/if}">&raquo;</a>
</div>
{/if}
</div>
</div>
<div class="category">Bestellungen</div>
<script type = "text/javascript" src="{$ordersPathDir}/js/novalnet_admin.js" ></script>
<table class="list">
<thead>
<tr>
<th>Bestellnummer</th>
<th class="tleft">Kunde</th>
<th class="tleft">Zahlungsart</th>
<th class="tleft">Status</th>
<th>Abgeholt durch Wawi</th>
<th>Warensumme</th>
<th class="tcenter">Bestelldatum</th>
</tr>
</thead>
<tbody>

{foreach name=bestellungen from=$oBestellung_arr item=oBestellung}
<tr class="tab_bg{$smarty.foreach.bestellungen.iteration%2}">
{assign var = bestellen value = $oBestellung->cBestellNr}
<td id="order" class="tcenter"><span style="cursor:pointer;text-decoration:underline" onclick="admin_order_display('{$bestellen}') ;">{$oBestellung->cBestellNr}</span></td>
<td class="tleft">{if $oBestellung->oKunde->cVorname || $oBestellung->oKunde->cNachname || $oBestellung->oKunde->cFirma}{$oBestellung->oKunde->cVorname} {$oBestellung->oKunde->cNachname}{if isset($oBestellung->oKunde->cFirma) && $oBestellung->oKunde->cFirma|count_characters > 0} ({$oBestellung->oKunde->cFirma}){/if}{else}- Kein Kundenkonto -{/if}</td>
<td class="tleft">{$oBestellung->cZahlungsartName}</td>
{assign var = status value = $oBestellung->cStatus|string_format:"%d"}
<td class="tleft">{$oBestellung_status.$status}</td>
<td class="tcenter">{if $oBestellung->cAbgeholt == "Y"}{#yes#}{else}{#no#}{/if}</td>
<td class="tcenter">{$oBestellung->WarensummeLocalized[0]}</td>
<td class="tcenter">{$oBestellung->dErstelldatum_de}</td>
<input type="hidden" name="nn_order_no" id="nn_order_no" value="{$oBestellung->cBestellNr}">
</tr>
{/foreach}
</tbody>
</table>
{/if}

<link rel='stylesheet' type='text/css' href="{$ordersPathDir}/css/novalnet_admin.css">
<div class="adminCover">&nbsp;</div>
{foreach name=bestellungen from=$oBestellung_arr item=oBestellung}
<div id='admin_order_display_block' style='display:none;' class='overlay_window_block'></div>
{/foreach}
7 changes: 7 additions & 0 deletions version/1000/novalnet version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#########################################################
# #
# Copyright ( c ) Novalnet AG #
# #
# Version: 10.0.0 06-07-2015 #
# #
#########################################################
Loading

0 comments on commit ecd34fd

Please sign in to comment.