close× Call Us +49 (1805) 01 29 59

SGI Fusion
Thread Author: Flemming
Thread ID: 4111
Thread Info
Es gibt 6 Beiträge zu diesem Thema, und es wurde 4287 mal angesehen.
Wer ist hier? 1 Gäste
 Thema drucken
Teamliste in 3 Spalten
Flemming
Hallo Liebe user ;)

ich hab mich mal ran gesetzt ich möchte die Teamliste von Gr@n@de um form
aber nun ist alles untereinander
ich möchte aber die Spalten so haben

DJ 1 | DJ 2 | DJ3
DJ 4 | DJ 5 | DJ 6
usw....

[geshi=php]<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Title: Gr_Teamlist v2.2 for PHP-Fusion 7
| Filename: teamlist.php
| Author: Ralf Thieme (Gr@n@dE)
| HP: www.granade.eu
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";

include INFUSIONS."gr_teamlist/infusion_db.php";
if (file_exists(INFUSIONS."gr_teamlist/locale/".LOCALESET."index.php")) {
include INFUSIONS."gr_teamlist/locale/".LOCALESET."index.php";
} else {
include INFUSIONS."gr_teamlist/locale/German/index.php";
}

add_to_title($locale['global_200'].$locale['grtl102']);
opentable("-> BaseMusic Team");
$result = dbquery("SELECT * FROM ".DB_GR_TEAMLIST_GROUP." ORDER BY tlg_position");
if (dbrows($result) != 0) {
while ($tl_group = dbarray($result)) {
echo "<img border='0' src='".INFUSIONS."gr_teamlist/images/group/".$tl_group['tlg_pic']."' alt='".$tl_group['tlg_name']."' onClick='javascript:Toggle(".$tl_group['tlg_id'].")' style='cursor:pointer' /><span id='ToggleRow_".$tl_group['tlg_id']."' style='display:".($tl_group['tlg_status'] == 1 ? "block" : "none")."'>";
$result2 = dbquery("SELECT * FROM ".DB_GR_TEAMLIST_USERS." WHERE tlu_groups='".$tl_group['tlg_id']."' ORDER BY tlu_position");
if (dbrows($result2) != 0) {
if (dbrows($result2) > 3) {
$table_s = 1;
$counter = 0; $columns = 3;
} else {

$table_s = 0;
}
while ($tl_users = dbarray($result2)) {
echo "

<table>
<tr>
<td>";

echo "
<table width='160px' height='200px' align='center'>
<tr>
<td valign='top' background='".INFUSIONS."gr_teamlist/images/teambg.png'>
";

echo "<br><center><b><font color='#fff'>".$tl_users['tlu_rname']."'s</font></b>
<br>
<font color='#fff'>Musikgeschmack
<small>";
echo " <br>".($tl_users['tlu_feld2'] ? nl2br(parseubb($tl_users['tlu_feld2'])) : $locale['grtl203'])."";
echo "</font></small>
</center>";

echo "<hr />";


if ($table_s == 1) { if ($counter != 0 && ($counter % $columns == 0)) echo "";
$align = $counter % $columns ? "left" : "right";
echo "";
}
if ($tl_users['tlu_userid'] != 0) {
$result3 = dbquery("SELECT * FROM ".DB_USERS." WHERE user_id='".$tl_users['tlu_userid']."'");
$tl_users2 = dbarray($result3);
}
if ($tl_users['tlu_pic'] != "" && file_exists(INFUSIONS."gr_teamlist/images/team/".$tl_users['tlu_pic'])) {
$user_avatar = INFUSIONS."gr_teamlist/images/team/".$tl_users['tlu_pic'];
} elseif ($tl_users2['user_avatar'] != "" && file_exists(IMAGES."avatars/".$tl_users2['user_avatar'])) {
$user_avatar = IMAGES."avatars/".$tl_users2['user_avatar'];
} else {
$user_avatar = IMAGES."avatars/nopic.gif";
}

echo "<center>";

echo "<center>";
echo "<table>
<tr>
<td><img border='0' src='".$user_avatar."' alt='".$tl_users2['user_name']."' height='100' width='82' /><br>

<small><font color='#fffff'><a href='".BASEDIR."messages.php?msg_send=".$tl_users['tlu_userid']."'>PN</a> | mehr</font></small>
</center></td>
<td>";

if ($tl_users['tlu_userid'] != 0 && ($tl_users2['user_hide_email'] != "1" || iADMIN)) {
echo hide_email($tl_users2['user_email'], "<img border='0' src='".INFUSIONS."gr_teamlist/images/email.png' alt='Email ' width='16' height='16' /><br>")." ";
}
if (array_key_exists("user_aim", $tl_users2) && $tl_users['tlu_userid'] != 0 && $tl_users2['user_aim'] != "") {
echo "<a href='aim:goim?screenname=".$tl_users2['user_aim']."' target='_blank' title='".$tl_users2['user_aim']."'><img border='0' src='".INFUSIONS."gr_teamlist/images/aim.png' alt='AIM ' width='16' height='16' /></a> <br>";
}
if (array_key_exists("user_icq", $tl_users2) && $tl_users['tlu_userid'] != 0 && $tl_users2['user_icq'] != "") {
echo "<a href='http://icq.com/people/about_me.php?uin=".$tl_users2['user_icq']."' target='_blank' title='".$tl_users2['user_icq']."'><img border='0' src='".INFUSIONS."gr_teamlist/images/icq.png' alt='ICQ ' width='16' height='16' /></a><br> ";
}
if (array_key_exists("user_msn", $tl_users2) && $tl_users['tlu_userid'] != 0 && $tl_users2['user_msn'] != "") {
echo "<a href='mailto:".$tl_users2['user_msn']."' target='_blank' title='".$tl_users2['user_msn']."'><img border='0' src='".INFUSIONS."gr_teamlist/images/msn.png' alt='MSN ' width='16' height='16' /></a><br> ";
}
if (array_key_exists("user_yahoo", $tl_users2) && $tl_users['tlu_userid'] != 0 && $tl_users2['user_yahoo'] != "") {
echo "<a href='http://uk.profiles.yahoo.com/".$tl_users2['user_yahoo']."' title='".$tl_users2['user_yahoo']."'><img border='0' src='".INFUSIONS."gr_teamlist/images/yahoo.png' alt='YAHOO ' width='16' height='16' /></a><br> ";
}
if (($tl_users['tlu_userid'] == 0 || ($tl_users2['user_hide_email'] == "1" && !iADMIN)) && !IsSeT($tl_users2['user_aim']) && !IsSeT($tl_users2['user_icq']) && !IsSeT($tl_users2['user_msn']) && !IsSeT($tl_users2['user_yahoo'])) {
echo $locale['grtl206'];
}
echo "


</center>
</td>
</table>

</table>";
echo "</td>

</tr>
</table>";

}}}}
echo "<div align='right'><a href='http://www.granade.eu/scripte/teamlist.html' target='_blank'>Teamlist &copy;</a></div>";
closetable();


echo '<script type="text/javascript">
function Toggle(id) {
spanid1 = "ToggleRow_"+id;
val = document.getElementById(spanid1).style.display;
if (val == "none") {
document.getElementById(spanid1).style.display = "block";
}
else {
document.getElementById(spanid1).style.display = "none";
}
}
</script>';
require_once THEMES."templates/footer.php";
?>[/geshi]

Evtl. könnte mir ja der ein oder andre helfen

LG Flemming...
Bearbeitet von Flemming am 24.09.2012 00000009 01:30
O_O.gif' alt='O_O' style='vertical-align:middle;' />
 
SC-Ad-Bot
 
DjMicha1985
in der teamlist.php

add_to_title($locale['global_200'].$locale['grtl102']);
opentable($locale['grtl102']);
$result = dbquery("SELECT * FROM ".DB_GR_TEAMLIST_GROUP." ORDER BY tlg_position");
if (dbrows($result) != 0) {
while ($tl_group = dbarray($result)) {
   echo "<div align='center'><br /><img border='0' src='".INFUSIONS."gr_teamlist/images/group/".$tl_group['tlg_pic']."' alt='".$tl_group['tlg_name']."' onClick='javascript:Toggle(".$tl_group['tlg_id'].")' style='cursor:pointer' /><span id='ToggleRow_".$tl_group['tlg_id']."' style='display:".($tl_group['tlg_status'] == 1 ? "block" : "none")."'>";
   $result2 = dbquery("SELECT * FROM ".DB_GR_TEAMLIST_USERS." WHERE tlu_groups='".$tl_group['tlg_id']."' ORDER BY tlu_position");
   if (dbrows($result2) != 0)  {
      if (dbrows($result2) > 1)  {
         $table_s = 1;
         echo "<table class='tbl-border' width='100%' align='center' cellpadding='0' cellspacing='0'>\n<tr>\n<td align='right' width='50%' class='tbl'>\n</td>\n<td width='50%' class='tbl'>\n</td>\n</tr>\n<tr>\n";
         $counter = 0; $columns = 2;


und durch

add_to_title($locale['global_200'].$locale['grtl102']);
opentable($locale['grtl102']);
$result = dbquery("SELECT * FROM ".DB_GR_TEAMLIST_GROUP." ORDER BY tlg_position");
if (dbrows($result) != 0) {
while ($tl_group = dbarray($result)) {
   echo "<div align='center'><br /><img border='0' src='".INFUSIONS."gr_teamlist/images/group/".$tl_group['tlg_pic']."' alt='".$tl_group['tlg_name']."' onClick='javascript:Toggle(".$tl_group['tlg_id'].")' style='cursor:pointer' /><span id='ToggleRow_".$tl_group['tlg_id']."' style='display:".($tl_group['tlg_status'] == 1 ? "block" : "none")."'>";
   $result2 = dbquery("SELECT * FROM ".DB_GR_TEAMLIST_USERS." WHERE tlu_groups='".$tl_group['tlg_id']."' ORDER BY tlu_position");
   if (dbrows($result2) != 0)  {
      if (dbrows($result2) > 1)  {
         $table_s = 1;
         echo "<table class='tbl-border' width='100%' align='center' cellpadding='0' cellspacing='0'>\n<tr>\n<td align='right' width='50%' class='tbl'>\n</td>\n<td width='50%' class='tbl'>\n</td>\n</tr>\n<tr>\n";
         $counter = 0; $columns = 3;
ersetzen
lpmf.lilypie.com/TikiPic.php/oxgEKHz.jpglpmf.lilypie.com/oxgEp2.png
 
Flemming
Es wird immer noch untereinander aufgelistet Shock
O_O.gif' alt='O_O' style='vertical-align:middle;' />
 
DjMicha1985
Dann frag doch einfach mal in dem Forum nach, wo die die Teamliste her hast
lpmf.lilypie.com/TikiPic.php/oxgEKHz.jpglpmf.lilypie.com/oxgEp2.png
 
Flemming
Noe habe jetzt eine Eigende geschrieben
O_O.gif' alt='O_O' style='vertical-align:middle;' />
 
Ragdoll
Zur Info^^ es wird nur in 3 spalten gelistet so fern auch der Platz vorhanden ist. nach dem man Dj Micha's Codeänderung vorgenommen hat.
Ik war's.
 
Springe ins Forum:

 Ähnliche Themen 

TEST
Thema Forum Antworten Letzter Beitrag
Fusion Board Spalten Problem Infusionen 4 05.11.2019 00000011 07:48
News in 2 spalten Allgemeine Support Fragen 2 31.12.2009 00000012 14:25
HarlekinPower