123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <%@ include file="../../common/head.jsp"%>
- <link rel="stylesheet" type="text/css" href="../res/js//plugins/webuploader/webuploader.css">
- <link rel="stylesheet" type="text/css" href="../res/css/demo/webuploader-demo.css">
- <script type="text/javascript" src="../res/js/plugins/webuploader/webuploader.js"></script>
- <script type="text/javascript" src="../res/js/plugins/webuploader/uploader.js"></script>
- <cs:initFile/>
- <script type="text/javascript">
- $(function () {
- $("#airportDiv").hide();
- $("#airwaysDiv").hide();
- });
- function dotype(type){
- if(type == 0){
- $("#airportDiv").hide();
- $("#airwaysDiv").hide();
- }else if(type == 1){
- $("#airportDiv").show();
- $("#airwaysDiv").hide();
- }else if(type ==2){
- $("#airportDiv").show();
- $("#airwaysDiv").show();
- }
- }
- function doItem(id) {
- $('#airwaysId').empty();
- $('#airwaysId').html('<option value="">--无--</option>');
- $.getJSON('../machine/getAirways.cs', {
- 'airportId': $('#airportId').val()
- }, function (data) {
- $.each(data, function (i, obj) {
- $("#airwaysId").append('<option value="' + obj.id+'">' + obj.name + '</option>');
- });
- });
- }
- </script>
- </head>
- <body>
- <div class="wrapper wrapper-content">
- <div class="row">
- <div class="col-sm-12">
- <cs:form_validate formId="addUserForm"/>
- <form class="form-horizontal" action="add.cs" id="addUserForm" method="POST">
- <!-- <div class="form-group"> -->
- <!-- <label class="col-sm-3 control-label">类型:</label> -->
- <!-- <div class="col-sm-6"> -->
- <!-- <input id="type" name="type" class="form-control" validate="{required:true}" validateMessage="{required:'请输入类型'}" > -->
- <!-- </div> -->
- <!-- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">代码:</label>
- <div class="col-sm-6">
- <input id="code" name="code" class="form-control" validate="{required:true}" validateMessage="{required:'请输入code,不能重复'}" >
- </div>
- </div>
- -->
- <div class="form-group">
- <label class="col-sm-3 control-label">姓名:</label>
- <div class="col-sm-6">
- <input id="name" name="name" class="form-control" validate="{required:true}" validateMessage="{required:'请输入名称'}" >
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-3 control-label">账号:</label>
- <div class="col-sm-6">
- <input id="account" name="account" class="form-control" validate="{required:true}" validateMessage="{required:'请输入账号'}" >
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-3 control-label">密码:</label>
- <div class="col-sm-6">
- <input id="pwd" name="pwd" type="password" class="form-control" validate="{required:true}" validateMessage="{required:'请输入密码'}" >
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">用户类型:</label>
- <div class="col-sm-6">
- <select class="form-control" name="type" onchange="dotype(this.value)">
- <option value="0">平台管理员</option>
- </select>
- </div>
- </div>
- <div class="form-group" id="airportDiv">
- <label class="col-sm-3 control-label">所在机场:</label>
- <div class="col-sm-6">
- <select class="form-control" name="airportId" id="airportId" onchange="doItem(this.value)" validate="{required:true}" validateMessage="{required:'请选择所在机场'}">
- <%--<option value="0">--请选择--</option>--%>
- <c:forEach items="${airportList}" var="airport">
- <option value="${airport.id}">${airport.name}</option>
- </c:forEach>
- </select>
- </div>
- </div>
- <div class="form-group" id="airwaysDiv">
- <label class="col-sm-3 control-label">所在航空公司:</label>
- <div class="col-sm-6">
- <select class="form-control" name="airwaysId" id="airwaysId" validate="{required:true}" validateMessage="{required:'请选择所在航空公司'}">
- <option value="0">--无--</option>
- </select>
- </div>
- </div>
- <%-- <div class="form-group">
- <label class="col-sm-3 control-label">性别:</label>
- <div class="col-sm-6">
- <select class="form-control" name="sex">
- <option value="1">男</option>
- <option value="2">女</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">头像:</label>
- <div class="col-sm-6">
- <cs:file name="licessePic" type="100"></cs:file>
- </div>
- </div>
- --%>
- <div class="form-group">
- <label class="col-sm-3 control-label">描述:</label>
- <div class="col-sm-6">
- <input id="remark" name="remark" class="form-control" >
- </div>
- </div>
-
- <!-- <div class="form-group"> -->
- <!-- <label class="col-sm-3 control-label">:</label> -->
- <!-- <div class="col-sm-6"> -->
- <!-- <input id="weight" name="weight" class="form-control" > -->
- <!-- </div> -->
- <!-- </div> -->
- <div class="form-group">
- <div class="col-sm-4 col-sm-offset-3 pull-left">
- <button class="btn btn-default btn-dlg-close">取消</button>
- <button class="btn btn-primary" type="submit">提交</button>
- </div>
- </div>
-
- </form>
- </div>
- </div>
- </div>
- </body>
- </html>
|