~ubuntu-branches/ubuntu/precise/libcgi-formbuilder-perl/precise

« back to all changes in this revision

Viewing changes to .pc/020110909~fcd40bf.patch/t/2b-test03.html

  • Committer: Package Import Robot
  • Author(s): Jonas Smedegaard
  • Date: 2011-09-11 02:55:17 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: package-import@ubuntu.com-20110911025517-nhr6j6fwwc9xc4l1
Tags: 3.06-1
* New upstream release.
* Use CDBS perl-makemaker.mk (not deprecated perlmodule.mk).
  Tighten build-dependency on CDBS.
* Update copyright file:
  + Fix use Comment field (not License-Comments).
  + Quote license names in comments.
* Add patch cherry-picked upstream to fix testsuite.
* Update package relations:
  + Build-depend on and suggest libcgi-ssi-perl.
  + Make suggestions unversioned and drop conflicts: satisfied even in
    oldstable.
  + Maintain all relations using CDBS in rules file.
* Stop preserving cruft no long shipped upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<title>User Info</title>
 
3
Please update your info and hit "Submit".
 
4
<script type="text/javascript"><!-- hide from old browsers
 
5
function validate (form) {
 
6
    var alertstr = '';
 
7
    var invalid  = 0;
 
8
    var invalid_fields = new Array();
 
9
 
 
10
    // sex: radio group or multiple checkboxes
 
11
    var sex = null;
 
12
    var selected_sex = 0;
 
13
    for (var loop = 0; loop < form.elements['sex'].length; loop++) {
 
14
        if (form.elements['sex'][loop].checked) {
 
15
            sex = form.elements['sex'][loop].value;
 
16
            selected_sex++;
 
17
            if (sex == null || (sex != '1' && sex != '3' && sex != '5')) {
 
18
                alertstr += '- Choose one of the "glass EYE fucker" options\n';
 
19
                invalid++;
 
20
                invalid_fields.push('sex');
 
21
            }
 
22
        } // if
 
23
    } // for sex
 
24
    if (! selected_sex) {
 
25
        alertstr += '- Choose one of the "glass EYE fucker" options\n';
 
26
        invalid++;
 
27
    }
 
28
 
 
29
    if (invalid > 0 || alertstr != '') {
 
30
        if (! invalid) invalid = 'The following';   // catch for programmer error
 
31
        alert(''+invalid+' error(s) were encountered with your submission:'+'\n\n'
 
32
                +alertstr+'\n'+'Please correct these fields and try again.');
 
33
        return false;
 
34
    }
 
35
    return true;  // all checked ok
 
36
}
 
37
//-->
 
38
</script>
 
39
<p>
 
40
<form action="TEST" method="get" onsubmit="return validate(this);"><input id="_submitted" name="_submitted" type="hidden" value="1" />
 
41
Enter your name: <input id="name" name="name" type="text" />
 
42
Select your Color: <select name="color" multiple>
 
43
  <b><option VALUE="red">1</option></b>
 
44
  <b><option VALUE="blue">2</option></b>
 
45
  <b><option VALUE="yellow">3</option></b>
 
46
  <b><option VALUE="pink">4</option></b>
 
47
 
 
48
</select>
 
49
glass EYE fucker = <radio name="sex" value="1">2<br><radio name="sex" value="3">4<br><radio name="sex" value="5">6<br>
 
50
FYI, your dress size is (unknown)<br>
 
51
<input id="_submit" name="_submit" onclick="this.form._submit.value = this.value;" type="submit" value="Update" /><input id="_submit_2" name="_submit" onclick="this.form._submit.value = this.value;" type="submit" value="Delete" />
 
52
</form>