forked from dropways/deskapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui-sweet-alert.php
126 lines (123 loc) · 5.77 KB
/
ui-sweet-alert.php
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
<!DOCTYPE html>
<html>
<head>
<?php include('include/head.php'); ?>
</head>
<body>
<?php include('include/header.php'); ?>
<?php include('include/sidebar.php'); ?>
<div class="main-container">
<div class="pd-ltr-20 xs-pd-20-10">
<div class="min-height-200px">
<div class="page-header">
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="title">
<h4>Sweet Alert</h4>
</div>
<nav aria-label="breadcrumb" role="navigation">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">UI Sweet Alert</li>
</ol>
</nav>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">A basic message</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="sa-basic">Click me</button>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">A title with a text under</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="sa-title">Click me</button>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">A success message!</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="sa-success">Click me</button>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">A error message!</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="sa-error">Click me</button>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">A warning message, with a function attached to the "Confirm"-button...</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="sa-warning">Click me</button>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">A custom positioned dialog</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="sa-custom-position">Click me</button>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">By passing a parameter, you can execute something else for "Cancel".</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="sa-params">Click me</button>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">A message with custom Image Header</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="sa-image">Click me</button>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">A message with auto close timer</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="sa-close">Click me</button>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">Custom HTML description and buttons</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="custom-html-alert">Click me</button>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">A message with custom width, padding and background</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="custom-padding-width-alert">Click me</button>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">Ajax request example</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="ajax-alert">Click me</button>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">Chaining modals (queue) example</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="chaining-alert">Click me</button>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 mb-30">
<div class="pd-20 bg-white border-radius-4 box-shadow text-center height-100-p">
<h5 class="pt-20 mb-30">Dynamic queue example</h5>
<button type="button" class="btn mb-20 btn-outline-primary" id="dynamic-alert">Click me</button>
</div>
</div>
</div>
</div>
<?php include('include/footer.php'); ?>
</div>
</div>
<?php include('include/script.php'); ?>
<!-- add sweet alert js & css in footer -->
<script src="src/plugins/sweetalert2/sweetalert2.all.js"></script>
<link rel="stylesheet" type="text/css" href="src/plugins/sweetalert2/sweetalert2.css">
<script src="src/plugins/sweetalert2/sweet-alert.init.js"></script>
</body>
</html>