Recorridos turísticos por los Cañones del Sil y Rutas del Románico Gallego
SOLICITUD DE RESERVA DE PLAZAS CIRCUITOS RADIALES
Temporada 2013
Viajes Pardo, S.A.
Juan XXIII, 1
32003-OURENSE
Teléfono de INFORMACION y RESERVAS
988 215 100
902 215 100
Copyright 1996-2012 Viajes Pardo, S.A. Todos los derechos reservados.
add('label', 'label_name', 'name', 'Your name:');
// add the "name" element
// the "&" symbol is there so that $obj will be a reference to the object in PHP 4
// for PHP 5+ there is no need for it
$obj = & $form->add('text', 'name', '', array('data-prefix' => 'img:public/images/user.png'));
// set rules
$obj->set_rule(array(
// error messages will be sent to a variable called "error", usable in custom templates
'required' => array('error', 'Name is required!')
));
// "email"
$form->add('label', 'label_email', 'email', 'Your email address:');
$obj = & $form->add('text', 'email', '', array('data-prefix' => 'img:public/images/letter.png'));
$obj->set_rule(array(
'required' => array('error', 'Email is required!'),
'email' => array('error', 'Email address seems to be invalid!'),
));
$form->add('note', 'note_email', 'email', 'Your email address will not be published.');
// "website"
$form->add('label', 'label_website', 'website', 'Your website:');
$obj = & $form->add('text', 'website', '', array('data-prefix' => 'http://'));
$obj->set_rule(array(
'url' => array(true, 'error', 'Invalid URL specified!'),
));
$form->add('note', 'note_website', 'website', 'Enter the URL of your website, if you have one.');
// "subject"
$form->add('label', 'label_subject', 'subject', 'Subject');
$obj = & $form->add('text', 'subject', '', array('style' => 'width:400px', 'data-prefix' => 'img:public/images/comment.png'));
$obj->set_rule(array(
'required' => array('error', 'Subject is required!')
));
// "message"
$form->add('label', 'label_message', 'message', 'Message:');
$obj = & $form->add('textarea', 'message');
$obj->set_rule(array(
'required' => array('error', 'Message is required!'),
'length' => array(0, 140, 'error', 'Maximum length is 140 characters!', true)
));
// "submit"
$form->add('submit', 'btnsubmit', 'Submit');
// if the form is valid
if ($form->validate()) {
// show results
show_results();
// otherwise
} else
// generate output using a custom template
$form->render();
?>