
<table width="100%" style="height: 32px;" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="23"><img src="{TEMPLATE_PATH}/images/admin/adminmain_01.gif" width="23" height="32" alt=""></td>
		<td width="30"><img src="{TEMPLATE_PATH}/images/admin/adminmain_02.gif" width="30" height="32" alt=""></td>
		<td width="67"><img src="{TEMPLATE_PATH}/images/admin/adminmain_03.gif" width="67" height="32" alt=""></td>
		<td width="99%" style="background-image: url({TEMPLATE_PATH}/images/admin/adminmain_04.gif);" align="center" class="pagetitle">{L_PAGE_TITLE}</td>
		<td width="66"><img src="{TEMPLATE_PATH}/images/admin/adminmain_05.gif" width="66" height="32" alt=""></td>
		<td width="31"><img src="{TEMPLATE_PATH}/images/admin/adminmain_06.gif" width="31" height="32" alt=""></td>
		<td width="27"><img src="{TEMPLATE_PATH}/images/admin/adminmain_07.gif" width="27" height="32" alt=""></td>
	</tr>
</table>

<br><div align="center"><span class="title2">{ERROR_MSG}&nbsp;</span><br>

<table class="tblborder" cellpadding="0" cellspacing="1" width="100%">
<form name="EDITFORM" method="POST" action="{S_ACTION}">
  <tr>
    <td width="100%">  
	<table border="0" cellpadding="2" cellspacing="1" width="100%">
	  <tr>
	    <td class=tdmenu width="100%" colspan="2">&nbsp;</td>
	  </tr>
	  <tr>
	    <td class=tdtext1 width="25%" valign="top">{L_QUESTION}:</td>
	    <td class=tdtext2 width="75%"><textarea class=form rows="3" name="question" cols="50">{QUESTION}</textarea></td>
	  </tr>
	<!-- START: oldoptrow -->
	  <tr>
	    <td class=tdtext1 width="25%">{oldoptrow:NAME}:</td>
	    <td class=tdtext2 width="75%"><input class=form type="text" name="oldopt[{oldoptrow:ID}]" value="{oldoptrow:TITLE}" size="35">
			&nbsp;&nbsp;<span class="textbody">{L_OPTION_ORDER}:</span> <input class=form type="text" name="oldoptorder[{oldoptrow:ID}]" value="{oldoptrow:ORDER}" size="3">
	    </td>
	  </tr>
	<!-- END: oldoptrow -->

	<!-- START: optionrow -->
	  <tr>
	    <td class=tdtext1 width="25%">{optionrow:NAME}:</td>
	    <td class=tdtext2 width="75%"><input class=form type="text" name="opt[{optionrow:NUMBER}]" value="{optionrow:VALUE}" size="35">
		<!-- START: editrow -->
		&nbsp;&nbsp;{L_OPTION_ORDER}: <input class=form type="text" name="optorder[{optionrow:NUMBER}]" size="3">
		<!-- END: editrow -->
	    </td>
	  </tr>
	<!-- END: optionrow -->

	  <tr>
	    <td class=tdtext1 width="25%">{L_MORE_OPTIONS}<input type="hidden" name="allmoreopt" value={ALLMOREOPT}><input type="hidden" name="morecheck" value="0"></td>
	    <td class=tdtext2 width="75%"><input class=form type="text" name="morenum" value=3 size="3"> <input class=submit type="button" name="moresubmit" onclick="javascript:more_submit();" value="{L_GO}"></td>
	  </tr>
	  <tr>
	    <td class=tdtext1 width="25%" valign="top">{L_START_DATE}:</td>
	    <td class=tdtext2 width="75%">
		    <table border="0" cellpadding="0" cellspacing="0" width="100%">
		      <tr>
		        <td class=tdtext width="15%">{L_DATE}:</td>
		        <td width="85%">
					<select class=form size="1" name="start_month">
						<option value="1">January</option>
						<option value="2">February</option>
						<option value="3">March</option>
						<option value="4">April</option>
						<option value="5">May</option>
						<option value="6">June</option>
						<option value="7">July</option>
						<option value="8">August</option>
						<option value="9">September</option>
						<option value="10">October</option>
						<option value="11">November</option>
						<option value="12">December</option>
					</select>
						
					<select class=form size="1" name="start_day">
						<option value="1">1</option>
						<option value="2">2</option>
						<option value="3">3</option>
						<option value="4">4</option>
						<option value="5">5</option>
						<option value="6">6</option>
						<option value="7">7</option>
						<option value="8">8</option>
						<option value="9">9</option>
						<option value="10">10</option>
						<option value="11">11</option>
						<option value="12">12</option>
						<option value="13">13</option>
						<option value="14">14</option>
						<option value="15">15</option>
						<option value="16">16</option>
						<option value="17">17</option>
						<option value="18">18</option>
						<option value="19">19</option>
						<option value="20">20</option>
						<option value="21">21</option>
						<option value="22">22</option>
						<option value="23">23</option>
						<option value="24">24</option>
						<option value="25">25</option>
						<option value="26">26</option>
						<option value="27">27</option>
						<option value="28">28</option>
						<option value="29">29</option>
						<option value="30">30</option>
						<option value="31">31</option>
					</select>
						
					<select class=form size="1" name="start_year">
						<option value="2004">2004</option>
						<option value="2005">2005</option>
						<option value="2006">2006</option>
						<option value="2007">2007</option>
						<option value="2008">2008</option>
						<option value="2009">2009</option>
						<option value="2010">2010</option>
						<option value="2011">2011</option>
						<option value="2012">2012</option>
						<option value="2013">2013</option>
						<option value="2014">2014</option>
						<option value="2015">2015</option>
						<option value="2016">2016</option>
						<option value="2017">2017</option>
						<option value="2018">2018</option>
						<option value="2019">2019</option>
						<option value="2020">2020</option>
					</select>
				</td>
		      </tr>
		      <tr>
		        <td class=tdtext width="15%">{L_TIME}:</td>
		        <td width="85%"><input class=form type="text" name="start_time" value="{START_TIME}" size="4"> <span class="textbody">{L_TIME_EXPLAIN}</span></td>
		      </tr>
		    </table>    
	    </td>
	  </tr>
	  <tr>
	    <td class=tdtext1 width="25%" valign="top">{L_END_DATE}:</td>
	    <td class=tdtext2 width="75%"><input type="radio" name="end_date" value="never" checked>{L_NEVER}<br>
			<input type="radio" name="end_date" value="past_future">{L_PAST_FUTURE}:
		    <table border="0" cellpadding="0" cellspacing="0" width="100%">
		      <tr>
		        <td class=tdtext width="15%">{L_DATE}:</td>
		        <td width="85%">
					<select class=form size="1" name="end_month">
						<option value="1">January</option>
						<option value="2">February</option>
						<option value="3">March</option>
						<option value="4">April</option>
						<option value="5">May</option>
						<option value="6">June</option>
						<option value="7">July</option>
						<option value="8">August</option>
						<option value="9">September</option>
						<option value="10">October</option>
						<option value="11">November</option>
						<option value="12">December</option>
					</select>
						
					<select class=form size="1" name="end_day">
						<option value="1">1</option>
						<option value="2">2</option>
						<option value="3">3</option>
						<option value="4">4</option>
						<option value="5">5</option>
						<option value="6">6</option>
						<option value="7">7</option>
						<option value="8">8</option>
						<option value="9">9</option>
						<option value="10">10</option>
						<option value="11">11</option>
						<option value="12">12</option>
						<option value="13">13</option>
						<option value="14">14</option>
						<option value="15">15</option>
						<option value="16">16</option>
						<option value="17">17</option>
						<option value="18">18</option>
						<option value="19">19</option>
						<option value="20">20</option>
						<option value="21">21</option>
						<option value="22">22</option>
						<option value="23">23</option>
						<option value="24">24</option>
						<option value="25">25</option>
						<option value="26">26</option>
						<option value="27">27</option>
						<option value="28">28</option>
						<option value="29">29</option>
						<option value="30">30</option>
						<option value="31">31</option>
					</select>
						
					<select class=form size="1" name="end_year">
						<option value="2004">2004</option>
						<option value="2005">2005</option>
						<option value="2006">2006</option>
						<option value="2007">2007</option>
						<option value="2008">2008</option>
						<option value="2009">2009</option>
						<option value="2010">2010</option>
						<option value="2011">2011</option>
						<option value="2012">2012</option>
						<option value="2013">2013</option>
						<option value="2014">2014</option>
						<option value="2015">2015</option>
						<option value="2016">2016</option>
						<option value="2017">2017</option>
						<option value="2018">2018</option>
						<option value="2019">2019</option>
						<option value="2020">2020</option>
					</select>
				</td>
		      </tr>
		      <tr>
		        <td class=tdtext width="15%">{L_TIME}:</td>
		        <td width="85%"><input class=form type="text" name="end_time" value="{END_TIME}" size="4"> <span class="textbody">{L_TIME_EXPLAIN}</span></td>
		      </tr>
		    </table>    
	    </td>
	  </tr>
	  <tr>
	    <td class=tdtext1 width="25%">{L_MULTIPLE_CHOICE}?</td>
	    <td class=tdtext2 width="75%">
			<input type="radio" name="smultiple" value="1">{L_YES}
    		<input type="radio" name="smultiple" value="0" checked>{L_NO}</td>
	  </tr>
	  <tr>
	    <td class=tdtext1 width="25%" valign="top">{L_SHOW_CATS}</td>
	    <td class=tdtext2 width="75%">
			<select class=form name="cat_id" size="10" multiple>
				<option value="-1">{L_HOME_PAGE}</option>	
				<!-- START: catrow -->
				<option value="{catrow:ID}">{catrow:PREFIX}{catrow:NAME}</option>
				<!-- END: catrow -->
			</select>
	    </td>
	  </tr>
	  <tr>
	    <td class=tdtext1 width="25%">{L_POLL_STATUS}:</td>
	    <td class=tdtext2 width="75%"><input type="radio" name="enabled" value="1" checked>{L_ENABLED} &nbsp; &nbsp;<input type="radio" name="enabled" value="0">{L_DISABLED}</td>
	  </tr>
	  <tr>
	    <td class=tdtext1 width="100%" colspan="2" align="center"><input class=submit type="submit" name="editsubmit" value="{L_BUTTON}"></td>
	  </tr>
	</table>        
    </td>
  </tr>
</form>
</table>
</div>

<script language="javascript" type="text/javascript">
	var the_form = window.document.EDITFORM;

	select_list("{START_MONTH}", the_form.start_month);
	select_list("{START_DAY}", the_form.start_day);
	select_list("{START_YEAR}", the_form.start_year);

	radio_list("{END_DATE}", the_form.end_date);
	select_list("{END_MONTH}", the_form.end_month);
	select_list("{END_DAY}", the_form.end_day);
	select_list("{END_YEAR}", the_form.end_year);

	radio_list("{MULTIPLE}", the_form.smultiple);
	
	the_form.cat_id.name	= "cat_id[]";
	<!-- START: catvalrow -->
	select_list("{catvalrow:ID}", the_form.cat_id);
	<!-- END: catvalrow -->

	radio_list("{ENABLED}", the_form.enabled);

	function more_submit(){
//		the_form.allmoreopt.value += the_form.allmoreopt.value;
		the_form.morecheck.value = 1;
		the_form.submit();
	}
</script>
