forked from siteserver/SS.Form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodalFieldAdd.aspx
161 lines (139 loc) · 7.47 KB
/
modalFieldAdd.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<%@ Page Language="C#" Inherits="SS.Form.Pages.ModalFieldAdd" %>
<!DOCTYPE html>
<html style="background:#fff">
<head>
<meta charset="utf-8">
<link href="assets/plugin-utils/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="assets/plugin-utils/css/plugin-utils.css" rel="stylesheet" type="text/css" />
<link href="assets/plugin-utils/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="assets/plugin-utils/css/ionicons.min.css" rel="stylesheet" type="text/css" />
</head>
<body style="padding: 0;background:#fff">
<div style="padding: 20px 0;">
<div class="container">
<form id="form" runat="server" class="form-horizontal">
<asp:Literal id="LtlMessage" runat="server"></asp:Literal>
<div class="form-horizontal">
<div class="form-group">
<label class="col-md-2 control-label">标题</label>
<div class="col-md-8">
<asp:TextBox class="form-control" Columns="25" MaxLength="50" id="TbTitle" runat="server" />
</div>
<div class="col-md-2">
<asp:RequiredFieldValidator ControlToValidate="TbTitle" errorMessage=" *" foreColor="red" display="Dynamic" runat="server"
/>
<asp:RegularExpressionValidator runat="server" ControlToValidate="TbTitle" ValidationExpression="[^']+" errorMessage=" *"
foreColor="red" display="Dynamic" />
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">描述</label>
<div class="col-md-8">
<asp:TextBox class="form-control" Columns="25" MaxLength="50" id="TbDescription" runat="server" />
</div>
<div class="col-md-2">
<asp:RegularExpressionValidator runat="server" ControlToValidate="TbDescription" ValidationExpression="[^']+" errorMessage=" *"
foreColor="red" display="Dynamic" />
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">提示信息</label>
<div class="col-md-8">
<asp:TextBox class="form-control" Columns="25" MaxLength="50" id="TbPlaceHolder" runat="server" />
</div>
<div class="col-md-2">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">表单提交类型</label>
<div class="col-md-8">
<asp:DropDownList class="form-control" ID="DdlFieldType" OnSelectedIndexChanged="ReFresh" AutoPostBack="true" runat="server"></asp:DropDownList>
</div>
<div class="col-md-2">
</div>
</div>
<asp:PlaceHolder ID="PhIsSelectField" runat="server">
<div class="form-group">
<label class="col-md-2 control-label">设置选项</label>
<div class="col-md-8">
<asp:DropDownList class="form-control" ID="DdlIsRapid" OnSelectedIndexChanged="ReFresh" AutoPostBack="true" runat="server">
<asp:ListItem Text="快速设置" Value="True" Selected="True" />
<asp:ListItem Text="详细设置" Value="False" />
</asp:DropDownList>
</div>
<div class="col-md-2"></div>
</div>
<asp:PlaceHolder ID="PhRapid" runat="server">
<div class="form-group">
<label class="col-md-2 control-label">选项可选值</label>
<div class="col-md-8">
<asp:TextBox TextMode="MultiLine" class="form-control" Columns="60" id="TbRapidValues" runat="server" />
<span class="help-block">英文","分隔,如:“选项1,选项2”</span>
</div>
<div class="col-md-2">
<asp:RequiredFieldValidator ControlToValidate="TbRapidValues" errorMessage=" *" foreColor="red" display="Dynamic" runat="server"
/>
</div>
</div>
</asp:PlaceHolder>
<asp:PlaceHolder ID="PhItemCount" runat="server">
<div class="form-group">
<label class="col-md-2 control-label">共有选项</label>
<div class="col-md-8">
<asp:TextBox class="form-control" id="TbItemCount" runat="server" />
</div>
<div class="col-md-2">
<asp:RequiredFieldValidator ControlToValidate="TbItemCount" errorMessage=" *" foreColor="red" display="Dynamic" runat="server"
/>
<asp:Button class="btn" style="margin-bottom:0px;" id="SetCount" text="设 置" onclick="SetCount_OnClick" CausesValidation="false"
runat="server" />
<asp:RegularExpressionValidator ControlToValidate="TbItemCount" ValidationExpression="\d+" Display="Dynamic" ErrorMessage="此项必须为数字"
foreColor="red" runat="server" />
</div>
</div>
</asp:PlaceHolder>
<asp:PlaceHolder ID="PhItems" runat="server">
<div class="form-group">
<label class="col-md-2 control-label">选项可选值</label>
<div class="col-md-8">
<asp:Repeater ID="RptItems" runat="server">
<itemtemplate>
<div class="row">
<div class="col-xs-1">
</div>
<div class="col-xs-1">
<label>
<%# Container.ItemIndex + 1 %>:
</label>
<asp:RequiredFieldValidator ControlToValidate="TbValue" errorMessage=" *" foreColor="red" display="Dynamic" runat="server"
/>
</div>
<div class="col-xs-6">
<asp:TextBox ID="TbValue" class="form-control" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Value") %>'></asp:TextBox>
</div>
<div class="col-xs-4">
<asp:CheckBox ID="CbIsSelected" class="checkbox checkbox-primary" runat="server" Checked="False" Text="默认勾选"></asp:CheckBox>
<asp:CheckBox ID="CbIsExtras" class="checkbox checkbox-primary" runat="server" Checked="False" Text="勾选后需提交信息"></asp:CheckBox>
</div>
</div>
<hr />
</itemtemplate>
</asp:Repeater>
</div>
<div class="col-md-2">
</div>
</div>
</asp:PlaceHolder>
</asp:PlaceHolder>
</div>
<div class="modal-footer">
<asp:Button class="btn btn-primary" onclick="Add_OnClick" runat="server" Text="保 存"></asp:Button>
<button type="button" class="btn btn-default m-l-10" onclick="window.parent.layer.closeAll()">取 消</button>
</div>
</form>
</div>
</div>
</body>
</html>
<script src="assets/plugin-utils/js/jquery.min.js"></script>
<script src="assets/plugin-utils/js/bootstrap.min.js"></script>