forked from siteserver/SS.Form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpageSettings.aspx
211 lines (190 loc) · 9.88 KB
/
pageSettings.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<%@ Page Language="C#" Inherits="SS.Form.Pages.PageSettings" %>
<%@ Register TagPrefix="ctrl" Namespace="SS.Form.Controls" Assembly="SS.Form" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="assets/css/siteserver.min.css" rel="stylesheet" type="text/css" />
<link href="assets/css/ionicons.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form runat="server">
<ul class="nav nav-tabs tabs-bordered nav-justified">
<li class="nav-item">
<a class="nav-link" href="<%=PageLogsUrl%>">数据列表</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<%=PageResultsUrl%>">数据统计</a>
</li>
<li class="nav-item">
<a class="nav-link" href="<%=PageFieldsUrl%>">字段管理</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="<%=PageSettingsUrl%>">选项设置</a>
</li>
<li class="nav-item">
<asp:LinkButton id="LbTemplate" class="nav-link" onclick="LbTemplate_Click" runat="server">
自定义模板
</asp:LinkButton>
</li>
<li class="nav-item">
<a class="nav-link" href="<%=ReturnUrl%>">
<i class="ion-ios-undo"></i>
返回列表
</a>
</li>
</ul>
<!-- container start -->
<div class="m-3">
<div class="row">
<div class="m-2 col-12">
<div class="float-right">
<a href="http://plugins.siteserver.cn/ss.form/docs/" target="_blank">使用教程</a>
模板标签:
<code>
<stl:form title="<%=FormTitle%>"></stl:form>
</code>
</div>
<h4 class="float-left">
<%=FormTitle%>
</h4>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="card-box">
<h4 class="text-dark header-title m-t-0">表单选项设置</h4>
<p class="text-muted m-b-25 font-13">在此设置表单以及选项信息</p>
<asp:Literal id="LtlMessage" runat="server" />
<div class="form-group">
<label class="col-2 control-label">标题</label>
<div class="col-5">
<asp:TextBox class="form-control" Columns="25" MaxLength="50" id="TbTitle" runat="server" />
</div>
<div class="col-5">
<asp:RegularExpressionValidator runat="server" ControlToValidate="TbTitle" ValidationExpression="[^']+" errorMessage=" *"
foreColor="red" display="Dynamic" />
</div>
</div>
<div class="form-group">
<label class="col-2 control-label">简介</label>
<div class="col-5">
<asp:TextBox class="form-control" Columns="25" TextMode="MultiLine" Rows="3" MaxLength="50" id="TbDescription" runat="server"
/>
</div>
<div class="col-5">
<asp:RegularExpressionValidator runat="server" ControlToValidate="TbDescription" ValidationExpression="[^']+" errorMessage=" *"
foreColor="red" display="Dynamic" />
</div>
</div>
<div class="form-group">
<label class="col-2 control-label">默认样式</label>
<div class="col-5">
<asp:DropDownList class="form-control" id="DdlDefaultTheme" runat="server"></asp:DropDownList>
</div>
<div class="col-5">
</div>
</div>
<div class="form-group">
<label class="col-2 control-label">限制时间</label>
<div class="col-10">
<div class="checkbox checkbox-primary">
<asp:CheckBox ID="CbIsTimeout" OnCheckedChanged="CbIsTimeout_CheckedChanged" AutoPostBack="true" text="表单只允许在规定的时间范围内访问"
runat="server"></asp:CheckBox>
</div>
</div>
</div>
<asp:PlaceHolder id="PhTimeout" runat="server">
<div class="form-group">
<label class="col-2 control-label" for="maxNum">开始时间</label>
<div class="col-3">
<ctrl:DateTimeTextBox ID="TbTimeToStart" class="form-control" Columns="40" runat="server"></ctrl:DateTimeTextBox>
<asp:RequiredFieldValidator ControlToValidate="TbTimeToStart" errorMessage=" *" foreColor="red" display="Dynamic" runat="server"
/>
</div>
<span class="col-7"> </span>
</div>
<div class="form-group">
<label class="col-2 control-label" for="maxNum">结束时间</label>
<div class="col-3">
<ctrl:DateTimeTextBox ID="TbTimeToEnd" class="form-control" Columns="40" runat="server"></ctrl:DateTimeTextBox>
<asp:RequiredFieldValidator ControlToValidate="TbTimeToEnd" errorMessage=" *" foreColor="red" display="Dynamic" runat="server"
/>
</div>
<span class="col-7"> </span>
</div>
</asp:PlaceHolder>
<div class="form-group">
<label class="col-2 control-label">验证码</label>
<div class="col-10">
<div class="checkbox checkbox-primary">
<asp:CheckBox ID="CbIsCaptcha" text="显示验证码" runat="server"></asp:CheckBox>
</div>
</div>
</div>
<asp:PlaceHolder id="PhSms" visible="false" runat="server">
<div class="form-group">
<label class="col-2 control-label">向管理员发送短信通知</label>
<div class="col-3">
<asp:DropDownList class="form-control" id="DdlIsAdministratorSmsNotify" AutoPostBack="true" OnSelectedIndexChanged="DdlIsAdministratorSmsNotify_SelectedIndexChanged"
runat="server">
<asp:ListItem Text="发送短信通知" Value="True" Selected="true"></asp:ListItem>
<asp:ListItem Text="不发送" Value="False"></asp:ListItem>
</asp:DropDownList>
</div>
<div class="col-7 help-block">
启用短信发送后将自动为每一条新增提交发送短信给指定手机
</div>
</div>
<asp:PlaceHolder id="PhIsAdministratorSmsNotify" runat="server">
<div class="form-group">
<label class="col-2 control-label">发送通知短信模板Id</label>
<div class="col-3">
<asp:TextBox class="form-control" ID="TbAdministratorSmsNotifyTplId" runat="server"></asp:TextBox>
</div>
<div class="col-7 help-block">
<asp:RequiredFieldValidator ControlToValidate="TbAdministratorSmsNotifyTplId" runat="server" ErrorMessage="*" foreColor="Red"></asp:RequiredFieldValidator>
需进入短信供应商模板管理界面,添加通知类短信模板并获取模板Id
</div>
</div>
<div class="form-group">
<label class="col-2 control-label">短信模板包含变量</label>
<div class="col-3">
<asp:ListBox ID="LbAdministratorSmsNotifyKeys" SelectionMode="Multiple" class="form-control" runat="server"></asp:ListBox>
</div>
<div class="col-7 help-block">
请勾选短信模板文字中包含的变量,请确保变量名大小写一致
</div>
</div>
<div class="form-group">
<label class="col-2 control-label">管理员接受短信通知手机号</label>
<div class="col-3">
<asp:TextBox class="form-control" ID="TbAdministratorSmsNotifyMobile" runat="server" />
</div>
<div class="col-7">
<asp:RequiredFieldValidator ControlToValidate="TbAdministratorSmsNotifyMobile" ErrorMessage=" *" ForeColor="red" Display="Dynamic"
runat="server" />
<asp:RegularExpressionValidator runat="server" ControlToValidate="TbAdministratorSmsNotifyMobile" ValidationExpression="[^']+"
ErrorMessage=" *" ForeColor="red" Display="Dynamic" />
</div>
</div>
</asp:PlaceHolder>
</asp:PlaceHolder>
<div class="m-b-25"></div>
<div class="form-group m-b-0">
<div class="col-sm-offset-2 col-sm-10">
<asp:Button class="btn btn-success" onclick="BtnSubmit_Click" Text="保 存" runat="server" />
</div>
</div>
</div>
</div>
</div>
</div>
<!-- container end -->
<asp:Literal id="LtlScript" runat="server"></asp:Literal>
</form>
</body>
</html>
<script src="assets/plugin-utils/js/jquery.min.js"></script>
<script src="assets/plugin-utils/js/bootstrap.min.js"></script>