Initial commit
This commit is contained in:
27
vendor/stefangabos/zebra_form/examples/includes/custom-templates/contact.php
vendored
Normal file
27
vendor/stefangabos/zebra_form/examples/includes/custom-templates/contact.php
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
// don't forget about this for custom templates, or errors will not show for server-side validation
|
||||
// $zf_error is automatically created by the library and it holds messages about SPAM or CSRF errors
|
||||
// $error is the name of the variable used with the set_rule method
|
||||
echo (isset($zf_error) ? $zf_error : (isset($error) ? $error : ''));
|
||||
?>
|
||||
|
||||
<!-- elements are grouped in "rows" -->
|
||||
<div class="row">
|
||||
|
||||
<!-- things that need to be side-by-side go in "cells" and will be floated to the left -->
|
||||
<div class="cell"><?php echo $label_name . $name?></div>
|
||||
<div class="cell"><?php echo $label_email . $email . $note_email?></div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- notice the "even" class which is used to highlight even rows differently
|
||||
from the odd rows -->
|
||||
<div class="row even"><?php echo $label_website . $website . $note_website?></div>
|
||||
|
||||
<div class="row"><?php echo $label_subject . $subject?></div>
|
||||
|
||||
<div class="row even"><?php echo $label_message . $message?></div>
|
||||
|
||||
<!-- the submit button goes in the last row; also, notice the "last" class which
|
||||
removes the bottom border which is otherwise present for any row -->
|
||||
<div class="row last"><?php echo $btnsubmit?></div>
|
||||
28
vendor/stefangabos/zebra_form/examples/includes/custom-templates/divs-login.php
vendored
Normal file
28
vendor/stefangabos/zebra_form/examples/includes/custom-templates/divs-login.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
// don't forget about this for custom templates, or errors will not show for server-side validation
|
||||
// $zf_error is automatically created by the library and it holds messages about SPAM or CSRF errors
|
||||
// $error is the name of the variable used with the set_rule method
|
||||
echo (isset($zf_error) ? $zf_error : (isset($error) ? $error : ''));
|
||||
?>
|
||||
|
||||
<!-- elements are grouped in "rows" -->
|
||||
<div class="row">
|
||||
|
||||
<!-- things that need to be side-by-side go in "cells" and will be floated to the left -->
|
||||
<div class="cell"><?php echo $label_email . $email?></div>
|
||||
<div class="cell"><?php echo $label_password . $password?></div>
|
||||
|
||||
<div class="clear" style="margin-bottom:10px"></div>
|
||||
|
||||
<!-- on the same row, but beneath the email and the password fields,
|
||||
we place the "remember me" checkbox and attached label -->
|
||||
<div class="cell"><?php echo $remember_me_yes?></div>
|
||||
<div class="cell"><?php echo $label_remember_me_yes?></div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- the submit button goes in the last row; notice the "even" class which
|
||||
is used to highlight even rows differently from the odd rows; also, notice
|
||||
the "last" class which removes the bottom border which is otherwise present
|
||||
for any row -->
|
||||
<div class="row even last"><?php echo $btnsubmit?></div>
|
||||
73
vendor/stefangabos/zebra_form/examples/includes/custom-templates/example1-dependencies.php
vendored
Normal file
73
vendor/stefangabos/zebra_form/examples/includes/custom-templates/example1-dependencies.php
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
<!--
|
||||
in reality you'd have this in an external stylesheet;
|
||||
i am using it like this for the sake of the example
|
||||
-->
|
||||
<style type="text/css">
|
||||
.Zebra_Form .optional { padding: 10px 50px; display: none }
|
||||
</style>
|
||||
|
||||
<!--
|
||||
again, in reality you'd have this in an external JavaScript file;
|
||||
i am using it like this for the sake of the example
|
||||
-->
|
||||
<script type="text/javascript">
|
||||
var mycallback = function(value, segment) {
|
||||
$segment = $('.optional' + segment);
|
||||
if (value) $segment.show();
|
||||
else $segment.hide();
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php echo (isset($zf_error) ? $zf_error : (isset($error) ? $error : ''))?>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $label_name . $name?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<?php echo $label_notifications?>
|
||||
<div class="cell"><?php echo $notifications_yes?></div>
|
||||
<div class="cell"><?php echo $label_notifications_yes?></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="optional optional1">
|
||||
|
||||
<?php echo $label_method?>
|
||||
<div class="cell"><?php echo $method_email?></div>
|
||||
<div class="cell"><?php echo $label_method_email?></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="optional optional2">
|
||||
<?php echo $label_email . $email . $note_email?>
|
||||
</div>
|
||||
|
||||
<div class="cell"><?php echo $method_phone?></div>
|
||||
<div class="cell"><?php echo $label_method_phone?></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="optional optional3">
|
||||
<?php echo $label_phone . $phone . $note_phone?>
|
||||
</div>
|
||||
|
||||
<div class="cell"><?php echo $method_post?></div>
|
||||
<div class="cell"><?php echo $label_method_post?></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="optional optional4">
|
||||
<?php echo $label_post . $post . $note_post?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="cell"><?php echo $notifications_no?></div>
|
||||
<div class="cell"><?php echo $label_notifications_no?></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="optional optional5">
|
||||
<?php echo $label_why . $why?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row last"><?php echo $btnsubmit?></div>
|
||||
15
vendor/stefangabos/zebra_form/examples/includes/custom-templates/example2-dependencies.php
vendored
Normal file
15
vendor/stefangabos/zebra_form/examples/includes/custom-templates/example2-dependencies.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php echo (isset($zf_error) ? $zf_error : (isset($error) ? $error : ''))?>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell"><?php echo $label_name . $name?></div>
|
||||
<div class="cell"><?php echo $label_surname . $surname?></div>
|
||||
</div>
|
||||
|
||||
<div class="row even">
|
||||
<h6><strong>Add new person</strong></h6><br>
|
||||
<div class="cell"><?php echo $label_add_name . $add_name?></div>
|
||||
<div class="cell"><?php echo $label_add_surname . $add_surname?></div>
|
||||
<div class="cell"><br><?php echo $btnadd?></div>
|
||||
</div>
|
||||
|
||||
<div class="row last"><?php echo $btnsubmit?></div>
|
||||
32
vendor/stefangabos/zebra_form/examples/includes/custom-templates/registration.php
vendored
Normal file
32
vendor/stefangabos/zebra_form/examples/includes/custom-templates/registration.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
// don't forget about this for custom templates, or errors will not show for server-side validation
|
||||
// $zf_error is automatically created by the library and it holds messages about SPAM or CSRF errors
|
||||
// $error is the name of the variable used with the set_rule method
|
||||
echo (isset($zf_error) ? $zf_error : (isset($error) ? $error : ''));
|
||||
?>
|
||||
|
||||
<!-- elements are grouped in "rows" -->
|
||||
<div class="row">
|
||||
|
||||
<!-- things that need to be side-by-side go in "cells" and will be floated to the left -->
|
||||
<div class="cell"><?php echo $label_firstname . $firstname?></div>
|
||||
<div class="cell"><?php echo $label_lastname . $lastname?></div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- notice the "even" class which is used to highlight even rows differently
|
||||
from the odd rows -->
|
||||
<div class="row even"><?php echo $label_email . $email . $note_email?></div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell"><?php echo $label_password . $password . $note_password?></div>
|
||||
<div class="cell"><?php echo $label_confirm_password . $confirm_password?></div>
|
||||
</div>
|
||||
|
||||
<div class="row even">
|
||||
<?php echo $captcha_image . $label_captcha_code . $captcha_code . $note_captcha?>
|
||||
</div>
|
||||
|
||||
<!-- the submit button goes in the last row; also, notice the "last" class which
|
||||
removes the bottom border which is otherwise present for any row -->
|
||||
<div class="row even last"><?php echo $btnsubmit?></div>
|
||||
72
vendor/stefangabos/zebra_form/examples/includes/custom-templates/reservation.php
vendored
Normal file
72
vendor/stefangabos/zebra_form/examples/includes/custom-templates/reservation.php
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
// don't forget about this for custom templates, or errors will not show for server-side validation
|
||||
// $zf_error is automatically created by the library and it holds messages about SPAM or CSRF errors
|
||||
// $error is the name of the variable used with the set_rule method
|
||||
echo (isset($zf_error) ? $zf_error : (isset($error) ? $error : ''));
|
||||
?>
|
||||
|
||||
<!-- elements are grouped in "rows" -->
|
||||
<div class="row">
|
||||
|
||||
<!-- things that need to be side-by-side go in "cells" and will be floated to the left -->
|
||||
<div class="cell"><?php echo $label_name . $name?></div>
|
||||
<div class="cell"><?php echo $label_email . $email?></div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- notice the "even" class which is used to highlight even rows differently
|
||||
from the odd rows -->
|
||||
<div class="row even">
|
||||
<?php echo $label_department . $department . $department_other?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="cell">
|
||||
|
||||
<?php echo $label_room?>
|
||||
|
||||
<!-- this is the preffered way of displaying checkboxes and
|
||||
radio buttons and their associated label -->
|
||||
<div class="cell"><?php echo $room_A?></div>
|
||||
<div class="cell"><?php echo $label_room_A?></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="cell"><?php echo $room_B?></div>
|
||||
<div class="cell"><?php echo $label_room_B?></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="cell"><?php echo $room_C?></div>
|
||||
<div class="cell"><?php echo $label_room_C?></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="cell" style="margin-left: 20px">
|
||||
|
||||
<?php echo $label_extra?>
|
||||
|
||||
<div class="cell"><?php echo $extra_flipchard?></div>
|
||||
<div class="cell"><?php echo $label_extra_flipchard?></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="cell"><?php echo $extra_plasma?></div>
|
||||
<div class="cell"><?php echo $label_extra_plasma?></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="cell"><?php echo $extra_beverages?></div>
|
||||
<div class="cell"><?php echo $label_extra_beverages?></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row even">
|
||||
<div class="cell"><?php echo $label_date . $date?></div>
|
||||
<div class="cell" style="margin-left: 10px"><?php echo $label_time . $time?></div>
|
||||
</div>
|
||||
|
||||
<!-- the submit button goes in the last row; also, notice the "last" class which
|
||||
removes the bottom border which is otherwise present for any row -->
|
||||
<div class="row last"><?php echo $btnsubmit?></div>
|
||||
45
vendor/stefangabos/zebra_form/examples/includes/custom-templates/tables-login.php
vendored
Normal file
45
vendor/stefangabos/zebra_form/examples/includes/custom-templates/tables-login.php
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
// don't forget about this for custom templates, or errors will not show for server-side validation
|
||||
// $zf_error is automatically created by the library and it holds messages about SPAM or CSRF errors
|
||||
// $error is the name of the variable used with the set_rule method
|
||||
echo (isset($zf_error) ? $zf_error : (isset($error) ? $error : ''));
|
||||
?>
|
||||
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
|
||||
<!-- elements are grouped in "rows" -->
|
||||
<tr class="row">
|
||||
<td><?php echo $label_email?></td>
|
||||
<td><?php echo $email?></td>
|
||||
</tr>
|
||||
|
||||
<!-- notice the "even" class which is used to highlight even rows differently
|
||||
from the odd rows -->
|
||||
<tr class="row even">
|
||||
<td><?php echo $label_password?></td>
|
||||
<td><?php echo $password?></td>
|
||||
</tr>
|
||||
|
||||
<tr class="row">
|
||||
<td></td>
|
||||
<td>
|
||||
|
||||
<!-- this is the preffered way of displaying checkboxes and
|
||||
radio buttons and their associated label -->
|
||||
<div class="cell"><?php echo $remember_me_yes?></div>
|
||||
<div class="cell"><?php echo $label_remember_me_yes?></div>
|
||||
|
||||
<!-- once we're done with "cells" we *must* place a "clear" div -->
|
||||
<div class="clear"></div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- the submit button goes in the last row; also, notice the "last" class which
|
||||
removes the bottom border which is otherwise present for any row -->
|
||||
<tr class="row even last">
|
||||
<td></td>
|
||||
<td><?php echo $btnsubmit?></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
Reference in New Issue
Block a user