Esempio n. 1
0
_e('Start Date/Time', 'wp-polls');
?>
</th>
			<td width="80%"><?php 
poll_timestamp(current_time('timestamp'));
?>
</td>
		</tr>
		<tr>
			<th width="20%" scope="row" valign="top"><?php 
_e('End Date/Time', 'wp-polls');
?>
</th>
			<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>
		</tr>
	</table>
	<p style="text-align: center;"><input type="submit" name="do" value="<?php 
_e('Add Poll', 'wp-polls');
?>
"  class="button" />&nbsp;&nbsp;<input type="button" name="cancel" value="<?php 
_e('Cancel', 'wp-polls');
?>
" class="button" onclick="javascript:history.go(-1)" /></p>
</div>
</form>
Esempio n. 2
0
        _e('Do NOT Expire This Poll', 'wp-polls');
        ?>
</label><br />
						<div id="pollq_expiry_timestamp" style="display: <?php 
        if (empty($poll_expiry)) {
            echo 'none';
        } else {
            echo 'block';
        }
        ?>
;">
						<?php 
        if (empty($poll_expiry)) {
            poll_timestamp(current_time('timestamp'), 'pollq_expiry');
        } else {
            poll_timestamp($poll_expiry, 'pollq_expiry');
        }
        ?>
						</div>
					</td>
				</tr>
			</table>
			<p style="text-align: center;">
				<input type="submit" name="do" value="<?php 
        _e('Edit Poll', 'wp-polls');
        ?>
" class="button" />&nbsp;&nbsp;
			<?php 
        if ($poll_active == 1) {
            $poll_open_display = 'none';
            $poll_close_display = 'inline';
Esempio n. 3
0
				</select>
			</td>
		</tr>
		<tr>
			<th width="40%" scope="row" valign="top"><?php _e('Maximum Number Of Selected Answers Allowed?', 'wp-polls') ?></th>
			<td width="60%">
				<select name="pollq_multiple" id="pollq_multiple" size="1" disabled="disabled">
					<?php
						for($i = 1; $i <= $poll_noquestion; $i++) {
							echo "<option value=\"$i\">".number_format_i18n($i)."</option>\n";
						}
					?>
				</select>
			</td>
		</tr>
	</table>
	<!-- Poll Start/End Date -->
	<h3><?php _e('Poll Start/End Date', 'wp-polls'); ?></h3>
	<table class="form-table">
		<tr>
			<th width="20%" scope="row" valign="top"><?php _e('Start Date/Time', 'wp-polls') ?></th>
			<td width="80%"><?php poll_timestamp(current_time('timestamp')); ?></td>
		</tr>
		<tr>
			<th width="20%" scope="row" valign="top"><?php _e('End Date/Time', 'wp-polls') ?></th>
			<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>
		</tr>
	</table>
	<p style="text-align: center;"><input type="submit" name="do" value="<?php _e('Add Poll', 'wp-polls'); ?>"  class="button-primary" />&nbsp;&nbsp;<input type="button" name="cancel" value="<?php _e('Cancel', 'wp-polls'); ?>" class="button" onclick="javascript:history.go(-1)" /></p>
</div>
</form>