2 <& "/page/page_title.mas", title => "TOKN Clone Request" &>
5 <% $ENV{REMOTE_ADDR} %>
6 <form method="POST" action= "/kinases/clones/submit" name = "contactForm">
7 <div style="margin-left: 30px">
8 <table summary="" border="0" cellpadding="5" cellspacing="5">
10 % #Uses Perl to print out the fields with similar HTML tags
12 my $infoNeeded = ["name", "email", "address", "organization"];
16 "address" => $address,
17 "organization" => $organization
22 % foreach my $info_category (@$infoNeeded) {
23 <tr><td align="left" valign="top">
24 <strong><% ucfirst $info_category %>*</strong>
26 % # If user did not fill out a field and submitted the form, then it will
27 % # show in red letters above the field this field is needed above it.
28 % # Otherwise, the form is filled out normally.
29 % unless ($filled{$info_category}) {
31 <td style = "color:red; font-size: 10px;" align = "left" valign = "top">
32 <% ucfirst $info_category %> is required
35 <td align = "left" valign = "top">
37 <input type="text" size="50" value="<% $$defaultVal{$info_category} |h%>"
38 name="<% $info_category %>" />
44 % # Body uses a text_area so it is hardcoded.
45 % # Like the other inputs, it will display a red message above saying
47 <tr><td align="left" valign="top">
48 <strong>Clone list and Notes*</strong>
50 % unless ($filled{body}) {
51 <td style = "color:red; font-size: 10px;" align = "left" valign = "top">
55 <td align = "left" valign = "top">
57 <textarea cols="57" rows="7" name="body"><% $body |h%></textarea>
61 <tr><td><strong>Are you human?*</strong><br />What is <% $contact_form_human_question %>?</td>
64 % if (!$contact_form_human_answer_correct) {
65 <font style = "color:red; font-size: 10px;" align = "left" valign = "top">
66 % if (!$contact_form_human_answer) {
67 Prove that you are a human being is required<br /></font>
69 Either you are not human - or you are not very good at math! ;-)</font>
73 <input type="text" value="" name="contact_form_human_answer" size="4" />
78 <tr><td colspan="2" align="center" valign="middle" style = "color:red; font-size: 90%; font-style:italic;">
79 fields marked with <% '"*"' |h %> are required
83 <tr><td colspan="2" align="center" valign="middle">
84 <input type="submit" value="Submit" />
97 %filled => (name => 1, email => 1, address => 1, organization => 1, body => 1)
98 $contact_form_human_answer => ''
99 $contact_form_human_question => ''
100 $contact_form_human_answer_correct => 0
103 use CXGN::Page::FormattingHelpers 'info_table_html';