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

<div class="main-right-box">
    <h5>
        {lang_admin('add_third_party_login')}
        <!--工具栏-->
        <div class="content-eidt-nav pull-right">
        <span class="pull-right">



                        <a href="#" onclick="gotourl(this)" data-dataurl="<?php echo url('ologin/list/table/ologin');?>" data-dataurlname="<?php echo lang_admin('login_api');?>" class="btn btn-default">
                        <i class="icon-action-redo"></i>
                    </a>

                </span>
        </div>
    </h5>
    <div class="line"></div>
    <div class="blank20"></div>
    <div class="box" id="box">
        <form method="post" action="{uri()}" name="form1" id="form1"  onsubmit="return returnform(this);">

            <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">
                    <input type="text" name="ologin_name" id="ologin_name" value="{$data['ologin']['ologin_name']}" 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('describe')}</div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                    {form::textarea('ologin_desc',$data['ologin']['ologin_desc'],'class="textarea"')}
                </div>
            </div>
            <div class="clearfix blank20"></div>

            {loop $data['ologin']['ologin_config'] $ologin_config}
            <div class="row">
                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">{$ologin_config.label}</div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                    <?php if ($ologin_config['type'] == "text") {?>
                        <input name="cfg_value[]" type="{$ologin_config.type}" class="form-control" value="{$ologin_config.value}" />
                    <?php }elseif ($ologin_config['type'] == "textarea") {?>
                        <textarea name="cfg_value[]" cols="80" rows="5">{$ologin_config.value}</textarea>
                    <?php }elseif ($ologin_config['type'] == "select") {?>
                        {form::select('cfg_value[]', $ologin_config['value'], $ologin_config['range'])}
                    <?php } ?>
                    <input name="cfg_name[]" type="hidden" value="{$ologin_config.name}" />
                    <input name="cfg_type[]" type="hidden" value="{$ologin_config.type}" />
                    <input name="cfg_lang[]" type="hidden" value="{$ologin_config.lang}" />
                </div>
            </div>
            <div class="clearfix blank20"></div>
            {/loop}




            <input type="hidden"  name="ologin_id" value="{$data['ologin']['ologin_id']}" />
            <input type="hidden"  name="ologin_code"     value="{$data['ologin']['ologin_code']}" />
            <input type="hidden"  name="is_cod" value="{$data['ologin']['is_cod']}" />
            <input type="hidden"  name="is_online"    value="{$data['ologin']['is_online']}" />

            <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>
