Total Users Online: 69 üye, 3 guest | Tarih/Saat: 2024-04-18 02:03
 
randpolls editlemesi
2012-02-07 10:53 GMT  Çoklu Alıntı
TheRaskol

User is: Online status   Gender_M
Posts: 438
Ülke: Çanakkale - 17
Meslek: Palyaço
Age: 36

Merhaba arkadaşlar;



Anasayfada randpolls eklentisi kullanıyorum fakat bunu düzenlemek istiyorum.



Şu anki hali


Kod:
    if ($alreadyvoted)

                {
                $percentbar = floor(($row['po_count'] / $totalvotes) * 100);
                $res .= "<div align=\"left\">";
                $res .= $row['po_text']." : $percentbar%<div style=\"width:70%;\"><div class=\"bar_back\"><div class=\"bar_front\" style=\"width:".$percentbar."%;\"></div></div></div></div><p></p>";

                }


İstediğim hali;


Kod:
else
{
$result = "<table class=\"cells\">";

while ($row1 = sed_sql_fetcharray($sql1))
{
$po_id = $row1['po_id'];
$po_count = $row1['po_count'];
$percent = @round(100 * ($po_count / $totalvotes),1);
$percentbar = floor($percent * 2.24);

$result .= "<tr><td>";
$result .= ($alreadyvoted) ? sed_parse(sed_cc($row1['po_text']), 1, 1, 1) : "<a href=\"polls.php?a=send&amp;".sed_xg()."&amp;id=".$id."&amp;vote=".$po_id."\">".sed_parse(sed_cc($row1['po_text']), 1, 1, 1)."</a>";
$result .= "</td><td><div class=\"bar_back\"><div class=\"bar_front\" style=\"width:".$percent."%;\"></div></div></div></td><td>$percent%</td><td>(".$po_count.")</td></tr></td></tr>";

}


Teşekkür ederim.
Konuyla İlgili Diğer Başlıklar
randpolls gönder yeni sayfa
seo kategori editlemesi
Anket düzenle editlemesi

 

randpolls editlemesi
2012-02-07 18:41 GMT  Çoklu Alıntı
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
Meslek: Serbest Meslek
Age: 41

Altta verdiğin neyin kodu aynısı değilmi.?
Emlak, Oto Galeri, Rent A Car, Şiir, Edebiyat Script Siparişlerinizi Verebilirsiniz.
Detaylar İçin: kaan@ntka.org

Seditio 170 İndir
Capte Müzik İndir
Seditio Toolbar İndir

 

randpolls editlemesi
2012-02-07 18:46 GMT  Çoklu Alıntı
TheRaskol

User is: Online status   Gender_M
Posts: 438
Ülke: Çanakkale - 17
Meslek: Palyaço
Age: 36

Alttaki kod normal polls.inc içinde yer alan koddur.

 

randpolls editlemesi
2012-02-07 19:07 GMT  Çoklu Alıntı
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
Meslek: Serbest Meslek
Age: 41

Bu Yenisi Test edilmedi.
Kod:
if ($alreadyvoted)
                {
                $percentbar = floor(($row['po_count'] / $totalvotes) * 100);

$res .= "<tr><td>";
$res .= $row['po_text'];
$result .= "</td><td><div class=\"bar_back\"><div class=\"bar_front\" style=\"width:".$percentbar."%;\"></div></div></div></td><td>$percentbar%</td><td>(".$po_count.")</td></tr></td></tr>";
Emlak, Oto Galeri, Rent A Car, Şiir, Edebiyat Script Siparişlerinizi Verebilirsiniz.
Detaylar İçin: kaan@ntka.org

Seditio 170 İndir
Capte Müzik İndir
Seditio Toolbar İndir

 

randpolls editlemesi
2012-02-07 19:36 GMT  Çoklu Alıntı
TheRaskol

User is: Online status   Gender_M
Posts: 438
Ülke: Çanakkale - 17
Meslek: Palyaço
Age: 36

en son böyle yaptım

Kod:
if ($alreadyvoted)
                 {
                 $percentbar = floor(($row['po_count'] / $totalvotes) * 100);
$res .= "<table class=\"cells\">";
$res .= "<tr><td>";
$res .= $row['po_text'];
$res .= "</td><td><div class=\"bar_back\"><div class=\"bar_front\" style=\"width:".$percentbar."%;\"></div></div></div></td><td>$percentbar%</td><td>(".$po_count.")</td></tr></td></tr>";
$res .= "</table>";
                }


Fakat her şıkkı table içine aldı. (".$po_count.") sayısını göstermiyor. Ve uzun bar çubukları çok dar oldu.


 

randpolls editlemesi
2012-02-07 20:19 GMT  Çoklu Alıntı
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
Meslek: Serbest Meslek
Age: 41

Dene
Kod:
$res .= "<table class=\"cells\"><tr>";
if ($alreadyvoted)
                 {
                 $percentbar = floor(($row['po_count'] / $totalvotes) * 100);

$res .= "<td>";
$res .= $row['po_text'];
$res .= "</td><td><div class=\"bar_back\"><div class=\"bar_front\" style=\"width:".$percentbar."%;\"></div></div></td><td>$percentbar%</td><td>(".$row['po_count'].")</td>";

                }
$res .= "</tr></table>";
Emlak, Oto Galeri, Rent A Car, Şiir, Edebiyat Script Siparişlerinizi Verebilirsiniz.
Detaylar İçin: kaan@ntka.org

Seditio 170 İndir
Capte Müzik İndir
Seditio Toolbar İndir

 

randpolls editlemesi
2012-02-07 20:28 GMT  Çoklu Alıntı
TheRaskol

User is: Online status   Gender_M
Posts: 438
Ülke: Çanakkale - 17
Meslek: Palyaço
Age: 36

çubuklar yine küçük malesef

 

Powered by Seditio © 2009-2012 All Rights Reserved