]> git.mxchange.org Git - ctracker.git/blobdiff - libs/templates/de/add_ticket_missing.tpl.php
Missing form elements handled
[ctracker.git] / libs / templates / de / add_ticket_missing.tpl.php
diff --git a/libs/templates/de/add_ticket_missing.tpl.php b/libs/templates/de/add_ticket_missing.tpl.php
new file mode 100644 (file)
index 0000000..990011b
--- /dev/null
@@ -0,0 +1,24 @@
+<?php /* Required for my editor... :-( */ ?>
+<div class="ctracker_error_header">
+       Es fehlen noch Formularfelder!
+</div>
+
+<div>
+<?php
+// Field 'name not filled out?
+if (empty($_POST['name'])) {
+       // Output message
+       print '<div class="ctracker_form_missing">';
+       crackerTrackerOutputLocalized('add_ticket_name_missing');
+       print '</div>';
+} // END - if
+
+// Field 'name not filled out?
+if (empty($_POST['name'])) {
+       // Output message
+       print '<div class="ctracker_form_missing">';
+       crackerTrackerOutputLocalized('add_ticket_email_missing');
+       print '</div>';
+} // END - if
+?>
+</div>