1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
<script type="text/javascript">
<!--
// Check all of the main form fields to make sure they are filled in
function validate()
{
if (document.problem_report.subject.value == '') {
alert('<?php echo addslashes(_("Please provide a summary of the problem.")) ?>');
document.problem_report.subject.focus();
return false;
} else if (document.problem_report.message.value == '') {
alert('<?php echo addslashes(_("You must describe the problem before you can send the problem report.")) ?>');
document.problem_report.message.focus();
return false;
}
document.problem_report.actionID.value = 'send_problem_report';
return true;
}
//-->
</script>
<form method="post" name="problem_report" action="problem.php">
<?php Util::pformInput() ?>
<input type="hidden" name="actionID" value="cancel_problem_report" />
<input type="hidden" name="return_url" value="<?php echo htmlspecialchars(Util::getFormData('return_url')) ?>" />
<table cellpadding="3" cellspacing="2" width="100%">
<tr class="header">
<td colspan="2" class="header"><?php echo _("Describe the Problem") ?></td>
</tr>
<tr>
<td class="light rightAlign"><?php echo _("Your Name") ?></td>
<td><input type="text" tabindex="1" name="name" value="<?php echo htmlspecialchars($name) ?>" size="70" /></td>
</tr>
<tr>
<td class="light rightAlign"><?php echo _("Your Email Address") ?></td>
<td><input type="text" tabindex="2" name="email" value="<?php echo htmlspecialchars($email) ?>" size="70" /></td>
</tr>
<tr>
<td class="light rightAlign"><?php echo _("Short Summary") ?></td>
<td><input type="text" tabindex="3" name="subject" value="<?php echo htmlspecialchars($subject) ?>" size="70" /></td>
</tr>
<tr>
<td colspan="2" class="smallheader"><?php echo _("Full Description") ?></td>
</tr>
<tr>
<td></td>
<td><textarea tabindex="4" name="message" rows="20" cols="80" wrap="hard"><?php echo htmlspecialchars($message) ?></textarea></td>
</tr>
<tr>
<td></td>
<td class="light">
<input class="button" type="submit" name="formsubmit" onclick="return validate();" value="<?php echo _("Send Problem Report") ?>" />
<input class="button" type="submit" name="formsubmit" value="<?php echo _("Cancel Problem Report") ?>" />
</td>
</tr>
</table>
</form>
|