<!--{include file="<!--{$oapath}-->public/ins_page.tpl"}-->
<block name="content">
	<div class="page-header">
	<h1>
             <!--{if $opmode=='edit'}-->编辑<!--{else}-->新建<!--{/if}-->供应商
        </h1>
</div>
	<form method='post' id="form_data" class="well form-horizontal">
		<input type="hidden" name="opmode" value="<!--{$opmode}-->">
		<input type="hidden" name="ajax" id="ajax" value="1">
                <!--{if $opmode=='edit'}-->
                 <input type="hidden" id="id" name="id" value="<!--{$vo.id}-->">
                <!--{/if}-->
               
		<div class="form-group col-sm-6">
		<label class="col-sm-4 control-label" for="name">公司名称*：</label>
		<div class="col-sm-8">
			<input class="form-control" type="text" id="name" name="name" check="require" msg="请输入名称" value='<!--{$vo.name}-->'>
		</div>
	</div>

	<div class="form-group col-sm-6">
		<label class="col-sm-4 control-label" for="short">公司简称*：</label>
		<div class="col-sm-8">
			<input class="form-control" type="text" id="short" name="short" check="require" msg="请输入简称" value='<!--{$vo.short}-->' >
		</div>
	</div>

	<div class="form-group col-sm-6">
		<label class="col-sm-4 control-label" for="account">帐号*：</label>
		<div class="col-sm-8">
			<input class="form-control" type="text" id="account" name="account" check="require" msg="请输入帐号" value='<!--{$vo.account}-->' >
		</div>
	</div>

	<div class="form-group col-sm-6">
		<label class="col-sm-4 control-label" for="tax_no">税号*：</label>
		<div class="col-sm-8">
			<input class="form-control" type="text" id="tax_no" name="tax_no" value='<!--{$vo.tax_no}-->' >
		</div>
	</div>

	<div class="form-group col-sm-6">
		<label class="col-sm-4 control-label" for="payment">付款方式*：</label>
		<div class="col-sm-8">
			<input class="form-control" type="text" id="payment" name="payment" value='<!--{$vo.payment}-->' >
		</div>
	</div>

	<div class="form-group col-sm-6">
		<label class="col-sm-4 control-label" for="address">地址*：</label>
		<div class="col-sm-8">
			<input class="form-control" type="text" id="address" name="address" value='<!--{$vo.address}-->' >
		</div>
	</div>

	<div class="form-group col-sm-6">
		<label class="col-sm-4 control-label" for="contact">联系人*：</label>
		<div class="col-sm-8">
			<input class="form-control" type="text" id="contact" name="contact" check="require" msg="请输入联系人" value='<!--{$vo.contact}-->' >
		</div>
	</div>

	<div class="form-group col-sm-6">
		<label class="col-sm-4 control-label" for="email">邮箱*：</label>
		<div class="col-sm-8">
			<input class="form-control" type="text" id="email" name="email" check="require" msg="请输入邮箱" value='<!--{$vo.email}-->' >
		</div>
	</div>

	<div class="form-group col-sm-6">
		<label class="col-sm-4 control-label" for="email">办公电话*：</label>
		<div class="col-sm-8">
			<input class="form-control" type="text" id="email" name="office_tel" check="require" msg="请输入办公电话" value='<!--{$vo.office_tel}-->' >
		</div>
	</div>

	<div class="form-group col-sm-6">
		<label class="col-sm-4 control-label" for="mobile_tel">手机*：</label>
		<div class="col-sm-8">
			<input class="form-control" type="text" id="mobile_tel" name="mobile_tel" check="require" msg="请输入手机" value='<!--{$vo.mobile_tel}-->' >
		</div>
	</div>

	<div class="form-group col-sm-6">
		<label class="col-sm-4 control-label" for="fax">传真*：</label>
		<div class="col-sm-8">
			<input class="form-control" type="text" id="fax" name="fax" check="require" msg="请输入传真" value='<!--{$vo.fax}-->'>
		</div>
	</div>

	<div class="form-group col-sm-6">
		<label class="col-sm-4 control-label" for="im">即时聊天*：</label>
		<div class="col-sm-8">
			<input class="form-control" type="text" id="im" name="im" value='<!--{$vo.im}-->' >
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label" for="remark" >其他：</label>
		<div class="col-sm-9" >
			<textarea class="form-control" name="remark" rows="5" class="col-xs-12" ><!--{$vo.remark}--></textarea>
		</div>
	</div>
		<div class="form-group">
			<div class="action col-sm-10 col-sm-offset-2">
				<input class="btn btn-sm btn-primary" type="button" value="保存" onclick="save();">
				<input class="btn btn-sm btn-default" type="button" value="取消" onclick="go_return_url();">
			</div>
		</div>
	</form>
</block>

                                		</div>
		<!-- Mainly scripts -->
		<script src="<!--{$oapath}-->Ins/js/jquery-2.1.1.js"></script>
		<script src="<!--{$oapath}-->Ins/js/bootstrap.min.js"></script>
		<script src="<!--{$oapath}-->Ins/js/plugins/metisMenu/jquery.metisMenu.js"></script>
		<script src="<!--{$oapath}-->Ins/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
		<!-- Custom and plugin javascript -->
		<script src="<!--{$oapath}-->Ins/js/inspinia.js"></script>
		<script src="<!--{$oapath}-->Ins/js/common.js"></script>
		<script src="<!--{$oapath}-->Ins/js/plugins/pace/pace.min.js"></script>
                
		<script src="<!--{$oapath}-->Ins/js/plugins/toastr/toastr.min.js"></script>
                <script src="<!--{$oapath}-->Ins/js/plugins/gritter/jquery.gritter.min.js"></script>
                <script src="<!--{$oapath}-->Ins/js/plugins/bootbox/bootbox.min.js"></script>
		<block name="js"></block>
		<script>
			$(document).ready(function() {
				$(".popup-container").width($("#dialog", parent.document).width());
				if (is_mobile()) {
					$(".popup-container").height(window.screen.height - 40);
					$(".popup-container").css('overflow', 'auto');
				}
			});
		</script>
        <block name="js">
                <script type="text/javascript">
                        function save() {
                             sendForm("form_data", "oa.php?c=Supplier&a=save", fix_url("oa.php?c=Supplier"));
                        }
                </script>
        </block>
	</body>
</html>