- md5
- 3594a9f5f933a86ecabc8194bacab0db
- sha1
- 37003d9e773fdcfe6f204520faedcedc6c67e392
- sha256
- 697b6929ea406c6a1896ead47ac78507a02927f08a8bc24d12cc64ffe859b26b
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
<?php
/** $Id: default_form.php 10094 2008-03-02 04:35:10Z instance $ */
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<script type="text/javascript">
<!--
function validateForm( frm ) {
var valid = document.formvalidator.isValid(frm);
if (valid == false) {
// do field validation
if (frm.email.invalid) {
alert( "<?php echo JText::_( 'Please enter a valid e-mail address.', true );?>" );
} else if (frm.text.invalid) {
alert( "<?php echo JText::_( 'CONTACT_FORM_NC', true ); ?>" );
}
return false;
} else {
frm.submit();
}
}
// -->
</script>
<?php if(isset($this->error)) : ?>
<tr>
<td><?php echo $this->error; ?></td>
</tr>
<?php endif; ?>
<tr>
<td colspan="2">
<br /><br />
<form action="<?php echo JRoute::_( 'index.php' );?>" method="post" name="emailForm" id="emailForm" class="form-validate">
<div class="contact_email<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<label for="contact_name">
<?php echo JText::_( 'Enter your name' );?>:
</label>
<br />
<input type="text" name="name" id="contact_name" size="30" class="inputbox" value="" />
<br />
<label id="contact_emailmsg" for="contact_email">
<?php echo JText::_( 'Email address' );?>:
</label>
<br />
<input type="text" id="contact_email" name="email" size="30" value="" class="inputbox required validate-email" maxlength="100" />
<br />
<label for="contact_subject">
<?php echo JText::_( 'Message subject' );?>:
</label>
<br />
<input type="text" name="subject" id="contact_subject" size="30" class="inputbox" value="" />
<br /><br />
<label id="contact_textmsg" for="contact_text">
<?php echo JText::_( 'Enter your message' );?>:
</label>
<br />
<textarea cols="50" rows="10" name="text" id="contact_text" class="inputbox required"></textarea>
<?php if ($this->contact->params->get( 'show_email_copy' )) : ?>
<br />
<input type="checkbox" name="email_copy" id="contact_email_copy" value="1" />
<label for="contact_email_copy">
<?php echo JText::_( 'EMAIL_A_COPY' ); ?>
</label>
<?php endif; ?>
<br />
<br />
<button class="button validate" type="submit"><?php echo JText::_('Send'); ?></button>
</div>
<input type="hidden" name="option" value="com_contact" />
<input type="hidden" name="view" value="contact" />
<input type="hidden" name="id" value="<?php echo $this->contact->id; ?>" />
<input type="hidden" name="task" value="submit" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<br />
</td>
</tr>
The same content is in 2 releases, Joomla 1.5.2 to 1.5.3. See them all, or every version of this file.