<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	// nginx proxy: proxy_set_header 	X-Scheme 	$scheme; 
	String scheme = request.getHeader("X-Scheme");
	if (scheme == null) {
		scheme = request.getScheme();
	}
	int port = request.getServerPort();
	String basePath = scheme + "://" + request.getServerName() + ((port == 80 || port == 443) ? "" : (":" + port)) + path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>账户中心 - 优软云</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="<%=basePath%>">
<link rel="shortcut icon" href="static/img/icon.png">
<link rel="stylesheet" type="text/css"
	href="static/lib/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css"
	href="static/lib/css/toastr.min.css">
<link rel="stylesheet" type="text/css" href="static/css/register1.css" />
<meta name="referrer" content="origin" />
</head>
<body>
	<!-- old brower Start -->
	<jsp:include page="../common/brower_tip.jsp" />
	<!-- old brower End -->
	<!-- header Start -->
	<nav class="x-navbar">
		<div class="container">
			<div class="navbar-header">
				<span class="navbar-brand">优企云服</span>
			</div>
			<div class="collapse navbar-collapse navbar-right">
				<span class="navbar-text"> ${user.name}， ${content.name} <a
					href="http://www.ubtob.com" class="x-text-link">返回首页</a>
				</span>
			</div>
		</div>
	</nav>
	<!-- header End -->
	<!-- content Start -->
	<div class="x-content">
		<div class="container">
			<div class="x-form-wrap">
				<form class="form-horizontal x-form" novalidate>
					<div class="x-form-set-wrap">
						<div class="x-form-set-header">
							<h4>完善企业信息</h4>
						</div>
						<input type="hidden" name="businessCode"
							value="${content.businessCode}"> <input type="hidden"
							name="appId" value="${appId}">
						<div class="x-form-set">
							<div class="form-group clearfix">
								<label class="control-label x-required">给您的云服务主页申请一个域名：</label>
								<p id="domain_help" class="help-block">
									例如：您的公司主页是www.example.com，填写example即可拥有http://example.saas.ubtob.com免费域名
								</p>
								<div class="x-has-feedback-left">
									<div style="width: 300px; position: relative;">
										<input type="text" class="form-control x-input" name="domain"
											placeholder="example" required x-error-text="请填写您的云服务域名"
											value="${content.domain}"
											style="padding-left: 55px; padding-right: 130px" autofocus
											required> <span
											class="x-form-control-feedback-left x-text-bold"
											style="width: 65px; left: 0">http://</span> <span
											class="x-form-control-feedback-right x-text-bold"
											style="width: 130px; right: 0">.saas.ubtob.com</span>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="control-label">企业LOGO：</label>
								<div class="help-block">个性化展示您的企业形象，图片建议宽x高=100x60</div>
								<div class="help-block">
									<div id="logoImageView" style="display: none"
										class="x-image pull-left">
										<div class="thumbnail">
											<img />
										</div>
									</div>
									<div class="x-image pull-left">
										<a href="javascript:void(0);"
											class="thumbnail x-input-file-wrap"><input type="file"
											id="logoImage" class="x-input" name="file"
											arias-preview="logoImageView">
											<p class="x-thumbnail-empty">
												<i class="glyphicon glyphicon-open"></i>点击上传
											</p> </a>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="x-form-set-wrap">
						<div class="x-form-set-header">
							<h4>企业负责人</h4>
						</div>
						<div class="x-form-set">
							<div class="form-group">
								<div class="help-block">添加部门负责人，让部门领导快速参与优企云服的初始化工作</div>
								<div class="x-table-wrap" style="width: 780px">
									<table class="x-table table table-bordered" x-name="users">
										<thead>
											<tr>
												<th width="140" x-column="department">部门名称</th>
												<th width="140" x-column="name">部门负责人</th>
												<th width="140" x-column="mobile">手机号</th>
												<th width="auto" x-column="email">邮箱</th>
												<th width="140" x-column="job">岗位</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td class="x-text-bold x-required">总经办<input
													type="hidden" value="总经办"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写（必填）" required x-error-text="请添加总经办负责人"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写（必填）" required x-pattern="^[\d-]{8,}$"
													x-error-text="请填写正确手机号码"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写（必填）" required
													x-pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
													x-error-text="请填写正确邮箱地址"></td>
												<td>总经理 <input type="hidden" value="总经理">
												</td>
												<!-- <td>
													<div class="x-listbox">
														<a class="btn btn-link x-btn-link dropdown-toggle"
															data-toggle="dropdown" aria-haspopup="true"
															aria-expanded="false"> <span class="active">总经理</span>
															<span class="caret"></span>
														</a>
														<ul class="dropdown-menu">
															<li class="active">总经理</li>
															<li>董事长</li>
														</ul>
														<input type="hidden" value="总经理">
													</div>
												</td> -->
											</tr>
											<tr>
												<td class="x-text-bold x-required">行政人事部<input
													type="hidden" value="行政人事部"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写（必填）" required x-error-text="请添加人事部负责人"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写（必填）" required x-pattern="^[\d-]{8,}$"
													x-error-text="请填写正确手机号码"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写（必填）" required
													x-pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
													x-error-text="请填写正确邮箱地址"></td>
												<td>经理<input type="hidden" value="行政人事经理">
											</tr>
											<tr>
												<td class="x-text-bold x-required">财务部<input
													type="hidden" value="财务部"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写（必填）" required x-error-text="请添加财务部负责人"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^[\d-]{8,}$" x-error-text="请填写正确手机号码"
													placeholder="请填写（必填）" required></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
													x-error-text="请填写正确邮箱地址" placeholder="请填写（必填）" required></td>
												<td>经理<input type="hidden" value="财务经理">
											</tr>
											<tr>
												<td class="x-text-bold">销售部<input type="hidden"
													value="销售部"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^[\d-]{8,}$" x-error-text="请填写正确手机号码"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
													x-error-text="请填写正确邮箱地址" placeholder="请填写"></td>
												<td>经理<input type="hidden" value="销售经理">
											</tr>
											<tr>
												<td class="x-text-bold">PMC<input type="hidden"
													value="PMC"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^[\d-]{8,}$" x-error-text="请填写正确手机号码"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
													x-error-text="请填写正确邮箱地址" placeholder="请填写"></td>
												<td>经理<input type="hidden" value="PMC经理">
											</tr>
											<tr>
												<td class="x-text-bold">采购部<input type="hidden"
													value="采购部"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^[\d-]{8,}$" x-error-text="请填写正确手机号码"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
													x-error-text="请填写正确邮箱地址" placeholder="请填写"></td>
												<td>经理<input type="hidden" value="采购经理">
											</tr>
											<tr>
												<td class="x-text-bold">研发部<input type="hidden"
													value="研发部"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^[\d-]{8,}$" x-error-text="请填写正确手机号码"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
													x-error-text="请填写正确邮箱地址" placeholder="请填写"></td>
												<td>经理<input type="hidden" value="研发经理">
											</tr>
											<tr>
												<td class="x-text-bold">生产部<input type="hidden"
													value="生产部"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^[\d-]{8,}$" x-error-text="请填写正确手机号码"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
													x-error-text="请填写正确邮箱地址" placeholder="请填写"></td>
												<td>经理<input type="hidden" value="生产经理">
											</tr>
											<tr>
												<td class="x-text-bold">仓库<input type="hidden"
													value="仓库"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^[\d-]{8,}$" x-error-text="请填写正确手机号码"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
													x-error-text="请填写正确邮箱地址" placeholder="请填写"></td>
												<td>主管<input type="hidden" value="仓库主管">
											</tr>
											<tr>
												<td class="x-text-bold">品质部<input type="hidden"
													value="品质部"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^[\d-]{8,}$" x-error-text="请填写正确手机号码"
													placeholder="请填写"></td>
												<td><input type="text"
													class="form-control x-input-blank input-sm"
													x-pattern="^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
													x-error-text="请填写正确邮箱地址" placeholder="请填写"></td>
												<td>经理<input type="hidden" value="品质经理">
											</tr>
										</tbody>
									</table>
								</div>
							</div>
						</div>
						<div class="x-form-set" style="margin-left: 100px">
							<div class="form-group">
								<div class="col-sm-4">
									<a class="btn x-btn-primary x-btn-submit btn-block"> 立即开通</a>
								</div>
							</div>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	<!-- content End -->
	<!-- footer Start -->
	<jsp:include page="../common/footer.jsp" />
	<!-- footer End -->
	<!-- loading box -->
	<div id="loading">
		<div class="x-loading-wrap"></div>
		<div class="x-loading">
			<div></div>
			<div></div>
			<div></div>
		</div>
	</div>
	<!-- floating progress -->
	<div id="progress" style="display: none">
		<div class="x-floating-wrap"></div>
		<div class="x-floating text-center">
			<div class="x-progress-topbar">
				<div class="progress"></div>
			</div>
			<div class="x-waiting-wrap">正在开通优企云服，请稍等...</div>
		</div>
	</div>
	<script src="static/lib/js/jquery.min.js"></script>
	<script src="static/lib/js/bootstrap.min.js"></script>
	<script src="static/lib/js/toastr.min.js"></script>
	<script src="static/js/base.js"></script>
	<script src="static/js/upload.js"></script>
	<script src="static/js/applyApp.js"></script>
</body>
</html>