Skip to content

Commit

Permalink
layout tippspiel
Browse files Browse the repository at this point in the history
  • Loading branch information
dwblmo committed Jul 20, 2023
1 parent 120bdf2 commit bbee21c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 36 deletions.
4 changes: 0 additions & 4 deletions lmo/addon/tipp/lmo-admintippoptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@
<div class="col-4 text-end"><?php echo $text['tipp'][172]; ?></div>
<div class="col-1 text-start"><input type="checkbox" class="form-check-input" name="xtipptabelle1" onClick="dolmoedit()"<?php if($tipp_tipptabelle1==1){echo " checked";}?>></div>
</div>
<div class="row pb-2">
<div class="col-4 text-end"><?php echo $text[133]; ?></div>
<div class="col-1 text-start"><input type="checkbox" class="form-check-input" name="xtippfieber" onClick="dolmoedit()"<?php if($tipp_tippfieber==1){echo " checked";}?>></div>
</div>
<div class="row pb-2">
<div class="col-4 text-end"><?php echo $text['tipp'][56]; ?></div>
<div class="col-1 text-start"><input type="checkbox" class="form-check-input" name="xgesamt" onClick="dolmoedit()"<?php if($tipp_gesamt==1){echo " checked";}?>></select>
Expand Down
32 changes: 18 additions & 14 deletions lmo/addon/tipp/lmo-tippeinsicht.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
if ($von != $start) {
echo "<td align='center'><a href=\"".$addt3.$von."\">";
} else {
echo "<td align='center'>";
echo "<td align='center' class=\"nobr\">";
}
$k1 = strtolower(substr($tippernick[intval(substr($tab0[$von], -6))], 0, 3));
$k2 = strtolower(substr($tippernick[intval(substr($tab0[$bis], -6))], 0, 3));
Expand All @@ -95,7 +95,7 @@
</div><?php } /* ende if($tipp_anzseiten>1) */?>
<div class="row">
<div class="col">
<table class="table table-hover" ><?php $tab1 = array("");
<table class="table table-hover"><?php $tab1 = array("");
$nw = 0;
$ende = $start+$tipp_anzseite;
if ($ende > $anztipper) {
Expand All @@ -105,7 +105,7 @@
$tab0 = array("");
}
//if($anztipper<1){exit;}
for($l = $start-1; $l <= ($ende+1); $l++) {
for($l = $start-1; $l <= ($ende+2); $l++) {
if ($l >= $start && $l < $ende) {
$k = intval(substr($tab0[$l], -6));
}
Expand Down Expand Up @@ -172,11 +172,10 @@
}
}
}
if ($l == ($start-1) || $l == ($ende+1)) {?>
if ($l == ($start-1) || $l == ($ende+2)) {?>
<th scope="col"><?php if ($n == 0) {
echo $teamk[$teama[$st-1][$i]];
echo $teamk[$teama[$st-1][$i]]."<br/>";
}
echo "<br>";
if ($lmtype != 0) {
if ($mtipp[$st-1][$i][$n] == 1) {
echo "<acronym title='".$text['tipp'][231]."'><del>";
Expand All @@ -196,9 +195,8 @@
$nw = 1;
}
}
echo "<br>";
if ($n == 0) {
echo $teamk[$teamb[$st-1][$i]];
echo "<br/>".$teamk[$teamb[$st-1][$i]];
}?>
</th><?php
} elseif($l<$ende) {
Expand Down Expand Up @@ -380,21 +378,27 @@
} /* ende for($i=0;$i<$anzsp;$i++) */

if($l>=$start && $l<$ende){?>
<td><?php echo $punktetipper?></td><?php
<td><?php echo $punktetipper?></td>
<td>&nbsp; <?php if($tipp_tipptabelle1==1 && $l>=$start && $l<$ende && $lmtype==0){?>
<a href="<?php echo $addt.rawurlencode($tippernick[$k])?>" title="<?php echo $text['tipp'][181]." ".$tippernick[$k]?>"><?php echo $text['tipp'][172]?></a><?php
}?>
</td><?php
} elseif ($l==$start-1) {?>
<th valign="bottom"><?php echo $text[37];?></th><?php
} elseif ($l==$ende+1) {?>
<th valign="top"><?php echo $text[37];?></th><?php
<th scope="col"><?php echo $text[37];?></th>
<th>&nbsp;</th><?php
} elseif ($l==$ende+2) {?>
<th scope="col"><?php echo $text[37];?></th>
<th>&nbsp;</th><?php
} else {?>
<td></td><?php
<td colspan="2">&nbsp;</td><?php
}?>
</tr><?php
} /* ende for($l=$start-1;$l<=$ende;$l++) */?>
</table>
</div>
</div><?php if($tipp_anzseiten>1 && $tipp_anzseiten<11){?>
<div class="row">
<div clas="col">
<div class="col">
<table class="table table-hover">
<tr><?php
echo "<td align=\"right\" valign=\"top\" rowspan=\"".(floor($tipp_anzseiten/10)+1)."\">".$text['tipp'][164]."&nbsp;</td>";
Expand Down
25 changes: 7 additions & 18 deletions lmo/addon/tipp/lmo-tipptabelle.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,7 @@
</tr>
<tr>
<td>
<table class="table"><?php
if($nick!=""){ ?>
<caption><?php
if($tabtype!="0"){?><a href="<?php echo $addt1."0"?>" title="<?php echo $text[27]?>"><?php echo $text[40]?></a><?php }else{echo $text[40];}?><?php
if($tabtype!="1"){?><a href="<?php echo $addt1."1"?>" title="<?php echo $text[28]?>"><?php echo $text[41]?></a><?php }else{echo $text[41];}?><?php
if($tabtype!="2"){?><a href="<?php echo $addt1."2"?>" title="<?php echo $text[29]?>"><?php echo $text[42]?></a><?php }else{echo $text[42];}?><?php
if ($einhinrueck==1) {
if($tabtype!="4"){?><a href="<?php echo $addt1."4"?>" title="<?php echo $text[4003]?>"><?php echo $text[4003]?></a><?php }else{echo $text[4003];}?><?php
if($tabtype!="3"){?><a href="<?php echo $addt1."3"?>" title="<?php echo $text[4002]?>"><?php echo $text[4002]?></a><?php }else{echo $text[4002];}
}?>
</caption><?php
} /* ende if($nick!="")*/?>
<table class="table">
<tr>
<th colspan="6"> <?php echo $tabdat; ?> </th>
<th></th>
Expand Down Expand Up @@ -165,23 +154,23 @@
$lmo_tabelle_class="nobr";
if ($tabtype==0) {
if (($x==1) && ($champ!=0)) {
$lmo_tabelle_class="lmoTabelleMeister nobr";
$lmo_tabelle_class="table-success";
$j=2;
}
if (($x>=$j) && ($x<$j+$anzcl) && ($anzcl>0)) {
$lmo_tabelle_class="lmoTabelleCleague nobr";
$lmo_tabelle_class="table-info";
}
if (($x>=$j+$anzcl) && ($x<$j+$anzcl+$anzck) && ($anzck>0)) {
$lmo_tabelle_class="lmoTabelleCleaguequali nobr";
$lmo_tabelle_class="table-primary";
}
if (($x>=$j+$anzcl+$anzck) && ($x<$j+$anzcl+$anzck+$anzuc) && ($anzuc>0)) {
$lmo_tabelle_class="lmoTabelleUefa nobr";
$lmo_tabelle_class="table-secondary";
}
if (($x<=$anzteams) && ($x>$anzteams-$anzab) && ($anzab>0)) {
$lmo_tabelle_class="lmoTabelleAbsteiger nobr";
$lmo_tabelle_class="table-danger";
}
if (($x<=$anzteams-$anzab) && ($x>$anzteams-$anzab-$anzar) && ($anzar>0)) {
$lmo_tabelle_class="lmoTabelleRelegation nobr";
$lmo_tabelle_class="table-warning";
}
}?>
<tr>
Expand Down

0 comments on commit bbee21c

Please sign in to comment.