mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-11 06:17:27 +02:00
Adding cms text into registration formular
This commit is contained in:
parent
5c6a3111ee
commit
5d2af155f2
6 changed files with 138 additions and 147 deletions
|
@ -1098,20 +1098,19 @@ sub booking_update(){
|
|||
response_text => "Der Mietstatus wurde nicht geändert.",
|
||||
};
|
||||
|
||||
my $pref = {
|
||||
table => "contenttrans",
|
||||
table_pos => "contenttranspos",
|
||||
fetch => "one",
|
||||
template_id => "218",#Mietjournal tpl_id
|
||||
my $record_pos = { c_id => 0 };
|
||||
my $booking_pos = {
|
||||
table => "contenttranspos",
|
||||
fetch => "one",
|
||||
barcode => $bike_id,
|
||||
ca_id => "$auth->{c_id}",
|
||||
"ct.close_time" => "is::null",
|
||||
#txt10 => "IN::('occupied','requested')",
|
||||
ca_id => $auth->{c_id},
|
||||
int10 => "IN::('3','2')",
|
||||
};
|
||||
|
||||
my $record_pos = { c_id => 0 };
|
||||
$record_pos = $dbt->collect_post($dbh,$pref) if($q->param('bike'));
|
||||
$record_pos = $dbt->fetch_tablerecord($dbh,$booking_pos) if($bike_id > 0 && $auth->{c_id} > 0);
|
||||
if(!$record_pos->{c_id}){
|
||||
$booking_values->{response_state} = "Failure 758: Can not find bike " . $q->param('bike') . " rental or reservation";
|
||||
$booking_values->{response_text} = "Keine Miete oder Reservierung zu Rad " . $q->param('bike') . " gefunden.";
|
||||
}
|
||||
|
||||
my $pref_cc = {
|
||||
table => "content",
|
||||
|
@ -1166,7 +1165,7 @@ sub booking_update(){
|
|||
my $gps_age_minutes = "";
|
||||
$gps_age_minutes = $gps_data->{gps_age_minutes} if($q->param('gps_age'));
|
||||
|
||||
my $logvalues = "state=$state, lock_state=$lock_state, lock_charge=$lock_charge, gps=$gps_data->{gps}, gps_age_minutes=$gps_age_minutes";
|
||||
my $logvalues = "pos_id=$record_pos->{c_id}, state=$state, lock_state=$lock_state, lock_charge=$lock_charge, gps=$gps_data->{gps}, gps_age_minutes=$gps_age_minutes";
|
||||
my $logging = "log booking_update bike=$bike, userID=$auth->{c_id}, $logvalues";
|
||||
$bw->log("$logging",$auth->{c_id},"");
|
||||
|
||||
|
|
|
@ -435,7 +435,7 @@ EOF
|
|||
}elsif($key =~ /int20/ && "$size" eq "select"){#lock_state locked/unlocked
|
||||
my @_lock_valxx = ();
|
||||
foreach my $s_key (sort keys (%{ $dbt->{copri_conf}->{lock_state} })) {
|
||||
push @_lock_valxx, "$s_key:$dbt->{copri_conf}->{lock_state}->{$s_key}" if($s_key =~ /1|2/);
|
||||
push @_lock_valxx, "$s_key:$dbt->{copri_conf}->{lock_state}->{$s_key}";
|
||||
}
|
||||
print $q->Tr();
|
||||
print $q->td({-class=>'left_italic_cms'},"$des"),"\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue