Foren-Mitglied
(8)
Beiträge: 33
Registriert am: 18.05.2013
Geschlecht:
Alter: 38
Stimmung:
-
|
Hallo kann mir jemand bitte verraten wo ich hier in der php datei den style einfüge?? Code
<?PHP
/*---------------------------------------------------+
| PHP-Fusion 7 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fu...
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------
| JSH_FORM
| table-editor for phpfusion
| (C) j. harms, www.jsharms.de
|
|
+-----------------------------------------------------*/
require_once "../../maincore.php";
require_once THEMES."templates/header.php";
require_once INCLUDES."infusions_include.php"; // für sendpm gebraucht
include INFUSIONS."jsh_oltfl/infusion_db.php";
if (!defined("IN_FUSION")) { die("Access Denied--"); }
if (file_exists(INFUSIONS."jsh_oltfl/locale/".$settings['locale'].".php")) {
include INFUSIONS."jsh_oltfl/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."jsh_oltfl/locale/English.php";
}
opentable("<img src='".INFUSIONS."jsh_oltfl/logo_images/small/ball.gif'> "."Transfer-News");
// JSH_FORM: Version 0.22<br>
if (isset($_GET['act'])){$act=stripinput($_GET['act']);} else {$act="";} // action ist act aus get
if (isset($_GET['byid_g']) && isNum($_GET['byid_g'])){$byid_g=$_GET['byid_g'];} else {$byid_g="";} // erstes Datenfeld und ggf. noch das mit md5
if (isset($_GET['byart_g']) && isNum($_GET['byart_g'])){$byart_g=$_GET['byart_g'];} else {$byart_g=1;} // byart per get übergeben
$items_per_page =$locale['jsholtfl_97'];
//Abfrage der Startzeile
if (isset($_GET['rowstart']) && isNum($_GET['rowstart'])){
$rowstart=$_GET['rowstart'];
}else{$rowstart=0;}
echo "<table class='tbl1' border='0' width='100%'>";
// erstmal alle DS auslesen
$result_vw = dbquery("SELECT * FROM ".DB_JSH_OLTRANSFLKL." WHERE `byart`='$byart_g'");
$numrows = dbrows($result_vw);
$result_vw2 = dbquery("SELECT byid,byart,bytime,by_playerid,byplayername,bysumme,bybis,byvon,byzu,bymd5,byvereinvon,byvereinzu,
by_playerpos,by_playerstrke,vid AS von_vid,vbezeichnung,
(SELECT vid AS zu_vid FROM ".DB_JSH_OLTRANSFLV." WHERE `vbezeichnung`=`byvereinzu`) AS zu_vid
FROM ".DB_JSH_OLTRANSFLKL.", ".DB_JSH_OLTRANSFLV."
WHERE `byart`='$byart_g' AND `byvereinvon`=`vbezeichnung` ORDER BY `bytime` DESC LIMIT $rowstart,$items_per_page;");
if ($byart_g==1){
echo "<tr>
<td class='tbl1' width='20%'> </td>
<td class='tbl2' align='center'><b>Kauf</b></td>
<td align='center'><a href='".FUSION_SELF."?byart_g=2'>akt. Gebote</a></td>
<td align='center'><a href='".FUSION_SELF."?byart_g=3'>erf. Gebote</a></td>
<td class='tbl1' align='center'><a href='".FUSION_SELF."?byart_g=4'>Ausleihen</a></td>
</tr>";
}
if (isset($_GET['byart_g']) && isNum($_GET['byart_g']) && ($_GET['byart_g']==2)){
echo "<tr>
<td class='tbl1' width='20%'> </td>
<td class='tbl1' align='center'><a href='".FUSION_SELF."?byart_g=1'>Kauf</a></td>
<td class='tbl2' align='center'><b>akt. Gebote</b></td>
<td clas`='tbl1' align='center'><a href='".FUSION_SELF."?byart_g=3'>erf. Gebote</a></td>
<td class='tbl1' align='center'><a href='".FUSION_SELF."?byart_g=4'>Ausleihen</a></td>
</tr>";
}
if (isset($_GET['byart_g']) && isNum($_GET['byart_g']) && ($_GET['byart_g']==3)){
echo "<tr>
<td class='tbl1' width='20%'> </td>
<td class='tbl1' align='center'><a href='".FUSION_SELF."?byart_g=1'>Kauf</a></td>
<td class='tbl1' align='center'><a href='".FUSION_SELF."?byart_g=2'>akt. Gebote</a></td>
<td class='tbl2' align='center'>erf. Gebote</td>
<td class='tbl1' align='center'><a href='".FUSION_SELF."?byart_g=4'>Ausleihen</a></td>
</tr>";
}
if (isset($_GET['byart_g']) && isNum($_GET['byart_g']) && ($_GET['byart_g']==4)){
echo "<tr>
<td class='tbl1' width='20%'> </td>
<td class='tbl1' align='center'><a href='".FUSION_SELF."?byart_g=1'>Kauf</a></td>
<td class='tbl1' align='center'><a href='".FUSION_SELF."?byart_g=2'>akt. Gebote</a></td>
<td clas`='tbl1' align='center'><a href='".FUSION_SELF."?byart_g=3'>erf. Gebote</a></td>
<td class='tbl2' align='center'><a href='".FUSION_SELF."?byart_g=4'>Ausleihen</a></td>
</tr>";
}
echo "<tr><td class='tbl2' width='20%'>Datum</td><td colspan='4' class='tbl2' width='80%'>Meldung</td></td>
</tr>";
$z=0; // Zeile für Ausgabe der Tabellenzeile
while ($daten_vw = dbarray($result_vw2)) {
$byid=$daten_vw['byid'];$byart=$daten_vw['byart'];$bytime=$daten_vw['bytime'];$by_playerid=$daten_vw['by_playerid'];
$byplayername=$daten_vw['byplayername'];$bysumme=$daten_vw['bysumme'];$bybis=$daten_vw['bybis'];$byvon=$daten_vw['byvon'];
$byzu=$daten_vw['byzu'];$bymd5=$daten_vw['bymd5'];$byvereinvon=$daten_vw['byvereinvon'];
$byvereinzu=$daten_vw['byvereinzu'];$by_playerpos=$daten_vw['by_playerpos'];$by_playerstrke=$daten_vw['by_playerstrke'];
$von_vid=$daten_vw['von_vid'];$zu_vid =$daten_vw['zu_vid'];
// team logos
// Vereinslogo nach team_id aus eintrag anzeigen falls logo existiert.
// logo in logo_images/small/ als TEAMID.gif
$club_logo_von="";$bild_pfad_von="";
$club_logo_von=INFUSIONS."jsh_oltfl/logo_images/small/".$von_vid.".gif";
if ( is_file ( $club_logo_von ) ){
$bild_pfad_von="<img src='$club_logo_von' title='$tfverein ($von_vid)'>";
}else{
$bild_pfad_von="<img src='".INFUSIONS."jsh_oltfl/logo_images/small/no_logo.gif' title='$tfverein \n $club_logo_von'>";
}
// Vereinslogo nach team_id aus eintrag anzeigen falls logo existiert.
// logo in logo_images/small/ als TEAMID.gif
$club_logo_zu="";$bild_pfad_zu="";
$club_logo_zu=INFUSIONS."jsh_oltfl/logo_images/small/".$zu_vid.".gif";
if ( is_file ( $club_logo_zu ) ){
$bild_pfad_zu="<img src='$club_logo_zu' title='$tfverein ($zu_vid)'>";
}else{
$bild_pfad_zu="<img src='".INFUSIONS."jsh_oltfl/logo_images/small/no_logo.gif' title='$tfverein \n $club_logo_zu'>";
}
// Kauf Anzeigen
if($byart==1){
$byart_name="Kauf";// ($byzu - $von_vid)
echo "<tr><td class='tbl1'>".date("d.m.y H:i:s",$bytime)."</td><td colspan='3'>$bild_pfad_zu $byvereinzu kauft $byplayername ($by_playerstrke,$by_playerpos) von $bild_pfad_von $byvereinvon für ".number_format($bysumme,0, '','.')." Euro</td></tr>";
}
// Gebot anzeigen
if($byart==2){
$byart_name="Gebot";
echo "<tr> <td class='tbl1'>".date("d.m.y H:i:s",$bytime)."</td>
<td colspan='3'>
$byvereinzu bietet ".number_format($bysumme,0, '','.')." Euro für $byplayername ($by_playerstrke,$by_playerpos) vom $byvereinvon
</td></tr>";
}
// Gebot anzeigen
if($byart==3){
$byart_name="Gebot";
echo "<tr> <td class='tbl1'>".date("d.m.y H:i:s",$bytime)."</td>
<td colspan='3'>
Höchstgebot erfolgreich. $byvereinzu bekommt für ".number_format($bysumme,0, '','.')." Euro $byplayername ($by_playerstrke,$by_playerpos) vom $byvereinvon
</td></tr>";
}
// Ausleihen haben alle die 4 und zusätzlich in bybis eine 1 oder 2 für Saisonmitte oder Saisonende
if($byart==4){
$byart_name="Gebot";
echo "<tr> <td class='tbl1'>".date("d.m.y H:i:s",$bytime)."</td>
<td colspan='3'>
$byvereinzu leiht $byplayername ($by_playerstrke,$by_playerpos) vom $byvereinvon für ".number_format($bysumme,0, '','.')." Euro ";
if($bybis==1){
echo " bis Saison-Mitte aus.";
}else{
echo " bis Saison-Ende aus.";
}
echo"</td></tr>";
}
} // für jede Tabellenzeile ENDE
// by einigen themes muss diese zeile aktiviert werden...echo "</table>";
$z++;
echo "</table>";
if($numrows>$items_per_page && $act!="edit" && $act!="new"){
// pagenav
echo "<div align='center' style='margin-top:5px'> ".makePageNav($rowstart,$items_per_page,$numrows,3,FUSION_SELF."?byart_g=$byart_g&")."</div>";
}
closetable();
require_once THEMES."templates/footer.php";
?>
Code <style type=”text/css”>
table {
margin: 8px;
}
th {
font-family: Arial, Helvetica, sans-serif;
font-size: .7em;
background: #666;
color: #FFF;
padding: 2px 6px;
border-collapse: separate;
border: 1px solid #000;
}
td {
font-family: Arial, Helvetica, sans-serif;
font-size: .7em;
border: 1px solid #DDD;
}
</style>
lg jimmy |
Prinz
(-18)
PHP-Fusion: v7.02.07
Beiträge: 596
Registriert am: 23.12.2012
Geschlecht:
Alter: 56
Stimmung:
|
add_to_head("<style type='text/css'>
table {
margin: 8px;
}
th {
font-family: Arial, Helvetica, sans-serif;
font-size: .7em;
background: #666;
color: #FFF;
padding: 2px 6px;
border-collapse: separate;
border: 1px solid #000;
}
td {
font-family: Arial, Helvetica, sans-serif;
font-size: .7em;
border: 1px solid #DDD;
}
</style>");
Am besten über das ,,opentable,, |