-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fcce8c
commit 4365899
Showing
41 changed files
with
1,231 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | ||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> | ||
<% | ||
String path = request.getContextPath(); | ||
String basePath = request.getScheme() + "://" | ||
+ request.getServerName() + ":" + request.getServerPort() | ||
+ path + "/"; | ||
%> | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<base href="<%=basePath%>"> | ||
<title>Detail Admin - New User Form</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<!-- bootstrap --> | ||
<link href="css/bootstrap/bootstrap.css" rel="stylesheet"> | ||
<link href="css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet"> | ||
|
||
<!-- global styles --> | ||
<link rel="stylesheet" type="text/css" href="css/compiled/layout.css"> | ||
<link rel="stylesheet" type="text/css" href="css/compiled/elements.css"> | ||
<link rel="stylesheet" type="text/css" href="css/compiled/icons.css"> | ||
|
||
<!-- libraries --> | ||
<link rel="stylesheet" type="text/css" href="css/lib/font-awesome.css"> | ||
|
||
<!-- this page specific styles --> | ||
<link rel="stylesheet" href="css/compiled/new-user.css" type="text/css" media="screen" /> | ||
|
||
<!-- open sans font --> | ||
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'> | ||
|
||
<!--[if lt IE 9]> | ||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body> | ||
|
||
<!-- navbar --> | ||
<c:import url="../navbar.jsp"></c:import> | ||
<!-- end navbar --> | ||
|
||
<!-- sidebar --> | ||
<c:import url="../slidebar.jsp"></c:import> | ||
<!-- end sidebar --> | ||
|
||
|
||
<!-- main container --> | ||
<div class="content"> | ||
|
||
<div id="pad-wrapper" class="new-user"> | ||
<div class="row header"> | ||
<div class="col-md-12"> | ||
<h3>创建新商铺</h3> | ||
</div> | ||
</div> | ||
|
||
<div class="row form-wrapper"> | ||
<!-- left column --> | ||
<div class="col-md-9 with-sidebar"> | ||
<div class="container"> | ||
<form class="new_user_form" id="new-shop-form" action="account/shop" method="POST"> | ||
<div class="col-md-12 field-box"> | ||
<label>品牌:</label> | ||
<input class="form-control" type="text" name="name" /> | ||
</div> | ||
<div class="col-md-12 field-box"> | ||
<label>地址:</label> | ||
<input class="col-md-9 form-control" type="text" name="address" /> | ||
</div> | ||
<div class="col-md-12 field-box"> | ||
<label>电话:</label> | ||
<input class="col-md-9 form-control" type="text" name="telephone" /> | ||
</div> | ||
<div class="col-md-12 field-box"> | ||
<label>描述:</label> | ||
<input class="col-md-9 form-control" type="text" name="description" /> | ||
</div> | ||
<div class="col-md-12 field-box"> | ||
<label>商场:</label> | ||
<div class="ui-select span5"> | ||
<select name="marketId"> | ||
<c:forEach items="${markets}" var="market"> | ||
<option value="${market.id}">${market.name}</option> | ||
</c:forEach> | ||
</select> | ||
</div> | ||
</div> | ||
<div class="col-md-11 field-box actions"> | ||
<input type="button" class="btn-glow primary" value="创建" id="new-shop-btn"> | ||
<span>OR</span> | ||
<input type="reset" value="取消" class="reset"> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
<!-- side right column --> | ||
<div class="col-md-3 form-sidebar pull-right"> | ||
<div class="btn-group toggle-inputs hidden-tablet"> | ||
<button class="glow left active" data-input="normal">NORMAL INPUTS</button> | ||
<button class="glow right" data-input="inline">INLINE INPUTS</button> | ||
</div> | ||
<div class="alert alert-info hidden-tablet"> | ||
<i class="icon-lightbulb pull-left"></i> | ||
Click above to see difference between inline and normal inputs on a form | ||
</div> | ||
<h6>Sidebar text for instructions</h6> | ||
<p>Add multiple users at once</p> | ||
<p>Choose one of the following file types:</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- end main container --> | ||
|
||
|
||
<!-- scripts --> | ||
<script src="lib/jquery-1.10.2.min.js"></script> | ||
<script src="lib/bootstrap.min.js"></script> | ||
<script src="lib/theme.js"></script> | ||
|
||
<script type="text/javascript"> | ||
$(function () { | ||
// toggle form between inline and normal inputs | ||
var $buttons = $(".toggle-inputs button"); | ||
var $form = $("form.new_user_form"); | ||
$buttons.click(function () { | ||
var mode = $(this).data("input"); | ||
$buttons.removeClass("active"); | ||
$(this).addClass("active"); | ||
if (mode === "inline") { | ||
$form.addClass("inline-input"); | ||
} else { | ||
$form.removeClass("inline-input"); | ||
} | ||
}); | ||
$("#new-shop-btn").click(function() { | ||
var name = $("input[name=name]").val(); | ||
var address = $("input[name=address]").val(); | ||
var telephone = $("input[name=telephone]").val(); | ||
var description = $("input[name=description]").val(); | ||
var url = $("#new-shop-form").attr('action'); | ||
var method = $("#new-shop-form").attr('method'); | ||
$.ajax({ | ||
type: method, | ||
url: url, | ||
dataType: 'json', | ||
data: {name: name, address: address, telephone: telephone, description: description}, | ||
success: function(data, textStatus, jqXHR){ | ||
console.log(data.statusInfo); | ||
alert(data.statusInfo); | ||
} | ||
}); | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.