
	<?php if($set_option=="stop_award"){?>
		<table width='180px' style='background-color:white'>
		<caption><b>{echo:lp{pol_grant_end};/}</b></caption>
		<tr><td>{echo:lp{pol_grant_back};/}</td></tr>
		<tr><td><input type='button' class='top_button' value='{echo:lp{pol_con};/}' onclick='action_set_config("{echo:$set_option;/}",{echo:$pid;/});' />
		<input type='button' class='top_button' value='{echo:lp{pol_cancel};/}' onclick='cancel_window()' /></td></tr>
		</table>
	<?php }?>
	
	<?php if($set_option=="add_award"){?>
		<table id='award_table' style='background-color:white'>
		<caption><b>{echo:lp{pol_add_grant};/}</b></caption>
		<tr><td>{echo:lp{pol_add_grant_total};/}：<input type='text' size=2 id='add_award_sum' value='' />（0~{echo:$u_int['integral'];/}）</td></tr>
		<?php if($poll_info['percredit'] < 10){?>
			<tr><td>{echo:lp{pol_add_grant_singular};/}：<input type='text' size=2 id='add_award_sing' value='' />（{echo:str_replace("{max_p}",10-$poll_info['percredit'],lp{pol_r_point});/}）</td></tr>
		<?php }?>
		<tr><td><input type='button' class='top_button' value='{echo:lp{pol_con};/}' onclick='action_set_config("{echo:$set_option;/}",{echo:$pid;/});' />
		<input type='button' class='top_button' value='{echo:lp{pol_cancel};/}' onclick='cancel_window()' /></td></tr>
		</table>		
	<?php }?>
		
	<?php if($set_option=="add_option"){?>	
		<table style='background-color:white'>
		<caption><b>{echo:lp{pol_add_option};/}</b></caption>
		<tr><td>{echo:lp{pol_add_new_option};/}：</td></tr>
		<tr><td><input type='text' id='add_new_option' /></td></tr>
		<tr><td><input type='button' class='top_button' value='{echo:lp{pol_con};/}' onclick='action_set_config("{echo:$set_option;/}",{echo:$pid;/});' />
		<input type='button' class='top_button' value='{echo:lp{pol_cancel};/}' onclick='cancel_window()' /></td></tr>
		</table>
	<?php }?>
		
	<?php if($set_option=="del_poll"){?>	
		<table width='180px' style='background-color:white'>
		<caption><b>{echo:lp{pol_del};/}</b></caption>
		<tr><td>{echo:lp{pol_del_con};/}</td></tr>
		<tr><td><input type='button' class='top_button' value='{echo:lp{pol_con};/}' onclick='action_set_config("{echo:$set_option;/}",{echo:$pid;/});' />
		<input type='button' class='top_button' value='{echo:lp{pol_cancel};/}' onclick='cancel_window()' /></td></tr>
		</table>
	<?php }?>
		
	<?php if($set_option=="change_date"){?>	
		<table style='background-color:white'>
		<caption><b>{echo:lp{pol_amend_end_time};/}</b></caption>
		<tr><td>{echo:lp{pol_new_end_time};/}：</td></tr>
		<tr><td>
		<input type='text' readonly id='expiration' style='width:80px' value="{echo:date('Y-m-d',time()+60*60*720);/}" onclick='getDateString(this,oCalendarChs)' />
		<input type='button' class='top_button' value='{echo:lp{pol_con};/}' onclick='action_set_config("{echo:$set_option;/}",{echo:$pid;/});' />
		<input type='button' class='top_button' value='{echo:lp{pol_cancel};/}' onclick='cancel_window()' /></td></tr>	
		</table>
	<?php }?>
		
	<?php if($set_option=="add_summary"){?>	
		<table style='background-color:white'>
		<caption><b>{echo:lp{pol_sum};/}</b></caption>
		<tr><td>{echo:lp{pol_write_sum};/}：</td></tr>
		<tr><td><textarea cols='25' rows='5' id='add_summary'>{echo:$poll_info['summary'];/}</textarea></td></tr>
		<tr><td><input type='button' class='top_button' value='{echo:lp{pol_con};/}' onclick='action_set_config("{echo:$set_option;/}",{echo:$pid;/});' />
		<input type='button' class='top_button' value='{echo:lp{pol_cancel};/}' onclick='cancel_window();' /></td></tr>
		</table>
	<?php }?>
