diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-01 04:33:06 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-01 04:33:06 +0300 |
| commit | 2b4ed611e7e001ad8ea93ef3e8cdce35bc56dc07 (patch) | |
| tree | 0da2582de2cef450f6366a9cff28e47353eddb2e /tests | |
| parent | 77b3a3ebf23598b82d035ead6df43b2c2ca885f4 (diff) | |
| download | gyraf1gov-2b4ed611e7e001ad8ea93ef3e8cdce35bc56dc07.tar.gz gyraf1gov-2b4ed611e7e001ad8ea93ef3e8cdce35bc56dc07.tar.bz2 gyraf1gov-2b4ed611e7e001ad8ea93ef3e8cdce35bc56dc07.zip | |
form designer; setup main forms of the application
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/code/eval.php | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/tests/code/eval.php b/tests/code/eval.php new file mode 100755 index 0000000..911c68a --- /dev/null +++ b/tests/code/eval.php @@ -0,0 +1,111 @@ +<?php + +eval("\$a = [ + 'defaults' => [ + 'outer_class' => 'col-12', + 'inrer_class' => 'form-control', + 'type' => 'text', + 'source' => 'user' + ], + 'form' => [ + [ + 'label' => 'Πειθαρχική υπόθεση' + ], + [ + 'name' => 'of_student', + 'label' => 'τ.. μαθητ...', + 'attributes' => ['required'] + ], + [ + 'name' => 'of_department', + 'label' => 'του τμήματος...', + 'attributes' => ['required'] + ], + [ + 'name' => 'date', + 'label' => 'Ημερομηνία', + 'type' => 'date', + 'class' => 'col-5', + 'attributes' => ['required'] + ], + [ + 'name' => 'time', + 'label' => 'Ώρα', + 'class' => 'col-4', + 'attributes' => ['required'] + ], + [ + 'name' => 'place', + 'label' => '', + 'attributes' => ['required'] + ], + [ + 'name' => 'rapporteur', + 'label' => 'εισηγητής', + 'attributes' => ['required'] + ], + [ + 'name' => 'charge', + 'label' => 'κατηγορία', + 'attributes' => ['required'] + ], + [ + 'name' => 'apology', + 'label' => 'Απολογία', // + of_student + 'type' => 'textarea', + 'attributes' => [] + ], + [ + 'name' => 'decision_reasoning', + 'label' => 'Αιτιολογία απόφασης (πχ. Επειδή...)', + 'type' => 'textarea', + 'attributes' => ['required'] + ], + [ + 'label' => 'Το Πειθαρχικό Συμβούλιο' + ], + [ + 'name' => 'decision', + 'label' => 'Αποφασίζει', + 'type' => 'select', + 'options' => [ + 'προφορική επίπληξη', + 'ωριαία αποβολή', + 'ημερήσια αποβολή' + ], + 'attributes' => [] + ], + [ + 'name' => 'decision_more', + 'label' => '(μη τυποποιημένo κείμενο απόφασης)', + 'attributes' => [] + ], + [ + 'name' => 'request', + 'label' => 'Αίτημα (πχ, Παρακαλώ να μου χορηγήσετε ...)', + 'type' => 'textarea', + 'attributes' => ['required'] + ], + [ + 'name' => 'president', + 'label' => 'Ημερομηνία αίτησης', + 'type' => 'date', + 'attributes' => ['required'] + ], + [ + 'name' => 'members', + 'label' => '', + 'type' => 'select', + 'attributes' => ['required', 'multiple'], + 'source' => 'teachers' + ] + ] + ]; +"); + + +echo '<pre>'; +// var_dump($a); +$b = json_decode(json_encode($a)); +print_r($b); +echo '</pre>';
\ No newline at end of file |
