könnz ihr mal bitte auf meiner Seite zu der Umfrage schauen?
Dort ist alles etwas zu breit.
Wie müsste ich meine php Datei abändern , damit die Anzahl der Antworten immer unter der Frage steht?
Dann habe ich noch das Problem, dass die Anzahl der Votes und die Prozente sich verschoben haben. Ich poste mal einen Teil der vote.php:
if ($fraRow->recht == 2) { $inTextAr = $_SESSION['authid']; } elseif ($fraRow->recht == 1) { $inTextAr = $_SERVER['REMOTE_ADDR']; } echo '<b>'.$fraRow->frage.($fraRow->answers > 1 ? " ($fraRow->answers Antworten möglich)" : '').'</b>'; if ($fraRow->exptime > 0) { echo '<br /><small>(bis '.date('H.i \U\h\r - d.m.Y',$fraRow->exptime).')</small>'; } if ( in_array ( $inTextAr , $textAr ) OR $fraRow->stat == 0 OR $voted) { echo '<table width="90" cellpadding="0">'; $imPollArrayDrin = true; } else { echo '<form action="index.php?vote-W'.$fraRow->poll_id.'" method="POST">'; $imPollArrayDrin = false; } $i = 0; $pollErg = db_query('SELECT antw, res, sort FROM `prefix_poll_res` WHERE poll_id = "'.$fraRow->poll_id.'" ORDER BY sort'); while ( $pollRow = db_fetch_object($pollErg) ) { if ( $imPollArrayDrin ) { echo '<tr><td>'.$pollRow->antw.'</td><td align="right">'.$pollRow->res.' ('.round($pollRow->res/($ges>0?$ges:1)*100,1).'%)</td></tr>'; } else { $i++; if ($fraRow->answers <= 1) { echo '<input type="radio" id="vote'.$i.'" name="radio" value="'.$pollRow->sort.'"><label for="vote'.$i.'"> '.$pollRow->antw.'</label><br>'; } else { echo '<input type="checkbox" id="vote'.$i.'" name="radio[]" value="'.$pollRow->sort.'"><label for="vote'.$i.'"> '.$pollRow->antw.'</label><br>'; } } } if ( $imPollArrayDrin ) { echo '<tr><td colspan="2" align="right">'.$lang['whole'].': '.$ges.'</td></tr></table>'; } else { echo '<p align="center"><input type="submit" value="'.$lang['formsub'].'"></p></form>'; } } else { echo $lang['nowvoteavailable']; } ?>
und der style.css
body { margin: 0; padding: 0; background: url(img/bg.jpg); color: ; font:10px Verdana, Helvetica, sans-serif; text-decoration: none scrollbar-3dlight-color : #8F7A30; scrollbar-base-color : #8F7A30; scrollbar-darkshadow-color : #000000; scrollbar-face-color : #8F7A30; scrollbar-highlight-color : #000000; scrollbar-shadow-color : #cccccc; scrollbar-track-color : #8F7A30; } #top { margin: 0 auto; padding: 0; width: 950px } #footer_menu { color: #ffffff; width:200px; float:left; margin:55px 0px 0px 350px; display:inline; } #header { background-image: url(img/header.jpg); background-repeat: no-repeat; background-position: center bottom; width: 950px; height:268px } #center { background-image: url(img/center.jpg); background-position: center; margin: 0 auto; padding: 0; width:950px; } #footer { background-image: url(img/footer.jpg); background-repeat: no-repeat; background-position: center; text-align: center; width: 950px; height: 75px; clear: both } #left_col { width: 160px; color: #8F7A30; float: left; padding-top: 0px; padding-left: 10px; padding-right: 0px; padding-bottom: 0px; } #left_col .Cmite, #left_col .Cnorm, #left_col .Cdark { color: #333333; } #left_col .menu_heading { color: #62CB14; display:block; letter-spacing: 1px; font-size: 11px; padding-top: 15px; padding-left: 15px; padding-right: 5px; padding-bottom: 0px; } #left_col ul { padding: 0; margin: 5; list-style: inside url(img/box_menu_pfeil.gif); width: 145px; } #left_col li { margin:0; padding: 5px 0 0 2px; background: url(img/box_menu_trennlinie.gif) no-repeat bottom; } #left_col li ul { width: 145px; background: url(img/box_menu_trennlinie.gif) no-repeat top; } #left_col li li { padding-left: 16px; } #left_col li a { color: #333333; padding-left: 8px; font-size: 11px; font-weight: normal; text-decoration: none; } #left_col li a:hover { color: #DE0C01; padding-left: 8px; font-size: 11px; font-weight: normal; text-decoration: none; } #main_col { width: 550px; float: left; padding-top: 0px; padding-left: 15px; padding-right: 5px; padding-bottom: 6px; clear: none; min-height: 100px; } #right_col1 { width: 182px; float: right; padding-top: 0px; padding-left: 8px; padding-right: 10px; padding-bottom: 0px; } #right_col1 .menu_heading { color: #62CB14; display:block; letter-spacing: 1px; font-size: 11px; padding-top: 15px; padding-left: 15px; padding-right: 5px; padding-bottom: 0px; } #search_box{ color: #8F7A30; float:right; margin:15px 20px 0px 0px; display:inline; } img { border:0px; } td { font-family: Verdana; font-size: 11px; } a, #left_col .Cmite a, #left_col .Cnorm a, #left_col .Cdark a { color: #333333; font-family: Verdana; font-size: 11px; text-decoration: none; } a:hover { color: #DE0C01; text-decoration: none; font-size: 11px; } a.box { color: #333333; font-family: Verdana; font-size: 11px; text-decoration: none; } a.box:hover { color: #8F7A30; text-decoration: none; font-size: 11px; } .Chead { font-size: 11px; background: #8F7A40; color: #333333; } .Chead td, .Chead td strong, .Chead h4, .Chead td b { background: #8F7A50; color: #333333; } .Callg { color: #333333; } .Callg td { color: #333333; } .Cnorm { background-color: #8F7A50; } .Cmite { background-color: #8F7A50; } .Cdark { background-color: #8F7A40; } .rand { border: solid #333333 1px; } .smalfont { font-size: 10px; text-decoration: none; } .border { background-color: #333333; } .title { color: #333333; font: 11px Verdana; font-weight: bold } .login { color:#000000; background-color:#8F7A50; font-size: 10px; font-family: verdana, arial, helvetica; border-style: solid; border: 1px; border-color:#8F7A30; } hr { height: 0px; border: solid #383B41 0px; border-top-width: 1px; } input, textarea, select { color: #000000; font: 11px Verdana; border-color: #333333; border-width: 1px; border-style: solid; font-weight: none; text-decoration: none; background-color: #8F7A50; }
verwendete ilchClan Version: 1.1
betroffene Homepage: externer Link