<?php /* Smarty version Smarty-3.0.6, created on 2020-03-26 16:41:57
         compiled from "I:/AppServ/www/demo.hucart.com/hucart_cn/templates/adminsys\vote_edit.tpl" */ ?>
<?php /*%%SmartyHeaderCode:17956084185e7c6ad59f8634-03541408%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4f41af2ef0363ea1049d947bfa46e60a8cdfd446' => 
    array (
      0 => 'I:/AppServ/www/demo.hucart.com/hucart_cn/templates/adminsys\\vote_edit.tpl',
      1 => 1452738631,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '17956084185e7c6ad59f8634-03541408',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title><?php echo $_smarty_tpl->getVariable('txt_title')->value;?>
 - Powered by HuCart.COM</title>
<link href="./css/bootstrap.min.css" rel="stylesheet">
<link href="./css/info.css" rel="stylesheet">
<script language="javascript" src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/js/pinyin.js"></script>
<script language="javascript" src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/js/admin_common.js"></script>
<!--[if lt IE 9]>
  <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script language="javascript">
	var webroot_url = '<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
';
	function submitFun()
	{
			var idvot_title 		= document.getElementById('vot_title');
			var idvot_end_time 		= document.getElementById('vot_end_time');
			var idvot_select_type 	= document.getElementById('vot_select_type');


			//var idsuggestionInfo 	= document.getElementById('suggestionInfo');
	
			if(idvot_title.value=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['vot_title_err'];?>
');
				idvot_title.focus();
				return false;
			}else if(idvot_end_time.value=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['vot_end_time_err'];?>
');
				idvot_end_time.focus();
				return false;
			}else if(idvot_select_type.value=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['vot_select_type_err'];?>
');
				idvot_select_type.focus();
				return false;
			}
			
			document.formSub.target="_self"
			document.formSub.submit();
	}
	
</script>
</head>
<body>
    <div class="info-tit"><span class="glyphicon glyphicon-paperclip"> </span> <a href="index.php?load=<?php echo $_smarty_tpl->getVariable('master_act')->value;?>
&act=info_list" ><?php echo $_smarty_tpl->getVariable('lang')->value['title'];?>
</a> > <?php echo $_smarty_tpl->getVariable('txt_title')->value;?>
 (<?php echo $_smarty_tpl->getVariable('lang')->value['need_edit'];?>
&nbsp;&nbsp; <?php echo $_smarty_tpl->getVariable('lang')->value['need_add'];?>
 <?php echo $_smarty_tpl->getVariable('lang')->value['need_del'];?>
)</div>
    <!-- custom con start -->
    <div class="info-add">
      <form class="form-horizontal" name="add-form" id="add-form" method="post" action="<?php echo $_smarty_tpl->getVariable('act_url')->value;?>
">
        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"><font color="red">*</font> <?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['vot_title'];?>
</label>
          <div class="col-sm-4">
            <input class="form-control" name="vot_title" id="vot_title" value="<?php echo $_smarty_tpl->getVariable('info')->value['vot_title'];?>
" type="text"  >
          </div>
        </div>

        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"> <?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['vot_start_time'];?>
</label>
          <div class="col-sm-3">
              <input class="form-control" name="vot_start_time" id="vot_start_time" value="<?php echo $_smarty_tpl->getVariable('info')->value['vot_start_time'];?>
" type="text"  >
          </div><div class="col-sm-2"><?php echo $_smarty_tpl->getVariable('lang')->value['date_show'];?>
</div>
        </div>
        
        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"><font color="red">*</font> <?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['vot_end_time'];?>
</label>
          <div class="col-sm-3">
         <input class="form-control" name="vot_end_time" id="vot_end_time" value="<?php echo $_smarty_tpl->getVariable('info')->value['vot_end_time'];?>
" type="text"  >
          </div><div class="col-sm-2"><?php echo $_smarty_tpl->getVariable('lang')->value['date_show'];?>
</div>
        </div>


        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"> <font color="red">*</font> <?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['vot_select_type'];?>
</label>
          <div class="col-sm-4">
<?php  $_smarty_tpl->tpl_vars['ei'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['ek'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('lang')->value['select_type_arr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['ei']->key => $_smarty_tpl->tpl_vars['ei']->value){
 $_smarty_tpl->tpl_vars['ek']->value = $_smarty_tpl->tpl_vars['ei']->key;
?>&nbsp;&nbsp;
<?php echo $_smarty_tpl->tpl_vars['ei']->value;?>
<input type="radio"   name="vot_select_type" id="vot_select_type[<?php echo $_smarty_tpl->tpl_vars['ek']->value;?>
]"  value="<?php echo $_smarty_tpl->tpl_vars['ek']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['ek']->value==$_smarty_tpl->getVariable('info')->value['vot_select_type']){?> checked="checked" <?php }?>>
<?php }} ?>
          </div>
        </div>


        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"><font color="red">*</font> <?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['vot_list'];?>
</label>
          <div class="col-sm-3">
         <input class="form-control" name="vot_list" id="vot_list" value="<?php echo $_smarty_tpl->getVariable('info')->value['vot_list'];?>
" type="text"  >
          </div>
        </div>


        <div class="form-group form-group-sm">
          <label class="col-sm-2 control-label" for="i-tit"> <font color="red">*</font> <?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['vot_enabled'];?>
</label>
          <div class="col-sm-4">
<?php  $_smarty_tpl->tpl_vars['ei'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['ek'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('lang')->value['enabled_arr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['ei']->key => $_smarty_tpl->tpl_vars['ei']->value){
 $_smarty_tpl->tpl_vars['ek']->value = $_smarty_tpl->tpl_vars['ei']->key;
?>&nbsp;&nbsp;
<?php echo $_smarty_tpl->tpl_vars['ei']->value;?>
<input type="radio"   name="vot_enabled" id="vot_enabled[<?php echo $_smarty_tpl->tpl_vars['ek']->value;?>
]"  value="<?php echo $_smarty_tpl->tpl_vars['ek']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['ek']->value==$_smarty_tpl->getVariable('info')->value['vot_enabled']){?> checked="checked" <?php }?>>
<?php }} ?>
          </div>
        </div>
        
        
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary  btn-sm" onclick="return submitFun(this)" ><?php echo $_smarty_tpl->getVariable('edit_submit')->value;?>
</button>&nbsp;&nbsp;&nbsp;&nbsp;
            <button type="reset" class="btn btn-default btn-sm"><?php echo $_smarty_tpl->getVariable('lang')->value['reset'];?>
</button>
          </div>
        </div>
        <input type="hidden" name="act_type" value="<?php echo $_smarty_tpl->getVariable('act_type')->value;?>
">
        <input type="hidden" name="vot_id" id="vot_id"  value="<?php echo $_smarty_tpl->getVariable('info')->value['vot_id'];?>
">
      </form>
    </div>
    <!-- custom con end -->
    
    <footer class="footer">
      <div class="container">
        <p class="text-muted">Powered by <a href="http://Www.HuCart.COM" target="_blank">HuCart.COM</a></p>
      </div>
    </footer>
<script src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/js/jquery.min.js"></script>
<script src="<?php echo $_smarty_tpl->getVariable('base_weburl')->value;?>
/js/base.js"></script>
</body>
</html>