コード例 #1
0
    echo $action;
    ?>
" >

                
                 <tr>
                            <td class="col1">
                                <?php 
    Forms::printLabel('Profesor');
    ?>
                                
                            </td>
                            <td class="col2">
                                <?php 
    $object = new Teacher($db);
    $data_teacher = $object->getListTeacher($_GET['ASSIGN_COURSE']);
    $item = $data_teacher[0];
    //Forms::printInput('TEXT', 'pk_id_student', $item['id'], 'mini', array());
    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">
コード例 #2
0
         }
        }
                }
               }
        */
        if ($pk_resultado > 0) {
            Forms::setMessage('SUCCESS', $v_label["SHORT_MESSAGE_OK_NEW"], $v_label["DETAIL_MESSAGE_OK_NEW"]);
        } else {
            Forms::setMessage('ERROR', $v_label["SHORT_MESSAGE_NOOK_NEW"], $v_label["DETAIL_MESSAGE_NOOK_NEW"]);
        }
        break;
    default:
        break;
}
// Obtener lista
$list = $catalog->getListTeacher();
?>
<div class="grid_10">
    <div class="box round first">
        <h2><?php 
echo $v_label["TITLE"];
?>
</h2>


        <?php 
include "view/wallejlla/templates/tpl_messages_1.php";
?>
 
        <h5><?php 
echo $v_label["TITLE_LIST"];
コード例 #3
0
if (isset($_GET['EDIT'])) {
    $action = 'EDIT';
    $title_1 = $v_label["EDIT_TITLE"];
    $elementAction = $_GET['EDIT'];
} elseif (isset($_GET['PREVIEW'])) {
    $action = 'PREVIEW';
    $title_1 = $v_label["PREVIEW_TITLE"];
    $elementAction = $_GET['PREVIEW'];
} elseif (isset($_GET['ASSIGN_COURSE'])) {
    $action = 'ASSIGN_COURSE';
    $title_1 = $v_label["ASSIGN_COURSE_TITLE"];
    $elementAction = $_GET['ASSIGN_COURSE'];
}
if ($action != 'INSERT') {
    $element = new Teacher($registry[$nameDataBase]);
    $list = $element->getListTeacher($elementAction);
    $data_teacher = $list[0];
}
// simplificar acceso a etiquetas de formulario
$v_label_gral_form = $property["pages"]["general_form"];
if ($action == 'PREVIEW' || $action == 'EDIT') {
    $person = new Person($registry[$nameDataBase]);
    $list = $person->getListPerson($data_teacher['fk_id_person']);
    $data_per = $list[0];
    /*
    $assDir = new AssignPersonDirection($registry[$nameDataBase]);
    $dirs = $assDir->getListAssingPersonDirection($data_student['fk_id_person']);
    */
    //print_r($billData);
    if ($action == 'PREVIEW') {
        $preview_flag = 1;
コード例 #4
0
                            </td>
                        </tr>
                        
                       
                      
                          <tr>
                            <td class="col1">
                               <?php 
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>