Seditio ve Ldu hakkında sınırsız arama yapın
 
 
> 1 <

Etiketler: anketleri kullanmalı yapmak

Author Message

ikissyoudie

Members


Online status

22 posts

Location: Turkey
Occupation:
Age:

#13804   2008-01-31 13:16 GMT      

Arkadaşlar anketleri nasıl oy kullanmalı yapabiliriz ?

Dvdbil

Administrator


Online status

2,179 posts
http://www.seditio-tr.com
Pagerank: 3

Location: Turkey istanbul
Occupation: Web Site(ler) İşletmeciliği :)
Age: 28

#13805   2008-01-31 13:23 GMT      
O nasıl oluyor ?

ikissyoudie

Members


Online status

22 posts

Location: Turkey
Occupation:
Age:

#13807   2008-01-31 13:39 GMT      

bilmem.Olmuyormu bende onu soruyorum.Ldu kullanan bir sitede var.. şu sitede http://www.ultima-strike.com/ ldu da varsa bundada olabişlir diye düşündüm...

Dvdbil

Administrator


Online status

2,179 posts
http://www.seditio-tr.com
Pagerank: 3

Location: Turkey istanbul
Occupation: Web Site(ler) İşletmeciliği :)
Age: 28

#13809   2008-01-31 13:50 GMT      
Radio butonlu yani seçilebilir olmasını mı istiyorsun ? ve seçeneğe değil de gönder butonuna basarak oylama yapmasını istiyorsun ?

ikissyoudie

Members


Online status

22 posts

Location: Turkey
Occupation:
Age:

#13810   2008-01-31 14:21 GMT      
Hah ondan işte Bu sitedeki gibi yani...

Dvdbil

Administrator


Online status

2,179 posts
http://www.seditio-tr.com
Pagerank: 3

Location: Turkey istanbul
Occupation: Web Site(ler) İşletmeciliği :)
Age: 28

#13822   2008-01-31 16:28 GMT      
Neocrome.net'te sanırım bununla ilgili konular vardı, o siteyi araştır..

Kaan

Moderators


Online status

2,045 posts
http://www.ntka.org
Pagerank: 3

Location: Turkey
Occupation: Destek
Age: 25

#13824   2008-01-31 16:42 GMT      
recentitems.php dosyasını aç

Alttakini bul
Code:
function sed_get_latestpolls($limit, $mask)
{
global $L, $db_polls, $db_polls_voters, $db_polls_options, $usr, $plu_empty;



$sql_p = sed_sql_query("SELECT poll_id, poll_text FROM $db_polls WHERE 1 AND poll_state=0  AND poll_type=0 ORDER by poll_creationdate DESC LIMIT $limit");

while ($row_p = sed_sql_fetcharray($sql_p))
{
unset($res);
$poll_id = $row_p['poll_id'];

if ($usr['id']>0)
{ $sql2 = sed_sql_query("SELECT pv_id FROM $db_polls_voters WHERE pv_pollid='$poll_id' AND (pv_userid='".$usr['id']."' OR pv_userip='".$usr['ip']."') LIMIT 1"); }
       else
{ $sql2 = sed_sql_query("SELECT pv_id FROM $db_polls_voters WHERE pv_pollid='$poll_id' AND pv_userip='".$usr['ip']."' LIMIT 1"); }

if (sed_sql_numrows($sql2)>0)
{
$alreadyvoted =1;
$sql2 = sed_sql_query("SELECT SUM(po_count) FROM $db_polls_options WHERE po_pollid='$poll_id'");
$totalvotes = sed_sql_result($sql2,0,"SUM(po_count)");
}
else
{ $alreadyvoted =0; }

$res .= "<h5>".sed_parse(sed_cc($row_p['poll_text']), 1, 1, 1)."</h5>";

$sql = sed_sql_query("SELECT po_id, po_text, po_count FROM $db_polls_options WHERE po_pollid='$poll_id' ORDER by po_id ASC");

while ($row = sed_sql_fetcharray($sql))
{
if ($alreadyvoted)
{
$percentbar = floor(($row['po_count'] / $totalvotes) * 100);
$res .= sed_parse(sed_cc($row['po_text']), 1, 1, 1)." : $percentbar%<div style=\"width:95%;\"><div class=\"bar_back\"><div class=\"bar_front\" style=\"width:".$percentbar."%;\"></div></div></div>";
}
else
{
$res .= "<a href=\"javascript:pollvote('".$poll_id."','".$row['po_id']."')\">";
$res .= sed_parse(sed_cc($row['po_text']), 1, 1, 1)."</a><br />";
}
}
$res .= "<p style=\"text-align:center;\"><a href=\"javascript:polls('".$poll_id."')\">".$L['polls_viewresults']."</a> &nbsp; ";
$res .= "<a href=\"javascript:polls('viewall')\">".$L['polls_viewarchives']."</a></p>";
$res_all .= sprintf($mask, $res);
}

// { $res = $plu_empty; }

return($res_all);
}


