Narysx
Narys
Ekspertas

Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
echo "<center><table width='100%' align='center'>
<tr>
<td width='33%'>";
openside("Naujausios modifikacijos");
echo "<center><div class='side-label'><b>Naujausios modifikacijos</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='center'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</center>";
closeside();
echo "</td>
<td width='33%'>";
openside("Siunčiamiausios modifikacijos");
echo "<div class='side-label'><b>Siunčiamiausios modifikacijos</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='center'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
echo "</td>
<td width='33%'>";
echo "</tr>
</table></center>";
Juokingas klausimas, bet kaip padaryti, kad visas panelės turinys būtų centre? :D Visaip bandžiau, dėjau visur center tagus, bet nk, vistiek left. :|
|
iGolf
Administratorius
Ekspertas

Pranešimai: 2415
Įstojęs: 2007 Gru. 22 15:12:09
|
daryk <center> <center>
Visa laiką ieškau žmonių keletui projektų sudominau? Rašykit |
Narysx
Narys
Ekspertas

Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
Taigi sakau, kad dėjau visur <center> tagus, bet vistiek lygiavimas nesikeičia. 
|
ex-it
Narys
Ekspertas

Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
|
<td align='center'>
Ten kur td
|
Narysx
Narys
Ekspertas

Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
Sudėjau visur, bet lygiuoja ne pačias paneles, o turinį juose. Čia yra centrinė panelė, kurioje yra dar dvi panelės.
|
ex-it
Narys
Ekspertas

Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
|
$itemsubject salia jo center dek tagus
|
Narysx
Narys
Ekspertas

Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
Vistiek nieko... Sakau, tu ne taip turbūt supratai. Čia kai padedu centruojasi pats turinys panelėse, o man reikia pačias paneles sucentruot.
|
ex-it
Narys
Ekspertas

Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
|
LOl, tai cia tu matosi is 3 paneliu, nori 2 padaryti procentus keisk. ir nutrink gale <td width='33%'>
Redagavo ex-it 2009 Sau. 14 21:01:08 |
Mantux94
Narys
Tankas
Pranešimai: 1753
Įstojęs: 2008 Sau. 4 17:01:06
|
echo "<center><table width='100%' align='center'>
<tr>
<td width='33%'>";
openside("Naujausios modifikacijos");
echo "<center><div class='side-label'><b>Naujausios modifikacijos</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<center><a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='center'>".$data['download_count']."</center></td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</center>";
closeside();
echo "</td>
<td width='33%'>";
openside("Siunčiamiausios modifikacijos");
echo "<div class='side-label'><b>Siunčiamiausios modifikacijos</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='small'><center> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='center'>".$data['download_count']."</td>\n</tr></center>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
echo "</td>
<td width='33%'>";
echo "</tr>
</table></center>";
taip norejai?
B) Mokausi PHP B)
Redagavo Mantux94 2009 Sau. 14 21:01:24 |
Narysx
Narys
Ekspertas

Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
Tiksliai. Nu va, dabar viskas atrodo gerai:
opentable("Modifikacijos");
echo "<table width='100%' align='center'>
<tr>
<td width='50%'>";
openside("Naujausios modifikacijos");
echo "<center><div class='side-label'><b>Naujausios modifikacijos</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."modifikacijos.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='center'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</center>";
closeside();
echo "</td>
<td width='50%'>";
openside("Siunčiamiausios modifikacijos");
echo "<div class='side-label'><b>Siunčiamiausios modifikacijos</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."modifikacijos.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='center'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
echo "</td>
";
echo "
</table>";
closeside();
Bet necentruoja.
Mantux94 parašė:
echo "<center><table width='100%' align='center'>
<tr>
<td width='33%'>";
openside("Naujausios modifikacijos");
echo "<center><div class='side-label'><b>Naujausios modifikacijos</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<center><a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='center'>".$data['download_count']."</center></td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</center>";
closeside();
echo "</td>
<td width='33%'>";
openside("Siunčiamiausios modifikacijos");
echo "<div class='side-label'><b>Siunčiamiausios modifikacijos</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<td class='small'><center> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='center'>".$data['download_count']."</td>\n</tr></center>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside();
echo "</td>
<td width='33%'>";
echo "</tr>
</table></center>";
taip norejai?
Ne, tu čia irgi panelių turinį sucentravai.
Redagavo Narysx 2009 Sau. 14 21:01:04 |
ex-it
Narys
Ekspertas

Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
|
Pasikeiti procentus po 50 padarai, ir nutrini gale ten ta paskutini
<td width='33%'> viskas.
|
Narysx
Narys
Ekspertas

Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
Viską taip ir padariau, bet ne center būna. ;D Daviau kodą auksčiau.
|
Mantux94
Narys
Tankas
Pranešimai: 1753
Įstojęs: 2008 Sau. 4 17:01:06
|
taip ir nesupratau tada ko norejai 
B) Mokausi PHP B) |
Narysx
Narys
Ekspertas

Pranešimai: 2940
Įstojęs: 2007 Rugs. 18 19:09:56
|
Paneles pačias sucentruot. Čia panelėje yra dvi panelės, bet jos stovi ne centre.
|