12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <form method="post" action="{:url('add')}" class="form-horizontal">
- <input type="hidden" name="id" value="{$info['id']|default='0'}">
- <div class="form-group">
- <label class="col-sm-2 control-label">项目<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget('common/select',['name'=>'org_id','lists'=>$orgs,'value'=>isset($info)?$info['org_id']:0])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">开发者ID<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <input type="text" class="form-control" name="app_id" value="{$info.app_id|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">开发者密码<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <input type="text" class="form-control" name="secret" value="{$info.secret|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">商户号<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <input type="text" class="form-control" name="mch_id" value="{$info.mch_id|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">支付秘钥<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <input type="text" class="form-control" name="key" value="{$info.key|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">证书</label>
- <div class="col-sm-6">
- {:widget_view('common/upfile',['name'=>'cert_path','multi'=>0,'accept'=>'pem','val'=>isset($info)?$info['cert_path']:''])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">证书秘钥</label>
- <div class="col-sm-6">
- {:widget_view('common/upfile',['name'=>'key_path','multi'=>0,'accept'=>'pem','val'=>isset($info)?$info['key_path']:''])}
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <div class="col-sm-6 col-sm-offset-2">
- <button class="btn btn-primary ajax-post" data-layer="1" target-form="form-horizontal" type="submit">确 定</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- </script>
- {/block}
|