mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-12 14:56:28 +02:00
DB update and some minor fixes
This commit is contained in:
parent
6dcd411a53
commit
000acb8e35
8 changed files with 19 additions and 12 deletions
|
@ -66,7 +66,7 @@ sub fetch_merchant {
|
|||
my $q = shift;
|
||||
my $varenv = shift;
|
||||
my $req_coo = shift || "";
|
||||
my $req_merchant_id = shift || "$dbt->{appsframe}->{'sharee.bike'}->{merchant_id}";#defaults to sharee.bike
|
||||
my $req_merchant_id = shift || "";#"$dbt->{appsframe}->{'sharee.bike'}->{merchant_id}";#defaults to sharee.bike
|
||||
|
||||
my $return = {
|
||||
aowner => "",
|
||||
|
|
|
@ -512,10 +512,10 @@ sub singlesubmit2glyph(){
|
|||
my $a_key = "";
|
||||
$a_key = "y" if("$b_name" =~ /save/);
|
||||
my $b_img = "";
|
||||
$b_img = "<span class='bi bi-check-circle' style='font-size:1.5em;'</span>" if("$b_name" =~ /save/);
|
||||
$b_img = "<span class='bi bi-x-circle' style='font-size:1.5em;'</span>" if("$b_name" =~ /delete|remove/);
|
||||
$b_img = "<span class='bi bi-file-earmark-plus-fill' style='font-size:1.5em;'</span>" if("$b_name" =~ /new/);
|
||||
$b_img = "<span class='bi bi-file-earmark-text-fill' style='font-size:1.5em;'</span>" if("$b_name" =~ /open|client/);
|
||||
$b_img = "<span class='bi bi-check-circle' style='font-size:1.5em;'></span>" if("$b_name" =~ /save/);
|
||||
$b_img = "<span class='bi bi-x-circle' style='font-size:1.5em;'></span>" if("$b_name" =~ /delete|remove/);
|
||||
$b_img = "<span class='bi bi-file-earmark-plus-fill' style='font-size:1.5em;'></span>" if("$b_name" =~ /new/);
|
||||
$b_img = "<span class='bi bi-file-earmark-text-fill' style='font-size:1.5em;'></span>" if("$b_name" =~ /open|client/);
|
||||
my $button = "<span style='width:25px;height=15px;'> </span>";
|
||||
if($b_name){
|
||||
if("$b_name" =~ /delete/){
|
||||
|
|
|
@ -1331,10 +1331,11 @@ sub collect_theftpos {
|
|||
}
|
||||
|
||||
$where .= " ORDER BY cp.c_id DESC LIMIT $search->{limit} OFFSET $search->{offset}" if($search->{limit});
|
||||
my $sth = $dbh->prepare("SELECT cp.* from $search->{table} cp $where");
|
||||
my $sql = "SELECT cp.* from $search->{table_pos} cp $where";
|
||||
my $sth = $dbh->prepare($sql);
|
||||
my $rc = $sth->execute();
|
||||
my $ct = $sth->fetchall_hashref("c_id");
|
||||
$sth->finish;
|
||||
$bw->log("collect_theftpos",$sql,"") if($debug);
|
||||
return $ct;
|
||||
}
|
||||
|
||||
|
|
|
@ -726,7 +726,7 @@ sub handler {
|
|||
exit 0;
|
||||
}
|
||||
}
|
||||
elsif(!$users_sharee->{c_id} && !$R::logedout && ($path !~ /$varenv{mandant}\/Anmelden|$varenv{mandant}\/Account/)){
|
||||
elsif(!$users_sharee->{c_id} && !$R::logedout && ($path !~ /$varenv{mandant}\/Karte|$varenv{mandant}\/Anmelden|$varenv{mandant}\/Account|$varenv{mandant}\/Kontakt/)){
|
||||
print redirect("$varenv{wwwhost}?logedout=1$session_and");
|
||||
exit 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue