PageRenderTime 16ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/source/Plug-in/xajax/examples/signup/signup.php

http://prosporous.googlecode.com/
PHP | 94 lines | 57 code | 11 blank | 26 comment | 0 complexity | 1b232a4a5564182a4216a27a143aab5b MD5 | raw file
 1<?php
 2/*
 3	File: signup.php
 4
 5	Example which demonstrates a xajax implementation of a multi-page sign-up.
 6	
 7	Title: Multi-page Sign-up Example
 8	
 9	Please see <copyright.inc.php> for a detailed description, copyright
10	and license information.
11*/
12
13/*
14	Section: Files
15	
16	- <signup.php>
17	- <signup.common.php>
18	- <signup.server.php>
19*/
20
21/*
22	@package xajax
23	@version $Id: signup.php 362 2007-05-29 15:32:24Z calltoconstruct $
24	@copyright Copyright (c) 2005-2006 by Jared White & J. Max Wilson
25	@license http://www.xajaxproject.org/bsd_license.txt BSD License
26*/
27
28require_once('signup.common.php');
29
30echo '<?xml version="1.0" encoding="UTF-8"?>'
31
32?>
33<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
34<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
35	<head>
36		<?php $xajax->printJavascript('../../'); ?>
37		<style type="text/css">
38		#formWrapper{
39			color: rgb(255,255,255);
40			background-color: rgb(149,67,97);
41			width: 200px;
42		}
43		#title{
44			text-align: center;
45			background-color: rgb(0,0,0);
46		}
47		#formDiv{
48			padding: 25px;
49		}
50		.submitDiv{
51			margin-top: 10px;
52			text-align: center;
53		}
54		</style>
55		<script type="text/javascript">
56		function submitSignup()
57		{
58			xajax.$('submitButton').disabled=true;
59			xajax.$('submitButton').value="please wait...";
60			xajax_processForm(xajax.getFormValues("signupForm"));
61			return false;
62		}
63		</script>
64	</head>
65	<body>
66		<div id="formWrapper">
67		
68			<div id="title">Create a New Account</div>
69			
70			<div id="formDiv">
71				<form id="signupForm" action="javascript:void(null);" onsubmit="submitSignup();">
72					<div>Username:</div><div><input type="text" name="username" /></div>
73					<div>Password:</div><div><input type="password" name="newPass1" /></div>
74					<div>Confirm Password:</div><div>
75					  <input type="password" name="newPass2" />
76				  </div>
77 					<div>radio:</div><div><input type="radio" name="radio1"  value="1"/>1<input type="radio" name="radio1"  value="?"/>?</div>
78
79 					<div>chebox:</div><div><input type="checkbox" name="chebox2[]"  value="1"/>1<input type="checkbox" name="chebox2[]"  value="?"/>?</div>
80   					<div>select:</div><div><select name="select1" multiple="multiple"/><option value="??">??</option><option value="??">??</option><option value="??">??</option><option value="???">???</option></select></div>
81   					<div>chebox:</div><div><input type="hidden" name="hidden1"  value="hiddenvalue"/>
82                    <textarea> asdsfaklfdslkkldfsjalkjlkjsdfalk;lk;jkljlsdkfjalkjlkjlkjsdfa<div>,</div>divv,.doiskdfjsd,as,df<br />
83                    </textarea>
84                
85				<div class="submitDiv"><input id="submitButton" type="submit" value="continue ->"/></div>
86				</form>
87			</div>
88			
89		</div>
90		
91		<div id="outputDiv">
92		</div>
93	</body>
94</html>