[Help] Codes

FreestyleR

New Member
Joined
May 14, 2008
Messages
129
Reaction score
19
Hi all. Може ли да ми направите една услуга отностно BattleZone Web-a , не разбирам много но искам да си сглобя 1 хубав сайт.
значи искам от този коде:
PHP:
<img src="images/icon.gif" border="0" /> <a href="all.php">All</a><br>
<img src="images/icon.gif" border="0" /> <a href="guilds.php">Guilds</a><br>
<img src="images/icon.gif" border="0" /> <a href="admins.php">Administrators</a><br>
<img src="images/icon.gif" border="0" /> <a href="online.php">Online Players</a><br>
<img src="images/icon.gif" border="0" /> <a href="banned.php">Banned Players</a><br>
<img src="images/icon.gif" border="0" /> <a href="warned.php">Warned Players</a><br>
<img src="images/icon.gif" border="0" /> <a href="elf.php">Elf</a><br>
<img src="images/icon.gif" border="0" /> <a href="me.php">Muse Elf</a><br>
<img src="images/icon.gif" border="0" /> <a href="dw.php">Dark Wizard</a><br>
<img src="images/icon.gif" border="0" /> <a href="sm.php">Soul Master</a><br>
<img src="images/icon.gif" border="0" /> <a href="dk.php">Dark Knight</a><br>
<img src="images/icon.gif" border="0" /> <a href="bk.php">Blade Knight</a><br>
<img src="images/icon.gif" border="0" /> <a href="mg.php">Magic Gladiator</a><br>
<img src="images/icon.gif" border="0" /> <a href="dl.php">Dark Lord</a><br>
<img src="images/icon.gif" border="0" /> <a href="str.php">Strength</a><br>
<img src="images/icon.gif" border="0" /> <a href="agi.php">Agility</a><br>
<img src="images/icon.gif" border="0" /> <a href="vit.php">Vitality</a><br>
<img src="images/icon.gif" border="0" /> <a href="enr.php">Energy</a><br>
<img src="images/icon.gif" border="0" /> <a href="lvl.php">Level</a><br>
<img src="images/icon.gif" border="0" /> <a href="zen.php">Zen</a><br>
<img src="images/icon.gif" border="0" /> <a href="pk.php">PK</a><Br>

да го направите да изглежда
така(като на девил МУ, само че, да пише тиа неща горе,пк,зен, и т.н.):
ето скрийн:

или пък battlezone-web\modules\rankings\all.php да изглежда така
Много ме кефи.
Thx предварително. :)
 
Имах предвид самият ФОН на това, а не тва за гуилда, но ако дадеш и модулите на твоят сайт за това, харесва ми става, ще е супер :)
 
Last edited:
Shaker Вместо да спамиш поже да си затваряш устата ... FreestyleR пич истегли си фона и си готов :)
 
shaker Вместо да спамиш поже да си затваряш устата ... Freestyler пич истегли си фона и си готов :)
Ама сериозно ли?А ти имаш ли представа на къкво се смея,че се обаждаш не подготвен?
 
ДА че са видели нещо от сайтати.
По темата това се прави с css
 
В td-то слагаш background и пътя към картинката.
 
сложи <img> i <a ...> таговете в един <span> таг и след това в CSS правиш височина,широчина,фонове,цветове и т.н.,аз лично не виждам <td>
 
PHP:
<?
require("config.php");


if($muweb['gm']=='no'){
$query = "Select TOP 50 Name,Class,cLevel,resets,Money,PKcount from Character where ctlcode !='32' and ctlcode !='8' order by resets desc ,clevel desc";}
elseif($muweb['gm']=='yes'){
$query = "Select TOP 50 Name,Class,cLevel,resets,Money,PKcount from Character order by resets desc ,clevel desc";}

$result = $db->Execute($query);


$content ='<center><img src="images/arr.png" border="0" /> <a href="guilds.php"><font face=Verdana  color=white><b>Guilds</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arr.png" border="0" /> <a href="elf.php"><font face=Verdana  color=white><b>FE</a>/<a href="me.php"><font face=Verdana  color=white><b>ME</a>&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arr.png" border="0" /> <a href="dw.php"><font face=Verdana  color=white><b>DW</a>/<a href="sm.php"><font face=Verdana  color=white><b>SM</a>&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arr.png" border="0" /> <a href="dk.php"><font face=Verdana  color=white><b>DK</a>/<a href="bk.php"><font face=Verdana  color=white><b>BK</a>&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arr.png" border="0" /> <a href="mg.php"<font face=Verdana  color=white><b>MG</a>&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arr.png" border="0" /> <a href="dl.php"><font face=Verdana  color=white><b>DL</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arr.png" border="0" /> <a href="pk.php"><font face=Verdana  color=white><b>PK</a>
<br><p>
<br></br>
<font color=white>
<center><table  height=0 cellspacing=1 cellpadding=1
                                width=290 border=0 bordercolor=DarkGray><tr> 
