source: www/down_form.php @ e4cec26

Last change on this file since e4cec26 was 843c58d, checked in by pawelk <pawelk@…>, 17 years ago

Wgrałem biezaca wersje strony www.

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@53 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

  • Property mode set to 100644
File size: 1.3 KB
Line 
1<?php
2require_once 'locale.php';
3require_once 'cmn_frame.php';
4
5  if(isset($_GET['filename'])) {
6        $title = '<title>UAM Text Tools - '.DOWNLOAD_FORM_PAGE_TITLE."</title>\n";
7
8        $content = "<h3>".DOWNLOAD_FORM_CAPTION."</h3>\n".
9            "<table border='1' align='center'><form action='down_thanks.php' method='post'>\n".
10                "<tr><td>".DOWNLOAD_FORM_FIELD_FIRSTNAME.":</td><td><input type='text' name='_firstname' value=''></td></tr>\n".
11                "<tr><td>".DOWNLOAD_FORM_FIELD_NAME.":</td><td><input type='text' name='_name' value=''></td></tr>\n".
12                "<tr><td>".DOWNLOAD_FORM_FIELD_ORGANIZATION.":</td><td><input type='text' name='_organization' value=''></td></tr>\n".
13                "<tr><td>".DOWNLOAD_FORM_FIELD_COUNTRY.":</td><td><input type='text' name='_country' value=''></td></tr>\n".
14                "<tr><td>".DOWNLOAD_FORM_FIELD_EMAIL.":</td><td><input type='text' name='_email' value=''></td></tr>\n".
15                "<tr><td colspan='2' align=\"center\">\n".
16                        "<input type='submit' value='".DOWNLOAD_FORM_FIELD_NEXT." &gt;'></td></tr>\n".
17            "<input type=\"hidden\" name='_filename' value=\"".$_GET['filename']."\">\n".
18                "</form></table>\n";
19        getMainPage($title, $content);
20  }
21  else {
22    header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/down.php');
23  }
24?>
Note: See TracBrowser for help on using the repository browser.