<style type="text/css">
    .main .main-right-box {
        position: absolute;
        top:130px;
        right:30px;
        left:30px;
        bottom:30px;
    }
</style>
<div class="main-right-box">


        <script type="text/javascript">
            function checkform(obj) {
                if($("#template").val()=="")
                {
                    alert('请选择模板');
                    $("#template").focus();
                    return false;
                }
                returnform(obj);
                return  false;
            }
        </script>





        <form method="post" action="{uri()}" name="form1" id="form1" onsubmit="return checkform(this);">
            <h5>
                {lang_admin('edit_form')}
                <!--工具栏-->
                <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('form/listform');?>" data-dataurlname="<?php echo lang_admin('content_manage');?>" 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="box" id="box">
                <div class="line"></div>
                <div class="blank30"></div>
            <div class="row">
                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">{lang_admin('name')}</div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                    <?php  $langdata=lang::getlang();
                    if(is_array($langdata)){
                        foreach ($langdata as $key=>$value){
                            $newcname='cname_'.$value['langurlname'];
                            ?>
                            <input class="form-control" name="{$newcname}" id=" {$newcname}" value="{=@setting::$var[$table]['myform'][$newcname]?setting::$var[$table]['myform'][$newcname]:get($newcname)}" placeholder="{$value['langname']}"  onblur="form_preview()"/>
                            <div class="blank10"></div>
                        <?php    }
                    }
                    ?>
                </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('table_name')}</div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                    <b>{$table}</b>
                    <input type="hidden"  name="name" id="name" value="{$table}" class="form-control" />
                </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('template')}</div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                    {form::select('template',@setting::$var[$table]['myform']['template']?setting::$var[$table]['myform']['template']:get('template'),front::$view->myform_tpl_list())}
                </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-4 col-sm-4 col-md-3 col-lg-2 text-right"></div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                    <input  name="submit" value="1" type="hidden">
                    <input type="submit"   value=" {lang_admin('submitted')} " class="btn btn-primary btn-lg" />
                </div>
            </div>
        </form>
        <div class="blank30"></div>
    </div>
</div>
