Εισαγωγή Εγγραφής
$section) : ?>
>
=$section->label?>
childs as $kk => $field) : ?> atr) ? explode('|', $field->atr) : []; // attributes array $ak = in_array('append-key', $atrs) ? true : false; // append key (for selects) $rq = in_array('required', $atrs) ? 'required' : ''; // required $class = (isset($field->len)) ? ' col-md-'.$field->len : 'col-md-12'; // column class (for width) $sm_hide = $field->typ == 'null' ? ' d-sm-none' : ''; // hide null div on small devices ?>
=$field->lab?> typ == 'select') && C_LABEL) : ?>
=$field->nam?>
typ) { case 'select': // check if multiple or single // ( deferantiate class for multi or single this will allow the { allowClear: true } option ) // ( see: https://select2.org/placeholders ) if (in_array('multiple', $atrs)) { // MULTIPLE control: set name and multiple attribute $name_n_multi = 'name="'. $field->nam .'[]" multiple="multiple">'; // prepare initialization of select2 (multiple) $initSelectsJS .= " var ". $field->nam ." = $('#". $field->nam ."'); ". $field->nam .".select2({ width: '100%' }); "; // depricated: ". $field->nam .".select2({ placeholder: '". $field->lab ."', width: '100%' }); // prepare check if empty field $checkFilledJS .= " if (getValues(".$field->nam.") =='') { empty += '
". $section->label .":
". $field->lab . (($rq == '') ? "" : " **") ."
'; ". (($rq == '') ? "" : "needit.push('". $section->label .":". $field->lab ."');") ." } values.". $field->nam ." = getValues(".$field->nam."); "; } else { // SINGLE control: only name needed $name_n_multi = 'name="'. $field->nam .'"'; // prepare initialization of select2 (single) $initSelectsJS .= " var ". $field->nam ." = $('#". $field->nam ."'); ". $field->nam .".select2({ placeholder: ' ', allowClear: true }); "; // depricated: ". $field->nam .".select2({ placeholder: '". $field->lab ."', allowClear: true }); // prepare check if empty field $checkFilledJS .= " if (getValues(".$field->nam.") =='') { empty += '
". $section->label .":
". $field->lab . (($rq == '') ? "" : " **") ."
'; ". (($rq == '') ? "" : "needit.push('". $section->label .":". $field->lab ."');") ." } values.". $field->nam ." = getValues(".$field->nam."); "; } ?>
style="width:100%;">
opt as $kkk => $val): ?>
=(($ak) ? $val->id.' : ' : '' ) .$val->tag?>
nam ."]').val() =='') { empty += '
". $section->label .":
". $field->lab . (($rq == '') ? "" : " **") ."
'; ". (($rq == '') ? "" : "needit.push('". $section->label .":". $field->lab ."');") ." } values.". $field->nam ." = $('input[name=". $field->nam ."]').val(); "; ?>
> nam ."]').val() =='') { empty += '
". $section->label .":
". $field->lab . (($rq == '') ? "" : " **") ."
'; ". (($rq == '') ? "" : "needit.push('". $section->label .":". $field->lab ."');") ." } values.". $field->nam ." = $('input[name=". $field->nam ."]').val(); "; ?>
> nam ."]').val() =='') { empty += '
". $section->label .":
". $field->lab . (($rq == '') ? "" : " **") ."
'; ". (($rq == '') ? "" : "needit.push('". $section->label .":". $field->lab ."');") ." } values.". $field->nam ." = $('input[name=". $field->nam ."]').val(); "; ?>
> nam ."]').val() =='') { empty += '
". $section->label .":
". $field->lab . (($rq == '') ? "" : " **") ."
'; ". (($rq == '') ? "" : "needit.push('". $section->label .":". $field->lab ."');") ." } values.". $field->nam ." = $('textarea[name=". $field->nam ."]').val(); "; ?>
>
Το πεδίο
=$field->lab?>
θα συμπληρωθεί από το σύστημα.
Αυτόματη συμπλήρωση …
=$field->nam?> (=$field->lab?>) : UNKNOWN TYPE
Δεν έχουν συμπληρωθεί:
Συμπληρωματική Πληροφορία
Γενικά:Συμπληρωματική Πληροφορία
'; } values.note = $('textarea[name=note]').val(); "; ?>