Tizen 2.1 base
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.2.0 / docs / forms / forms-sample-selfsubmit.php
1 <!DOCTYPE html> 
2 <html> 
3         <head>
4         <meta charset="utf-8">
5         <meta name="viewport" content="width=device-width, initial-scale=1"> 
6         <title>jQuery Mobile Docs - Sample Form Submit to Self</title> 
7         <link rel="stylesheet"  href="../../css/themes/default/jquery.mobile.css" />  
8         <link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
9         <script src="../../js/jquery.js"></script>
10         
11         <script src="../../docs/_assets/js/jqm-docs.js"></script>
12         <script src="../../js/"></script>
13 </head> 
14 <body> 
15
16         <div data-role="page" class="type-interior">
17
18                 <div data-role="header" data-theme="f">
19                 <h1>Sample form submit to self</h1>
20                 <a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse">Home</a>
21                 <a href="../nav.html" data-icon="search" data-iconpos="notext" data-rel="dialog" data-transition="fade">Search</a>
22         </div><!-- /header -->
23
24         <div data-role="content" data-theme="c">
25                 <div class="content-primary">
26                 
27                 <form action="forms-sample-selfsubmit.php" method="post">
28                         
29                         <?php if ( isset ( $_REQUEST['submit'] ) ) { $submit = $_REQUEST['submit']; } else { $submit = ""; }
30                                 if ( isset ( $_REQUEST['layout'] ) ) { $layout = $_REQUEST['layout']; } else { $layout = ""; }
31                                 if ( isset ( $_REQUEST['title'] ) ) { $title = $_REQUEST['title']; } else { $title = ""; }
32                                 if ( isset ( $_REQUEST['timeout'] ) ) { $timeout = $_REQUEST['timeout']; } else { $timeout = "0"; }
33                                 if ( isset ( $_REQUEST['transition'] ) ) { $transition = $_REQUEST['transition']; } else { $transition = ""; }
34                         ?>
35
36                         <div data-role="fieldcontain">
37                                 <label for="title">Title:</label>
38                                 <input type="text" name="title" id="title" placeholder="diashow title"value="<?php echo $title ?>" />
39                         </div>
40
41                         <div data-role="fieldcontain">
42                             <fieldset data-role="controlgroup" data-type="horizontal">
43                                 <legend>Preview:</legend>
44                                         <input type="radio" name="layout" id="layout-radio-a" value="List" <?php echo $layout=="List" ? "checked" : "" ?> />
45                                         <label for="layout-radio-a">List</label>
46                                         <input type="radio" name="layout" id="layout-radio-b" value="Grid" <?php echo $layout=="Grid" ? "checked" : "" ?> />
47                                         <label for="layout-radio-b">Grid</label>
48                                         <input type="radio" name="layout" id="layout-radio-c" value="Gallery" <?php echo $layout=="Gallery" ? "checked" : "" ?> />
49                                         <label for="layout-radio-c">Gallery</label>
50                             </fieldset>
51                         </div>
52
53                         <div data-role="fieldcontain">
54                                 <label for="timeout">Timeout:</label>
55                                 <input type="range" name="timeout" id="timeout" value="<?php echo $timeout ?>" min="0" max="150" step="10" data-highlight="true"  />
56                         </div>
57
58                         <div data-role="fieldcontain">
59                             <fieldset data-role="controlgroup">
60                                 <legend>Transition:</legend>
61                                         <input type="radio" name="transition" id="transition-1" value="Pop" <?php echo $transition=="Pop" ? "checked" : "" ?>/>
62                                         <label for="transition-1">Pop</label>
63
64                                         <input type="radio" name="transition" id="transition-2" value="Fade" <?php echo $transition=="Fade" ? "checked" : "" ?> />
65                                         <label for="transition-2">Fade</label>
66
67                                         <input type="radio" name="transition" id="transition-3" value="Slide" <?php echo $transition=="Slide" ? "checked" : "" ?> />
68                                         <label for="transition-3">Slide</label>
69                             </fieldset>
70                         </div>
71                         
72                         <button type="submit" name="submit" value="submit" data-theme="b">Submit</button>
73                 </form>
74
75                 <h2><?php echo $submit == "" ? "Please fill in the form and press submit" : "You chose:" ?></h2>
76                 <div class="ui-body ui-body-d ui-corner-all">
77                         <p>Title: <strong><?php echo $submit == "" ? "-" : $title ?></strong></p>
78                         <p>Preview: <strong><?php echo $submit == "" ? "-" : $layout ?></strong></p>
79                         <p>Timeout: <strong><?php echo $submit == "" ? "-" : $timeout ?></strong></p>
80                         <p>Transition: <strong><?php echo $submit == "" ? "-" : $transition ?></strong></p>
81                 </div>
82         
83         </div><!--/content-primary -->          
84         
85         <div class="content-secondary">
86                 
87                 <div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
88                         
89                                 <h3>More in this section</h3>
90                                 
91                                 <ul data-role="listview" data-theme="c" data-dividertheme="d">
92                                 
93                                         <li data-role="list-divider">Form elements</li>
94                                         <li><a href="docs-forms.html">Form basics</a></li>
95                                         <li><a href="forms-all.html">Form element gallery</a></li>
96                                         <li><a href="forms-all-mini.html">Mini form element gallery</a></li>
97                                         <li><a href="textinputs/">Text inputs</a></li>
98                                         <li><a href="search/">Search inputs</a></li>
99                                         <li><a href="slider/">Slider</a></li>
100                                         <li><a href="switch/">Flip toggle switch</a></li>
101                                         <li><a href="radiobuttons/">Radio buttons</a></li>
102                                         <li><a href="checkboxes/">Checkboxes</a></li>
103                                         <li><a href="forms-selects.html">Select menus</a></li>
104                                         <li><a href="forms-themes.html">Theming forms</a></li>
105                                         <li><a href="forms-all-native.html">Native form elements</a></li>
106                                         <li data-theme="a"><a href="forms-sample.html">Submitting forms</a></li>
107                                         
108         
109                                 </ul>
110                 </div>
111         </div>          
112
113 </div><!-- /content -->
114
115 <div data-role="footer" class="footer-docs" data-theme="c">
116                 <p class="jqm-version"></p>
117                 <p>&copy; 2012 jQuery Foundation and other contributors</p>
118 </div>
119         
120 </div><!-- /page -->
121
122 </body>
123 </html>