cvs: pear /HTML_Progress2/examples/ajax/upload apc5_upload1.php apc5_upload2.php apc5_upload3.php
[email protected] ("Laurent Laville")
| Newsgroups | php.pear.cvs |
|---|---|
| Message-ID | <cvsfarell1208701736@cvsserver> |
farell Sun Apr 20 14:28:56 2008 UTC
Modified files:
/pear/HTML_Progress2/examples/ajax/upload apc5_upload1.php
apc5_upload2.php
apc5_upload3.php
Log:
make examples more Xhtml compliant
http://cvs.php.net/viewvc.cgi/pear/HTML_Progress2/examples/ajax/upload/apc5_upload1.php?r1=1.1&r2=1.2&diff_format=u
Index: pear/HTML_Progress2/examples/ajax/upload/apc5_upload1.php
diff -u pear/HTML_Progress2/examples/ajax/upload/apc5_upload1.php:1.1 pear/HTML_Progress2/examples/ajax/upload/apc5_upload1.php:1.2
--- pear/HTML_Progress2/examples/ajax/upload/apc5_upload1.php:1.1 Mon Feb 12 15:28:20 2007
+++ pear/HTML_Progress2/examples/ajax/upload/apc5_upload1.php Sun Apr 20 14:28:56 2008
@@ -2,7 +2,7 @@
/**
* Basic example of AJAX file upload with HTML_Progress2, PHP 5.2+ and APC
*
- * @version $Id: apc5_upload1.php,v 1.1 2007/02/12 15:28:20 farell Exp $
+ * @version $Id: apc5_upload1.php,v 1.2 2008/04/20 14:28:56 farell Exp $
* @author Laurent Laville <[email protected]>
* @package HTML_Progress2
* @subpackage Examples
@@ -43,7 +43,9 @@
// upload progress identifier : must be unique to avoid collision
$progress_key = uniqid();
?>
-<html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>APC PHP5 AJAX Upload Progress Meter basic example </title>
<script type="text/javascript" src="HTML_Progress2.js"></script>
@@ -72,9 +74,9 @@
<body>
<form enctype="multipart/form-data" target="tfrm" action="apc5_upload1.php" method="post" onsubmit="HTML_Progress2.start('<?php echo $pb->getIdent(); ?>', 500);">
- <input type="hidden" name="APC_UPLOAD_PROGRESS" id="progress_key" value="<?php echo $progress_key; ?>">
- <input type="file" id="userfile" name="userfile">
- <input type="submit" value="Upload!">
+ <input type="hidden" name="APC_UPLOAD_PROGRESS" id="progress_key" value="<?php echo $progress_key; ?>" />
+ <input type="file" id="userfile" name="userfile" />
+ <input type="submit" value="Upload!" />
</form>
<iframe id="tfrm" name="tfrm" style="width:1px;height:1px;border:0"></iframe>
http://cvs.php.net/viewvc.cgi/pear/HTML_Progress2/examples/ajax/upload/apc5_upload2.php?r1=1.1&r2=1.2&diff_format=u
Index: pear/HTML_Progress2/examples/ajax/upload/apc5_upload2.php
diff -u pear/HTML_Progress2/examples/ajax/upload/apc5_upload2.php:1.1 pear/HTML_Progress2/examples/ajax/upload/apc5_upload2.php:1.2
--- pear/HTML_Progress2/examples/ajax/upload/apc5_upload2.php:1.1 Mon Feb 12 15:28:20 2007
+++ pear/HTML_Progress2/examples/ajax/upload/apc5_upload2.php Sun Apr 20 14:28:56 2008
@@ -2,7 +2,7 @@
/**
* Custom example of AJAX file upload with HTML_Progress2, PHP 5.2+ and APC
*
- * @version $Id: apc5_upload2.php,v 1.1 2007/02/12 15:28:20 farell Exp $
+ * @version $Id: apc5_upload2.php,v 1.2 2008/04/20 14:28:56 farell Exp $
* @author Laurent Laville <[email protected]>
* @package HTML_Progress2
* @subpackage Examples
@@ -55,7 +55,9 @@
// upload progress identifier : must be unique to avoid collision
$progress_key = md5(uniqid(rand(), true));
?>
-<html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>APC PHP5 AJAX Upload Progress Meter custom example </title>
<script type="text/javascript" src="HTML_Progress2.js"></script>
@@ -88,9 +90,9 @@
<body>
<form enctype="multipart/form-data" target="tfrm" action="http_upload.php" method="post" onsubmit="beginUpload();">
- <input type="hidden" name="APC_UPLOAD_PROGRESS" id="progress_key" value="<?php echo $progress_key; ?>">
- <input type="file" id="userfile" name="userfile">
- <input type="submit" value="Upload!">
+ <input type="hidden" name="APC_UPLOAD_PROGRESS" id="progress_key" value="<?php echo $progress_key; ?>" />
+ <input type="file" id="userfile" name="userfile" />
+ <input type="submit" value="Upload!" />
</form>
<iframe id="tfrm" name="tfrm" style="width:1px;height:1px;border:0"></iframe>
http://cvs.php.net/viewvc.cgi/pear/HTML_Progress2/examples/ajax/upload/apc5_upload3.php?r1=1.1&r2=1.2&diff_format=u
Index: pear/HTML_Progress2/examples/ajax/upload/apc5_upload3.php
diff -u pear/HTML_Progress2/examples/ajax/upload/apc5_upload3.php:1.1 pear/HTML_Progress2/examples/ajax/upload/apc5_upload3.php:1.2
--- pear/HTML_Progress2/examples/ajax/upload/apc5_upload3.php:1.1 Sat Apr 19 17:18:33 2008
+++ pear/HTML_Progress2/examples/ajax/upload/apc5_upload3.php Sun Apr 20 14:28:56 2008
@@ -2,7 +2,7 @@
/**
* Custom example of AJAX file upload with HTML_Progress2, PHP 5.2+ and APC
*
- * @version $Id: apc5_upload3.php,v 1.1 2008/04/19 17:18:33 farell Exp $
+ * @version $Id: apc5_upload3.php,v 1.2 2008/04/20 14:28:56 farell Exp $
* @author Laurent Laville <[email protected]>
* @package HTML_Progress2
* @subpackage Examples
@@ -55,7 +55,9 @@
// upload progress identifier : must be unique to avoid collision
$progress_key = md5(uniqid(rand(), true));
?>
-<html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>APC PHP5 AJAX Upload Progress Meter custom example </title>
<script type="text/javascript" src="HTML_Progress2.js"></script>
@@ -88,9 +90,9 @@
<body>
<form enctype="multipart/form-data" target="tfrm" action="http_upload.php" method="post" onsubmit="beginUpload();">
- <input type="hidden" name="APC_UPLOAD_PROGRESS" id="progress_key" value="<?php echo $progress_key; ?>">
- <input type="file" id="userfile" name="userfile">
- <input type="submit" value="Upload!">
+ <input type="hidden" name="APC_UPLOAD_PROGRESS" id="progress_key" value="<?php echo $progress_key; ?>" />
+ <input type="file" id="userfile" name="userfile" />
+ <input type="submit" value="Upload!" />
</form>
<iframe id="tfrm" name="tfrm" style="width:1px;height:1px;border:0"></iframe>