<!-- $Id: vote_info.htm 5294 2007-02-07 03:13:12Z paulgao $ -->
{include file="pageheader.htm"}
<div class="main-div">
<form action="vote.php" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
<table width="100%" id="general-table">
  <tr>
    <td class="label">{$lang.vote_name}</td>
    <td>
      <input type='text' name='vote_name' value='{$vote_arr.vote_name}' size='40' />
    </td>
  </tr>
  <tr>
    <td class="label">{$lang.begin_date}</td>
    <td>
      {html_select_date prefix="begin_date" field_order="YMD" month_format="%m"  day_value_format="%02d" start_year="-1" end_year="+10" display_days=yes time=$vote_arr.begin_date}
    </td>
  </tr>
 {if $action eq "add"}
    <tr>
      <td class="label">{$lang.end_date}</td>
      <td>
        {html_select_date prefix="end_date" field_order="YMD" month_format="%m"  day_value_format="%02d" start_year="-1" end_year="+10" display_days=yes time=$end_date}
      </td>
    </tr>
  {else}
      <tr>
      <td class="label">{$lang.end_date}</td>
      <td>
        {html_select_date prefix="end_date" field_order="YMD" month_format="%m"  day_value_format="%02d" start_year="-1" end_year="+10" display_days=yes time=$vote_arr.end_date}
      </td>
    </tr>
  {/if}
  <tr>
    <td class="label">{$lang.can_multi}</td>
    <td>
      <input type="radio" name="can_multi" value="0"{if $vote_arr.can_multi eq 0} checked="true" {/if}/>{$lang.is_multi}
      &nbsp;&nbsp;&nbsp;&nbsp;
      <input type="radio" name="can_multi" value="1"{if $vote_arr.can_multi eq 1} checked="true" {/if}/>{$lang.no_multi}
    </td>
  </tr>
  <tr>
    <td class="label">&nbsp;</td>
    <td>
      <input type="submit" value="{$lang.button_submit}" class="button" />
      <input type="reset" value="{$lang.button_reset}" class="button" />
    </td>
  </tr>
</table>
    <input type="hidden" name="act" value="{$form_act}" />
    <input type="hidden" name="id" value="{$vote_arr.vote_id}" />
</form>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">
<!--
document.forms['theForm'].elements['vote_name'].focus();
/**
 * 检查表单输入的数据
 */
function validate()
{
    validator = new Validator("theForm");
    validator.required("vote_name",      vote_name_empty);
    return validator.passed();
}

onload = function()
{
    // 开始检查订单
    startCheckOrder();
}
//-->
</script>
{/literal}
{include file="pagefooter.htm"}