Changeset 35561

Show
Ignore:
Timestamp:
03/20/08 08:12:09 (4 months ago)
Author:
GamerZ
Message:

so that it looks nice on WP2.5

Location:
wp-polls/trunk
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • wp-polls/trunk/polls-add.php

    r22648 r35561  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.3 Plugin: WP-Polls 2.30                                                       | 
    6 |     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
     5|     WordPress 2.5 Plugin: WP-Polls 2.30                                                       | 
     6|     Copyright (c) 2008 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
    88|     File Written By:                                                                                                  | 
     
    119119            // Create Elements 
    120120            var poll_tr = document.createElement("tr"); 
    121             var poll_td1 = document.createElement("td"); 
     121            var poll_td1 = document.createElement("th"); 
    122122            var poll_td2 = document.createElement("td"); 
    123123            var poll_answer = document.createElement("input"); 
    124             var poll_answer_count = document.createTextNode("<?php _e('Answer', 'wp-polls'); ?> " + (count_poll_answer+1) + ":"); 
     124            var poll_answer_count = document.createTextNode("<?php _e('Answer', 'wp-polls'); ?> " + (count_poll_answer+1)); 
    125125            var poll_answer_bold = document.createElement("strong"); 
    126126            var poll_option = document.createElement("option"); 
     
    135135            poll_option.setAttribute('id', "pollq-multiple-" + (count_poll_answer+1)); 
    136136            // Elements - TD/TR 
    137             if(count_poll_answer%2 != 0) { poll_tr.style.background = "#eee"; } 
    138137            poll_tr.setAttribute('id', "poll-answer-" + count_poll_answer); 
    139138            poll_td1.setAttribute('width', "20%"); 
     139            poll_td1.setAttribute('scope', "row"); 
    140140            poll_td2.setAttribute('width', "80%"); 
    141141            // Appending 
     
    169169      /* ]]> */ 
    170170</script> 
    171 <?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade">'.stripslashes($text).'</div>'; } ?> 
    172171<form action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']); ?>" method="post"> 
    173172<div class="wrap"> 
    174173      <h2><?php _e('Add Poll', 'wp-polls'); ?></h2> 
     174 
     175      <?php if(!empty($text)) { echo '<!-- Last Action --><br class="clear" /><div id="message" class="updated fade">'.stripslashes($text).'</div>'; } ?> 
     176       
    175177      <!-- Poll Question --> 
    176178      <h3><?php _e('Poll Question', 'wp-polls'); ?></h3> 
    177       <table width="100%"  border="0" cellspacing="3" cellpadding="3"> 
    178             <tr style="background-color: #eee;"> 
    179                   <td width="20%"><strong><?php _e('Question:', 'wp-polls') ?></strong></td> 
     179      <table class="form-table"> 
     180            <tr> 
     181                  <th width="20%" scope="row" valign="top"><?php _e('Question', 'wp-polls') ?></th> 
    180182                  <td width="80%"><input type="text" size="70" name="pollq_question" value="" /></td> 
    181183            </tr> 
     
    183185      <!-- Poll Answers --> 
    184186      <h3><?php _e('Poll Answers', 'wp-polls'); ?></h3> 
    185       <table width="100%"  border="0" cellspacing="3" cellpadding="3"> 
     187      <table class="form-table"> 
    186188            <tfoot> 
    187189                  <tr> 
     
    193195            <?php 
    194196                  for($i = 1; $i <= $poll_noquestion; $i++) { 
    195                         if($i%2 == 0) { 
    196                               $style = 'style=\'background: none;\'';                                                                                                                      
    197                         }  else { 
    198                               $style = 'style=\'background-color: #eee;\'';    
    199                         } 
    200                         echo "<tr id=\"poll-answer-$i\" $style>\n"; 
    201                         echo "<td width=\"20%\"><strong>".sprintf(__('Answer %s:', 'wp-polls'), $i)."</strong></td>\n"; 
     197                        echo "<tr id=\"poll-answer-$i\">\n"; 
     198                        echo "<th width=\"20%\" scope=\"row\" valign=\"top\">".sprintf(__('Answer %s', 'wp-polls'), $i)."</th>\n"; 
    202199                        echo "<td width=\"80%\"><input type=\"text\" size=\"50\" name=\"polla_answers[]\" /></td>\n"; 
    203200                        echo "</tr>\n"; 
     
    209206      <!-- Poll Multiple Answers --> 
    210207      <h3><?php _e('Poll Multiple Answers', 'wp-polls') ?></h3> 
    211       <table width="100%"  border="0" cellspacing="3" cellpadding="3"> 
    212             <tr style="background-color: #eee;"> 
    213                   <td width="40%" valign="top"><strong><?php _e('Allows Users To Select More Than One Answer?', 'wp-polls'); ?></strong></td> 
     208      <table class="form-table"> 
     209            <tr> 
     210                  <th width="40%" scope="row" valign="top"><?php _e('Allows Users To Select More Than One Answer?', 'wp-polls'); ?></th> 
    214211                  <td width="60%"> 
    215212                        <select name="pollq_multiple_yes" id="pollq_multiple_yes" size="1" onchange="check_pollq_multiple();"> 
     
    220217            </tr> 
    221218            <tr> 
    222                   <td width="40%" valign="top"><strong><?php _e('Maximum Number Of Selected Answers Allowed?', 'wp-polls') ?></strong></td> 
     219                  <th width="40%" scope="row" valign="top"><?php _e('Maximum Number Of Selected Answers Allowed?', 'wp-polls') ?></th> 
    223220                  <td width="60%"> 
    224221                        <select name="pollq_multiple" id="pollq_multiple" size="1" disabled="disabled"> 
     
    234231      <!-- Poll Start/End Date --> 
    235232      <h3><?php _e('Poll Start/End Date', 'wp-polls'); ?></h3> 
    236       <table width="100%"  border="0" cellspacing="3" cellpadding="3"> 
    237             <tr style="background-color: #eee;"> 
    238                   <td width="20%"><strong><?php _e('Start Date/Time:', 'wp-polls') ?></strong></td> 
     233      <table class="form-table"> 
     234            <tr> 
     235                  <th width="20%" scope="row" valign="top"><?php _e('Start Date/Time', 'wp-polls') ?></th> 
    239236                  <td width="80%"><?php poll_timestamp(current_time('timestamp')); ?></td> 
    240237            </tr> 
    241238            <tr> 
    242                   <td width="20%" valign="top"><strong><?php _e('End Date/Time:', 'wp-polls') ?></strong></td> 
     239                  <th width="20%" scope="row" valign="top"><?php _e('End Date/Time', 'wp-polls') ?></th> 
    243240                  <td width="80%"><input type="checkbox" name="pollq_expiry_no" id="pollq_expiry_no" value="1" checked="checked" onclick="check_pollexpiry();" />&nbsp;&nbsp;<label for="pollq_expiry_no"><?php _e('Do NOT Expire This Poll', 'wp-polls'); ?></label><?php poll_timestamp(current_time('timestamp'), 'pollq_expiry', 'none'); ?></td> 
    244241            </tr> 
  • wp-polls/trunk/polls-admin-ajax.php

    r22648 r35561  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.3 Plugin: WP-Polls 2.30                                                       | 
    6 |     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
     5|     WordPress 2.5 Plugin: WP-Polls 2.30                                                       | 
     6|     Copyright (c) 2008 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
    88|     File Written By:                                                                                                  | 
  • wp-polls/trunk/polls-css.css

    r22648 r35561  
    22+----------------------------------------------------------------+ 
    33|                                                                                                                                         | 
    4 |     WordPress 2.3 Plugin: WP-Polls 2.30                                                       | 
    5 |     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
     4|     WordPress 2.5 Plugin: WP-Polls 2.30                                                       | 
     5|     Copyright (c) 2008 Lester "GaMerZ" Chan                                                   | 
    66|                                                                                                                                         | 
    77|     File Written By:                                                                                                  | 
  • wp-polls/trunk/polls-js.js

    r26538 r35561  
    22+----------------------------------------------------------------+ 
    33|                                                                                                                                         | 
    4 |     WordPress 2.3 Plugin: WP-Polls 2.30                                                       | 
    5 |     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
     4|     WordPress 2.5 Plugin: WP-Polls 2.30                                                       | 
     5|     Copyright (c) 2008 Lester "GaMerZ" Chan                                                   | 
    66|                                                                                                                                         | 
    77|     File Written By:                                                                                                  | 
  • wp-polls/trunk/polls-logs.php

    r31879 r35561  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.3 Plugin: WP-Polls 2.30                                                       | 
    6 |     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
     5|     WordPress 2.5 Plugin: WP-Polls 2.30                                                       | 
     6|     Copyright (c) 2008 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
    88|     File Written By:                                                                                                  | 
     
    119119} 
    120120?> 
    121 <?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade">'.stripslashes($text).'</div>'; } else { echo '<div id="message" class="updated" style="display: none;"></div>'; } ?> 
    122121<div class="wrap"> 
    123122      <h2><?php _e('Poll\'s Logs', 'wp-polls'); ?></h2> 
    124       <p><strong><?php echo $poll_question; ?></strong></p> 
     123      <?php if(!empty($text)) { echo '<!-- Last Action --><br class="clear" /><div id="message" class="updated fade">'.stripslashes($text).'</div>'; } else { echo '<br class="clear" /><div id="message" class="updated" style="display: none;"></div>'; } ?> 
     124      <h3><?php echo $poll_question; ?></h3> 
    125125      <p> 
    126126            <?php printf(__('There are a total of <strong>%s</strong> recorded votes for this poll.', 'wp-polls'), number_format_i18n($poll_totalrecorded)); ?><br /> 
     
    138138                        <form method="post" action="<?php echo htmlspecialchars($base_page); ?>&amp;mode=logs&amp;id=<?php echo $poll_id; ?>"> 
    139139                        <p style="display: none;"><input type="hidden" name="filter" value="1" /></p> 
    140                         <table border="0" cellspacing="3" cellpadding="3"> 
    141                               <tr> 
    142                                     <td> 
    143                                           <strong><?php _e('Display All Users That Voted For:', 'wp-polls'); ?></strong> 
    144                                     </td> 
     140                        <table class="form-table"> 
     141                              <tr> 
     142                                    <th scope="row" valign="top"><?php _e('Display All Users That Voted For', 'wp-polls'); ?></th> 
    145143                                    <td> 
    146144                                          <select name="users_voted_for" size="1"> 
     
    163161                              </tr> 
    164162                              <tr> 
    165                                     <td valign="top"> 
    166                                           <strong><?php _e('Voters To EXCLUDE', 'wp-polls'); ?></strong> 
    167                                     </td> 
     163                                    <th scope="row" valign="top"><?php _e('Voters To EXCLUDE', 'wp-polls'); ?></th> 
    168164                                    <td> 
    169165                                          <input type="checkbox" id="exclude_registered_1" name="exclude_registered" value="1" <?php checked('1', $exclude_registered); ?> />&nbsp;<label for="exclude_registered_1"><?php _e('Registered Users', 'wp-polls'); ?></label><br /> 
     
    182178                              <form method="post" action="<?php echo htmlspecialchars($base_page); ?>&amp;mode=logs&amp;id=<?php echo $poll_id; ?>"> 
    183179                              <p style="display: none;"><input type="hidden" name="filter" value="2" /></p> 
    184                               <table border="0" cellspacing="3" cellpadding="3"> 
     180                              <table class="form-table"> 
    185181                                    <tr> 
    186                                           <td> 
    187                                                 <strong><?php _e('Display Users That Voted For: ', 'wp-polls'); ?></strong> 
    188                                           </td> 
     182                                          <th scope="row" valign="top"><?php _e('Display Users That Voted For', 'wp-polls'); ?></th> 
    189183                                          <td> 
    190184                                                <select name="num_choices_sign" size="1"> 
     
    214208                                    </tr> 
    215209                                    <tr> 
    216                                           <td valign="top"> 
    217                                                 <strong><?php _e('Voters To EXCLUDE', 'wp-polls'); ?></strong> 
    218                                           </td> 
     210                                          <th scope="row" valign="top"><?php _e('Voters To EXCLUDE', 'wp-polls'); ?></th> 
    219211                                          <td> 
    220212                                                <input type="checkbox" id="exclude_registered_2" name="exclude_registered_2" value="1" <?php checked('1', $exclude_registered_2); ?> />&nbsp;<label for="exclude_registered_2"><?php _e('Registered Users', 'wp-polls'); ?></label><br /> 
     
    238230                        <form method="post" action="<?php echo htmlspecialchars($base_page); ?>&amp;mode=logs&amp;id=<?php echo $poll_id; ?>"> 
    239231                        <p style="display: none;"><input type="hidden" name="filter" value="3" /></p> 
    240                         <table border="0" cellspacing="3" cellpadding="3"> 
    241                               <tr> 
    242                                     <td> 
    243                                           <strong><?php _e('Display What This User Has Voted:', 'wp-polls'); ?></strong> 
    244                                     </td> 
     232                        <table class="form-table"> 
     233                              <tr> 
     234                                    <th scope="row" valign="top"><?php _e('Display What This User Has Voted', 'wp-polls'); ?></th> 
    245235                                    <td> 
    246236                                          <select name="what_user_voted" size="1"> 
     
    268258                        <?php } // End if($poll_multiple > -1) ?>        
    269259                  </td> 
    270                   <td> 
    271                         <input type="button" value="<?php _e('Clear Filter', 'wp-polls'); ?>" onclick="self.location.href = '<?php echo htmlspecialchars($base_page); ?>&amp;mode=logs&amp;id=<?php echo $poll_id; ?>';" class="button" /> 
    272                   </td> 
     260                  <td align="center"><input type="button" value="<?php _e('Clear Filter', 'wp-polls'); ?>" onclick="self.location.href = '<?php echo htmlspecialchars($base_page); ?>&amp;mode=logs&amp;id=<?php echo $poll_id; ?>';" class="button" /></td> 
    273261            </tr> 
    274262      </table> 
    275263</div> 
     264<p>&nbsp;</p> 
    276265<?php } // End if($poll_totalrecorded > 0) ?> 
    277266<div class="wrap"> 
     
    283272                              echo '<p>'.__('This default filter is limited to display only <strong>100</strong> records.', 'wp-polls').'</p>'; 
    284273                        } 
    285                         echo '<table width="100%"  border="0" cellspacing="3" cellpadding="3">'."\n"; 
     274                        echo '<table class="widefat">'."\n"; 
    286275                        $k = 1; 
    287276                        $j = 0; 
     
    301290                                    $pollip_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_ip->pollip_timestamp)); 
    302291                                    if($i%2 == 0) { 
    303                                           $style = 'style=\'background-color: none\''; 
     292                                          $style = ''; 
    304293                                    }  else { 
    305                                           $style = 'style=\'background-color: #eee\''; 
     294                                          $style = 'class="alternate"'; 
    306295                                    } 
    307296                                    if($pollip_user != $temp_pollip_user) { 
    308                                           echo '<tr style="background-color: #b8d4ff">'."\n"; 
     297                                          echo '<tr class="highlight">'."\n"; 
    309298                                          echo "<td colspan=\"4\"><strong>".__('User', 'wp-polls')." $k: $pollip_user</strong></td>\n"; 
    310299                                          echo '</tr>'; 
     
    330319                                    if($pollip_aid != $poll_last_aid) { 
    331320                                          if($pollip_aid == 0) { 
    332                                                 echo "<tr style='background-color: #b8d4ff'>\n<td colspan=\"4\"><strong>$pollip_answers[$pollip_aid]</strong></td>\n</tr>\n"; 
     321                                                echo "<tr class=\"highlight\">\n<td colspan=\"4\"><strong>$pollip_answers[$pollip_aid]</strong></td>\n</tr>\n"; 
    333322                                          } else { 
    334                                                 echo "<tr style='background-color: #b8d4ff'>\n<td colspan=\"4\"><strong>".__('Answer', 'wp-polls')." $k: $pollip_answers[$pollip_aid]</strong></td>\n</tr>\n"; 
     323                                                echo "<tr class=\"highlight\">\n<td colspan=\"4\"><strong>".__('Answer', 'wp-polls')." $k: $pollip_answers[$pollip_aid]</strong></td>\n</tr>\n"; 
    335324                                                $k++; 
    336325                                          } 
     
    344333                                    } 
    345334                                    if($i%2 == 0) { 
    346                                           $style = 'style=\'background-color: none\''; 
     335                                          $style = ''; 
    347336                                    }  else { 
    348                                           $style = 'style=\'background-color: #eee\''; 
     337                                          $style = 'class="alternate"'; 
    349338                                    } 
    350339                                    echo "<tr $style>\n"; 
     
    359348                              } 
    360349                        } 
    361                         echo "<tr class=\"thead\">\n"; 
     350                        echo "<tr class=\"highlight\">\n"; 
    362351                        echo "<td colspan=\"4\">".sprintf(__('Total number of records that matches this filter: <strong>%s</strong>', 'wp-polls'), number_format_i18n($j))."</td>"; 
    363352                        echo "</tr>\n"; 
     
    367356      </div> 
    368357      <?php if(!empty($_POST['do'])) { ?> 
    369             <div id="poll_logs_display_none" style="text-align: center; display: <?php if(!$poll_ips) { echo 'block'; } else { echo 'none'; } ?>;" ><?php _e('No poll logs matches the filter.', 'wp-polls'); ?></div> 
     358            <br class="clear" /><div id="poll_logs_display_none" style="text-align: center; display: <?php if(!$poll_ips) { echo 'block'; } else { echo 'none'; } ?>;" ><?php _e('No poll logs matches the filter.', 'wp-polls'); ?></div> 
    370359      <?php } else { ?> 
    371             <div id="poll_logs_display_none" style="text-align: center; display: <?php if(!$poll_logs_count) { echo 'block'; } else { echo 'none'; } ?>;" ><?php _e('No poll logs available for this poll.', 'wp-polls'); ?></div> 
     360            <br class="clear" /><div id="poll_logs_display_none" style="text-align: center; display: <?php if(!$poll_logs_count) { echo 'block'; } else { echo 'none'; } ?>;" ><?php _e('No poll logs available for this poll.', 'wp-polls'); ?></div> 
    372361      <?php } ?> 
    373362</div> 
     363<p>&nbsp;</p> 
    374364 
    375365<!-- Delete Poll Logs --> 
    376366<div class="wrap"> 
    377367      <h2><?php _e('Delete Poll Logs', 'wp-polls'); ?></h2> 
     368      <br class="clear" /> 
    378369      <div align="center" id="poll_logs"> 
    379370            <?php if($poll_logs_count) { ?> 
  • wp-polls/trunk/polls-manager.php

    r35511 r35561  
    230230                        // Create Elements 
    231231                        var poll_tr = document.createElement("tr"); 
    232                         var poll_td1 = document.createElement("td"); 
     232                        var poll_td1 = document.createElement("th"); 
    233233                        var poll_td2 = document.createElement("td"); 
    234234                        var poll_td3 = document.createElement("td"); 
    235235                        var poll_answer = document.createElement("input"); 
    236236                        var poll_votes = document.createElement("input"); 
    237                         var poll_answer_count = document.createTextNode("<?php _e('Answer', 'wp-polls'); ?> " + (count_poll_answer+1) + ":"); 
     237                        var poll_answer_count = document.createTextNode("<?php _e('Answer', 'wp-polls'); ?> " + (count_poll_answer+1)); 
    238238                        var poll_votes_count = document.createTextNode("0 "); 
    239239                        var poll_answer_bold = document.createElement("strong"); 
     
    257257                        poll_tr.setAttribute('id', "poll-answer-new-" + count_poll_answer_new); 
    258258                        poll_td1.setAttribute('width', "20%"); 
     259                        poll_td1.setAttribute('scope', "row"); 
     260                        poll_td1.setAttribute('valign', "top"); 
    259261                        poll_td2.setAttribute('width', "60%"); 
    260                         poll_td3.setAttribute('width', "10%"); 
     262                        poll_td3.setAttribute('width', "20%"); 
    261263                        poll_td3.setAttribute('align', "right"); 
    262264                        // Appending To Elements 
     
    303305                  <h2><?php _e('Edit Poll', 'wp-polls'); ?></h2> 
    304306 
    305                   <?php if(!empty($text)) { echo '<!-- Last Action --><br class="clear" /><div id="message" class="updated fade">'.stripslashes($text).'</div>'; } else { echo '<div id="message" class="updated" style="display: none;"></div>'; } ?> 
     307                  <?php if(!empty($text)) { echo '<!-- Last Action --><br class="clear" /><div id="message" class="updated fade">'.stripslashes($text).'</div>'; } else { echo '<br class="clear" /><div id="message" class="updated" style="display: none;"></div>'; } ?> 
    306308 
    307309                  <!-- Poll Question --> 
     
    309311                  <table class="form-table"> 
    310312                        <tr> 
    311                               <th scope="row" valign="top"><?php _e('Question', 'wp-polls') ?></th> 
     313                              <th width="20%" scope="row" valign="top"><?php _e('Question', 'wp-polls') ?></th> 
    312314                              <td width="80%"><input type="text" size="70" name="pollq_question" value="<?php echo htmlspecialchars($poll_question_text); ?>" /></td> 
    313315                        </tr> 
     
    317319                  <table class="form-table"> 
    318320                        <thead> 
    319                               <tr > 
    320                                     <td width="20%"><strong><?php _e('Answer No.', 'wp-polls') ?></strong></td> 
    321                                     <td width="60%"><strong><?php _e('Answer Text', 'wp-polls') ?></strong></td> 
    322                                     <td width="20%" align="right"><strong><?php _e('No. Of Votes', 'wp-polls') ?></strong></td> 
     321                              <tr> 
     322                                    <th width="20%" scope="row" valign="top"><?php _e('Answer No.', 'wp-polls') ?></th> 
     323                                    <th width="60%" scope="row" valign="top"><?php _e('Answer Text', 'wp-polls') ?></th> 
     324                                    <th width="20%" scope="row" valign="top" style="text-align: right;"><?php _e('No. Of Votes', 'wp-polls') ?></th> 
    323325                              </tr> 
    324326                        </thead> 
     
    336338                                                $pollip_answers[$polla_aid] = $polla_answers; 
    337339                                                echo "<tr id=\"poll-answer-$polla_aid\">\n"; 
    338                                                 echo '<td width="20%"><strong>'.sprintf(__('Answer %s:', 'wp-polls'), $i).'</strong></td>'."\n"; 
     340                                                echo '<th width="20%" scope="row" valign="top">'.sprintf(__('Answer %s', 'wp-polls'), $i).'</th>'."\n"; 
    339341                                                echo "<td width=\"60%\"><input type=\"text\" size=\"50\" maxlength=\"200\" name=\"polla_aid-$polla_aid\" value=\"".htmlspecialchars($polla_answers)."\" />&nbsp;&nbsp;&nbsp;"; 
    340342                                                echo "<input type=\"button\" value=\"".__('Delete', 'wp-polls')."\" onclick=\"delete_poll_ans($poll_id, $polla_aid, $polla_votes, '".sprintf(js_escape(__('You are about to delete this poll\'s answer \'%s\'.', 'wp-polls')), js_escape(htmlspecialchars($polla_answers)))."');\" class=\"button\" /></td>\n"; 
     
    363365                  <table class="form-table"> 
    364366                        <tr> 
    365                               <td width="40%" valign="top"><strong><?php _e('Allows Users To Select More Than One Answer?', 'wp-polls'); ?></strong></td> 
     367                              <th width="40%" scope="row" valign="top"><?php _e('Allows Users To Select More Than One Answer?', 'wp-polls'); ?></th> 
    366368                              <td width="60%"> 
    367369                                    <select name="pollq_multiple_yes" id="pollq_multiple_yes" size="1" onchange="check_pollq_multiple();"> 
     
    372374                        </tr> 
    373375                        <tr> 
    374                               <td width="40%" valign="top"><strong><?php _e('Maximum Number Of Selected Answers Allowed?', 'wp-polls') ?></strong></td> 
     376                              <th width="40%" scope="row" valign="top"><?php _e('Maximum Number Of Selected Answers Allowed?', 'wp-polls') ?></th> 
    375377                              <td width="60%"> 
    376                                     <select name="pollq_multiple" id="pollq_multiple" size="1" <?php if($poll_multiple == 0) { echo 'disabled="true"'; } ?>> 
     378                                    <select name="pollq_multiple" id="pollq_multiple" size="1" <?php if($poll_multiple == 0) { echo 'disabled="disabled"'; } ?>> 
    377379                                          <?php 
    378380                                                for($i = 1; $i <= $poll_noquestion; $i++) { 
     
    392394                  <table class="form-table"> 
    393395                        <tr> 
    394                               <td width="20%" valign="top"><strong><?php _e('Start Date/Time', 'wp-polls'); ?></strong>:</td> 
     396                              <th width="20%" scope="row" valign="top"><?php _e('Start Date/Time', 'wp-polls'); ?></th> 
    395397                              <td width="80%"> 
    396398                                    <?php echo mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_timestamp)); ?><br />