% Template for 1 entry
%% Replacements: Look for \textcolor{red}{} and DATABLOCK
\documentclass[11pt,fleqn,oneside,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{ifthen}
\usepackage[ngerman]{babel}
\usepackage{textcomp}
\usepackage{fancyhdr}
\pagestyle{fancy}

% page layout
\setlength{\paperwidth}{210mm}                   
\setlength{\paperheight}{297mm}
\setlength{\voffset}{0mm}
\setlength{\hoffset}{0mm}
\setlength{\oddsidemargin}{0mm}
\setlength{\evensidemargin}{0mm}
\setlength{\marginparsep}{1.5mm}
\setlength{\marginparwidth}{60mm}
\setlength{\marginparpush}{1mm}
\setlength{\parindent}{0cm} %% avoid indent on new paragraph           
\setlength{\oddsidemargin}{-17.9mm}
\setlength{\headsep}{3mm}
\setlength{\headheight}{8mm}
\setlength{\topskip}{0mm}
\setlength{\topmargin}{-18mm}
\setlength{\footskip}{-1mm}
\setlength{\headwidth}{189mm}
\setlength{\textwidth}{189mm}
\setlength{\textheight}{261.5mm}
\renewcommand{\baselinestretch}{1}

% rulewidth 
\renewcommand{\headrulewidth}{0.25mm}
\renewcommand{\footrulewidth}{0.25mm}
\setlength{\fboxrule}{0.1mm}

% command for a newpage
\newcommand{\sophomorixnewpage}[9]{
\newpage
\lhead{\bf Zugangsdaten}
\chead{\LARGE \bf #1}
\rhead{\bf \large \today}
\lfoot{\textcolor{red}{SCHOOL-LONGNAME}}
\cfoot{}
\rfoot{\textcolor{red}{FILENAME}}
}

% command to create entry
\newcommand{\sophomorixdatabox}[9]{
Guten Tag #2 #1,

\vspace{2mm}

Der/Die Netzwerkbetreuer/in 

\textcolor{red}{ADMINS-PRINT}

heißen Sie an der Schule \textbf{\textcolor{red}{SCHOOL-LONGNAME}} willkommen.

\vspace{2mm}

Hier sind Ihre Zugangsdaten zum pädagogischen Netz. 

Bitte ändern Sie Ihr Passwort möglichst bald in der Schulkonsole (siehe unten).

\begin{center}
\fbox{
\begin{minipage}[b][53,98mm][c]{85,6mm} % scheckkarte
\begin{center}
\Large #1, #2 \par Klasse: #6 \par Login: #3 \par Erst-Passwort: #4 \par Schule: \textcolor{red}{SCHOOL-LONGNAME}
\end{center}
\end{minipage}
}
\end{center}

\kern 3mm \hrule width \hsize height 0.25mm \kern 0.5mm \hrule width \hsize height 0.25mm \kern 3mm
Anmeldung an einem Rechner im pädagogischen Netz:\\[-7mm]

\begin{tabbing}
\qquad Benutzername:\qquad \= \texttt{#3} \\
\qquad Kennwort:     \> \texttt{#4} \\
\qquad Domäne:       \> \texttt{#9} (falls erforderlich)\\
\end{tabbing}
\vspace{-9mm}
\kern 3mm \hrule width \hsize height 0.25mm \kern 0.5mm \hrule width \hsize height 0.25mm \kern 3mm

Startseite (Landing Page) für die Schule:\\[-7mm] 
\begin{tabbing}
\qquad URL:\qquad\qquad \= \texttt{\textcolor{red}{URLSTART\_PRINT}} \\
\qquad \textcolor{red}{URLSTART\_COMMENT\_PRINT} \\
\end{tabbing}
\vspace{-9mm}
\kern 3mm \hrule width \hsize height 0.25mm \kern 0.5mm \hrule width \hsize height 0.25mm \kern 3mm

\medskip

\rule{\linewidth}{0.25mm}
Pädagogische Funktionen mit der Schulkonsole im Intranet:\\[-7mm] 
\begin{tabbing}
\qquad URL:\qquad\qquad \= \texttt{\textcolor{red}{URLSCHUKO\_PRINT}} \\
\qquad \textcolor{red}{URLSCHUKO\_COMMENT\_PRINT} \\
\end{tabbing}
\vspace{-9mm}
\rule{\linewidth}{0.25mm}

Abruf der schulischen E-Mail:\\[-7mm] 
\begin{tabbing}
\qquad URL:\qquad\qquad \= \texttt{\textcolor{red}{URLMAIL\_PRINT}} \\
\qquad \textcolor{red}{URLMAIL\_COMMENT\_PRINT} \\
\end{tabbing}
\vspace{-9mm}
\rule{\linewidth}{0.25mm}

Lernplattform mit Moodle:\\[-7mm]
\begin{tabbing}
\qquad URL:\qquad\qquad \= \texttt{\textcolor{red}{URLMOODLE\_PRINT}} \\
\qquad \textcolor{red}{URLMOODLE\_COMMENT\_PRINT} \\
\end{tabbing}
\vspace{-9mm}
\rule{\linewidth}{0.25mm}
}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

% DATABLOCK START
\sophomorixnewpage{maiersa42}{}{}{}{}{}{}{}{}%
\sophomorixdatabox{Maier}{Sarina}{maiersa42}{EkqLjsjd6p}{bsz}{7a}{student}{20170905165452.0Z}{LINUXMUSTER}%
\sophomorixnewpage{muellegr42}{}{}{}{}{}{}{}{}%
\sophomorixdatabox{Müller}{Sarina}{muellegr42}{AkqLjsjd6p}{bsz}{8a}{teacher}{20170906165452.0Z}{LINUXMUSTER}%
% DATABLOCK END

\end{document}
