?> </td> <td class="col2"> <?php $object = new City($db); $catalogo = $object->getListCity(); $itemsSelect = array(); foreach ($catalogo as $item) { $itemsSelect[$item['id']] = $item['name']; } $id_city = ''; if ($action == 'EDIT' || $action == 'PREVIEW') { $id_city = $data['fk_id_city']; } Forms::printInput('SELECT', 'ID_CITY', $id_city, '', array(), $itemsSelect); ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <?php if ($action == 'INSERT' || $action == 'EDIT') { ?> <input name="BUTTON_ACTION" type="submit" value="<?php echo $v_label_gral_form["BUTTON_SAVE"];
echo $action; ?> " > <tr> <td class="col1"> <?php Forms::printLabel($v_label["NAME_LBL"]); ?> </td> <td class="col2"> <?php $name = $action == 'EDIT' ? $data['name'] : ''; if ($action == 'EDIT' || $action == 'INSERT') { Forms::printInput('TEXT', 'NAME', $name, 'mini', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"])); } elseif ($action == 'PREVIEW') { echo $data['name']; } ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <?php if ($action == 'INSERT' || $action == 'EDIT') {
</td> </tr> <tr> <td class="col1"> <?php Forms::printLabel('Descripcion'); ?> </td> <td class="col2"> <?php $note = ''; if ($action == 'EDIT') { $note = isset($data['note']) ? $data['note'] : ''; } Forms::printInput('TEXTAREA', 'note', $note, 'large', array(), $preview_flag); ?> </td> </tr> </tbody> </table> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 10px;"> </td> <td >
</td> </tr> <tr> <td class="col1"> <?php Forms::printLabel($property["pages"]["security/new_user"]["R_PASSWORD_LBL"]); ?> </td> <td class="col2"> <?php $val_pass = array(); if ($action == 'EDIT') { $val_pass = array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"], 'MINLENGTH' => array(5, $property["FORMS"]["VALIDATION_GENERIC"]["MIN_5_CHAR"]), 'EQUALTO' => array('#PASSWORD_1', $property["FORMS"]["VALIDATION_GENERIC"]["SAME_PASS"])); } Forms::printInput('PASSWORD', 'PASSWORD_2', '', '', $val_pass); ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <input name="" type="submit" value="Guardar" class="button_form" /> <input name="" type="reset" value="Limpiar" class="button_form close_dialog" /> </td>
?> </td> <td class="col2"> <?php $objectStatusSupervisor = new SystemCatalog($db); $catalogoStatusSupervisor = $objectStatusSupervisor->getListSystemCatalog('STATUS_SUPERVISOR_ADMISSION_AREA'); $itemsSelectStatusSupervisor = array(); foreach ($catalogoStatusSupervisor as $item) { $itemsSelectStatusSupervisor[$item['pk_id_catalog']] = $item['description']; } $idStatusSupervisor = null; if ($action == 'EDIT' || $action == 'PREVIEW') { $idStatusSupervisor = $data['status_supervisor_admission_area']; } Forms::printInput('SELECT', 'ID_STATUS_SUPERVISOR', $idStatusSupervisor, '', array(), $itemsSelectStatusSupervisor); ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <?php if ($action == 'INSERT' || $action == 'EDIT') { ?> <input name="BUTTON_ACTION" type="submit" value="<?php echo $v_label_gral_form["BUTTON_SAVE"];
</td> </tr> <tr> <td class="col1"> <?php Forms::printLabel($property["pages"]["security/new_user"]["BIRTHDAY_LBL"]); ?> </td> <td class="col2"> <?php $birthday = ''; if ($action == 'EDIT' || $action == 'PREVIEW') { $birthday = $data['birthday']; } Forms::printInput('TEXT', 'BIRTHDAY', $birthday, 'datePicker', array(), array(), $preview_flag); ?> </td> </tr> <?php if ($action != 'PREVIEW') { ?> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <input name="" type="submit" value="Save" class="button_form" />
Forms::printInput('TEXT', 'tel_trab_contacto', $tel_trab_contacto, 'mini', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"])); } elseif ($action == 'PREVIEW') { echo $data['tel_trab_contacto']; } if ($action != 'PREVIEW') { ?> <span class="rojo">*</span><?php } ?> </td> <td>CELULAR:</td> <td> <?php $celular_contacto = $action == 'EDIT' ? $data['celular_contacto'] : ''; if ($action == 'EDIT' || $action == 'INSERT') { Forms::printInput('TEXT', 'celular_contacto', $celular_contacto, 'mini', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"])); } elseif ($action == 'PREVIEW') { echo $data['celular_contacto']; } if ($action != 'PREVIEW') { ?> <span class="rojo">*</span><?php } ?> </td> </TR> <tr> <td></td> <td></td> <td></td> <td></td>
?> </td> <td class="col2"> <?php $object = new Country($db); $catalogo = $object->getListCountry(); $itemsSelect = array(); foreach ($catalogo as $item) { $itemsSelect[$item['id']] = $item['name']; } $id_country = ''; if ($action == 'EDIT' || $action == 'PREVIEW') { $id_country = $data['fk_id_country']; } Forms::printInput('SELECT', 'ID_COUNTRY', $id_country, '', array(), $itemsSelect); ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <?php if ($action == 'INSERT' || $action == 'EDIT') { ?> <input name="BUTTON_ACTION" type="submit" value="<?php echo $v_label_gral_form["BUTTON_SAVE"];
<table class="form"> <tr> <td class="col1"> <?php Forms::printLabel('Periodos'); ?> </td> <td class="col2"> <?php $itemsSelect = array(); foreach ($listPeriod as $item) { $itemsSelect[$item['pk_id_period']] = $item['period']; } $valData = $period; Forms::printInput('SELECT', 'PERIODO', $valData, '', array(), $itemsSelect); ?> </td> <td class="col3"> </td> </tr> </table> </form> <?php if ($_SESSION["pk_id_role"] == ROLE_ROOT) { ?> <a href="javascript:void(0);" class=" modal_ajax_form button_form" v_title="Nuevo Curso"
$itemsSelectactivity = array(); $list_status = $status_attendance->getListAttendanceStatus(); foreach ($list_status as $item_status) { $itemsSelectactivity[$item_status['pk_id_attendance_status']] = $item_status['attendance_status']; } $pk_id_attendance_status = ''; if ($action == 'EDIT') { $pk_id_attendance_status = $item['pk_id_attendance_status']; } Forms::printInput('SELECT', 'pk_id_attendance_status[]', $pk_id_attendance_status, '', array(), $itemsSelectactivity); ?> </td> <td width="100px"> <?php $valData = $action == 'EDIT' ? $item['observation'] : ''; Forms::printInput('TEXTAREA', 'observation[]', $valData, null, array(), $preview_flag); ?> </td> </tr> <?php } } ?> </tbody> </table> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 10px;">
Forms::printInput('SELECT', 'status_admission_process', $STATUS_ADMISION_PROCESS, '', array(), $itemsSelect); } else { echo "<span style=\"color:{$colorFontStatus};\" >" . $statusDesc . "</span>"; } ?> </td> <td style="vertical-align:middle;font-size: 11px; min-width: 150px;padding: 3px; border-left: solid 1px <?php echo $color; ?> ; "> <?php if ($active == 1) { Forms::printInput('TEXTAREA', 'observation_status', $observationStatus, 'medium', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"]), array(), 'width:300px;'); ?> <input type="hidden" name="fk_id_membership_app_form" value="<?php echo $id_form; ?> " > <input type="hidden" name="ACTION" value="INSERT" > <input type="hidden" name="fk_id_admission_area" value="<?php echo $pk_id_area; ?> " > <input type="hidden" name="fk_id_supervisor_admission_area" value="<?php echo $pk_id_supervisor_admission_area; ?> " >
} ?> </td> </tr> <tr> <td class="col1"> <?php Forms::printLabel('Dato 5:'); ?> </td> <td class="col2"> <?php $data_5 = $action == 'EDIT' ? $data_main_course['data_5'] : ''; if ($action == 'EDIT' || $action == 'INSERT') { Forms::printInput('TEXT', 'data_5', $data_5, 'mini', array()); } elseif ($action == 'PREVIEW') { echo $data_main_course['data_5']; } ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <?php if ($action == 'INSERT' || $action == 'EDIT') { ?>
</td> </tr> <tr> <td class="col1"> <?php Forms::printLabel('Descripcion'); ?> </td> <td class="col2"> <?php $valData = ''; Forms::printInput('TEXTAREA', 'consultation', $valData, 'large', array(), $preview_flag); ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <input name="" type="submit" value="Guardar" class="button_form" /> <input name="" type="reset" value="Cancelar" class="button_form close_dialog" />
<tr> <td class="col1"> <?php Forms::printLabel('Parentesco'); ?> </td> <td class="col2"> <?php $kinship = new Kinship($db); $catalogo1 = $kinship->getListKinship(); $itemsSelect = array(); foreach ($catalogo1 as $item) { $itemsSelect[$item['id']] = $item['name']; } Forms::printInput('SELECT', 'kinship', null, 'combobox', array(), $itemsSelect); ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <input id="boton_add" name="boton_add" type="submit" value="Agregar" class="button_form" /> </td> </tr>
Forms::printLabel('Persona'); ?> </td> <td class="col2"> <?php $itemsSelect = array(); foreach ($listPerson as $person) { $itemsSelect[$person['pk_id_person']] = $person['name'] . ' ' . $person['last_name']; } $pk_id_person = 0; if (in_array($action, array('PREVIEW', 'EDIT'))) { $pk_id_person = $data['pk_id_person']; } Forms::printInput('SELECT', 'PK_ID_PERSON', $pk_id_person, 'combobox', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"]), $itemsSelect); ?> </td> </tr> </table> </div> <?php if (in_array($action, array('INSERT', 'EDIT'))) { ?> <table class="form"> <tr> <td style="vertical-align: top; padding-top: 9px;">
} ?> <tr> <td class="col1"> <?php Forms::printLabel('Respuesta'); ?> </td> <td class="col2"> <?php $valData = ''; Forms::printInput('TEXTAREA', 'response', $valData, 'large', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"]), 0); ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <input name="" type="submit" value="Responder" class="button_form" /> <input name="" type="reset" value="Limpiar" class="button_form" />
</td> </tr> <tr> <td class="col1"> <?php Forms::printLabel('Descripcion'); ?> </td> <td class="col2"> <?php $activity_description = ''; if ($action == 'EDIT') { $activity_description = $data['activity_description']; } Forms::printInput('TEXTAREA', 'activity_description', $activity_description, 'large', array(), $preview_flag); ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <input name="" type="submit" value="Guardar" class="button_form" /> <input name="" type="reset" value="Cancelar" class="button_form close_dialog" /> </td> </tr>
?> </td> <td class="col2"> <?php $objeto = new MaritalStatus($db); $catalogo = $objeto->getListMaritalStatus(); $itemsSelect = array(); foreach ($catalogo as $item) { $itemsSelect[$item['id']] = $item['name']; } $pk_id_marital_status = ''; if ($action == 'EDIT') { $pk_id_marital_status = $data['fk_id_marital_status']; } Forms::printInput('SELECT', 'MARITAL_STATUS', $pk_id_marital_status, '', array(), $itemsSelect); ?> </td> </tr> <tr> <td class="col1"> <?php Forms::printLabel("Foto "); ?> </td> <td class="col2"> <?php $birthday = ''; if ($action == 'EDIT' || $action == 'PREVIEW') {
" > <tr> <td class="col1"> <?php Forms::printLabel('Estudiante'); ?> </td> <td class="col2"> <?php $object = new Student($db); $data_student = $object->getListStudent($_GET['ASSIGN_FAMILY']); $item = $data_student[0]; Forms::printInput('TEXT', 'NAME', $item['name'] . ' ' . $item['last_name'], 'mini', array()); ?> </td> </tr> <tr> <td class="col1"> <?php Forms::printLabel("Familiares"); ?> </td> <td class="col2"> <a href="javascript:void(0);" class="button_form modal_ajax_form" v_title="Nuevo Familiar" v_width="500"
?> </td> </tr> <tr> <td> <?php Forms::printLabel('Fecha entre :'); ?> </td> <td> <?php Forms::printInput('TEXT', 'DATE_INI', '', 'mini datePicker', array(), array(), 0); ?> y <?php Forms::printInput('TEXT', 'DATE_END', '', 'mini datePicker', array(), array(), 0); ?> </td> </tr> <tr> <td> </td> <td></td> </tr> <tr> <td> </td> <td> <input name="" type="submit" value="Buscar" class="button_form" /> <input name="" type="reset" value="Limpiar" class="button_form close_dialog" /> </td>
</td> </tr> <tr> <td><?php Forms::printLabel("Tipo Cuota"); ?> </td> <td> <?php $object = new TypeStructureNotes($db); $data_type_notes = $object->getListTypeStructureNotes(); $itemsSelect = array(); foreach ($data_type_notes as $item) { $itemsSelect[$item['id_type_notes']] = $item['type_structure_notes']; } Forms::printInput('SELECT', 'id_type_notes', null, '', array(), $itemsSelect); ?> </td> </tr> <tr> <td><br></td> <td></td> </tr> <TR> <td></td> <td> <input name="BUTTON_ACTION" type="submit" value="<?php echo "Subir Archivo"; ?> " class="button_form" />
</td> </tr> <tr> <td class="col1"> <?php Forms::printLabel('Descripcion Contenido'); ?> </td> <td class="col2"> <?php $description_file_contents = ''; if ($action == 'EDIT') { $description_file_contents = $data['description_file_contents']; } Forms::printInput('TEXTAREA', 'description_file_contents', $description_file_contents, 'large', array(), $preview_flag); ?> </td> </tr> </table> </FIELDSET> </div> </div> <table class="form"> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td class="col2"> <center><input name="" type="submit" value="Guardar" class="button_form" /> <input name="" type="reset" value="Cancelar" class="button_form close_dialog" /></center>
<td class="col1"> <?php Forms::printLabel('Asignar Dependientes'); ?> </td> <td class="col2"> <?php $student = new Student($db); $catalogo1 = $student->getListStudent(); $itemsSelect = array(); foreach ($catalogo1 as $item) { $itemsSelect[$item['id']] = $item['full_name']; } Forms::printInput('SELECT', 'student', null, 'combobox', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"]), $itemsSelect); ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <input id="boton_add" name="boton_add" type="submit" value="Agregar" class="button_form" /> </td> </tr>
</tr> <tr> <td class="col1"> <?php Forms::printLabel('Comentarios'); ?> </td> <td class="col2"> <?php $valData = ''; if ($action == 'EDIT' || $action == 'PREVIEW') { $valData = $data['comments_aditional']; } Forms::printInput('TEXTAREA', 'COMMENTS_ADITIONAL', $valData, 'large datePicker', array(), array(), $preview_flag); ?> </td> </tr> <?php if ($action != 'PREVIEW' && $_SESSION['pk_id_role'] == ROLE_ROOT) { ?> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <input name="" type="submit" value="Guardar" class="button_form" />
<?php Forms::printLabel('Gestion'); ?> </td> <td class="col2"> <?php $itemsSelect = array(); foreach ($listPeriods as $item) { $itemsSelect[$item['pk_id_seat_reservation_period']] = $item['period']; } $valData = ''; if ($action == 'EDIT' || $action == 'PREVIEW') { $valData = $item['pk_id_seat_reservation_period']; } Forms::printInput('SELECT', 'pk_id_seat_reservation_period', $valData, '', array(), $itemsSelect); ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td><br> <input name="" type="submit" value="Guardar" class="button_form" /> </td> </tr> </table>
<td class="col1"> <?php Forms::printLabel($property["pages"]["security/new_user"]["ROL_LBL"]); ?> </td> <td class="col2"> <?php $rol = new Rol($db); $listRol = $rol->getListRol(); $itemsSelect = array(); foreach ($listRol as $rolItem) { $itemsSelect[$rolItem['pk_id_role']] = $rolItem['role']; } Forms::printInput('SELECT', 'ROL', '', '', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"]), $itemsSelect); ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <input name="" type="submit" value="Guardar" class="button_form" /> <input name="" type="button" value="Cancelar" class="button_form close_dialog" />
} ?> </td> </tr> <tr> <td class="col1"> <?php Forms::printLabel($v_label["END_DATETIME"]); ?> </td> <td class="col2"> <?php $end_datetime_admission = $action == 'EDIT' ? $data['end_datetime_admission'] : ''; if ($action == 'EDIT' || $action == 'INSERT') { Forms::printInput('TEXT', 'end_datetime_admission', $end_datetime_admission, 'datePicker mini', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"])); } elseif ($action == 'PREVIEW') { echo $data['end_datetime_admission']; } ?> </td> </tr> <tr> <td class="col1"> <?php Forms::printLabel('Cursos Disponibles'); ?> </td> <td class="col2"> <?php $end_datetime_admission = $action == 'EDIT' ? $data['end_datetime_admission'] : '';
Forms::printLabel('Profesor'); ?> </td> <td class="col2"> <?php $itemsSelect = array(); $list = $teacher->getListTeacher(); foreach ($list as $item) { $itemsSelect[$item['id']] = $item['teacher_full_name']; } $valData = ''; if ($action == 'EDIT' || $action == 'PREVIEW') { $valData = $data['fk_id_teacher']; } Forms::printInput('SELECT', 'FK_ID_TEACHER', $valData, '', array(), $itemsSelect); ?> </td> </tr> <tr> <td style="vertical-align: top; padding-top: 9px;"> </td> <td> <input name="" type="submit" value="Guardar" class="button_form" /> <input name="" type="reset" value="Limpiar" class="button_form close_dialog" /> </td>