<td bordercolor=DarkGray width=10 background="images/rank.png" height=20 valign=top align=center><font face=Verdana color=Gray><b>ID</font></td>
<td bordercolor=DarkGray width=90 background="images/rank.png" height=20 valign=top align=center><font face=Verdana color=Gray><b>Name</font></b></td>
<td bordercolor=DarkGray width=10 background="images/rank.png" height=20 valign=top align=center><font face=Verdana color=Gray><b>Level</font></b></td>
<td bordercolor=DarkGray width=10 background="images/rank.png" height=20 valign=top align=center><font face=Verdana color=Gray><b>Resets</font></b></td>
<td bordercolor=DarkGray width=10 background="images/rank.png" height=20 valign=top align=center><font face=Verdana color=Gray><b>Class</font></b></td>
<td bordercolor=DarkGray width=10 background="images/rank.png" height=20 valign=top align=center><font face=Verdana color=Gray><b>Status</font></b></td>

</tr>';

for($i=0;$i < $result->numrows();++$i)
         {
             $row = $result->fetchrow();
             $rank = $i+1;
             $rank2 = $rank+1;


             if($row[1] == 0){ $row[1] ='<img width=24 height=30 src=./images/dw-small.gif width=11 height=11 >';
                             }
             if($row[1] == 1){ $row[1] ='<img width=24 height=30 src=./images/dw-small.gif width=11 height=11 >';
                             }
             if($row[1] == 2){ $row[1] ='<img width=24 height=30 src=./images/dw-small.gif width=11 height=11 >';
                             }
             if($row[1] == 16){ $row[1] ='<img width=24 height=30 src=./images/dk-small.gif width=11 height=11 >';
                              }
             if($row[1] == 17){ $row[1] ='<img width=24 height=30 src=./images/dk-small.gif width=11 height=11 >';
                              }
             if($row[1] == 18){ $row[1] ='<img width=24 height=30 src=./images/dk-small.gif width=11 height=11 >';
                              }
             if($row[1] == 32){ $row[1] ='<img width=24 height=30 src=./images/elf-small.gif width=11 height=11 >';
                              }
             if($row[1] == 33){ $row[1] ='<img width=24 height=30 src=./images/elf-small.gif width=11 height=11 >';
                              }
             if($row[1] == 34){ $row[1] ='<img width=24 height=30 src=./images/elf-small.gif width=11 height=11 >';
                              }
             if($row[1] == 48){ $row[1] ='<img width=24 height=30 src=./images/mg-small.gif width=11 height=11 >';
                              }
             if($row[1] == 49){ $row[1] ='<img width=24 height=30 src=./images/mg-small.gif width=11 height=11 >';
                              }
             if($row[1] == 64){ $row[1] ='<img width=24 height=30 src=./images/dl-small.gif width=11 height=11 >';
                              }
             if($row[1] == 65){ $row[1] ='<img width=24 height=30 src=./images/dl-small.gif width=11 height=11 >';



                             }

$acc_search="Select AccountID from Character where name='$row[0]'";
$dada=$db->Execute($acc_search);
$acc=$dada->fetchrow();
$query2="Select ConnectStat from memb_stat where memb___id='$acc[0]'";
$blabla=$db->Execute($query2);
$blabla=$blabla->fetchrow();

if($blabla[0] == '0'){ $status = "<span class='status_offline'><img src=./images/Offline.gif width=11 height=11 ></span> "; }
if($blabla[0] != '0'){ $status = "<span class='status_online'><img src=./images/Online.gif width=11 height=11 ></span> "; }

$content .="<tr>
<td background=images/rank1.png  height=20 valign=top align='center'><font face=Verdana color=DimGray><b>$rank.</td>
<td background=images/rank1.png  height=20 valign=top align='center'><font face=Verdana color=white>$row[0]</td>
<td background=images/rank1.png  height=20 valign=top align='center'><font face=Verdana color=white><b>$row[2]</td>
<td background=images/rank1.png  height=20 valign=top align='center'><font face=Verdana color=LightSalmon><b>[<font face=Verdana color=white>$row[3]<font face=Verdana color=LightSalmon>]</td>
<td background=images/rank1.png   width=90 height=20 valign=top align='center'><font face=Verdana color=DodgerBlue>$row[1]</td>
<td background=images/rank1.png  height=20 valign=top align='center'><font face=Verdana color=white><b>$status</td>

</tr>";
			
          }

show($content);
?>


</table>


Да не искаш да е така ако изкаш ще кача и картинките на геройте ако не искаш да има картинки махни <img width=24 height=30 src=./images/mg-small.gif width=11 height=11 > и го направи 'MG(мг примерно)' дано сам ти помогнал :) Mephisto ти както му го обесни вярно точно му каза ама той май нете схвана!Доколкото ми е казал Real има една дупка ама е голяма!
 
Last edited:
  • Like
Reactions: FreestyleR
not understand

Do not understand.....
 
Last edited: