mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-10 14:06:26 +02:00
operator standalone fix and adding example db.sql
This commit is contained in:
parent
5b32d2b7f5
commit
941f8a04aa
17 changed files with 44 additions and 96 deletions
|
@ -13,7 +13,6 @@ use DateTime::Format::Pg;
|
|||
use Lib::Config;
|
||||
use Mod::Buttons;
|
||||
use Mod::Libenz;
|
||||
use Mod::Libenzdb;
|
||||
use Mod::DBtank;
|
||||
use Mod::APIfunc;
|
||||
use Mod::Pricing;
|
||||
|
@ -39,7 +38,6 @@ sub tpl(){
|
|||
my $q = new CGI;
|
||||
my $cf = new Config;
|
||||
my $lb = new Libenz;
|
||||
my $db = new Libenzdb;
|
||||
my $dbt = new DBtank;
|
||||
my $apif = new APIfunc;
|
||||
my $pri = new Pricing;
|
||||
|
@ -55,7 +53,6 @@ sub tpl(){
|
|||
}
|
||||
my $dbh = "";#$dbt->dbconnect();
|
||||
my $user_agent = $q->user_agent();
|
||||
my %ib = $but->ibuttons_arch();
|
||||
my @viewsel = split /\//,$1 if($path =~ /^\/(.*)/);
|
||||
my $red = "red";
|
||||
|
||||
|
@ -109,8 +106,6 @@ Weitere Personen aus Ihrem Haushalt profitieren jedoch ebenfalls, falls Sie weit
|
|||
$cttpos_count++;
|
||||
}
|
||||
|
||||
#$ctt = $db->collect_content2("contenttrans","int10",$ctrel->{c_id}) if($ctrel->{c_id});
|
||||
#
|
||||
#loop operator hash to get invoices for each operator
|
||||
my $ctt_all = {};
|
||||
my $ctadrcoupon = {};
|
||||
|
@ -147,15 +142,15 @@ Weitere Personen aus Ihrem Haushalt profitieren jedoch ebenfalls, falls Sie weit
|
|||
|
||||
my $tpl_id = $node_meta->{tpl_id};
|
||||
#$tpl_id = "302004" if($viewsel[1] =~ /Mieten/ && $ctrel->{c_id});
|
||||
my $tpl = $db->get_tpl($tpl_id);
|
||||
my $tpl = $dbt->get_tpl($dbh,$tpl_id);
|
||||
my $tpl01 = $tpl;#If nothing else, because of tpl_name Title in split_lates
|
||||
my $tpl02 = "";
|
||||
my @split_lates = ("$tpl->{tpl_order}");
|
||||
my $template01 = "$tpl_id" . "001";
|
||||
my $template02 = "$tpl_id" . "002";
|
||||
if($tpl_id < 999){
|
||||
$tpl01 = $db->get_tpl($template01);
|
||||
$tpl02 = $db->get_tpl($template02);
|
||||
$tpl01 = $dbt->get_tpl($dbh,$template01);
|
||||
$tpl02 = $dbt->get_tpl($dbh,$template02);
|
||||
@split_lates = ("$tpl01->{tpl_order}","$tpl02->{tpl_order}");
|
||||
}
|
||||
my $now_dt = strftime "%Y-%m-%d %H:%M", localtime;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue