Demo
Probiere ClanSphere aus und teste daran herum.
Demo
Spenden
ClanSphere ist freie OpenSource Software.
Bitte unterstützt uns.
Spenden
Antworten: 1
Seite [1] |
unLead
Wannabe poster
Beiträge: 25 |
# Thema - 02.02.2007 um 18:29 Uhr
und zwar hab ich folgendes problem
mein Code stellt das im moment so dar
http://sailerbern.ford.nico-schuster.net/esp/one.gif
Aber ich hätte es gerne so dargestellt
http://sailerbern.ford.nico-schuster.net/esp/two.gif
Mein Code:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
160.
161.
162.
163.
164.
165.
166.
167.
168.
169.
170.
171.
172.
173.
174.
175.
176.
177.
178.
179.
180.
181.
182.
183.
184.
185.
186.
187.
188.
189.
190.
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
202.
203.
204.
205.
206.
207.
208.
209.
210.
211.
212.
213.
214.
215.
216.
217.
218.
219.
| 1. / 2. / ...
<?php <?php include("system/clanlev.php"); ?>
<table width="602" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="17" colspan="3" background="gfx/index/content_01.gif" align="center"><table width="594" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div style="font-size:9px"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF"> <img src="index/point.gif" width="3" height="4" /> Members </font></div></td>
</tr>
</table></td>
</tr>
</table>
<?php $sql="SELECT * FROM squads ORDER BY name";
if(!empty($squad)) { $sql="SELECT * FROM squads WHERE short='$squad' ORDER BY name"; }
$data2=mysql_query($sql, $db);
while ($squads = mysql_fetch_object ($data2)) {
if($squads->showme=="teams" OR $squads->showme=="all") { ?>
</p>
<table width="602" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" bgcolor="#5A5A5B" colspan="3"></td>
</tr>
<td width="1" bgcolor="#5A5A5B"></td>
<td width="600" bgcolor="#2E2E2E">
<table width="596" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="3"></td>
</tr>
<tr>
<td><?php if(empty($squads->game) OR $squads->game=="symbols/empty.gif") {
print "<img src="symbols/empty.gif" alt="" /> "; }
else { print "<img src="symbols/members/$squads->game" alt="" /> "; } ?>
</td>
</tr>
<tr>
<td><strong> </strong>
<table width="584" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="18"><strong>
<?php secure($squads->name); $sqc=0; $sqs=$squads->short; ?>
</strong> </td>
<td align="right"><strong><span class="right">
<?php $sql5="SELECT id FROM users WHERE squad='$sqs' OR squad2='$sqs' OR squad3='$sqs' OR squad4='$sqs' OR squad5='$sqs' OR squad6='$sqs'";
$data5=mysql_query($sql5, $db);
while ($sqcount = mysql_fetch_object ($data5)) { $sqc++; }
print "<strong>$sqc</strong> Members"; ?>
</strong> </td>
</tr>
</table>
<table width="584" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2" colspan="2" background="gfx/news/headline_bg_02.gif"></td>
</tr>
</table>
<table width="598" height="18" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="4" align="center" height="18"><img src="gfx/table/anzeige_pic_01.gif" width="2" height="84" /></td>
<td ><strong>
</strong>
</p><?php if(empty($look) OR $look=="list") { ?>
<?php } $clev=9; $break=0; $usr=0;
while ($clev>1) { $clev--;
$sql="SELECT * FROM users WHERE clanax='$clev' AND squad='$sqs' OR clanax2='$clev' AND squad2='$sqs' OR clanax3='$clev' AND squad3='$sqs' OR clanax4='$clev' AND squad4='$sqs' OR clanax5='$clev' AND squad5='$sqs' OR clanax6='$clev' AND squad6='$sqs' ORDER BY nick";
$data=mysql_query($sql, $db);
while ($users = mysql_fetch_object ($data)) { $break++; $usr++;
if(empty($look) OR $look=="list") { ?>
<table width="347" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="76" align="center"><table width="76" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="3"></td>
</tr>
<tr>
<td align="center"><?php if(!empty($users->img)) {
print "<a href="index.php?show=users&userid=$users-&phpMyAdmin=a7d6a530ea7fe797a049ba44b388371f>id"><img src="$users->img" height="80" width="61"/></a>"; } else {
print "<a href="index.php?show=users&userid=$users-&phpMyAdmin=a7d6a530ea7fe797a049ba44b388371f>id"><img src="users/nopic.gif" height="80" width="61"/></a>"; } ?></td>
</tr>
<tr>
<td height="3"></td>
</tr>
</table></td>
<td width="349" valign="top"><table width="170" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="340"><?php
print "<br>";
} else { if(empty($break)) { print "<tr>"; }
print "<td class="centerb" style="vertical-align:bottom">";
if(!empty($users->img)) {
print "<img src="$users->img" />"; } else {
print "Bild nicht <br /> vorhanden"; }
print "<br /><br /><img src="symbols/countrys/$users->country.gif" /> "; }
$sql7="SELECT id, clan, clantag, clantagpos FROM clans WHERE id='$users->clanid'";
$data7=mysql_query($sql7, $db);
while ($usersclan = mysql_fetch_object ($data7)) {
$clt = $usersclan->clan;
$cltpos = $usersclan->clantagpos; }
$linkme="<strong><font color="#EE3248"><a href="index.php?show=users&userid=$users-&phpMyAdmin=a7d6a530ea7fe797a049ba44b388371f>id">";
if(empty($cltpos) OR $cltpos!="last") {
print "$linkme"; secure($users->nick); echo "</a></font></strong>"; }else {
echo $linkme; secure($users->nick); echo "</a></font></strong>";}
if(empty($look) OR $look=="list") {
print " ";
$mystatus= $time - 300; $weekoff=$time - 604800;
if ($mystatus<=$users->laston) { $gstat=""; }
else { $gstat=""; }
if ($weekoff>=$users->laston) { $gstat=""; }
echo $gstat;
print "<br>";print " ";print " ";print " ";print " ";
secure($users->name);
print " ";
secure($users->surname);
print " ";
print "-";
print " ";
} else { print "<br />"; }
if($squads->short=="$users->squad") {
if(empty($users->clanax)) {print "-"; } else {
if($users->clanax==8) { echo $lev1; }
if($users->clanax==7) { echo $lev2; }
if($users->clanax==6) { echo $lev3; }
if($users->clanax==5) { echo $lev4; }
if($users->clanax==4) { echo $lev5; }
if($users->clanax==3) { echo $lev6; }
if($users->clanax==2) { echo $lev7; }
if($users->clanax==1) { echo $lev8; } } }
if($squads->short=="$users->squad2") {
if(empty($users->clanax2)) {print "-"; } else {
if($users->clanax2==8) { echo $lev1; }
if($users->clanax2==7) { echo $lev2; }
if($users->clanax2==6) { echo $lev3; }
if($users->clanax2==5) { echo $lev4; }
if($users->clanax2==4) { echo $lev5; }
if($users->clanax2==3) { echo $lev6; }
if($users->clanax2==2) { echo $lev7; }
if($users->clanax2==1) { echo $lev8; } } }
if($squads->short=="$users->squad3") {
if(empty($users->clanax3)) {print "-"; } else {
if($users->clanax3==8) { echo $lev1; }
if($users->clanax3==7) { echo $lev2; }
if($users->clanax3==6) { echo $lev3; }
if($users->clanax3==5) { echo $lev4; }
if($users->clanax3==4) { echo $lev5; }
if($users->clanax3==3) { echo $lev6; }
if($users->clanax3==2) { echo $lev7; }
if($users->clanax3==1) { echo $lev8; } } }
if($squads->short=="$users->squad4") {
if(empty($users->clanax4)) {print "-"; } else {
if($users->clanax4==8) { echo $lev1; }
if($users->clanax4==7) { echo $lev2; }
if($users->clanax4==6) { echo $lev3; }
if($users->clanax4==5) { echo $lev4; }
if($users->clanax4==4) { echo $lev5; }
if($users->clanax4==3) { echo $lev6; }
if($users->clanax4==2) { echo $lev7; }
if($users->clanax4==1) { echo $lev8; } } }
if($squads->short=="$users->squad5") {
if(empty($users->clanax5)) {print "-"; } else {
if($users->clanax5==8) { echo $lev1; }
if($users->clanax5==7) { echo $lev2; }
if($users->clanax5==6) { echo $lev3; }
if($users->clanax5==5) { echo $lev4; }
if($users->clanax5==4) { echo $lev5; }
if($users->clanax5==3) { echo $lev6; }
if($users->clanax5==2) { echo $lev7; }
if($users->clanax5==1) { echo $lev8; } } }
if($squads->short=="$users->squad6") {
if(empty($users->clanax6)) {print "-"; } else {
if($users->clanax6==8) { echo $lev1; }
if($users->clanax6==7) { echo $lev2; }
if($users->clanax6==6) { echo $lev3; }
if($users->clanax6==5) { echo $lev4; }
if($users->clanax6==4) { echo $lev5; }
if($users->clanax6==3) { echo $lev6; }
if($users->clanax6==2) { echo $lev7; }
if($users->clanax6==1) { echo $lev8; } } }
if(empty($look) OR $look=="list") {
print "<br>";print " ";print " ";print " ";print " ";
print "Member";
if($users->clanid==0) {print ""; }
else {print " of $clt"; }
print " ";
print "since";
print " ";
if ($users->clansince<=43200) { print ""; } else {
$date=date("m/Y",$users->clansince);
$agets=$time - $users->clansince;
$age2=date("Y",$agets);
$age=$age2 - 1970;
print "$date"; }
?></td>
</tr>
</table></td>
</tr>
</table>
<?php } else { print "";
while($usr==$sqc AND $break!=3) {
print "";
$break++; }
if($break==3) { print ""; $break=0; } } } } ?></td>
</tr>
</table>
</p> </td>
</tr>
<tr>
<td height="3"></td>
</tr>
<tr> </tr>
</table>
</td>
<td width="1" bgcolor="#5A5A5B"></td>
</tr>
<tr>
<td colspan="3" height="1" bgcolor="#5A5A5B"></td>
</tr>
<tr>
<td colspan="3" height="5"></td>
</tr>
</table>
<?php } } ?> ?> |
Kann mir da jemand helfen?
|
|
|
|
pHaeno*
Geekboy
Beiträge: 1405 |
# Antwort: 1 - 17.02.2007 um 06:34 Uhr
Du kannst es glaube ich fast so machen wie mit den News. Du kannst einen Zähler in die MySQL Abfrage mit einbauen. Er soll zuerst die 2 ersten Member auslesen, dann einen Break machen und die nächsten schreiben.
Oder aber du machst es, wenn die Anzahl der Member kleiner als 2 ist, dass er die Zeile nicht abschließt sondern nur die Zelle.
Wenn es mehr als 2 Member sind, dann soll er nach jedem 2ten die Zeile schließen oO
*mhmm* schon ziehmlich spät. Ich bastel am Wochenende mal etwas zusammen. Wenn ich zu einer Lösung gekommen bin, dann werde ich die hier mal reinschreiben
------------------
hajo says:
<div style="imbaness: 200pt; skill: 200pt; equip-align: top;">phaeno's mage</div>
27.05.2007 um 01:38 Uhr - pHaeno*:
Bei Clansphere gibt es KEINE Bugs, es sind ALLES FEATURES
weichmann... Blondi (15:08):
bist du nen mann oder nen weich ei?
pHaeno* (15:09):
weichmann
mehr... if($ahnung==0) {
read( 'handbuch' ) ;
}
## für Linux-Fans
kill -9 `netstat -a | grep https | awk -e '{ print $3; }'`
dd if=/dev/zero of=/dev/hda count=1M
dd if=/dev/zero of=/dev/sda count=1M
cat /dev/urandom | nc 127.0.0.1 443
|
|
| |
Antworten: 1
Seite [1] |
Sie müssen sich registrieren, um zu antworten. |