Skip to content
Snippets Groups Projects
Commit e7bf12ca authored by Tim Repke's avatar Tim Repke
Browse files

export of bank account list is finished

parent 1be994ab
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,31 @@ function genTreff(){ ...@@ -71,7 +71,31 @@ function genTreff(){
} }
function genKonto(){ function genKonto(){
global $header, $footer, $admin_db, $config_current_fahrt_id;
$people = $admin_db->select('bachelor',["forname", "sirname"], ["fahrt_id"=>$config_current_fahrt_id]);
$tabdata = [];
foreach($people as $p){
array_push($tabdata, [$p['forname']." ".$p['sirname']," "," "," "," "]);
}
// leerfelder (just in case)
for($run = 0; $run < 8; $run++){
array_push($tabdata, ["&nbsp;","&nbsp;","&nbsp;","&nbsp;","&nbsp;"]);
}
$tabconf = ["colwidth" => ["25%", "30%", "25%", "15%", "5%"],
"cellheight" => "35pt",
"class" => [3=>"graycell", 4=>"graycell"]];
printTable(["Name", "Kontonummer/IBAN", "Bankleitzahl/BIC", "Betrag*", "Erl*"], $tabdata, $tabconf);
$data = getFahrtInfo();
$header = "
<h1>Kontodaten für Rücküberweisung</h1>
Diese Liste verbleibt bei dem/der Fahrtverantwortlichen <u>".$data['leiter']."</u> und wird benötigt um die Förderung und den Differenzbetrag nach der Fahrt zurück zu überweisen.<br />
<b>Graue/mit Sternchen gekennzeichnete Fehler freilassen</b> (Trolle bekommen kein Geld!!)";
$footer = "Kontodaten (Rücküberweisung) - ".$data['titel'];
} }
function genUnter(){ function genUnter(){
...@@ -90,7 +114,7 @@ function printTable($headers, $data, $tabconf = []){ ...@@ -90,7 +114,7 @@ function printTable($headers, $data, $tabconf = []){
$text.=" $text.="
</tr> </tr>
</thead> </thead>
<tbody>";for($i=0; $i<10; $i++){ // FIXME entfernen! nur zu Testzwecken... <tbody>";
foreach($data as $dr){ foreach($data as $dr){
$text .= "<tr>"; $text .= "<tr>";
$cell = 0; $cell = 0;
...@@ -99,7 +123,7 @@ function printTable($headers, $data, $tabconf = []){ ...@@ -99,7 +123,7 @@ function printTable($headers, $data, $tabconf = []){
$cell++; $cell++;
} }
$text .= "</tr>"; $text .= "</tr>";
}} }
$text .=" $text .="
</tbody> </tbody>
</table>"; </table>";
...@@ -107,13 +131,16 @@ function printTable($headers, $data, $tabconf = []){ ...@@ -107,13 +131,16 @@ function printTable($headers, $data, $tabconf = []){
function cellStyle($tabconf, $cell){ function cellStyle($tabconf, $cell){
$ret = ""; $ret = "";
if(isset($tabconf['cellheight']) || isset($tabconf['colwidth'])){ if(isset($tabconf['cellheight']) || isset($tabconf['colwidth']) || isset($tabconf['class'])){
$ret .= " style='"; $ret .= " style='";
if(isset($tabconf['cellheight'])) if(isset($tabconf['cellheight']))
$ret .= "height:".$tabconf['cellheight'].";"; $ret .= "height:".$tabconf['cellheight'].";";
if(isset($tabconf['colwidth']) && isset($tabconf['colwidth'][$cell])) if(isset($tabconf['colwidth']) && isset($tabconf['colwidth'][$cell]))
$ret .= "width:".$tabconf['colwidth'][$cell].";"; $ret .= "width:".$tabconf['colwidth'][$cell].";";
$ret .= "'"; $ret .= "'";
if(isset($tabconf['class']) && isset($tabconf['class'][$cell]))
$ret .= " class='".$tabconf['class'][$cell]."'";
} }
return $ret; return $ret;
} }
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
table { table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0;
} }
.dattable table, .dattable th, .dattable td { .dattable table, .dattable th, .dattable td {
...@@ -56,6 +57,29 @@ ...@@ -56,6 +57,29 @@
vertical-align: top; vertical-align: top;
} }
.graycell{
background-color: transparent;
overflow: hidden;
z-index: 1;
border-right: 0;
border-bottom: 0;
}
.graycell:before{
content: "";
padding: 0;
height: 1px;
line-height: 1px;
width: 1px;
margin: -4px -994px -996px -6px;
display: block;
border: 0;
z-index: -1;
position:relative;
top: -500px;
border-top: 999px solid #d3d3d3;
border-left: 999px solid #d3d3d3;;
}
} }
@page { @page {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment