<?php /* Smarty version Smarty-3.0.6, created on 2020-03-12 14:34:09
         compiled from "D:/AppServ/www/demo.hucart.com/hucart_cn/templates/adminsys\article_edit.tpl" */ ?>
<?php /*%%SmartyHeaderCode:234455e69d7e1e43752-80943692%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ab0619701e52a6c1e15fcdc27057082638dbdfdc' => 
    array (
      0 => 'D:/AppServ/www/demo.hucart.com/hucart_cn/templates/adminsys\\article_edit.tpl',
      1 => 1456372777,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '234455e69d7e1e43752-80943692',
  '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 idart_title 		= document.getElementById('art_title');
			var idars_id 			= document.getElementById('ars_id');
			var idart_num 			= document.getElementById('art_num');
			var idart_unit 			= document.getElementById('art_unit');
			var idart_img 			= document.getElementById('art_img');
			var idart_sell_price 	= document.getElementById('art_sell_price');
			var content				= CKEDITOR.instances.art_content.getData();
			//var idsuggestionInfo 	= document.getElementById('suggestionInfo');
	
			if(idart_title.value=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['art_title_err'];?>
');
				idart_title.focus();
				return false;
			}else if(idars_id.value=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['ars_id_err'];?>
');
				idars_id.focus();
				return false;
			}else if(idart_num.value=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['art_num_err'];?>
');
				idart_num.focus();
				return false;
			}else if(idart_unit.value=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['art_unit_err'];?>
');
				idart_unit.focus();
				return false;
			}else if(idart_img.value=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['art_img_err'];?>
');
				idart_img.focus();
				return false;
			}else if(idart_sell_price.value=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['art_sell_price_err'];?>
');
				idart_sell_price.focus();
				return false;
			}else if(content=='')
			{
				alert('<?php echo $_smarty_tpl->getVariable('lang')->value['art_content_err'];?>
');
				CKEDITOR.instances.art_content.focus();
				return false;
			}
	
			//document.formSub.action='./index.php?load=product&act=add_info';
			document.formSub.target="_self"
			document.formSub.submit();
	}
	
	function check_bolder(obj)
	{
		if(obj.checked==true)
		{
			//document.getElementById('art_title').style.fontWeight		= 'bold';
			document.getElementById('art_small_title').style.fontWeight	= 'bold';
		}else if(obj.checked==false)
		{
			///document.getElementById('art_title').style.fontWeight		= 'normal';
			document.getElementById('art_small_title').style.fontWeight	= 'normal';
		}
	}

</script>
</head>
<body>
    <div class="info-tit"><span class="glyphicon glyphicon-paperclip"> </span> <?php echo $_smarty_tpl->getVariable('lang')->value['title'];?>
 > <?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']['art_title'];?>
</label>
          <div class="col-sm-10">
            <input class="form-control" name="art_title" id="art_title" value="<?php echo $_smarty_tpl->getVariable('info')->value['art_title'];?>
" type="text"  style="width:450px;"  onblur="getPinYinValue('art_title','art_phoneticize')"  >
          </div>
        </div>

          
        <div class="form-group form-group-sm" style="display:none;">
          <label class="col-sm-2 control-label" for="i-tit"> <?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['art_phoneticize'];?>
</label>
          <div class="col-sm-3">
            <input class="form-control" name="art_phoneticize" id="art_phoneticize" value="<?php echo $_smarty_tpl->getVariable('info')->value['art_phoneticize'];?>
" type="text"  style="width:300px;"    >
          </div><div class="col-sm-3"><?php echo $_smarty_tpl->getVariable('lang')->value['phoneticize_say'];?>
</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']['art_small_title'];?>
</label>
          <div class="col-sm-3">
            <input class="form-control" name="art_small_title" id="art_small_title" value="<?php echo $_smarty_tpl->getVariable('info')->value['art_small_title'];?>
" type="text"  style="width:300px;"  >
          </div><div  class="col-sm-3"><?php echo $_smarty_tpl->getVariable('lang')->value['field_list']['art_color'];?>
<select name="art_color" id="art_color"  onchange="document.getElementById('art_title').style.color=this.value;document.getElementById('art_small_title').style.color=this.value;">
 <?php  $_smarty_tpl->tpl_vars['colitem'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['colkey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('lang')->value['art_color_arr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['colitem']->key => $_smarty_tpl->tpl_vars['colitem']->value){
 $_smarty_tpl->tpl_vars['colkey']->value = $_smarty_tpl->tpl_vars['colitem']->key;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['colitem']->value['val'];?>
" style="color:<?php echo $_smarty_tpl->tpl_vars['colitem']->value['val'];?>
" <?php if ($_smarty_tpl->getVariable('info')->value['art_color']==$_smarty_tpl->tpl_vars['colitem']->value['val']){?> selected="selected"  <?php }?> ><?php echo $_smarty_tpl->tpl_vars['colitem']->value['col'];?>
</option>
<?php }} ?>
</select>&nbsp;&nbsp;<?php echo $_smarty_tpl->getVariable('lang')->value['is_bolder'];?>
<input name="art_bolder" id="art_bolder" type="checkbox" value="1"  onclick="check_bolder(this)"  <?php if ($_smarty_tpl->getVariable('info')->value['art_bolder']=='1'){?> checked="checked" <?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']['sort_id'];?>
</label>
          <div class="col-sm-3">
            <?php echo $_smarty_tpl->getVariable('sort_select_str')->value;?>

          </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']['art_type'];?>
</label>
          <div class="col-sm-3">
             <select class="form-control"  id="art_type">
            <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('art_type')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?>
            <option value=""><?php echo $_smarty_tpl->tpl_vars['item']->value;?>
</option>
            <?php }} ?>
           </select>
          </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']['art_keyword'];?>
</label>
          <div class="col-sm-6">
            <input class="form-control" name="art_keyword" id="art_keyword" value="<?php echo $_smarty_tpl->getVariable('info')->value['art_keyword'];?>
" type="text"  style="width:300px;"    >
          </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']['art_description'];?>
</label>
          <div class="col-sm-6">
            <textarea class="form-control" rows="4" cols="56" name="art_description" id="art_description"><?php echo $_smarty_tpl->getVariable('info')->value['art_description'];?>
</textarea>
          </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']['art_content'];?>
</label>
          <div class="col-sm-6">
            <?php echo $_smarty_tpl->getVariable('ckeditorLoad')->value;?>

          </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']['art_author'];?>
</label>
          <div class="col-sm-6">
            <input class="form-control" name="art_author" id="art_author" value="<?php echo $_smarty_tpl->getVariable('info')->value['art_author'];?>
" type="text"  style="width:300px;"    >
          </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']['art_file'];?>
</label>
          <div class="col-sm-3">
            <input class="form-control" name="art_file" id="art_file" value="<?php echo $_smarty_tpl->getVariable('info')->value['art_file'];?>
" type="text"  style="width:300px;"    >
          </div> <div class="col-sm-3" style="margin-left:12px;"><button type="button" class="btn btn-default"  onclick="select_img('article','art_file')" ><?php echo $_smarty_tpl->getVariable('lang')->value['add_file'];?>
</button></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']['art_pic'];?>
</label>
          <div class="col-sm-3">
            <input class="form-control" name="art_pic" id="art_pic" value="<?php echo $_smarty_tpl->getVariable('info')->value['art_pic'];?>
" type="text"  style="width:300px;"    >
          </div> <div class="col-sm-3" style="margin-left:12px;"><button type="button" class="btn btn-default"  onclick="select_img('article','art_pic')" ><?php echo $_smarty_tpl->getVariable('lang')->value['add_pic'];?>
</button></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']['art_list'];?>
</label>
          <div class="col-sm-1">
            <input class="form-control" name="art_list" id="art_list" value="<?php if ($_smarty_tpl->getVariable('info')->value['art_list']==''){?>99999<?php }else{ ?><?php echo $_smarty_tpl->getVariable('info')->value['art_list'];?>
<?php }?>" type="text"  style="width:100px;"    >
          </div><div class="col-sm-3"><?php echo $_smarty_tpl->getVariable('lang')->value['say_list'];?>
</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']['art_enabled'];?>
</label>
          <div class="col-sm-6">
<?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="art_enabled" id="art_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==1){?> 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="art_id" id="art_id"  value="<?php echo $_smarty_tpl->getVariable('info')->value['art_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>