Alttaiki ile degiştir.

Code:
function sed_get_latestpolls($limit, $mask)
    {
    global $L, $db_polls, $db_polls_voters, $db_polls_options, $usr, $plu_empty;


   
    $sql_p = sed_sql_query("SELECT poll_id, poll_text FROM $db_polls WHERE 1 AND poll_state=0  AND poll_type=0 ORDER by poll_creationdate DESC LIMIT $limit");

    while ($row_p = sed_sql_fetcharray($sql_p))
        {
        unset($res);
        $poll_id = $row_p['poll_id'];

        if ($usr['id']>0)
           { $sql2 = sed_sql_query("SELECT pv_id FROM $db_polls_voters WHERE pv_pollid='$poll_id' AND (pv_userid='".$usr['id']."' OR pv_userip='".$usr['ip']."') LIMIT 1"); }
           else
           { $sql2 = sed_sql_query("SELECT pv_id FROM $db_polls_voters WHERE pv_pollid='$poll_id' AND pv_userip='".$usr['ip']."' LIMIT 1"); }

        if (sed_sql_numrows($sql2)>0)
            {
            $alreadyvoted =1;
            $sql2 = sed_sql_query("SELECT SUM(po_count) FROM $db_polls_options WHERE po_pollid='$poll_id'");
            $totalvotes = sed_sql_result($sql2,0,"SUM(po_count)");
            }
        else
            { $alreadyvoted =0; }

        $res .= "<h5>".sed_parse(sed_cc($row_p['poll_text']), 1, 1, 1)."</h5>";

        $sql = sed_sql_query("SELECT po_id, po_text, po_count FROM $db_polls_options WHERE po_pollid='$poll_id' ORDER by po_id ASC");

        while ($row = sed_sql_fetcharray($sql))
            {
            if ($alreadyvoted)
                {
                $percentbar = floor(($row['po_count'] / $totalvotes) * 100);
                $res .= sed_parse(sed_cc($row['po_text']), 1, 1, 1)." : $percentbar%<div style=\"width:95%;\"><div class=\"bar_back\"><div class=\"bar_front\" style=\"width:".$percentbar."%;\"></div></div></div>";
                }
            else
                {
                $res .= "<a href=\"javascript:pollvote('".$poll_id."','".$row['po_id']."')\">";
                $res .= "<input type='radio' name='pollbutton' class='radio' />".sed_parse(sed_cc($row['po_text']), 1, 1, 1)."</a><br />";
                }
            }
        $res .= "<div style=\"text-align:center;\"><a href=\"javascript:polls('".$poll_id."')\">".$L['polls_viewresults']."</a> &nbsp; ";
        $res .= "<a href=\"javascript:polls('viewall')\">".$L['polls_viewarchives']."</a></div>";
        $res_all .= sprintf($mask, $res);
        }

//    { $res = $plu_empty; }

    return($res_all);
    }
> 1 <

Benzer konular (Similar topics) #BETA

Keywords (beta):

Forum Arşiv (beta):

[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]