randpolls editlemesi
|
#6819 |
|
|
TheRaskol
User is:
Posts: 438
Meslek: Palyaço
Age: 38
|
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&".sed_xg()."&id=".$id."&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. |
randpolls editlemesi
|
#6820 |
|
|
Kaan
User is:
Posts: 2772
Meslek: Serbest Meslek
Age: 43
|
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
|
#6821 |
|
|
TheRaskol
User is:
Posts: 438
Meslek: Palyaço
Age: 38
|
Alttaki kod normal polls.inc i?inde yer alan koddur.
|
randpolls editlemesi
|
#6822 |
|
|
Kaan
User is:
Posts: 2772
Meslek: Serbest Meslek
Age: 43
|
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
|
#6823 |
|
|
TheRaskol
User is:
Posts: 438
Meslek: Palyaço
Age: 38
|
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
|
#6825 |
|
|
Kaan
User is:
Posts: 2772
Meslek: Serbest Meslek
Age: 43
|
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
|
#6826 |
|
|
TheRaskol
User is:
Posts: 438
Meslek: Palyaço
Age: 38
|
?ubuklar yine k???k malesef
|

















