Changeset 33


Ignore:
Timestamp:
Apr 17, 2007, 8:17:19 PM (11 years ago)
Author:
julian
Message:
Location:
trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/languages/de/Posting.language

    r23 r33  
    1717Topic_review = Themenrückblick
    1818Add_poll_option = Antwortmöglichkeit hinzufügen
     19Guests_allowed_vote = Gäste dürfen abstimmen
     20Guests_allowed_view_results = Gäste dürfen Ergebnisse sehen
     21Poll_duration = Dauer der Umfrage
     22Show_results_after_end = Ergebnisse der Umfrage erst nach deren Ende anzeigen
     23in_days = in Tagen
  • trunk/languages/de/ViewTopic.language

    r26 r33  
    2424rank_administrator = Administrator
    2525rank_supermoderator = Supermoderator
     26Must_be_logged_in_vote = Sie müssen eingeloggt sein um abstimmen zu können
     27Must_be_logged_in_view_results = Sie müssen eingeloggt sein um die Ergebnisse zu sehen
     28Results_after_end_of_poll = Die Ergebnisse werden erst nach Ende der Umfrage angezeigt
  • trunk/modules/EditProfile.class.php

    r15 r33  
    287287                             * Move new avatar to correct dir
    288288                             */
    289                             $localAvatarFileName = 'upload/avatars/'.USERID.'.'.$fileExtension;
     289                            $localAvatarFileName = 'uploads/avatars/'.USERID.'.'.$fileExtension;
    290290                            move_uploaded_file($_FILES['avatarFile']['tmp_name'],$localAvatarFileName);
    291291                            chmod($localAvatarFileName,0777);
    292292                            $this->modules['DB']->query("UPDATE ".TBLPFX."users SET userAvatarAddress='$localAvatarFileName' WHERE userID='".USERID."'");
    293293
    294                             $avatar_selected_text = sprintf($this->modules['Language']->getString('avatar_selected_text'),'<img src="'.$remote_avatar_file_name.'" width="'.$cONFIG['avatar_image_width'].'" height="'.$cONFIG['avatar_image_height'].'" border="0" alt="" />');
     294                            $avatarSelectedText = sprintf($this->modules['Language']->getString('avatar_selected_text'),'<img src="'.$localAvatarFileName.'" width="'.$this->modules['Config']->getValue('avatar_image_width').'" height="'.$this->modules['Config']->getValue('avatar_image_height').'" border="0" alt=""/>');
    295295
    296296                            // TODO: Correct message
     
    299299                            //$tpl->parseCode(TRUE);
    300300                            //include_once('pop_ptail.php'); exit;
     301                            die($avatarSelectedText);
    301302                        }
    302303                    }
  • trunk/modules/EditTopic.class.php

    r23 r33  
    109109
    110110                case 'Delete':
    111                     // TODO: Daran denken, eventuelle Referenzen wegen Themenverschiebungen zu loeschen
    112                     $topic_posts_ids = array();
    113                     $this->modules['DB']->query("SELECT post_id FROM ".TBLPFX."posts WHERE topicID='$topicID'");
    114                     while(list($akt_post_id) = $this->modules['DB']->fetch_array())
    115                         $topic_posts_ids[] = $akt_post_id;
    116 
    117                     $topic_posts_counter = count($topic_posts_ids);
    118 
    119                     $this->modules['DB']->query("SELECT COUNT(*) AS poster_posts_counter, poster_id FROM ".TBLPFX."posts WHERE topicID='$topicID' GROUP BY poster_id");
    120                     $DB_data = $this->modules['DB']->raw2array();
    121                     while(list(,$akt_data) = each($DB_data)) {
    122                         $this->modules['DB']->query("UPDATE ".TBLPFX."users SET user_posts=user_posts-".$akt_data['poster_posts_counter']." WHERE user_id='".$akt_data['poster_id']."'");
    123                     }
    124 
    125                     $this->modules['DB']->query("UPDATE ".TBLPFX."forums SET forum_posts_counter=forum_posts_counter-$topic_posts_counter, forum_topics_counter=forum_topics_counter-1 WHERE forumID='$forumID'");
     111                    $this->modules['DB']->query("SELECT postID FROM ".TBLPFX."posts WHERE topicID='$topicID'");
     112                    $postIDs = $this->modules['DB']->raw2FVArray();
     113
     114                    $postsCounter = count($postIDs);
     115
     116                    $this->modules['DB']->query("SELECT COUNT(*) AS posterPostsCounter, posterID FROM ".TBLPFX."posts WHERE topicID='$topicID' GROUP BY posterID");
     117                    $postsCounter = $this->modules['DB']->raw2Array();
     118                    foreach($postsCounter AS $curCounter) {
     119                        $this->modules['DB']->query("UPDATE ".TBLPFX."users SET userPostsCounter=userPostsCounter-".$curCounter['posterPostsCounter']." WHERE userID='".$curCounter['posterID']."'");
     120                    }
     121
     122                    $this->modules['DB']->query("UPDATE ".TBLPFX."forums SET forumPostsCounter=forumPostsCounter-$postsCounter, forumTopicsCounter=forumTopicsCounter-1 WHERE forumID='$forumID'");
    126123                    $this->modules['DB']->query("DELETE FROM ".TBLPFX."topics WHERE topicID='$topicID'");
    127                     $this->modules['DB']->query("DELETE FROM ".TBLPFX."posts WHERE post_id IN ('".implode("','",$topic_posts_ids)."')");
     124                    $this->modules['DB']->query("DELETE FROM ".TBLPFX."topics WHERE topicMovedID='$topicID'");
     125                    $this->modules['DB']->query("DELETE FROM ".TBLPFX."posts WHERE postID IN ('".implode("','",$postIDs)."')");
    128126                    $this->modules['DB']->query("DELETE FROM ".TBLPFX."topics_subscriptions WHERE topicID='$topicID'");
    129127
    130                     if($topicData['topic_poll'] == 1) {
    131                         $this->modules['DB']->query("SELECT poll_id FROM ".TBLPFX."polls WHERE topicID='$topicID'");
    132                         if($this->modules['DB']->affected_rows == 1) {
    133                             list($topic_poll_id) = $this->modules['DB']->fetch_array();
    134 
    135                             $this->modules['DB']->query("DELETE FROM ".TBLPFX."polls WHERE poll_id='$topic_poll_id'");
    136                             $this->modules['DB']->query("DELETE FROM ".TBLPFX."polls_options WHERE poll_id='$topic_poll_id'");
    137                             $this->modules['DB']->query("DELETE FROM ".TBLPFX."polls_votes WHERE poll_id='$topic_poll_id'");
     128                    if($topicData['topicHasPoll'] == 1) {
     129                        $this->modules['DB']->query("SELECT pollID FROM ".TBLPFX."polls WHERE topicID='$topicID'");
     130                        if($this->modules['DB']->getAffectedRows() == 1) {
     131                            list($topicPollID) = $this->modules['DB']->fetchArray();
     132
     133                            $this->modules['DB']->query("DELETE FROM ".TBLPFX."polls WHERE pollID='$topicPollID'");
     134                            $this->modules['DB']->query("DELETE FROM ".TBLPFX."polls_options WHERE poll_id='$topicPollID'");
     135                            $this->modules['DB']->query("DELETE FROM ".TBLPFX."polls_votes WHERE poll_id='$topicPollID'");
    138136                        }
    139137                    }
    140138
    141                     if($forumID != 0) {
    142                         if(in_array($forumData['forum_last_post_id'],$topic_posts_ids) == TRUE) update_forum_last_post($forumID);
    143                         header("Location: index.php?action=viewforum&forumID=$forumID&$MYSID"); exit;
    144                     }
    145                     header("Location: index.php?$MYSID"); exit;
     139                    if(in_array($forumData['forumLastPostID'],$postIDs)) {
     140                        // TODO: Neue Funktion
     141                        update_forum_last_post($forumID);
     142                    }
     143                    Functions::myHeader(INDEXFILE."?action=ViewForum&forumID=$forumID&".MYSID);
    146144                break;
    147145
  • trunk/modules/Posting.class.php

    r29 r33  
    5555        $p['smileyID'] = isset($_POST['p']['smileyID']) ? intval($_POST['p']['smileyID']) : (($mode == 'Edit') ? addslashes($postData['smileyID']) : '');
    5656        $p['pollTitle'] = isset($_POST['p']['pollTitle']) ? $_POST['p']['pollTitle'] : '';
    57         $p['pollOptions'] = (isset($_POST['p']['pollOptions']) == TRUE && is_array($_POST['p']['pollOptions']) == TRUE) ? $_POST['p']['pollOptions'] : array();
    58 
    59         $subscriptionStatus = ($mode == 'Reply' && Functions::getSubscriptionStatus(SUBSCRIPTION_TYPE_TOPIC,USERID,$topicID) == TRUE) ? 1 : 0;
     57        $p['pollOptions'] = (isset($_POST['p']['pollOptions']) && is_array($_POST['p']['pollOptions'])) ? $_POST['p']['pollOptions'] : array();
     58
     59        $p['pollDuration'] = isset($_POST['p']['pollDuration']) ? intval($_POST['p']['pollDuration']) : 1;
     60
     61        $subscriptionStatus = ($mode == 'Reply' && Functions::getSubscriptionStatus(SUBSCRIPTION_TYPE_TOPIC,USERID,$topicID)) ? 1 : 0;
    6062
    6163        $c['showEditings'] = ($mode == 'Edit') ? $postData['postShowEditings'] : 1;
     
    6971        $c['closeTopic'] = ($mode == 'Reply') ? $topicData['topicIsClosed'] : 0;
    7072        $c['subscribeTopic'] = $subscriptionStatus;
     73
     74        $c['pollGuestsVote'] = $c['pollShowResultsAfterEnd'] = 0;
     75        $c['pollGuestsViewResults'] = 1;
    7176
    7277        if(isset($_GET['doit'])) {
     
    7782            $c['subscribeTopic'] = isset($_POST['c']['subscribeTopic']) ? 1 : 0;
    7883            $c['enableURITransformation'] = (isset($_POST['c']['enableURITransformation']) && $forumData['forumEnableURITransformation'] == 1) ? 1 : 0;
     84            $c['pollGuestsVote'] = isset($_POST['c']['pollGuestsVote']) ? 1 : 0;
     85            $c['pollGuestsViewResults'] = isset($_POST['c']['pollGuestsViewResults']) ? 1 : 0;
     86            $c['pollShowResultsAfterEnd'] = isset($_POST['c']['pollShowResultsAfterEnd']) ? 1 : 0;
    7987
    8088            if($this->modules['Auth']->isLoggedIn() == 1 && ($this->modules['Auth']->getValue('userIsAdmin') == 1 || $this->modules['Auth']->getValue('userIsSupermod') == 1 || $authData['authIsMod'] == 1)) {
     
    8896                elseif(strlen($p['messageTitle']) > 255) $error = $this->modules['Language']->getString('error_title_too_long');
    8997                elseif(trim($p['messageText']) == '') $error = $this->modules['Language']->getString('error_no_post');
    90                 elseif($mode != 'Edit' && $this->modules['Auth']->isLoggedIn() != 1 && Functions::verifyEmail($p['guestNick']) == FALSE) $error = $this->modules['Language']->getString('error_invalid_name');
    91                 elseif($mode != 'Edit' && $this->modules['Auth']->isLoggedIn() != 1 && Functions::unifyNick($p['guestNick']) == FALSE) $error = $this->modules['Language']->getString('error_existing_user_name');
     98                elseif($mode != 'Edit' && $this->modules['Auth']->isLoggedIn() != 1 && !Functions::verifyEmail($p['guestNick'])) $error = $this->modules['Language']->getString('error_invalid_name');
     99                elseif($mode != 'Edit' && $this->modules['Auth']->isLoggedIn() != 1 && !Functions::unifyNick($p['guestNick'])) $error = $this->modules['Language']->getString('error_existing_user_name');
    92100                elseif($mode == 'Edit') {
    93101                    $this->modules['DB']->query("
     
    145153
    146154                        // Eventuell die Umfrage zum Thema hinzufuegen
    147                         if(($this->modules['Auth']->getValue('userIsAdmin') == 1 || $this->modules['Auth']->getValue('userIsSupermod') == 1 || $authData['authIsMod'] == 1 || $authData['authPostPoll'] == 1) && trim($p['pollTitle']) != '') {
     155                        if(($this->modules['Auth']->getValue('userIsAdmin') == 1 || $this->modules['Auth']->getValue('userIsSupermod') == 1 || $authData['authIsMod'] == 1 || $authData['authPostPoll'] == 1) && trim($p['pollTitle']) != '' && $p['pollDuration'] > 0) {
    148156                            while(list($curKey) = each($p['pollOptions'])) {
    149157                                if(trim($p['pollOptions'][$curKey]) == '')
     
    160168                                        posterID='".USERID."',
    161169                                        pollTitle='".$p['pollTitle']."',
    162                                         pollGuestNick='".$p['guestNick']."'
     170                                        pollGuestNick='".$p['guestNick']."',
     171                                        pollStartTimestamp='".time()."',
     172                                        pollEndTimestamp='".(time()+86400*$p['pollDuration'])."',
     173                                        pollGuestsVote='".$c['pollGuestsVote']."',
     174                                        pollGuestsViewResults='".$c['pollGuestsViewResults']."'
    163175                                ");
    164176
     
    169181                                            ".TBLPFX."polls_options
    170182                                        SET
    171                                             topicID='$topicID',
    172183                                            optionID='$i',
    173184                                            optionTitle='$curOption'
  • trunk/modules/Register.class.php

    r29 r33  
    181181
    182182                        // TODO: Richtige Meldung bei Account verification
    183                         $this->modules['PageParts']->printMessage('registration_successful',array(sprintf($this->modules['Language']->getString('link_click_here_login'),'<a href="'.INDEXFILE.'?action=Login&amp;'.MYSID.'">','</a>')));
     183                        $this->modules['PageParts']->printMessage('registration_successful',array(sprintf($this->modules['Language']->getString('message_link_click_here_login'),'<a href="'.INDEXFILE.'?action=Login&amp;'.MYSID.'">','</a>')));
    184184                        exit;
    185185                    }
  • trunk/modules/ViewTopic.class.php

    r23 r33  
    5858
    5959
     60        // TODO:
    6061        //update_topic_cookie($forum_id,$topicID,time());
    6162
     
    9394
    9495
    95         //
    96         // Die Umfrage
    97         //
    98         $pollData = FALSE;
    99         if($topicData['topicHasPoll'] == 1) { // Falls fuer das Thema eine Umfrage angegeben wurde...
    100             $this->modules['DB']->query("SELECT * FROM ".TBLPFX."polls WHERE topicID='$topicID' LIMIT 1"); // ...versuchen die Daten der Umfrage zu laden...
    101             if($pollData = $this->modules['DB']->fetchArray()) { // ...und falls diese existiert...
    102                 if($this->modules['Auth']->isLoggedIn() == 1) { // Falls User eingeloggt ist
    103                     $this->modules['DB']->query("SELECT VoterID FROM ".TBLPFX."polls_votes WHERE PollID='".$pollData['PollID']."' AND VoterID='".USERID."'"); // Ueberpruefen, ob User shcon abgestimmt hat...
    104                     if($this->modules['DB']->getAffectedRows() == 0) // ...falls nicht...
    105                         $poll_tpl = new Template($tEMPLATE_PATH.'/'.$tCONFIG['templates']['viewtopic_poll_voting']); // ...Abstimmungsboxtemplate laden...
    106                     else { // ...andernfalls...
    107                         $info_text = $this->modules['Language']->getString('poll_already_voted_info'); // ...und Infotext fuer "schon abgestimmt" erzeugen
    108                     }
    109                 }
    110                 else { // Falls User nicht eingeloggt ist...
    111                     $poll_tpl = new Template($tEMPLATE_PATH.'/'.$tCONFIG['templates']['viewtopic_poll_results']); // ...Ergebnisboxtemplate laden...
    112                     $info_text = $this->modules['Language']->getString('poll_not_logged_in_info'); // ...und Infotext fuer "nicht eingeloggt" erzeugen
    113                 }
    114 
    115                 $this->modules['DB']->query("SELECT OptionID,OptionTitle,OptionVotesCounter FROM ".TBLPFX."polls_options WHERE topicID='$topicID' ORDER BY OptionID"); // Die Auswahlmoeglichkeiten fuer die Umfrage laden
    116                 while($akt_option = $this->modules['DB']->fetchArray()) {
    117                     $akt_fraction = ($poll_data['poll_votes'] == 0) ? 0 : round($akt_option['option_votes']/$poll_data['poll_votes'],2); // Der Anteil an Stimmen (0,xx)
    118                     $akt_percent = $akt_fraction*100; // Stimmenanteil in Prozent
    119                     $akt_votes = ($akt_option['option_votes'] == 1) ? $this->modules['Language']->getString('one_vote') : sprintf($this->modules['Language']->getString('x_votes'),$akt_option['option_votes']); // Anzahl der Stimmen
    120                     $akt_checked = ($akt_option['option_id'] == 1) ? ' checked="checked"' : ''; // checked="checked" fuer den ersten Radiobutton erzeugen (damit auf jeden Fall was ausgewaehlt ist)
    121                 }
    122             }
     96        /**
     97         * Poll
     98         */
     99        if($topicData['topicHasPoll'] == 1) {
     100            // Get poll data
     101            $this->modules['DB']->query("SELECT * FROM ".TBLPFX."polls WHERE topicID='$topicID'");
     102            $pollData = $this->modules['DB']->fetchArray();
     103            $pollHasEnded = (time()-$pollData['pollEndTimestamp']) > 0;
     104
     105            // Check if user already voted
     106            if($this->modules['Auth']->isLoggedIn() == 1) {
     107                $this->modules['DB']->query("SELECT voterID FROM ".TBLPFX."polls_votes WHERE pollID='".$pollData['pollID']."' AND voterID='".USERID."'");
     108                $userAlreadyVoted = $this->modules['DB']->getAffectedRows() != 0;
     109            }
     110            else {
     111                $userAlreadyVoted = isset($_SESSION['pollVotes']) && in_array($pollData['pollID'],explode(',',$_SESSION['pollVotes'])) || isset($_COOKIE['pollVotes']) && in_array($pollData['pollID'],explode(',',$_COOKIE['pollVotes']));
     112            }
     113
     114            // Get poll options
     115            $this->modules['DB']->query("SELECT optionID,optionTitle,optionVotesCounter FROM ".TBLPFX."polls_options WHERE pollID='".$pollData['pollID']."' ORDER BY optionID");
     116            $pollOptionsData = $this->modules['DB']->raw2Array();
     117
     118            foreach($pollOptionsData AS &$curOption) {
     119                $curFraction = ($pollData['pollVotesCounter'] == 0) ? 0 : round($curOption['optionVotesCounter']/$pollData['pollVotesCounter'],2);
     120                $curOption['_optionPercent'] = $curFraction*100;
     121                $curOption['_optionVotesCounterText'] = ($curOption['optionVotesCounter'] == 1) ? $this->modules['Language']->getString('one_vote') : sprintf($this->modules['Language']->getString('x_votes'),$curOption['optionVotesCounter']);
     122            }
     123
     124            $this->modules['Template']->assign(array(
     125                'pollData'=>$pollData,
     126                'pollOptionsData'=>$pollOptionsData,
     127                'userAlreadyVoted'=>$userAlreadyVoted,
     128                'pollHasEnded'=>$pollHasEnded
     129            ));
    123130        }
    124131
     
    141148        $postsCounter = count($postsData);
    142149
    143         //$akt_cell_class = $tCONFIG['cell_classes']['start_class'];
    144150        for($i = 0; $i < $postsCounter; $i++) {
    145151            $curPost = &$postsData[$i];
  • trunk/templates/std/files/PopupHeader.tpl

    r17 r33  
    33<head>
    44 <title>{$modules.Navbar->parseElements(0)}</title>
    5  <link rel="stylesheet" href="templates/std/templates/styles/ts_tbb2_standard.css" type="text/css"></link>
     5 <link rel="stylesheet" href="{$modules.Template->getTD()}/styles/ts_tbb2_standard.css" type="text/css"></link>
    66 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    77 <meta http-equiv="Content-Style-Type" content="text/css"/>
  • trunk/templates/std/files/Posting.tpl

    r21 r33  
    1212
    1313        var newtd = document.createElement('td');
     14        newtd.style.padding = '3px';
    1415        var newinput = document.createElement('input');
    1516        newinput.type = 'text';
     
    107108 </tr>
    108109 <tr>
     110  <td class="CellStd" valign="top"><span class="FontNorm">{$modules.Language->getString('Poll_duration')}:</span></td>
     111  <td class="CellAlt" valign="top"><input class="FormText" size="5" name="p[pollDuration]" value="{$p.pollDuration}"/> <span class="FontSmall">({$modules.Language->getString('in_days')})</span></td>
     112 </tr>
     113 <tr>
     114  <td class="CellStd" valign="top"><span class="FontNorm">{$modules.Language->getString('Options')}:</span></td>
     115  <td class="CellAlt" valign="top"><span class="FontNorm">
     116   <label><input class="FormCheckbox" type="checkbox" name="c[pollShowResultsAfterEnd]"{if $c.pollShowResultsAfterEnd == 1} checked="checked"{/if}/>&nbsp;{$modules.Language->getString('Show_results_after_end')}</label>
     117   <br/><label><input class="FormCheckbox" type="checkbox" name="c[pollGuestsVote]"{if $c.pollGuestsVote == 1} checked="checked"{/if}/>&nbsp;{$modules.Language->getString('Guests_allowed_vote')}</label>
     118   <br/><label><input class="FormCheckbox" type="checkbox" name="c[pollGuestsViewResults]"{if $c.pollGuestsViewResults == 1} checked="checked"{/if}/>&nbsp;{$modules.Language->getString('Guests_allowed_view_results')}</label>
     119  </span></td>
     120 </tr>
     121 <tr>
    109122  <td class="CellStd" valign="top"><span class="FontNorm">{$modules.Language->getString('Poll_options')}:</span></td>
    110123  <td class="CellAlt" valign="top">
     
    112125   {foreach from=$p.pollOptions item=curOption name=pollOptionsLoop}
    113126    <tr id="idOption{$smarty.foreach.pollOptionsLoop.iteration}">
    114      <td><input type="text" class="FormText" size="30" value="{$curOption}" name="p[pollOptions][]""/></td>
    115      <td><span class="FontSmall"><a href="javascript:deletePollOption('idOption{$smarty.foreach.pollOptionsLoop.iteration}');">l&ouml;schen</a></span></td>
     127     <td style="padding:3px;"><input type="text" class="FormText" size="30" value="{$curOption}" name="p[pollOptions][]""/></td>
     128     <td style="padding:3px;"><span class="FontSmall"><a href="javascript:deletePollOption('idOption{$smarty.foreach.pollOptionsLoop.iteration}');">l&ouml;schen</a></span></td>
    116129    </tr>
    117130   {/foreach}
  • trunk/templates/std/files/PrivateMessagesViewPM.tpl

    r17 r33  
    3333  <td class="CellAlt"><input size="60" class="FormText" type="text" name="p[pmSubject]" value="{$p.pmSubject}" maxlength="255"/></td>
    3434 </tr>
    35  <template:bbcoderow>
     35 <!--
    3636  <tr>
    3737   <td class="CellStd" valign="top"></td>
    3838   <td class="CellAlt">{$bbcode_box}</td>
    3939  </tr>
    40  </template>
     40 -->
    4141 <tr>
    4242  <td class="CellStd" valign="top"><span class="FontNorm">{$modules.Language->getString('Message')}:</span></td>
  • trunk/templates/std/files/ViewTopic.tpl

    r19 r33  
    4444</table>
    4545<br/>
    46 {if $pollData}
     46{if $topicData.topicHasPoll == 1}
     47 <table class="TableStd" width="100%">
     48 <tr><td class="CellTitle"><span class="FontTitle">{$modules.Language->getString('Poll')}: {$pollData.pollTitle}</td></tr>
     49 <tr><td class="CellStd"><span class="FontNorm">
     50  {if $userAlreadyVoted || $modules.Auth->isloggedIn() != 1 && $pollData.pollGuestsVote != 1 || $pollHasEnded}
     51   {if $modules.Auth->isloggedIn() != 1 && $pollData.pollGuestsViewResults == 0}
     52    {$modules.Language->getString('Must_be_logged_in_view_results')}
     53   {elseif $pollData.pollShowResultsAfterEnd && !$pollHasEnded}
     54    {$modules.Language->getString('Results_after_end_of_poll')}
     55   {else}
     56    <table border="0" cellpadding="2" cellspacing="0">
     57    {foreach from=$pollOptionsData item=curOption}
     58     <tr>
     59      <td style="padding:3px;"><span class="FontNorm">{$curOption.optionTitle}</span></td>
     60      <td style="padding:3px;"><span class="FontNorm"><img src="{$modules.Template->getTD()}/images/poll.gif" alt="" border="0" width="{$curOption._optionPercent}" height="15"/></span></td>
     61      <td style="padding:3px;"><span class="FontSmall">({$curOption._optionPercent} %, {$curOption._optionVotesCounterText})</span></td>
     62     </tr>
     63    {/foreach}
     64    </table>
     65   {/if}
     66  {else}
     67   <table border="0" cellpadding="2" cellspacing="0">
     68   {foreach from=$pollOptionsData item=curOption}
     69    <tr>
     70     <td style="padding:3px;"><span class="FontNorm"><input type="radio" name="p_option_id" value="{$curOption.optionID}"/></span></td>
     71     <td style="padding:3px;"><span class="FontNorm">{$curOption.optionTitle}</span></td>
     72    </tr>
     73   {/foreach}
     74   </table>
     75  {/if}
     76 </span></td></tr>
     77 </table>
     78 <br/>
    4779{/if}
    48 <table class="TableStd" width="100%" border="0" cellspacing="0" cellpadding="3">
     80<table class="TableStd" width="100%">
    4981<tr>
    5082 <td class="CellTitle" align="left" width="15%"><span class="FontTitleSmall">{$modules.Language->getString('Author')}</span></td>
Note: See TracChangeset for help on using the changeset viewer.