<!-- 取色 -->
<link href="{$base_url}/common/css/bootstrap/bootstrap-3.3.7/plugins/colorpicker/css/bootstrap-colorpicker.css" rel="stylesheet">
<script type="text/javascript" src="{$base_url}/common/css/bootstrap/bootstrap-3.3.7/plugins/colorpicker/js/bootstrap-colorpicker.js"></script>

<script type="text/javascript">
    $(function () {
        $('#txtcolor').colorpicker();
    });
</script>

<div class="main-right-box">


<form method="post" name="form1" action="<?php echo url('table/edit/table/productcode/id/'.$data['id'],true);?>"
      onsubmit="return returnform(this);">
<input type="hidden" name="onlymodify" value=""/>
    <h5>
        {lang_admin('edit_label')}
        <!--工具栏-->
        <div class="content-eidt-nav pull-right">
            <a id="fullscreen-btn" class="btn btn-default" style="display:none;">
                <i class="icon-frame"></i>
                <?php echo lang_admin('container_fluid');?>
            </a>
            <span class="pull-right">


  <input  name="submit" value="1" type="hidden">
                        <button class="btn btn-success" type="submit" onclick="mysave()">
                            <span class="glyphicon glyphicon-floppy-disk"></span> <?php echo lang_admin('preservation');?>
                        </button>
                        <a href="#" onclick="gotourl(this)" data-dataurl="<?php echo url('table/list/table/productcode');?>" data-dataurlname="<?php echo lang_admin('product_code');?>" class="btn btn-default">
                        <i class="icon-action-redo"></i>
                    </a>

                    <a id="content-eidt-nav-btn" class="btn btn-default" style="display:none;">
                    <i class="icon-close"></i>
                </a>
                </span>
        </div>
    </h5>
    <div class="line"></div>
    <div class="blank20"></div>
    <div class="box" id="box">

    <div class="row">
        <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">{lang_admin('product_code')}</div>
        <div class="col-xs-6 col-sm-6 col-md-6 col-lg-4 text-left">
            {form::getform('product',$form,$field,$data)}
        </div>
    </div>
    <div class="clearfix blank20"></div>
    <div class="row">
        <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">{lang_admin('commodity')}id</div>
        <div class="col-xs-6 col-sm-6 col-md-6 col-lg-4 text-left">
            {form::getform('shopid',$form,$field,$data)}
        </div>
    </div>
    <div class="clearfix blank20"></div>
    <div class="row">
        <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">{lang_admin('expiration_time')}</div>
        <div class="col-xs-6 col-sm-6 col-md-6 col-lg-4 text-left">
            <?php $field['outtime']['type']='date';echo form::getform('outtime',$form,$field,$data);?>
        </div>
    </div>
    <div class="clearfix blank20"></div>
    <div class="row">
        <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">{lang_admin('add_time')}</div>
        <div class="col-xs-6 col-sm-6 col-md-6 col-lg-4 text-left">
            <?php $field['addtime']['type']='date';echo form::getform('addtime',$form,$field,$data);?>
        </div>
    </div>
    <div class="clearfix blank20"></div>
    <div class="row">
        <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">{lang_admin('status')}</div>
        <div class="col-xs-6 col-sm-6 col-md-6 col-lg-4 text-left">
            {form::getform('status',$form,$field,$data)}
        </div>
    </div>
    <div class="clearfix blank20"></div>

    <div class="blank30"></div>
    <div class="line"></div>
    <div class="blank30"></div>

    <div class="row">
        <div class="col-xs-2 col-sm-2 col-md-3 col-lg-2 text-left"></div>
        <div class="col-xs-6 col-sm-6 col-md-6 col-lg-4 text-left">
            <input  name="submit" value="1" type="hidden">
            <input type="submit"   value="{lang_admin('submitted')}" class="btn btn-primary btn-lg"/>
        </div>
    </div>

    </div>
</form>


    <div class="blank30"></div>

</div>

<!-- 日期 -->
<link rel="stylesheet" href="<?php echo $base_url;?>/common/js/jquery/ui/css/ui.datepicker.css" type="text/css" media="screen" title="core css file" charset="utf-8" />
<script language="javascript" src="<?php echo $base_url;?>/common/js/jquery/ui/js/ui.datepicker.js"></script>