+
+
📞 Firemní telefonní seznam
+
Poppe + Potthoff kontakty
+
+
+
+
+
+
📞 Firemní telefonní seznam
+
Poppe + Potthoff kontakty
+
+
+
+
`)
+ // Formátování dat a časů pro zobrazení
formattedDateStart := ""
if parsedDateStart.IsZero() == false {
monthNameStart := czechMonths[parsedDateStart.Month()-1]
@@ -499,6 +343,7 @@ func sendEmail(entry TripEntry, parsedDateStart, parsedDateEnd time.Time, czechM
formattedDateEnd = entry.DateEnd
}
+ // Výpočet celkové doby jízdy
startDateTime, startErr := time.Parse("2006-01-02T15:04", fmt.Sprintf("%sT%s", entry.DateStart, entry.TimeStart))
endDateTime, endErr := time.Parse("2006-01-02T15:04", fmt.Sprintf("%sT%s", entry.DateEnd, entry.TimeEnd))
@@ -524,6 +369,7 @@ func sendEmail(entry TripEntry, parsedDateStart, parsedDateEnd time.Time, czechM
}
}
+ // Vypsání informací o řidiči a vozidle
htmlContent.WriteString(`
Informace o řidiči a vozidle
@@ -538,6 +384,7 @@ func sendEmail(entry TripEntry, parsedDateStart, parsedDateEnd time.Time, czechM
`)
+ // Vypsání informací o trase
htmlContent.WriteString(`
Informace o trase
@@ -552,6 +399,7 @@ func sendEmail(entry TripEntry, parsedDateStart, parsedDateEnd time.Time, czechM
`)
+ // Vypsání informací o času
htmlContent.WriteString(`
Časové údaje
@@ -570,6 +418,7 @@ func sendEmail(entry TripEntry, parsedDateStart, parsedDateEnd time.Time, czechM
`)
+ // Vypsání informací o kilometrech
htmlContent.WriteString(`
Stav tachometru
@@ -620,11 +469,3 @@ func sendEmail(entry TripEntry, parsedDateStart, parsedDateEnd time.Time, czechM
return d.DialAndSend(m)
}
-
-func handleContacts(w http.ResponseWriter, r *http.Request) {
- // Implement contact listing logic
-}
-
-func handleReload(w http.ResponseWriter, r *http.Request) {
- // Implement contact reload logic
-}