From e2ef952f700432e629bf7783b583e285d6248647 Mon Sep 17 00:00:00 2001 From: josch Date: Tue, 30 Oct 2007 10:44:55 +0000 Subject: [PATCH] created the basic upload form git-svn-id: http://yolanda.mister-muffin.de/svn@168 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/locale/en-us.xml | 13 ++- trunk/site/main.xml | 4 +- trunk/upload.pl | 25 ++++- trunk/xsl/xhtml.xsl | 218 ++++++++++++++++++++++++++++++------ trunk/xsl/xhtml/results.xsl | 137 +++++++++++----------- 5 files changed, 293 insertions(+), 104 deletions(-) diff --git a/trunk/locale/en-us.xml b/trunk/locale/en-us.xml index c752273..d94a414 100755 --- a/trunk/locale/en-us.xml +++ b/trunk/locale/en-us.xml @@ -92,6 +92,7 @@ file next page + previous page upload Specify the file you want to upload. State the title of the video. @@ -101,9 +102,15 @@ Specify the source, preferably by URL. State the language of the video. Specify the time and location covered. - This is page 1 of 3. - This is page 2 of 3. - This is page 3 of 3. + This is page 1 of 6. + This is page 2 of 6. + This is page 3 of 6. + This is page 4 of 6. + This is page 5 of 6. + This is page 6 of 6. + Page 1 + Page 3 + Page 4 download video diff --git a/trunk/site/main.xml b/trunk/site/main.xml index ba51a7e..f55e074 100755 --- a/trunk/site/main.xml +++ b/trunk/site/main.xml @@ -20,8 +20,8 @@ /login.pl?action=openid /login.pl?action=logout INSERT LINK TO YOLANDA AUTHORS HERE - http://gplv3.fsf.org/agplv3-dd1.html - http://mister-muffin.de/proj/browser + http://gplv3.fsf.org/agplv3-dd2.html + http://mister-muffin.de/proj/browser/trunk /register.pl search.pl?query= /upload.pl diff --git a/trunk/upload.pl b/trunk/upload.pl index 52d25b8..1fcc9a7 100644 --- a/trunk/upload.pl +++ b/trunk/upload.pl @@ -13,7 +13,30 @@ my $session = new CGI::Session; if($userinfo->{'username'}) { - $page->{uploadform} = {'page' => '1'}; + if($query->param('2')) + { + $page->{uploadform} = {'page' => '2'}; + } + elsif($query->param('3')) + { + $page->{uploadform} = {'page' => '3'}; + } + elsif($query->param('4')) + { + $page->{uploadform} = {'page' => '4'}; + } + elsif($query->param('5')) + { + $page->{uploadform} = {'page' => '5'}; + } + elsif($query->param('6')) + { + $page->{uploadform} = {'page' => '6'}; + } + else + { + $page->{uploadform} = {'page' => '1'}; + } } else { diff --git a/trunk/xsl/xhtml.xsl b/trunk/xsl/xhtml.xsl index 8cf0311..26581cc 100755 --- a/trunk/xsl/xhtml.xsl +++ b/trunk/xsl/xhtml.xsl @@ -430,24 +430,27 @@ -
+

Basic Description

+

These entries describe the very nature of your upload. All fields are required to be filled appropriately.

+ - +
- -
- -
+

+ +
+ +

- +

- + @@ -459,34 +462,22 @@
- + -
+

Uploads that match your description

+

If the attributes you just entered is imilar to those of already uploaded videos you will see the results below.

+

Please check if your video is not among them and then click next to proceed.

+ - +
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- + + + + + + @@ -497,6 +488,169 @@
+ +
+ + +

Additional information

+

The following fields are optional but recommended.

+
+ + + +
+ +
+ myself +
+ other: +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ + + + + + + + + + +
+ + + +
+
+
+ + +

Licensing

+

If you are the copyright holder feel free to use creative commons to license your work. If not, select the original license of your video.

+
+ + + +
+ none +
+ proprietary +
+ public domain +
+ creative commons +
+ +
+
+ + + + + + + + + + +
+ + + +
+
+
+ + +

Summary

+

Please check everything for correctness and edit if neccessary. If Everything is okay proceed below by uploading your video.

+
+ + + +
+ title: +
+ subject: +
+ description +
+ + + + + +
+ creator: +
+ source: +
+ language: +
+ coverage: +
+ + + + + +
+ license: +
+ + + + + +
+
+
+ + + +
+ +
+ +
+ + + + + +
+ + + +
+
diff --git a/trunk/xsl/xhtml/results.xsl b/trunk/xsl/xhtml/results.xsl index 02d5370..f291668 100644 --- a/trunk/xsl/xhtml/results.xsl +++ b/trunk/xsl/xhtml/results.xsl @@ -6,6 +6,76 @@ xmlns:cc="http://web.resource.org/cc/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > + + + + + + + + + +
+ + + + + + + + + + + + + +

+ + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + edit + + +
+
+
@@ -106,72 +176,7 @@ - - - - - - - -
- - - - - - - - - - - - - -

- - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - edit - - -
+