-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·167 lines (137 loc) · 7.97 KB
/
index.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
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="css/Selectyze.jquery.css" type="text/css" />
<style type="text/css">
*{margin:0;padding:0}
body{margin:20px;font-family:Arial}
fieldset{padding:20px}
p.intro {padding:10px;background-color:#222222;color:#afafaf;margin-top:50px;width:350px}
.intro span {color:#ff0000}
.first {margin-top:0 !important}
.clr {clear:both;}
input.submit{margin-top:30px;padding:15px}
label {float:left;display:block;margin-right:20px;margin-top:25px}
p.code {padding:10px;background-color:#f0f0f0;border:1px solid #cecece;width:450px;margin-bottom:20px}
fieldset{border:0}
</style>
</head>
<body>
<ul>
<li>Full documentation on <a href="http://www.myjqueryplugins.com/Selectyze">MyjQueryPlugins.com/Selectyze</a></li>
<li>Live demonstration on <a href="http://www.myjqueryplugins.com/Selectyze/demo">Selectyze demonstration page</a></li>
</ul>
<h1>Selectyze plugin</h1>
<?php
if(isset($_POST['btValide']))
{
echo '<p class="code">';
echo 'Datas receive after submit form :<br />';
echo '#1 -> '.$_POST['style1'].'<br />';
echo '#2 -> '.$_POST['style2'].'<br />';
echo '#3 -> '.$_POST['style3'].'<br />';
echo '#4 -> '.$_POST['style4'].'<br />';
echo '#5 -> '.$_POST['style5'].'<br />';
echo '</p>';
}
?>
<form method="post" action="">
<fieldset>
<p class="intro first">#1 -> $('.selectyze1').Selectyze({ theme : <span>'skype'</span>});</p>
<label>State</label>
<select name="style1" class="selectyze1">
<option>- -</option>
<optgroup label="States : optgroup detected !">
<option value="Alabama" <?php if(isset($_POST['style1']) && $_POST['style1'] == 'Alabama') echo 'selected="selected"';?>>Alabama</option>
<option value="Alaska" <?php if(isset($_POST['style1']) && $_POST['style1'] == 'Alaska') echo 'selected="selected"';?>>Alaska</option>
<option value="Arizona" <?php if(isset($_POST['style1']) && $_POST['style1'] == 'Arizona') echo 'selected="selected"';?>>Arizona</option>
<option value="Arkansas" <?php if(isset($_POST['style1']) && $_POST['style1'] == 'Arkansas') echo 'selected="selected"';?>>Arkansas</option>
<option value="California" <?php if(isset($_POST['style1']) && $_POST['style1'] == 'California') echo 'selected="selected"';?>>California</option>
</optgroup>
<optgroup label="States : optgroup detected !">
<option value="Alabama" <?php if(isset($_POST['style1']) && $_POST['style1'] == 'Alabama') echo 'selected="selected"';?>>Alabama</option>
<option value="Alaska" <?php if(isset($_POST['style1']) && $_POST['style1'] == 'Alaska') echo 'selected="selected"';?>>Alaska</option>
<option value="Arizona" <?php if(isset($_POST['style1']) && $_POST['style1'] == 'Arizona') echo 'selected="selected"';?>>Arizona</option>
<option value="Arkansas" <?php if(isset($_POST['style1']) && $_POST['style1'] == 'Arkansas') echo 'selected="selected"';?>>Arkansas</option>
<option value="California" <?php if(isset($_POST['style1']) && $_POST['style1'] == 'California') echo 'selected="selected"';?>>California</option>
</optgroup>
</select>
<div class="clr"></div>
<p class="intro">#2 -> $('.selectyze2').Selectyze({ theme : <span>'mac'</span>});</p>
<label>State</label>
<select name="style2" class="selectyze2">
<option>- -</option>
<optgroup label="States">
<option value="Alabama" <?php if(isset($_POST['style2']) && $_POST['style2'] == 'Alabama') echo 'selected="selected"';?>>Alabama</option>
<option value="Alaska" <?php if(isset($_POST['style2']) && $_POST['style2'] == 'Alaska') echo 'selected="selected"';?>>Alaska</option>
<option value="Arizona" <?php if(isset($_POST['style2']) && $_POST['style2'] == 'Arizona') echo 'selected="selected"';?>>Arizona</option>
<option value="Arkansas" <?php if(isset($_POST['style2']) && $_POST['style2'] == 'Arkansas') echo 'selected="selected"';?>>Arkansas</option>
<option value="California" <?php if(isset($_POST['style2']) && $_POST['style2'] == 'California') echo 'selected="selected"';?>>California</option>
</optgroup>
</select>
<div class="clr"></div>
<p class="intro">#3 -> $('.selectyze3').Selectyze({ theme : <span>'grey'</span>});</p>
<label>State</label>
<select name="style3" class="selectyze3">
<option>- -</option>
<optgroup label="States">
<option value="Alabama" <?php if(isset($_POST['style3']) && $_POST['style3'] == 'Alabama') echo 'selected="selected"';?>>Alabama</option>
<option value="Alaska" <?php if(isset($_POST['style3']) && $_POST['style3'] == 'Alaska') echo 'selected="selected"';?>>Alaska</option>
<option value="Arizona" <?php if(isset($_POST['style3']) && $_POST['style3'] == 'Arizona') echo 'selected="selected"';?>>Arizona</option>
<option value="Arkansas" <?php if(isset($_POST['style3']) && $_POST['style3'] == 'Arkansas') echo 'selected="selected"';?>>Arkansas</option>
<option value="California" <?php if(isset($_POST['style3']) && $_POST['style3'] == 'California') echo 'selected="selected"';?>>California</option>
</optgroup>
</select>
<div class="clr"></div>
<p class="intro">#4 -> $('.selectyze4').Selectyze({ theme : <span>'firefox'</span>});</p>
<label>State</label>
<select name="style4" class="selectyze4">
<option>- -</option>
<optgroup label="States">
<option value="Alabama" <?php if(isset($_POST['style4']) && $_POST['style4'] == 'Alabama') echo 'selected="selected"';?>>Alabama</option>
<option value="Alaska" <?php if(isset($_POST['style4']) && $_POST['style4'] == 'Alaska') echo 'selected="selected"';?>>Alaska</option>
<option value="Arizona" <?php if(isset($_POST['style4']) && $_POST['style4'] == 'Arizona') echo 'selected="selected"';?>>Arizona</option>
<option value="Arkansas" <?php if(isset($_POST['style4']) && $_POST['style4'] == 'Arkansas') echo 'selected="selected"';?>>Arkansas</option>
<option value="California" <?php if(isset($_POST['style4']) && $_POST['style4'] == 'California') echo 'selected="selected"';?>>California</option>
</optgroup>
</select>
<div class="clr"></div>
<p class="intro">#5 -> $('.selectyze5').Selectyze({ theme : <span>'css3'</span>});</p>
<label>State</label>
<select name="style5" class="selectyze5">
<option>- -</option>
<optgroup label="States">
<option value="Alabama" <?php if(isset($_POST['style5']) && $_POST['style5'] == 'Alabama') echo 'selected="selected"';?>>Alabama</option>
<option value="Alaska" <?php if(isset($_POST['style5']) && $_POST['style5'] == 'Alaska') echo 'selected="selected"';?>>Alaska</option>
<option value="Arizona" <?php if(isset($_POST['style5']) && $_POST['style5'] == 'Arizona') echo 'selected="selected"';?>>Arizona</option>
<option value="Arkansas" <?php if(isset($_POST['style5']) && $_POST['style5'] == 'Arkansas') echo 'selected="selected"';?>>Arkansas</option>
<option value="California" <?php if(isset($_POST['style5']) && $_POST['style5'] == 'California') echo 'selected="selected"';?>>California</option>
</optgroup>
</select>
<div class="clr"></div>
<input type="submit" value="send" name="btValide" class="submit" />
</fieldset>
</form>
<script type="text/javascript" src="jquery/jquery.js"></script>
<script type="text/javascript" src="jquery/Selectyze.jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.selectyze1').Selectyze({
theme : 'skype'
});
$('.selectyze2').Selectyze({
theme : 'mac'
});
$('.selectyze3').Selectyze({
theme : 'grey'
});
$('.selectyze4').Selectyze({
theme : 'firefox'
});
$('.selectyze5').Selectyze({
theme : 'css3'
});
});
</script>
</body>
</html>