<tr>
<th class="thHead" colspan="2"><?php $this->_echo($d['.'][0]['L_ADD_A_POLL']); ?></th>
</tr>
<tr>
<td class="row1" colspan="2"><span class="gensmall"><?php $this->_echo($d['.'][0]['L_ADD_POLL_EXPLAIN']); ?></span></td>
</tr>
<tr>
<td class="row1"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_POLL_QUESTION']); ?></b></span></td>
<td class="row2"><span class="genmed"><input type="text" name="poll_title" size="50" maxlength="255" class="post" value="<?php $this->_echo($d['.'][0]['POLL_TITLE']); ?>" /></span></td>
</tr>
<?php if($_poll_option_rows_count = count($d['poll_option_rows'])) {for ($_poll_option_rows_i = 0; $_poll_option_rows_i < $_poll_option_rows_count; $_poll_option_rows_i++){ ?>
<tr>
<td class="row1"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_POLL_OPTION']); ?></b></span></td>
<td class="row2"><span class="genmed"><input type="text" name="poll_option_text[<?php $this->_echo($d['poll_option_rows'][$_poll_option_rows_i]['S_POLL_OPTION_NUM']); ?>]" size="50" class="post" maxlength="255" value="<?php $this->_echo($d['poll_option_rows'][$_poll_option_rows_i]['POLL_OPTION']); ?>" /></span> &nbsp;<input type="submit" name="edit_poll_option" value="<?php $this->_echo($d['.'][0]['L_UPDATE_OPTION']); ?>" class="liteoption" /> <input type="submit" name="del_poll_option[<?php $this->_echo($d['poll_option_rows'][$_poll_option_rows_i]['S_POLL_OPTION_NUM']); ?>]" value="<?php $this->_echo($d['.'][0]['L_DELETE_OPTION']); ?>" class="liteoption" /></td>
</tr>
<?php }} ?>
<tr>
<td class="row1"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_POLL_OPTION']); ?></b></span></td>
<td class="row2"><span class="genmed"><input type="text" name="add_poll_option_text" size="50" maxlength="255" class="post" value="<?php $this->_echo($d['.'][0]['ADD_POLL_OPTION']); ?>" /></span> &nbsp;<input type="submit" name="add_poll_option" value="<?php $this->_echo($d['.'][0]['L_ADD_OPTION']); ?>" class="liteoption" /></td>
</tr>
<tr>
<td class="row1"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_POLL_LENGTH']); ?></b></span></td>
<td class="row2"><span class="genmed"><input type="text" name="poll_length" size="3" maxlength="3" class="post" value="<?php $this->_echo($d['.'][0]['POLL_LENGTH']); ?>" /></span>&nbsp;<span class="gen"><b><?php $this->_echo($d['.'][0]['L_DAYS']); ?></b></span> &nbsp; <span class="gensmall"><?php $this->_echo($d['.'][0]['L_POLL_LENGTH_EXPLAIN']); ?></span></td>
</tr>
<?php if($_switch_poll_delete_toggle_count = count($d['switch_poll_delete_toggle'])) {for ($_switch_poll_delete_toggle_i = 0; $_switch_poll_delete_toggle_i < $_switch_poll_delete_toggle_count; $_switch_poll_delete_toggle_i++){ ?>
<tr>
<td class="row1"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_POLL_DELETE']); ?></b></span></td>
<td class="row2"><input type="checkbox" name="poll_delete" /></td>
</tr>
<?php }} ?>