parent
							
								
									e33c20ca80
								
							
						
					
					
						commit
						de6a71a0ef
					
				@ -1,13 +1,12 @@ | 
				
			||||
<?php | 
				
			||||
require_once dirname(__FILE__).'/config.php'; | 
				
			||||
require_once __DIR__.'/config.php'; | 
				
			||||
 | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
$enable = $plugin->get('sepe_enable'); | 
				
			||||
$pluginPath = api_get_path(WEB_PLUGIN_PATH).'sepe/src/menu_sepe_administracion.php'; | 
				
			||||
$enable = $plugin->get('sepe_enable') == 'true'; | 
				
			||||
$pluginPath = api_get_path(WEB_PLUGIN_PATH).'sepe/src/sepe-administration-menu.php'; | 
				
			||||
 | 
				
			||||
if ($enable == "true" && api_is_platform_admin()) { | 
				
			||||
if ($enable && api_is_platform_admin()) { | 
				
			||||
    header('Location:'.$pluginPath); | 
				
			||||
} else { | 
				
			||||
	header('Location: ../../index.php');	 | 
				
			||||
} | 
				
			||||
 | 
				
			||||
    header('Location: ../../index.php');	 | 
				
			||||
} | 
				
			||||
									
										
											File diff suppressed because it is too large
											Load Diff
										
									
								
							
						@ -1,7 +1,10 @@ | 
				
			||||
<?php | 
				
			||||
/* For license terms, see /license.txt */ | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
/** | 
				
			||||
 * Show form | 
				
			||||
 * Config the plugin | 
				
			||||
 * @author Jose Angel Ruiz <jaruiz@nosolored.com> | 
				
			||||
 * @author Julio Montoya <gugli100@gmail.com> | 
				
			||||
 * @package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
require_once('config.php'); | 
				
			||||
require_once('src/index.sepe.php'); | 
				
			||||
require_once __DIR__ . '/config.php'; | 
				
			||||
require_once __DIR__ . '/src/index.sepe.php'; | 
				
			||||
 | 
				
			||||
@ -0,0 +1,42 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 * This script displays setting api key user. | 
				
			||||
 *    @package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
use \ChamiloSession as Session; | 
				
			||||
 | 
				
			||||
require_once '../config.php'; | 
				
			||||
 | 
				
			||||
$course_plugin = 'sepe'; | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
$_cid = 0; | 
				
			||||
 | 
				
			||||
if (api_is_platform_admin()) { | 
				
			||||
    $tUser = Database::get_main_table(TABLE_MAIN_USER); | 
				
			||||
    $tApi = Database::get_main_table(TABLE_MAIN_USER_API_KEY); | 
				
			||||
    $login = 'SEPE'; | 
				
			||||
    $sql = "SELECT a.api_key AS api FROM $tUser u, $tApi a WHERE u.username='".$login."' and u.user_id = a.user_id AND a.api_service = 'dokeos';"; | 
				
			||||
    $result = Database::query($sql); | 
				
			||||
    if (Database::num_rows($result) > 0) { | 
				
			||||
        $tmp = Database::fetch_assoc($result); | 
				
			||||
        $info = $tmp['api']; | 
				
			||||
         | 
				
			||||
    } else { | 
				
			||||
        $info = ''; | 
				
			||||
    } | 
				
			||||
    $templateName = $plugin->get_lang('Setting'); | 
				
			||||
    $interbreadcrumb[] = array("url" => "/plugin/sepe/src/sepe-administration-menu.php", "name" => $plugin->get_lang('MenuSepe')); | 
				
			||||
    $tpl = new Template($templateName); | 
				
			||||
     | 
				
			||||
    $tpl->assign('info', $info); | 
				
			||||
     | 
				
			||||
    $listing_tpl = 'sepe/view/configuration.tpl'; | 
				
			||||
    $content = $tpl->fetch($listing_tpl); | 
				
			||||
    $tpl->assign('content', $content); | 
				
			||||
    $tpl->display_one_col_template(); | 
				
			||||
} else { | 
				
			||||
    header('Location:' . api_get_path(WEB_PATH)); | 
				
			||||
} | 
				
			||||
@ -0,0 +1,221 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 *    This script displays a formative action edit form. | 
				
			||||
 *    @package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
use \ChamiloSession as Session; | 
				
			||||
require_once '../config.php'; | 
				
			||||
 | 
				
			||||
$course_plugin = 'sepe'; | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
$_cid = 0; | 
				
			||||
 | 
				
			||||
if (!empty($_POST)) { | 
				
			||||
    $check = Security::check_token('post'); | 
				
			||||
    if ($check) { | 
				
			||||
        $actionOrigin = trim(Security::remove_XSS(stripslashes($_POST['action_origin']))); | 
				
			||||
        $actionCode = trim(Security::remove_XSS(stripslashes($_POST['action_code']))); | 
				
			||||
        $situation = trim(Security::remove_XSS(stripslashes($_POST['situation']))); | 
				
			||||
        $specialtyOrigin = trim(Security::remove_XSS(stripslashes($_POST['specialty_origin']))); | 
				
			||||
        $professionalArea = trim(Security::remove_XSS(stripslashes($_POST['professional_area']))); | 
				
			||||
        $specialtyCode = trim(Security::remove_XSS(stripslashes($_POST['specialty_code']))); | 
				
			||||
        $duration = trim(Security::remove_XSS(stripslashes($_POST['duration']))); | 
				
			||||
        $dayStart = trim(Security::remove_XSS(stripslashes($_POST['day_start']))); | 
				
			||||
        $monthStart = trim(Security::remove_XSS(stripslashes($_POST['month_start']))); | 
				
			||||
        $yearStart = trim(Security::remove_XSS(stripslashes($_POST['year_start']))); | 
				
			||||
        $dayEnd = trim(Security::remove_XSS(stripslashes($_POST['day_end']))); | 
				
			||||
        $monthEnd = trim(Security::remove_XSS(stripslashes($_POST['month_end']))); | 
				
			||||
        $yearEnd = trim(Security::remove_XSS(stripslashes($_POST['year_end']))); | 
				
			||||
        $fullItineraryIndicator = trim(Security::remove_XSS(stripslashes($_POST['full_itinerary_indicator']))); | 
				
			||||
        $financingType = trim(Security::remove_XSS(stripslashes($_POST['financing_type']))); | 
				
			||||
        $attendeesCount = trim(Security::remove_XSS(stripslashes($_POST['attendees_count']))); | 
				
			||||
        $actionName = trim(Security::remove_XSS(stripslashes($_POST['action_name']))); | 
				
			||||
        $globalInfo = trim(Security::remove_XSS(stripslashes($_POST['global_info']))); | 
				
			||||
        $schedule = trim(Security::remove_XSS(stripslashes($_POST['schedule']))); | 
				
			||||
        $requirements = trim(Security::remove_XSS(stripslashes($_POST['requirements']))); | 
				
			||||
        $contactAction = trim(Security::remove_XSS(stripslashes($_POST['contact_action']))); | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
        $courseId = trim(Security::remove_XSS(stripslashes($_POST['course_id']))); | 
				
			||||
     | 
				
			||||
        $startDate = $yearStart."-".$monthStart."-".$dayStart; | 
				
			||||
        $endDate = $yearEnd."-".$monthEnd."-".$dayEnd; | 
				
			||||
         | 
				
			||||
        if (!empty($actionId) && $actionId != '0') { | 
				
			||||
            $sql = "UPDATE plugin_sepe_actions SET  | 
				
			||||
                        action_origin='".$actionOrigin."',  | 
				
			||||
                        action_code='".$actionCode."',  | 
				
			||||
                        situation='".$situation."',  | 
				
			||||
                        specialty_origin='".$specialtyOrigin."',  | 
				
			||||
                        professional_area='".$professionalArea."',  | 
				
			||||
                        specialty_code='".$specialtyCode."',  | 
				
			||||
                        duration='".$duration."',  | 
				
			||||
                        start_date='".$startDate."',  | 
				
			||||
                        end_date='".$endDate."',  | 
				
			||||
                        full_itinerary_indicator='".$fullItineraryIndicator."',  | 
				
			||||
                        financing_type='".$financingType."',  | 
				
			||||
                        attendees_count='".$attendeesCount."',  | 
				
			||||
                        action_name='".$actionName."',  | 
				
			||||
                        global_info='".$globalInfo."',  | 
				
			||||
                        schedule='".$schedule."',  | 
				
			||||
                        requirements='".$requirements."',  | 
				
			||||
                        contact_action='".$contactAction."'  | 
				
			||||
                    WHERE id='".$actionId."';";     | 
				
			||||
        } else { | 
				
			||||
            $sql = "INSERT INTO plugin_sepe_actions ( | 
				
			||||
                        action_origin,  | 
				
			||||
                        action_code,  | 
				
			||||
                        situation,  | 
				
			||||
                        specialty_origin,  | 
				
			||||
                        professional_area,  | 
				
			||||
                        specialty_code,  | 
				
			||||
                        duration,  | 
				
			||||
                        start_date,  | 
				
			||||
                        end_date,  | 
				
			||||
                        full_itinerary_indicator,  | 
				
			||||
                        financing_type,  | 
				
			||||
                        attendees_count,  | 
				
			||||
                        action_name,  | 
				
			||||
                        global_info,  | 
				
			||||
                        schedule,  | 
				
			||||
                        requirements,  | 
				
			||||
                        contact_action | 
				
			||||
                    ) VALUES ( | 
				
			||||
                        '".$actionOrigin."', | 
				
			||||
                        '".$actionCode."', | 
				
			||||
                        '".$situation."', | 
				
			||||
                        '".$specialtyOrigin."', | 
				
			||||
                        '".$professionalArea."', | 
				
			||||
                        '".$specialtyCode."', | 
				
			||||
                        '".$duration."', | 
				
			||||
                        '".$startDate."', | 
				
			||||
                        '".$endDate."', | 
				
			||||
                        '".$fullItineraryIndicator."', | 
				
			||||
                        '".$financingType."', | 
				
			||||
                        '".$attendeesCount."', | 
				
			||||
                        '".$actionName."', | 
				
			||||
                        '".$globalInfo."', | 
				
			||||
                        '".$schedule."', | 
				
			||||
                        '".$requirements."', | 
				
			||||
                        '".$contactAction."' | 
				
			||||
                    );"; | 
				
			||||
        } | 
				
			||||
        $res = Database::query($sql); | 
				
			||||
        if (!$res) { | 
				
			||||
            echo Database::error(); | 
				
			||||
            $_SESSION['sepe_message_error'] = $plugin->get_lang('NoSaveChange'); | 
				
			||||
        } else { | 
				
			||||
            if ($actionId == '0') { | 
				
			||||
                //Sync formative action and course | 
				
			||||
                $actionId = Database::insert_id(); | 
				
			||||
                $sql = "SELECT 1 FROM course WHERE id='".$courseId."';"; | 
				
			||||
                $rs = Database::query($sql); | 
				
			||||
                if (Database::num_rows($rs) == 0) { | 
				
			||||
                    $sepe_message_error .= $plugin->get_lang('NoExistsCourse'); | 
				
			||||
                    error_log($sepe_message_error); | 
				
			||||
                } else { | 
				
			||||
                    $sql = "INSERT INTO $tableSepeCourseActions (course_id, action_id) VALUES ('".$courseId."','".$actionId."');"; | 
				
			||||
                    $rs = Database::query($sql); | 
				
			||||
                    if (!$rs) { | 
				
			||||
                        $sepe_message_error .= $plugin->get_lang('NoSaveSeleccion'); | 
				
			||||
                        error_log($sepe_message_error); | 
				
			||||
                    } else { | 
				
			||||
                        $_SESSION['sepe_message_info'] = $plugin->get_lang('SaveChange'); | 
				
			||||
                    } | 
				
			||||
                } | 
				
			||||
            } | 
				
			||||
        } | 
				
			||||
        $courseId = getCourse($actionId); | 
				
			||||
        header("Location: formative-action.php?cid=".$courseId); | 
				
			||||
    } else { | 
				
			||||
        Security::clear_token(); | 
				
			||||
        $token = Security::get_token(); | 
				
			||||
        $_SESSION['sepe_message_error'] = $plugin->get_lang('ProblemToken'); | 
				
			||||
        session_write_close(); | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
        if ($actionId == '0') { | 
				
			||||
            $courseId = trim(Security::remove_XSS(stripslashes($_POST['course_id']))); | 
				
			||||
            header("Location: formative-action-edit.php?new_action=1&cid=".$courseId); | 
				
			||||
        } else { | 
				
			||||
            header("Location: formative-action-edit.php?action_id=".$actionId); | 
				
			||||
        } | 
				
			||||
    } | 
				
			||||
} else { | 
				
			||||
    $token = Security::get_token(); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
if (api_is_platform_admin()) { | 
				
			||||
    if (isset($_GET['new_action']) && $_GET['new_action'] == '1') { | 
				
			||||
        $info = array(); | 
				
			||||
        $interbreadcrumb[] = array("url" => "/plugin/sepe/src/sepe-administration-menu.php", "name" => $plugin->get_lang('MenuSepe')); | 
				
			||||
        $interbreadcrumb[] = array("url" => "formative-actions-list.php", "name" => $plugin->get_lang('FormativesActionsList')); | 
				
			||||
        $templateName = $plugin->get_lang('formativeActionNew'); | 
				
			||||
        $tpl = new Template($templateName); | 
				
			||||
        $yearStart = $yearEnd = date("Y"); | 
				
			||||
        $tpl->assign('info', $info); | 
				
			||||
        $tpl->assign('new_action', '1'); | 
				
			||||
        $tpl->assign('course_id', $_GET['cid']); | 
				
			||||
    } else { | 
				
			||||
        $courseId = getCourse($_GET['action_id']); | 
				
			||||
        $interbreadcrumb[] = array("url" => "/plugin/sepe/src/sepe-administration-menu.php", "name" => $plugin->get_lang('MenuSepe')); | 
				
			||||
        $interbreadcrumb[] = array("url" => "formative-actions-list.php", "name" => $plugin->get_lang('FormativesActionsList')); | 
				
			||||
        $interbreadcrumb[] = array("url" => "formative-action.php?cid=".$courseId, "name" => $plugin->get_lang('FormativeAction')); | 
				
			||||
        $info = getActionInfo($_GET['action_id']); | 
				
			||||
        $templateName = $plugin->get_lang('formativeActionEdit'); | 
				
			||||
        $tpl = new Template($templateName); | 
				
			||||
        $tpl->assign('info', $info); | 
				
			||||
        if ($info['start_date'] != "0000-00-00" && $info['start_date'] != NULL) { | 
				
			||||
            $tpl->assign('day_start', date("j",strtotime($info['start_date']))); | 
				
			||||
            $tpl->assign('month_start', date("n",strtotime($info['start_date']))); | 
				
			||||
            $tpl->assign('year_start', date("Y",strtotime($info['start_date']))); | 
				
			||||
            $yearStart = date("Y",strtotime($info['start_date'])); | 
				
			||||
        } elseif (strpos($info['start_date'],'0000') === false) { | 
				
			||||
            $yearStart = date("Y",strtotime($info['start_date'])); | 
				
			||||
        } else { | 
				
			||||
            $yearStart  = date("Y"); | 
				
			||||
        } | 
				
			||||
        if ($info['end_date'] != "0000-00-00" && $info['end_date'] != NULL) { | 
				
			||||
            $tpl->assign('day_end', date("j",strtotime($info['end_date']))); | 
				
			||||
            $tpl->assign('month_end', date("n",strtotime($info['end_date']))); | 
				
			||||
            $tpl->assign('year_end', date("Y",strtotime($info['end_date']))); | 
				
			||||
            $yearEnd = date("Y",strtotime($info['end_date'])); | 
				
			||||
        } elseif (strpos($info['end_date'],'0000') === false) { | 
				
			||||
            $yearEnd = date("Y",strtotime($info['end_date'])); | 
				
			||||
        } else { | 
				
			||||
            $yearEnd  = date("Y"); | 
				
			||||
        } | 
				
			||||
        $tpl->assign('new_action', '0'); | 
				
			||||
    } | 
				
			||||
     | 
				
			||||
    $yearList = array(); | 
				
			||||
    if ($yearStart > $yearEnd) { | 
				
			||||
        $tmp = $yearStart; | 
				
			||||
        $yearStart = $yearEnd; | 
				
			||||
        $yearEnd = $tmp;     | 
				
			||||
    } | 
				
			||||
    $yearStart -= 5; | 
				
			||||
    $yearEnd += 5; | 
				
			||||
    $fin_rango_anio = (($yearStart + 15) < $yearEnd) ? ($yearEnd+1):($yearStart +15); | 
				
			||||
    while ($yearStart <= $fin_rango_anio) { | 
				
			||||
        $yearList[] = $yearStart; | 
				
			||||
        $yearStart++; | 
				
			||||
    } | 
				
			||||
    $tpl->assign('list_year', $yearList); | 
				
			||||
    if (isset($_SESSION['sepe_message_info'])) { | 
				
			||||
        $tpl->assign('message_info', $_SESSION['sepe_message_info']); | 
				
			||||
        unset($_SESSION['sepe_message_info']); | 
				
			||||
    } | 
				
			||||
    if (isset($_SESSION['sepe_message_error'])) { | 
				
			||||
        $tpl->assign('message_error', $_SESSION['sepe_message_error']); | 
				
			||||
        unset($_SESSION['sepe_message_error']); | 
				
			||||
    } | 
				
			||||
    $tpl->assign('sec_token',$token); | 
				
			||||
     | 
				
			||||
    $listing_tpl = 'sepe/view/formative-action-edit.tpl'; | 
				
			||||
    $content = $tpl->fetch($listing_tpl); | 
				
			||||
    $tpl->assign('content', $content); | 
				
			||||
    $tpl->display_one_col_template(); | 
				
			||||
} else { | 
				
			||||
    header('Location:' . api_get_path(WEB_PATH)); | 
				
			||||
} | 
				
			||||
@ -0,0 +1,51 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 * This script displays a basic info of formative action. | 
				
			||||
 *	@package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
use \ChamiloSession as Session; | 
				
			||||
 | 
				
			||||
require_once '../config.php'; | 
				
			||||
 | 
				
			||||
$course_plugin = 'sepe'; | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
$_cid = 0; | 
				
			||||
 | 
				
			||||
if (api_is_platform_admin()) { | 
				
			||||
    $actionId = getActionId($_GET['cid']); | 
				
			||||
	$info = getActionInfo($actionId); | 
				
			||||
	if ($info === false) { | 
				
			||||
		header("Location: formative-actions-list.php");	 | 
				
			||||
	} | 
				
			||||
	$templateName = $plugin->get_lang('FormativeActionData'); | 
				
			||||
	$interbreadcrumb[] = array("url" => "/plugin/sepe/src/sepe-administration-menu.php", "name" => $plugin->get_lang('MenuSepe')); | 
				
			||||
	$interbreadcrumb[] = array("url" => "formative-actions-list.php", "name" => $plugin->get_lang('FormativesActionsList')); | 
				
			||||
	$tpl = new Template($templateName); | 
				
			||||
	 | 
				
			||||
	if (isset($_SESSION['sepe_message_info'])) { | 
				
			||||
		$tpl->assign('message_info', $_SESSION['sepe_message_info']);	 | 
				
			||||
		unset($_SESSION['sepe_message_info']); | 
				
			||||
	} | 
				
			||||
	if (isset($_SESSION['sepe_message_error'])) { | 
				
			||||
		$tpl->assign('message_error', $_SESSION['sepe_message_error']);	 | 
				
			||||
		unset($_SESSION['sepe_message_error']); | 
				
			||||
	} | 
				
			||||
	 | 
				
			||||
	$tpl->assign('info', $info); | 
				
			||||
	$tpl->assign('start_date', date("d/m/Y",strtotime($info['start_date']))); | 
				
			||||
	$tpl->assign('end_date', date("d/m/Y",strtotime($info['end_date']))); | 
				
			||||
	$tpl->assign('action_id', $actionId); | 
				
			||||
	$listSpecialty = specialtyList($actionId); | 
				
			||||
	$tpl->assign('listSpecialty', $listSpecialty); | 
				
			||||
	$listParticipant = participantList($actionId); | 
				
			||||
	$tpl->assign('listParticipant', $listParticipant); | 
				
			||||
	$listing_tpl = 'sepe/view/formative-action.tpl'; | 
				
			||||
	$content = $tpl->fetch($listing_tpl); | 
				
			||||
	$tpl->assign('content', $content); | 
				
			||||
	$tpl->display_one_col_template(); | 
				
			||||
} else { | 
				
			||||
    header('Location:' . api_get_path(WEB_PATH)); | 
				
			||||
} | 
				
			||||
@ -0,0 +1,41 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 *	This script displays a formatives actions list. | 
				
			||||
 *	@package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
use \ChamiloSession as Session; | 
				
			||||
require_once '../config.php'; | 
				
			||||
 | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
 | 
				
			||||
if (api_is_platform_admin()) { | 
				
			||||
	$templateName = $plugin->get_lang('FormativesActionsList'); | 
				
			||||
	$interbreadcrumb[] = array("url" => "/plugin/sepe/src/sepe-administration-menu.php", "name" => $plugin->get_lang('MenuSepe')); | 
				
			||||
	$tpl = new Template($templateName); | 
				
			||||
	 | 
				
			||||
	if (isset($_SESSION['sepe_message_info'])) { | 
				
			||||
		$tpl->assign('message_info', $_SESSION['sepe_message_info']);	 | 
				
			||||
		unset($_SESSION['sepe_message_info']); | 
				
			||||
	} | 
				
			||||
	if (isset($_SESSION['sepe_message_error'])) { | 
				
			||||
		$tpl->assign('message_error', $_SESSION['sepe_message_error']);	 | 
				
			||||
		unset($_SESSION['sepe_message_error']); | 
				
			||||
	} | 
				
			||||
	$courseActionList = listCourseAction(); | 
				
			||||
	$courseFreeList = listCourseFree(); | 
				
			||||
	$actionFreeList = listActionFree(); | 
				
			||||
	 | 
				
			||||
	$tpl->assign('course_action_list', $courseActionList); | 
				
			||||
	$tpl->assign('course_free_list', $courseFreeList); | 
				
			||||
	$tpl->assign('action_free_list', $actionFreeList); | 
				
			||||
	 | 
				
			||||
	$listing_tpl = 'sepe/view/formative-actions-list.tpl'; | 
				
			||||
	$content = $tpl->fetch($listing_tpl); | 
				
			||||
	$tpl->assign('content', $content); | 
				
			||||
	$tpl->display_one_col_template(); | 
				
			||||
} else { | 
				
			||||
    header('Location:' . api_get_path(WEB_PATH)); | 
				
			||||
} | 
				
			||||
@ -0,0 +1,94 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 * This script displays a data center edit form. | 
				
			||||
 * @package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
use \ChamiloSession as Session; | 
				
			||||
 | 
				
			||||
require_once '../config.php'; | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
 | 
				
			||||
if ( !empty($_POST)) { | 
				
			||||
    $check = Security::check_token('post'); | 
				
			||||
    if ($check) { | 
				
			||||
        $centerOrigin = trim(Security::remove_XSS(stripslashes($_POST['center_origin']))); | 
				
			||||
        $centerCode = trim(Security::remove_XSS(stripslashes($_POST['center_code']))); | 
				
			||||
        $centerName = trim(Security::remove_XSS(stripslashes($_POST['center_name']))); | 
				
			||||
        $url = trim(Security::remove_XSS(stripslashes($_POST['url']))); | 
				
			||||
        $trackingUrl = trim(Security::remove_XSS(stripslashes($_POST['tracking_url']))); | 
				
			||||
        $phone = trim(Security::remove_XSS(stripslashes($_POST['phone']))); | 
				
			||||
        $mail = trim(Security::remove_XSS(stripslashes($_POST['mail']))); | 
				
			||||
        $id = trim(Security::remove_XSS(stripslashes($_POST['id']))); | 
				
			||||
         | 
				
			||||
        if (checkIdentificationData()) { | 
				
			||||
            $sql = "UPDATE $tableSepeCenter SET  | 
				
			||||
                        center_origin='".$centerOrigin."',  | 
				
			||||
                        center_code='".$centerCode."',  | 
				
			||||
                        center_name='".$centerName."',  | 
				
			||||
                        url='".$url."',  | 
				
			||||
                        tracking_url='".$trackingUrl."',  | 
				
			||||
                        phone='".$phone."',  | 
				
			||||
                        mail='".$mail."'  | 
				
			||||
                    WHERE id='".$id."'";     | 
				
			||||
        } else { | 
				
			||||
            $sql = "INSERT INTO $tableSepeCenter ( | 
				
			||||
                        id,  | 
				
			||||
                        center_origin,  | 
				
			||||
                        center_code,  | 
				
			||||
                        center_name,  | 
				
			||||
                        url,  | 
				
			||||
                        tracking_url,  | 
				
			||||
                        phone,  | 
				
			||||
                        mail | 
				
			||||
                    ) VALUES ( | 
				
			||||
                        '1', | 
				
			||||
                        '".$centerOrigin."', | 
				
			||||
                        '".$centerCode."', | 
				
			||||
                        '".$centerName."', | 
				
			||||
                        '".$url."', | 
				
			||||
                        '".$trackingUrl."', | 
				
			||||
                        '".$phone."', | 
				
			||||
                        '".$mail."' | 
				
			||||
                    );"; | 
				
			||||
        } | 
				
			||||
        $res = Database::query($sql); | 
				
			||||
        if (!$res) { | 
				
			||||
            $_SESSION['sepe_message_error'] = $plugin->get_lang('NoSaveChange'); | 
				
			||||
        } else { | 
				
			||||
            $_SESSION['sepe_message_info'] = $plugin->get_lang('SaveChange'); | 
				
			||||
        } | 
				
			||||
        header("Location: identification-data.php"); | 
				
			||||
    } else { | 
				
			||||
        $_SESSION['sepe_message_error'] = $plugin->get_lang('ProblemToken'); | 
				
			||||
        Security::clear_token(); | 
				
			||||
        $token = Security::get_token(); | 
				
			||||
    } | 
				
			||||
} else { | 
				
			||||
    $token = Security::get_token(); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
if (api_is_platform_admin()) { | 
				
			||||
    $interbreadcrumb[] = array("url" => "/plugin/sepe/src/sepe-administration-menu.php", "name" => $plugin->get_lang('MenuSepe')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "identification-data.php", "name" => $plugin->get_lang('DataCenter')); | 
				
			||||
    $templateName = $plugin->get_lang('DataCenterEdit'); | 
				
			||||
    $tpl = new Template($templateName); | 
				
			||||
    $info = getInfoIdentificationData(); | 
				
			||||
    $tpl->assign('info', $info); | 
				
			||||
    if (isset($_SESSION['sepe_message_info'])) { | 
				
			||||
        $tpl->assign('message_info', $_SESSION['sepe_message_info']); | 
				
			||||
        unset($_SESSION['sepe_message_info']); | 
				
			||||
    } | 
				
			||||
    if (isset($_SESSION['sepe_message_error'])) { | 
				
			||||
        $tpl->assign('message_error', $_SESSION['sepe_message_error']); | 
				
			||||
        unset($_SESSION['sepe_message_error']); | 
				
			||||
    } | 
				
			||||
    $tpl->assign('sec_token',$token); | 
				
			||||
    $listing_tpl = 'sepe/view/identification-data-edit.tpl'; | 
				
			||||
    $content = $tpl->fetch($listing_tpl); | 
				
			||||
    $tpl->assign('content', $content); | 
				
			||||
    $tpl->display_one_col_template(); | 
				
			||||
} else { | 
				
			||||
    header('Location:' . api_get_path(WEB_PATH)); | 
				
			||||
} | 
				
			||||
@ -0,0 +1,37 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 * This script displays a basic info about data center. | 
				
			||||
 * @package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
use \ChamiloSession as Session; | 
				
			||||
 | 
				
			||||
require_once '../config.php'; | 
				
			||||
 | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
$_cid = 0; | 
				
			||||
 | 
				
			||||
if (api_is_platform_admin()) { | 
				
			||||
    $info = getInfoIdentificationData(); | 
				
			||||
    $templateName = $plugin->get_lang('DataCenter'); | 
				
			||||
    $interbreadcrumb[] = array("url" => "/plugin/sepe/src/sepe-administration-menu.php", "name" => $plugin->get_lang('MenuSepe')); | 
				
			||||
    $tpl = new Template($templateName); | 
				
			||||
 | 
				
			||||
    if (isset($_SESSION['sepe_message_info'])) { | 
				
			||||
        $tpl->assign('message_info', $_SESSION['sepe_message_info']); | 
				
			||||
        unset($_SESSION['sepe_message_info']); | 
				
			||||
    } | 
				
			||||
    if (isset($_SESSION['sepe_message_error'])) { | 
				
			||||
        $tpl->assign('message_error', $_SESSION['sepe_message_error']); | 
				
			||||
        unset($_SESSION['sepe_message_error']); | 
				
			||||
    } | 
				
			||||
    $tpl->assign('info', $info); | 
				
			||||
    $listing_tpl = 'sepe/view/identification-data.tpl'; | 
				
			||||
    $content = $tpl->fetch($listing_tpl); | 
				
			||||
    $tpl->assign('content', $content); | 
				
			||||
    $tpl->display_one_col_template(); | 
				
			||||
} else { | 
				
			||||
    header('Location:' . api_get_path(WEB_PATH)); | 
				
			||||
} | 
				
			||||
@ -0,0 +1,230 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 *    This script displays a participant edit form. | 
				
			||||
 *    @package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
use \ChamiloSession as Session; | 
				
			||||
require_once '../config.php'; | 
				
			||||
 | 
				
			||||
$course_plugin = 'sepe'; | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
$_cid = 0; | 
				
			||||
 | 
				
			||||
if ( !empty($_POST)) { | 
				
			||||
    $check = Security::check_token('post'); | 
				
			||||
    if ($check) { | 
				
			||||
        $companyTutorId = trim(Security::remove_XSS(stripslashes($_POST['company_tutor_id']))); | 
				
			||||
        $tutorCompanyDocumentType = trim(Security::remove_XSS(stripslashes($_POST['tutor_company_document_type']))); | 
				
			||||
        $tutorCompanyDocumentNumber = trim(Security::remove_XSS(stripslashes($_POST['tutor_company_document_number']))); | 
				
			||||
        $tutorCompanyDocumentLetter = trim(Security::remove_XSS(stripslashes($_POST['tutor_company_document_letter']))); | 
				
			||||
        $tutorCompanyAlias = trim(Security::remove_XSS(stripslashes($_POST['tutor_company_alias']))); | 
				
			||||
        $trainingTutorId = trim(Security::remove_XSS(stripslashes($_POST['training_tutor_id']))); | 
				
			||||
        $tutorTrainingDocumentType = trim(Security::remove_XSS(stripslashes($_POST['tutor_training_document_type']))); | 
				
			||||
        $tutorTrainingDocumentNumber = trim(Security::remove_XSS(stripslashes($_POST['tutor_training_document_number']))); | 
				
			||||
        $tutorTrainingDocumentLetter = trim(Security::remove_XSS(stripslashes($_POST['tutor_training_document_letter']))); | 
				
			||||
        $tutorTrainingAlias = trim(Security::remove_XSS(stripslashes($_POST['tutor_training_alias']))); | 
				
			||||
        $newParticipant = trim(Security::remove_XSS(stripslashes($_POST['new_participant']))); | 
				
			||||
        $platformUserId = trim(Security::remove_XSS(stripslashes($_POST['platform_user_id']))); | 
				
			||||
        $documentType = trim(Security::remove_XSS(stripslashes($_POST['document_type']))); | 
				
			||||
        $documentNumber = trim(Security::remove_XSS(stripslashes($_POST['document_number']))); | 
				
			||||
        $documentLetter = trim(Security::remove_XSS(stripslashes($_POST['document_letter']))); | 
				
			||||
        $keyCompetence = trim(Security::remove_XSS(stripslashes($_POST['key_competence']))); | 
				
			||||
        $contractId = trim(Security::remove_XSS(stripslashes($_POST['contract_id']))); | 
				
			||||
        $companyFiscalNumber = trim(Security::remove_XSS(stripslashes($_POST['company_fiscal_number']))); | 
				
			||||
        $participantId = trim(Security::remove_XSS(stripslashes($_POST['participant_id']))); | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
    	 | 
				
			||||
    	if (isset($companyTutorId) && $companyTutorId == "new_company_tutor") { | 
				
			||||
    		$sql = "SELECT * FROM $tableTutorCompany  | 
				
			||||
    				WHERE document_type='".$tutorCompanyDocumentType."' AND document_number='".$tutorCompanyDocumentNumber."' AND document_letter='".$tutorCompanyDocumentLetter."';"; | 
				
			||||
    		$rs = Database::query($sql); | 
				
			||||
    		if (Database::num_rows($rs) > 0) { | 
				
			||||
    			$row = Database::fetch_assoc($rs); | 
				
			||||
    			$companyTutorId = $row['id']; | 
				
			||||
    			$sql = "UPDATE $tableTutorCompany SET company='1' WHERE id='".$companyTutorId."'"; | 
				
			||||
    			Database::query($sql); | 
				
			||||
    		} else { | 
				
			||||
    			$sql = "INSERT INTO $tableTutorCompany (alias,document_type,document_number,document_letter,company)  | 
				
			||||
    					VALUES ('".$tutorCompanyAlias."','".$tutorCompanyDocumentType."','".$tutorCompanyDocumentNumber."','".$tutorCompanyDocumentLetter."','1');"; | 
				
			||||
    			$rs = Database::query($sql); | 
				
			||||
    			if (!$rs) { | 
				
			||||
    				echo Database::error();	 | 
				
			||||
    			} else { | 
				
			||||
    				$companyTutorId = Database::insert_id(); | 
				
			||||
    			} | 
				
			||||
    		} | 
				
			||||
    	} | 
				
			||||
    	 | 
				
			||||
    	if (isset($trainingTutorId) && $trainingTutorId == "new_training_tutor") { | 
				
			||||
    		$sql = "SELECT * FROM $tableTutorCompany  | 
				
			||||
    				WHERE document_type='".$tutorTrainingDocumentType."' AND document_number='".$tutorTrainingDocumentNumber."' AND document_letter='".$tutorTrainingDocumentLetter."';"; | 
				
			||||
    		$rs = Database::query($sql); | 
				
			||||
     | 
				
			||||
    		if (Database::num_rows($rs) > 0) { | 
				
			||||
    			$row = Database::fetch_assoc($rs); | 
				
			||||
    			$trainingTutorId = $row['id']; | 
				
			||||
    			$sql = "UPDATE $tableTutorCompany SET training='1' WHERE id='".$trainingTutorId."'"; | 
				
			||||
    			Database::query($sql); | 
				
			||||
    		} else { | 
				
			||||
    			$sql = "INSERT INTO $tableTutorCompany (alias,document_type,document_number,document_letter,training)  | 
				
			||||
    					VALUES ('".$tutorTrainingAlias."','".$tutorTrainingDocumentType."','".$tutorTrainingDocumentNumber."','".$tutorTrainingDocumentLetter."','1');"; | 
				
			||||
    			$rs = Database::query($sql); | 
				
			||||
    			if (!$rs) { | 
				
			||||
    				echo Database::error();	 | 
				
			||||
    			} else { | 
				
			||||
    				$trainingTutorId = Database::insert_id(); | 
				
			||||
    			} | 
				
			||||
    		} | 
				
			||||
    	} | 
				
			||||
    	 | 
				
			||||
    	if (isset($newParticipant) && $newParticipant != "1") { | 
				
			||||
    		$sql = "UPDATE plugin_sepe_participants SET  | 
				
			||||
    		            platform_user_id='".$platformUserId."',  | 
				
			||||
    		            document_type='".$documentType."',  | 
				
			||||
    		            document_number='".$documentNumber."',  | 
				
			||||
    		            document_letter='".$documentLetter."',  | 
				
			||||
    		            key_competence='".$keyCompetence."',  | 
				
			||||
    		            contract_id='".$contractId."',  | 
				
			||||
    		            company_fiscal_number='".$companyFiscalNumber."',  | 
				
			||||
    		            company_tutor_id='".$companyTutorId."',  | 
				
			||||
    		            training_tutor_id='".$trainingTutorId."'  | 
				
			||||
                    WHERE id='".$participantId."';";	 | 
				
			||||
    	} else { | 
				
			||||
    		$sql = "INSERT INTO plugin_sepe_participants( | 
				
			||||
        		        action_id, | 
				
			||||
        		        platform_user_id, | 
				
			||||
        		        document_type, | 
				
			||||
        		        document_number, | 
				
			||||
        		        document_letter, | 
				
			||||
        		        key_competence, | 
				
			||||
        		        contract_id, | 
				
			||||
        		        company_fiscal_number, | 
				
			||||
        		        company_tutor_id, | 
				
			||||
        		        training_tutor_id | 
				
			||||
    		        ) VALUES ( | 
				
			||||
    		            '".$actionId."', | 
				
			||||
    		            '".$platformUserId."', | 
				
			||||
    		            '".$documentType."', | 
				
			||||
    		            '".$documentNumber."', | 
				
			||||
    		            '".$documentLetter."', | 
				
			||||
    		            '".$keyCompetence."', | 
				
			||||
    		            '".$contractId."', | 
				
			||||
    		            '".$companyFiscalNumber."', | 
				
			||||
    		            '".$companyTutorId."', | 
				
			||||
    		            '".$trainingTutorId."' | 
				
			||||
    		        );"; | 
				
			||||
    	} | 
				
			||||
    	$res = Database::query($sql); | 
				
			||||
    	if (!$res) { | 
				
			||||
    		error_log(Database::error()); | 
				
			||||
    		$_SESSION['sepe_message_error'] = $plugin->get_lang('NoSaveChange'); | 
				
			||||
    	} else { | 
				
			||||
    		if ($newParticipant == '1') { | 
				
			||||
    			$participantId = Database::insert_id(); | 
				
			||||
    		} | 
				
			||||
    		$insertLog = checkInsertNewLog($platformUserId,$actionId); | 
				
			||||
    		if ($insertLog) { | 
				
			||||
    		    $sql = "INSERT INTO $tableSepeLogParticipant ( | 
				
			||||
                            platform_user_id,  | 
				
			||||
                            action_id,  | 
				
			||||
    		                registration_date | 
				
			||||
    		            ) VALUES ( | 
				
			||||
    		                '".$platformUserId."', | 
				
			||||
    		                '".$actionId."', | 
				
			||||
    		                '".date("Y-m-d H:i:s")."' | 
				
			||||
    		            );"; | 
				
			||||
    		} else { | 
				
			||||
    		    $sql = "INSERT INTO $tableSepeLogChangeParticipant ( | 
				
			||||
                            platform_user_id,  | 
				
			||||
    		                action_id,  | 
				
			||||
    		                change_date | 
				
			||||
    		            ) VALUES ( | 
				
			||||
    		                '".$platformUserId."', | 
				
			||||
    		                '".$actionId."', | 
				
			||||
    		                '".date("Y-m-d H:i:s")."' | 
				
			||||
    		            );"; | 
				
			||||
    		} | 
				
			||||
    		$res = Database::query($sql); | 
				
			||||
    		$_SESSION['sepe_message_info'] = $plugin->get_lang('SaveChange'); | 
				
			||||
    	} | 
				
			||||
    	session_write_close(); | 
				
			||||
    	header("Location: participant-action-edit.php?new_participant=0&participant_id=".$participantId."&action_id=".$actionId); | 
				
			||||
    } else { | 
				
			||||
        $participantId = trim(Security::remove_XSS(stripslashes($_POST['participant_id']))); | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
        $newParticipant = trim(Security::remove_XSS(stripslashes($_POST['new_participant']))); | 
				
			||||
        Security::clear_token(); | 
				
			||||
        $token = Security::get_token(); | 
				
			||||
        $_SESSION['sepe_message_error'] = $plugin->get_lang('ProblemToken'); | 
				
			||||
        session_write_close(); | 
				
			||||
    	header("Location: participant-action-edit.php?new_participant=".$newParticipant."&participant_id=".$participantId."&action_id=".$actionId); | 
				
			||||
    } | 
				
			||||
} else { | 
				
			||||
    $token = Security::get_token(); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
if (api_is_platform_admin()) { | 
				
			||||
	$courseId = getCourse($_GET['action_id']); | 
				
			||||
	$interbreadcrumb[] = array("url" => "/plugin/sepe/src/sepe-administration-menu.php", "name" => $plugin->get_lang('MenuSepe')); | 
				
			||||
	$interbreadcrumb[] = array("url" => "formative-actions-list.php", "name" => $plugin->get_lang('FormativesActionsList')); | 
				
			||||
	$interbreadcrumb[] = array("url" => "formative-action.php?cid=".$courseId, "name" => $plugin->get_lang('FormativeAction')); | 
				
			||||
	if (isset($_GET['new_participant']) && $_GET['new_participant'] == '1') { | 
				
			||||
		$templateName = $plugin->get_lang('NewParticipantAction'); | 
				
			||||
		$tpl = new Template($templateName); | 
				
			||||
		$tpl->assign('action_id', $_GET['action_id']); | 
				
			||||
		$info = array(); | 
				
			||||
		$tpl->assign('info', $info); | 
				
			||||
		$tpl->assign('new_participant', '1'); | 
				
			||||
	} else { | 
				
			||||
		$templateName = $plugin->get_lang('EditParticipantAction'); | 
				
			||||
		$tpl = new Template($templateName); | 
				
			||||
		$tpl->assign('action_id', $_GET['action_id']); | 
				
			||||
		$info = getInfoParticipantAction($_GET['participant_id']); | 
				
			||||
		$tpl->assign('info', $info); | 
				
			||||
		$tpl->assign('new_participant', '0'); | 
				
			||||
		$tpl->assign('participant_id', $_GET['participant_id']); | 
				
			||||
		 | 
				
			||||
		if ($info['platform_user_id'] != 0) { | 
				
			||||
			$infoUserPlatform = api_get_user_info($info['platform_user_id']);//UserManager::get_user_info_by_id($info['platform_user_id']); | 
				
			||||
			$tpl->assign('info_user_platform', $infoUserPlatform); | 
				
			||||
		} | 
				
			||||
		$listParticipantSpecialty = listParticipantSpecialty($_GET['participant_id']); | 
				
			||||
		$tpl->assign('listParticipantSpecialty', $listParticipantSpecialty); | 
				
			||||
	} | 
				
			||||
	$courseCode = getCourseCode($_GET['action_id']); | 
				
			||||
	$listStudentInfo = array(); | 
				
			||||
	$listStudent = CourseManager::get_student_list_from_course_code($courseCode); | 
				
			||||
	 | 
				
			||||
	foreach ($listStudent as $value) { | 
				
			||||
		$sql = "SELECT 1 FROM $tableSepeParticipants WHERE platform_user_id='".$value['user_id']."';"; | 
				
			||||
		$res = Database::query($sql); | 
				
			||||
		if (Database::num_rows($res)==0) { | 
				
			||||
			$listStudentInfo[] = api_get_user_info($value['user_id']);  | 
				
			||||
		} | 
				
			||||
	} | 
				
			||||
    $tpl->assign('listStudent', $listStudentInfo); | 
				
			||||
	$listTutorCompany = array(); | 
				
			||||
	$listTutorCompany = listTutorType("company='1'"); | 
				
			||||
	$tpl->assign('list_tutor_company', $listTutorCompany); | 
				
			||||
	$listTutorTraining = array(); | 
				
			||||
	$listTutorTraining= listTutorType("training='1'"); | 
				
			||||
	$tpl->assign('list_tutor_training', $listTutorTraining); | 
				
			||||
	if (isset($_SESSION['sepe_message_info'])) { | 
				
			||||
		$tpl->assign('message_info', $_SESSION['sepe_message_info']);	 | 
				
			||||
		unset($_SESSION['sepe_message_info']); | 
				
			||||
	} | 
				
			||||
	if (isset($_SESSION['sepe_message_error'])) { | 
				
			||||
		$tpl->assign('message_error', $_SESSION['sepe_message_error']);	 | 
				
			||||
		unset($_SESSION['sepe_message_error']); | 
				
			||||
	} | 
				
			||||
	$tpl->assign('sec_token',$token); | 
				
			||||
	$listing_tpl = 'sepe/view/participant-action-edit.tpl'; | 
				
			||||
	$content = $tpl->fetch($listing_tpl); | 
				
			||||
	$tpl->assign('content', $content); | 
				
			||||
	$tpl->display_one_col_template(); | 
				
			||||
} else { | 
				
			||||
    header('Location:' . api_get_path(WEB_PATH)); | 
				
			||||
} | 
				
			||||
@ -0,0 +1,276 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 *    This script displays a participant specialty edit form. | 
				
			||||
 *    @package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
use \ChamiloSession as Session; | 
				
			||||
require_once '../config.php'; | 
				
			||||
 | 
				
			||||
$course_plugin = 'sepe'; | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
$_cid = 0; | 
				
			||||
 | 
				
			||||
if ( !empty($_POST)) { | 
				
			||||
    $check = Security::check_token('post'); | 
				
			||||
    if ($check) { | 
				
			||||
        $newSpecialty = trim(Security::remove_XSS(stripslashes($_POST['new_specialty']))); | 
				
			||||
        $specialtyOrigin = trim(Security::remove_XSS(stripslashes($_POST['specialty_origin']))); | 
				
			||||
        $professionalArea = trim(Security::remove_XSS(stripslashes($_POST['professional_area']))); | 
				
			||||
        $specialtyCode = trim(Security::remove_XSS(stripslashes($_POST['specialty_code']))); | 
				
			||||
        $centerOrigin = trim(Security::remove_XSS(stripslashes($_POST['center_origin']))); | 
				
			||||
        $centerCode = trim(Security::remove_XSS(stripslashes($_POST['center_code']))); | 
				
			||||
        $finalResult = trim(Security::remove_XSS(stripslashes($_POST['final_result']))); | 
				
			||||
        $finalQualification = trim(Security::remove_XSS(stripslashes($_POST['final_qualification']))); | 
				
			||||
        $finalScore = trim(Security::remove_XSS(stripslashes($_POST['final_score']))); | 
				
			||||
        $yearRegistration = trim(Security::remove_XSS(stripslashes($_POST['year_registration']))); | 
				
			||||
        $monthRegistration = trim(Security::remove_XSS(stripslashes($_POST['month_registration']))); | 
				
			||||
        $dayRegistration = trim(Security::remove_XSS(stripslashes($_POST['day_registration']))); | 
				
			||||
        $yearLeaving = trim(Security::remove_XSS(stripslashes($_POST['year_leaving']))); | 
				
			||||
        $monthLeaving = trim(Security::remove_XSS(stripslashes($_POST['month_leaving']))); | 
				
			||||
        $dayLeaving = trim(Security::remove_XSS(stripslashes($_POST['day_leaving']))); | 
				
			||||
        $dayStart = trim(Security::remove_XSS(stripslashes($_POST['day_start']))); | 
				
			||||
        $monthStart = trim(Security::remove_XSS(stripslashes($_POST['month_start']))); | 
				
			||||
        $yearStart = trim(Security::remove_XSS(stripslashes($_POST['year_start']))); | 
				
			||||
        $dayEnd = trim(Security::remove_XSS(stripslashes($_POST['day_end']))); | 
				
			||||
        $monthEnd = trim(Security::remove_XSS(stripslashes($_POST['month_end']))); | 
				
			||||
        $yearEnd = trim(Security::remove_XSS(stripslashes($_POST['year_end']))); | 
				
			||||
        $participantId = trim(Security::remove_XSS(stripslashes($_POST['participant_id']))); | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
        $specialtyId = trim(Security::remove_XSS(stripslashes($_POST['specialty_id']))); | 
				
			||||
         | 
				
			||||
        $registrationDate = $yearRegistration."-".$monthRegistration."-".$dayRegistration; | 
				
			||||
        $leavingDate = $yearLeaving."-".$monthLeaving."-".$dayLeaving; | 
				
			||||
        $startDate = $yearStart."-".$monthStart."-".$dayStart; | 
				
			||||
        $endDate = $yearEnd."-".$monthEnd."-".$dayEnd; | 
				
			||||
         | 
				
			||||
        if (isset($newSpecialty) && $newSpecialty != "1") { | 
				
			||||
            $sql = "UPDATE $tableSepeParticipantsSpecialty SET  | 
				
			||||
                        specialty_origin='".$specialtyOrigin."',  | 
				
			||||
                        professional_area='".$professionalArea."',  | 
				
			||||
                        specialty_code='".$specialtyCode."',  | 
				
			||||
                        registration_date='".$registrationDate."',  | 
				
			||||
                        leaving_date='".$leavingDate."',  | 
				
			||||
                        center_origin='".$centerOrigin."',  | 
				
			||||
                        center_code='".$centerCode."',  | 
				
			||||
                        start_date='".$startDate."',  | 
				
			||||
                        end_date='".$endDate."',  | 
				
			||||
                        final_result='".$finalResult."',  | 
				
			||||
                        final_qualification='".$finalQualification."',  | 
				
			||||
                        final_score='".$finalScore."'  | 
				
			||||
                    WHERE id='".$specialtyId."';";     | 
				
			||||
        } else { | 
				
			||||
            $sql = "INSERT INTO $tableSepeParticipantsSpecialty ( | 
				
			||||
                        participant_id, | 
				
			||||
                        specialty_origin, | 
				
			||||
                        professional_area, | 
				
			||||
                        specialty_code, | 
				
			||||
                        registration_date, | 
				
			||||
                        leaving_date, | 
				
			||||
                        center_origin, | 
				
			||||
                        center_code, | 
				
			||||
                        start_date, | 
				
			||||
                        end_date, | 
				
			||||
                        final_result, | 
				
			||||
                        final_qualification, | 
				
			||||
                        final_score | 
				
			||||
                    ) VALUES ( | 
				
			||||
                        '".$participantId."', | 
				
			||||
                        '".$specialtyOrigin."', | 
				
			||||
                        '".$professionalArea."', | 
				
			||||
                        '".$specialtyCode."', | 
				
			||||
                        '".$registrationDate."', | 
				
			||||
                        '".$leavingDate."', | 
				
			||||
                        '".$centerOrigin."', | 
				
			||||
                        '".$centerCode."', | 
				
			||||
                        '".$startDate."', | 
				
			||||
                        '".$endDate."', | 
				
			||||
                        '".$finalResult."', | 
				
			||||
                        '".$finalQualification."', | 
				
			||||
                        '".$finalScore."' | 
				
			||||
                    );"; | 
				
			||||
        } | 
				
			||||
        $res = Database::query($sql); | 
				
			||||
        if (!$res) { | 
				
			||||
            echo Database::error(); | 
				
			||||
            $_SESSION['sepe_message_error'] = $plugin->get_lang('NoSaveChange'); | 
				
			||||
        } else { | 
				
			||||
            $_SESSION['sepe_message_info'] = $plugin->get_lang('SaveChange'); | 
				
			||||
            if ($newSpecialty == "1") { | 
				
			||||
                $specialtyId = Database::insert_id(); | 
				
			||||
            } | 
				
			||||
             | 
				
			||||
            $platformUserId = etUserPlatformFromParticipant($participantId); | 
				
			||||
            $insertLog = checkInsertNewLog($platformUserId,$actionId); | 
				
			||||
            if ($insertLog) { | 
				
			||||
                if ($finalResult == "1" || $finalResult == "2") { | 
				
			||||
                    $leavingDateLog = date("Y-m-d H:i:s"); | 
				
			||||
                } else { | 
				
			||||
                    $leavingDateLog = '0000-00-00'; | 
				
			||||
                } | 
				
			||||
                $sql = "INSERT INTO $tableSepeLogParticipant ( | 
				
			||||
                            platform_user_id, | 
				
			||||
                            action_id, | 
				
			||||
                            registration_date, | 
				
			||||
                            leaving_date | 
				
			||||
                        ) VALUES ( | 
				
			||||
                            '".$platformUserId."', | 
				
			||||
    		                '".$actionId."', | 
				
			||||
    		                '".date("Y-m-d H:i:s")."' | 
				
			||||
    		                '".$leavingDateLog."' | 
				
			||||
    		            );"; | 
				
			||||
                 | 
				
			||||
            } else { | 
				
			||||
                if ($finalResult == "1" || $finalResult == "2") { | 
				
			||||
                    $sql = "UPDATE $tableSepeLogParticipant  | 
				
			||||
                            SET leaving_date='".date("Y-m-d H:i:s")."' | 
				
			||||
                            WHERE platform_user_id='".$platformUserId."' AND action_id='".$actionId."';"; | 
				
			||||
                } else { | 
				
			||||
                    $sql = "INSERT INTO $tableSepeLogChangeParticipant ( | 
				
			||||
                                platform_user_id, | 
				
			||||
                                action_id, | 
				
			||||
                                change_date | 
				
			||||
                            ) VALUES ( | 
				
			||||
                                '".$platformUserId."', | 
				
			||||
        		                '".$actionId."', | 
				
			||||
        		                '".date("Y-m-d H:i:s")."' | 
				
			||||
        		            );"; | 
				
			||||
                } | 
				
			||||
            } | 
				
			||||
            $res = Database::query($sql); | 
				
			||||
        } | 
				
			||||
        session_write_close(); | 
				
			||||
        header("Location: participant-specialty-edit.php?new_specialty=0&specialty_id=".$specialtyId."&participant_id=".$participantId."&action_id=".$actionId); | 
				
			||||
    } else { | 
				
			||||
        $newSpecialty = trim(Security::remove_XSS(stripslashes($_POST['new_specialty']))); | 
				
			||||
        $participantId = trim(Security::remove_XSS(stripslashes($_POST['participant_id']))); | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
        $specialtyId = trim(Security::remove_XSS(stripslashes($_POST['specialty_id']))); | 
				
			||||
        Security::clear_token(); | 
				
			||||
        $token = Security::get_token(); | 
				
			||||
        $_SESSION['sepe_message_error'] = $plugin->get_lang('ProblemToken'); | 
				
			||||
        session_write_close(); | 
				
			||||
        header("Location: participant-specialty-edit.php?new_specialty=".$newSpecialty."&specialty_id=".$specialtyId."&participant_id=".$participantId."&action_id=".$actionId); | 
				
			||||
    } | 
				
			||||
} else { | 
				
			||||
    $token = Security::get_token(); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
if (api_is_platform_admin()) { | 
				
			||||
    $courseId = getCourse($_GET['action_id']); | 
				
			||||
    $interbreadcrumb[] = array("url" => "/plugin/sepe/src/sepe-administration-menu.php", "name" => $plugin->get_lang('MenuSepe')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "formative-actions-list.php", "name" => $plugin->get_lang('FormativesActionsList')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "formative-action.php?cid=".$courseId, "name" => $plugin->get_lang('FormativeAction')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "participant-action-edit.php?new_participant=0&participant_id=".$_GET['participant_id']."&action_id=".$_GET['action_id'], "name" => $plugin->get_lang('FormativeActionParticipant')); | 
				
			||||
    if (isset($_GET['new_specialty']) && $_GET['new_specialty'] == "1") { | 
				
			||||
        $templateName = $plugin->get_lang('NewSpecialtyParticipant'); | 
				
			||||
        $tpl = new Template($templateName); | 
				
			||||
        $tpl->assign('action_id', $_GET['action_id']); | 
				
			||||
        $tpl->assign('participant_id', $_GET['participant_id']); | 
				
			||||
        $info = array(); | 
				
			||||
        $tpl->assign('info', $info); | 
				
			||||
        $tpl->assign('new_specialty', '1'); | 
				
			||||
        $startYear = $endYear = date("Y"); | 
				
			||||
        $registrationYear = $leaveYear = date("Y"); | 
				
			||||
    } else { | 
				
			||||
        $templateName = $plugin->get_lang('EditSpecialtyParticipant'); | 
				
			||||
        $tpl = new Template($templateName); | 
				
			||||
        $tpl->assign('action_id', $_GET['action_id']); | 
				
			||||
        $tpl->assign('specialty_id', $_GET['specialty_id']); | 
				
			||||
        $tpl->assign('participant_id', $_GET['participant_id']); | 
				
			||||
        $info = getInfoSpecialtyParticipant($_GET['specialty_id']); | 
				
			||||
        $tpl->assign('info', $info); | 
				
			||||
        $tpl->assign('new_specialty', '0'); | 
				
			||||
        if ($info['registration_date'] != '0000-00-00' && $info['registration_date'] != NULL) { | 
				
			||||
            $tpl->assign('day_registration', date("j",strtotime($info['registration_date']))); | 
				
			||||
            $tpl->assign('month_registration', date("n",strtotime($info['registration_date']))); | 
				
			||||
            $tpl->assign('year_registration', date("Y",strtotime($info['registration_date']))); | 
				
			||||
            $registrationYear = date("Y",strtotime($info['registration_date'])); | 
				
			||||
        } elseif (strpos($info['end_date'],'0000') === false) { | 
				
			||||
            $registrationYear = date("Y",strtotime($info['registration_date'])); | 
				
			||||
        } else { | 
				
			||||
            $registrationYear = date("Y"); | 
				
			||||
        } | 
				
			||||
        if ($info['leaving_date'] != '0000-00-00' && $info['leaving_date'] != NULL) { | 
				
			||||
            $tpl->assign('day_leaving', date("j",strtotime($info['leaving_date']))); | 
				
			||||
            $tpl->assign('month_leaving', date("n",strtotime($info['leaving_date']))); | 
				
			||||
            $tpl->assign('year_leaving', date("Y",strtotime($info['leaving_date']))); | 
				
			||||
            $leaveYear = date("Y",strtotime($info['leaving_date'])); | 
				
			||||
        } elseif (strpos($info['end_date'],'0000') === false) { | 
				
			||||
            $leaveYear = date("Y",strtotime($info['leaving_date'])); | 
				
			||||
        } else { | 
				
			||||
            $leaveYear = date("Y"); | 
				
			||||
        } | 
				
			||||
        if ($info['start_date'] != '0000-00-00' && $info['start_date'] != NULL) { | 
				
			||||
            $tpl->assign('day_start', date("j",strtotime($info['start_date']))); | 
				
			||||
            $tpl->assign('month_start', date("n",strtotime($info['start_date']))); | 
				
			||||
            $tpl->assign('year_start', date("Y",strtotime($info['start_date']))); | 
				
			||||
            $startYear = date("Y",strtotime($info['start_date'])); | 
				
			||||
        } elseif (strpos($info['end_date'],'0000') === false) { | 
				
			||||
            $startYear = date("Y",strtotime($info['start_date'])); | 
				
			||||
        } else { | 
				
			||||
            $startYear = date("Y"); | 
				
			||||
        } | 
				
			||||
        if ($info['end_date'] != '0000-00-00' && $info['end_date'] != NULL) { | 
				
			||||
            $tpl->assign('day_end', date("j",strtotime($info['end_date']))); | 
				
			||||
            $tpl->assign('month_end', date("n",strtotime($info['end_date']))); | 
				
			||||
            $tpl->assign('year_end', date("Y",strtotime($info['end_date']))); | 
				
			||||
            $endYear = date("Y",strtotime($info['end_date'])); | 
				
			||||
        } elseif (strpos($info['end_date'],'0000') === false) { | 
				
			||||
            $endYear = date("Y",strtotime($info['end_date'])); | 
				
			||||
        } else { | 
				
			||||
            $endYear = date("Y"); | 
				
			||||
        } | 
				
			||||
        $listSpecialtyTutorials = getListSpecialtyTutorial($_GET['specialty_id']); | 
				
			||||
        $tpl->assign('listSpecialtyTutorials', $listSpecialtyTutorials);     | 
				
			||||
    } | 
				
			||||
     | 
				
			||||
     | 
				
			||||
    $listYear = array(); | 
				
			||||
    if ($registrationYear > $leaveYear) { | 
				
			||||
        $tmp = $registrationYear; | 
				
			||||
        $registrationYear = $leaveYear; | 
				
			||||
        $leaveYear = $tmp;     | 
				
			||||
    } | 
				
			||||
    $registrationYear -= 5; | 
				
			||||
    $leaveYear += 5; | 
				
			||||
    $endRangeYear = (($registrationYear + 15) < $leaveYear) ? ($leaveYear+1):($registrationYear + 15); | 
				
			||||
    while ($registrationYear <= $endRangeYear) { | 
				
			||||
        $listYear[] = $registrationYear; | 
				
			||||
        $registrationYear++; | 
				
			||||
    } | 
				
			||||
    $tpl->assign('list_year', $listYear); | 
				
			||||
     | 
				
			||||
    $listYear = array(); | 
				
			||||
    if ($startYear > $endYear) { | 
				
			||||
        $tmp = $startYear; | 
				
			||||
        $startYear = $endYear; | 
				
			||||
        $endYear = $tmp;     | 
				
			||||
    } | 
				
			||||
    $startYear -= 5; | 
				
			||||
    $endYear += 5; | 
				
			||||
    $endRangeYear = (($startYear + 15) < $endYear) ? ($endYear+1):($startYear +15); | 
				
			||||
    while ($startYear <= $endRangeYear) { | 
				
			||||
        $listYear[] = $startYear; | 
				
			||||
        $startYear++; | 
				
			||||
    } | 
				
			||||
    $tpl->assign('list_year_2', $listYear); | 
				
			||||
     | 
				
			||||
    if (isset($_SESSION['sepe_message_info'])) { | 
				
			||||
        $tpl->assign('message_info', $_SESSION['sepe_message_info']);     | 
				
			||||
        unset($_SESSION['sepe_message_info']); | 
				
			||||
    } | 
				
			||||
    if (isset($_SESSION['sepe_message_error'])) { | 
				
			||||
        $tpl->assign('message_error', $_SESSION['sepe_message_error']);     | 
				
			||||
        unset($_SESSION['sepe_message_error']); | 
				
			||||
    } | 
				
			||||
    $tpl->assign('sec_token',$token); | 
				
			||||
    $listing_tpl = 'sepe/view/participant-specialty-edit.tpl'; | 
				
			||||
    $content = $tpl->fetch($listing_tpl); | 
				
			||||
    $tpl->assign('content', $content); | 
				
			||||
    $tpl->display_one_col_template(); | 
				
			||||
} else { | 
				
			||||
    header('Location:' . api_get_path(WEB_PATH)); | 
				
			||||
} | 
				
			||||
@ -0,0 +1,62 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 *    This script displays a administrator menu. | 
				
			||||
 *    @package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
use \ChamiloSession as Session; | 
				
			||||
 | 
				
			||||
require_once '../config.php'; | 
				
			||||
 | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
$enable = $plugin->get('sepe_enable') == 'true'; | 
				
			||||
 | 
				
			||||
$title = $plugin->get_lang('AdministratorSepe'); | 
				
			||||
$pluginPath = api_get_path(WEB_PLUGIN_PATH).'sepe/src/'; | 
				
			||||
 | 
				
			||||
if (api_is_platform_admin() && $enable) { | 
				
			||||
    $htmlText = ''; | 
				
			||||
    $htmlText .= '<div class="panel panel-default">'; | 
				
			||||
        $htmlText .= '<div class="panel-heading" role="tab">'; | 
				
			||||
            $htmlText .= '<h4 class="panel-title">'.$title.'</h4>'; | 
				
			||||
        $htmlText .= '</div>'; | 
				
			||||
        $htmlText .= '<div class="panel-collapse collapse in" role="tabpanel">'; | 
				
			||||
            $htmlText .= '<div class="panel-body">'; | 
				
			||||
                $htmlText .= '<ul class="nav nav-pills nav-stacked">'; | 
				
			||||
                    $htmlText .= '<li>'; | 
				
			||||
                    $htmlText .= '<a href="'.$pluginPath.'identification-data.php">'; | 
				
			||||
                        $htmlText .= '<img src="'.api_get_path(WEB_PLUGIN_PATH).'sepe/resources/list.png">'; | 
				
			||||
                        $htmlText .= $plugin->get_lang('DataCenter'); | 
				
			||||
                    $htmlText .= '</a>'; | 
				
			||||
                    $htmlText .= '</li>'; | 
				
			||||
                    $htmlText .= '<li>'; | 
				
			||||
                    $htmlText .= '<a href="'.$pluginPath.'formative-actions-list.php">'; | 
				
			||||
                        $htmlText .= '<img src="'.api_get_path(WEB_PLUGIN_PATH).'sepe/resources/forms.png">'; | 
				
			||||
                        $htmlText .= $plugin->get_lang('FormativeActionsForm'); | 
				
			||||
                    $htmlText .= '</a>'; | 
				
			||||
                    $htmlText .= '</li>'; | 
				
			||||
                    $htmlText .= '<li>'; | 
				
			||||
                    $htmlText .= '<a href="'.$pluginPath.'configuration.php">'; | 
				
			||||
                        $htmlText .= '<img src="'.api_get_path(WEB_PLUGIN_PATH).'sepe/resources/settings.png">'; | 
				
			||||
                        $htmlText .=$plugin->get_lang('Setting'); | 
				
			||||
                    $htmlText .= '</a>'; | 
				
			||||
                    $htmlText .= '</li>'; | 
				
			||||
                $htmlText .= '</ul>'; | 
				
			||||
            $htmlText .= '</div>'; | 
				
			||||
        $htmlText .= '</div>'; | 
				
			||||
    $htmlText .= '</div>'; | 
				
			||||
     | 
				
			||||
    $templateName = $plugin->get_lang('MenuSepeAdministrator'); | 
				
			||||
    $interbreadcrumb[] = array("url" => "/main/admin/index.php", "name" => get_lang('Administration')); | 
				
			||||
    $tpl = new Template($templateName); | 
				
			||||
    $tpl->assign('html_text', $htmlText); | 
				
			||||
         | 
				
			||||
    $listing_tpl = 'sepe/view/sepe-administration-menu.tpl'; | 
				
			||||
    $content = $tpl->fetch($listing_tpl); | 
				
			||||
    $tpl->assign('content', $content); | 
				
			||||
    $tpl->display_one_col_template(); | 
				
			||||
} else { | 
				
			||||
    header('Location:' . api_get_path(WEB_PATH)); | 
				
			||||
} | 
				
			||||
@ -0,0 +1,236 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 *    This script displays a specialty action edit form. | 
				
			||||
 *    @package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
use \ChamiloSession as Session; | 
				
			||||
require_once '../config.php'; | 
				
			||||
 | 
				
			||||
$course_plugin = 'sepe'; | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
$_cid = 0; | 
				
			||||
 | 
				
			||||
if (!empty($_POST)) { | 
				
			||||
    $check = Security::check_token('post'); | 
				
			||||
    if ($check) { | 
				
			||||
        $specialtyOrigin = trim(Security::remove_XSS(stripslashes($_POST['specialty_origin']))); | 
				
			||||
        $professionalArea = trim(Security::remove_XSS(stripslashes($_POST['professional_area']))); | 
				
			||||
        $specialtyCode = trim(Security::remove_XSS(stripslashes($_POST['specialty_code']))); | 
				
			||||
        $centerOrigin = trim(Security::remove_XSS(stripslashes($_POST['center_origin']))); | 
				
			||||
        $centerCode = trim(Security::remove_XSS(stripslashes($_POST['center_code']))); | 
				
			||||
        $dayStart = trim(Security::remove_XSS(stripslashes($_POST['day_start']))); | 
				
			||||
        $monthStart = trim(Security::remove_XSS(stripslashes($_POST['month_start']))); | 
				
			||||
        $yearStart = trim(Security::remove_XSS(stripslashes($_POST['year_start']))); | 
				
			||||
        $dayEnd = trim(Security::remove_XSS(stripslashes($_POST['day_end']))); | 
				
			||||
        $monthEnd = trim(Security::remove_XSS(stripslashes($_POST['month_end']))); | 
				
			||||
        $yearEnd = trim(Security::remove_XSS(stripslashes($_POST['year_end']))); | 
				
			||||
        $modality_impartition = trim(Security::remove_XSS(stripslashes($_POST['modality_impartition']))); | 
				
			||||
        $classroomHours = trim(Security::remove_XSS(stripslashes($_POST['classroom_hours']))); | 
				
			||||
        $distanceHours = trim(Security::remove_XSS(stripslashes($_POST['distance_hours']))); | 
				
			||||
        $morningsParticipantsNumber = trim(Security::remove_XSS(stripslashes($_POST['mornings_participants_number']))); | 
				
			||||
        $morningsAccessNumber = trim(Security::remove_XSS(stripslashes($_POST['mornings_access_number']))); | 
				
			||||
        $morningTotalDuration = trim(Security::remove_XSS(stripslashes($_POST['morning_total_duration']))); | 
				
			||||
        $afternoonParticipantsNumber = trim(Security::remove_XSS(stripslashes($_POST['afternoon_participants_number']))); | 
				
			||||
        $afternoonAccessNumber = trim(Security::remove_XSS(stripslashes($_POST['afternoon_access_number']))); | 
				
			||||
        $afternoonTotalDuration = trim(Security::remove_XSS(stripslashes($_POST['afternoon_total_duration']))); | 
				
			||||
        $nightParticipantsNumber = trim(Security::remove_XSS(stripslashes($_POST['night_participants_number']))); | 
				
			||||
        $nightAccessNumber = trim(Security::remove_XSS(stripslashes($_POST['night_access_number']))); | 
				
			||||
        $nightTotalDuration = trim(Security::remove_XSS(stripslashes($_POST['night_total_duration']))); | 
				
			||||
        $attendeesCount = trim(Security::remove_XSS(stripslashes($_POST['attendees_count']))); | 
				
			||||
        $learningActivityCount = trim(Security::remove_XSS(stripslashes($_POST['learning_activity_count']))); | 
				
			||||
        $attemptCount = trim(Security::remove_XSS(stripslashes($_POST['attempt_count']))); | 
				
			||||
        $evaluationActivityCount = trim(Security::remove_XSS(stripslashes($_POST['evaluation_activity_count']))); | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
        $specialtyId = trim(Security::remove_XSS(stripslashes($_POST['specialty_id']))); | 
				
			||||
        $newSpecialty = trim(Security::remove_XSS(stripslashes($_POST['new_specialty']))); | 
				
			||||
             | 
				
			||||
        $startDate = $yearStart."-".$monthStart."-".$dayStart; | 
				
			||||
        $endDate = $yearEnd."-".$monthEnd."-".$dayEnd; | 
				
			||||
         | 
				
			||||
        if (isset($newSpecialty) && $newSpecialty != "1") { | 
				
			||||
            $sql = "UPDATE plugin_sepe_specialty SET  | 
				
			||||
            specialty_origin='".$specialtyOrigin."',  | 
				
			||||
            professional_area='".$professionalArea."',  | 
				
			||||
            specialty_code='".$specialtyCode."',  | 
				
			||||
            center_origin='".$centerOrigin."',  | 
				
			||||
            center_code='".$centerCode."',  | 
				
			||||
            start_date='".$startDate."',  | 
				
			||||
            end_date='".$endDate."',  | 
				
			||||
            modality_impartition='".$modalityImpartition."',  | 
				
			||||
            classroom_hours='".$classroomHours."',  | 
				
			||||
            distance_hours='".$distanceHours."',  | 
				
			||||
            mornings_participants_number='".$morningsParticipantsNumber."',  | 
				
			||||
            mornings_access_number='".$morningsAccessNumber."',  | 
				
			||||
            morning_total_duration='".$morningTotalDuration."',  | 
				
			||||
            afternoon_participants_number='".$afternoonParticipantsNumber."',  | 
				
			||||
            afternoon_access_number='".$afternoonAccessNumber."',  | 
				
			||||
            afternoon_total_duration='".$afternoonTotalDuration."',  | 
				
			||||
            night_participants_number='".$nightParticipantsNumber."', | 
				
			||||
            night_access_number='".$nightAccessNumber."', | 
				
			||||
            night_total_duration='".$nightTotalDuration."', | 
				
			||||
            attendees_count='".$attendeesCount."',  | 
				
			||||
            learning_activity_count='".$learningActivityCount."',  | 
				
			||||
            attempt_count='".$attemptCount."',  | 
				
			||||
            evaluation_activity_count='".$evaluationActivityCount."'  | 
				
			||||
            WHERE id='".$specialtyId."';";     | 
				
			||||
        } else { | 
				
			||||
            $sql = "INSERT INTO plugin_sepe_specialty ( | 
				
			||||
                        action_id, | 
				
			||||
                        specialty_origin, | 
				
			||||
                        professional_area, | 
				
			||||
                        specialty_code, | 
				
			||||
                        center_origin, | 
				
			||||
                        center_code, | 
				
			||||
                        start_date, | 
				
			||||
                        end_date, | 
				
			||||
                        modality_impartition, | 
				
			||||
                        classroom_hours, | 
				
			||||
                        distance_hours, | 
				
			||||
                        mornings_participants_number, | 
				
			||||
                        mornings_access_number, | 
				
			||||
                        morning_total_duration, | 
				
			||||
                        afternoon_participants_number, | 
				
			||||
                        afternoon_access_number, | 
				
			||||
                        afternoon_total_duration, | 
				
			||||
                        night_participants_number, | 
				
			||||
                        night_access_number, | 
				
			||||
                        night_total_duration, | 
				
			||||
                        attendees_count, | 
				
			||||
                        learning_activity_count, | 
				
			||||
                        attempt_count, | 
				
			||||
                        evaluation_activity_count | 
				
			||||
                    ) VALUES ( | 
				
			||||
                        '".$actionId."', | 
				
			||||
                        '".$specialtyOrigin."', | 
				
			||||
                        '".$professionalArea."', | 
				
			||||
                        '".$specialtyCode."', | 
				
			||||
                        '".$centerOrigin."', | 
				
			||||
                        '".$centerCode."', | 
				
			||||
                        '".$startDate."', | 
				
			||||
                        '".$endDate."', | 
				
			||||
                        '".$modalityImpartition."', | 
				
			||||
                        '".$classroomHours."', | 
				
			||||
                        '".$distanceHours."', | 
				
			||||
                        '".$morningsParticipantsNumber."', | 
				
			||||
                        '".$morningsAccessNumber."', | 
				
			||||
                        '".$morningTotalDuration."', | 
				
			||||
                        '".$afternoonParticipantsNumber."', | 
				
			||||
                        '".$afternoonAccessNumber."', | 
				
			||||
                        '".$afternoonTotalDuration."', | 
				
			||||
                        '".$nightParticipantsNumber."', | 
				
			||||
                        '".$nightAccessNumber."', | 
				
			||||
                        '".$nightTotalDuration."', | 
				
			||||
                        '".$attendeesCount."', | 
				
			||||
                        '".$learningActivityCount."', | 
				
			||||
                        '".$attemptCount."', | 
				
			||||
                        '".$evaluationActivityCount."' | 
				
			||||
                    );"; | 
				
			||||
        } | 
				
			||||
        $res = Database::query($sql); | 
				
			||||
        if (!$res) { | 
				
			||||
            echo Database::error(); | 
				
			||||
            $_SESSION['sepe_message_error'] = $plugin->get_lang('NoSaveChange'); | 
				
			||||
        } else { | 
				
			||||
            if ($newSpecialty == "1") { | 
				
			||||
                $specialtyId = Database::insert_id(); | 
				
			||||
                $_SESSION['sepe_message_info'] = $plugin->get_lang('SaveChange'); | 
				
			||||
            } | 
				
			||||
        } | 
				
			||||
        session_write_close(); | 
				
			||||
        header("Location: specialty-action-edit.php?new_specialty=0&specialty_id=".$specialtyId."&action_id=".$actionId); | 
				
			||||
    } else { | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
        $specialtyId = trim(Security::remove_XSS(stripslashes($_POST['specialty_id']))); | 
				
			||||
        $newSpecialty = trim(Security::remove_XSS(stripslashes($_POST['new_specialty']))); | 
				
			||||
        Security::clear_token(); | 
				
			||||
        $token = Security::get_token(); | 
				
			||||
        $_SESSION['sepe_message_error'] = $plugin->get_lang('ProblemToken'); | 
				
			||||
        session_write_close(); | 
				
			||||
        header("Location: specialty-action-edit.php?new_specialty=".$newSpecialty."&specialty_id=".$specialtyId."&action_id=".$actionId); | 
				
			||||
    } | 
				
			||||
} else { | 
				
			||||
    $token = Security::get_token(); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
if (api_is_platform_admin()) { | 
				
			||||
    $id_course = getCourse($_GET['action_id']); | 
				
			||||
    $interbreadcrumb[] = array("url" => "/plugin/sepe/src/sepe-administration-menu.php", "name" => $plugin->get_lang('MenuSepe')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "formative-actions-list.php", "name" => $plugin->get_lang('FormativesActionsList')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "formative-action.php?cid=".$id_course, "name" => $plugin->get_lang('FormativeAction')); | 
				
			||||
    if (isset($_GET['new_specialty']) && $_GET['new_specialty'] == "1") { | 
				
			||||
        $templateName = $plugin->get_lang('NewSpecialtyAccion'); | 
				
			||||
        $tpl = new Template($templateName); | 
				
			||||
        $tpl->assign('action_id', $_GET['action_id']); | 
				
			||||
        $info = array(); | 
				
			||||
        $tpl->assign('info', $info); | 
				
			||||
        $tpl->assign('new_action', '1'); | 
				
			||||
        $yearStart = $yearEnd = date("Y"); | 
				
			||||
    } else { | 
				
			||||
        $templateName = $plugin->get_lang('EditSpecialtyAccion'); | 
				
			||||
        $tpl = new Template($templateName); | 
				
			||||
        $tpl->assign('action_id', $_GET['action_id']); | 
				
			||||
        $info = getSpecialtActionInfo($_GET['specialty_id']); | 
				
			||||
        $tpl->assign('info', $info); | 
				
			||||
        if ($info['start_date'] != '0000-00-00' && $info['start_date'] != NULL) { | 
				
			||||
            $tpl->assign('day_start', date("j",strtotime($info['start_date']))); | 
				
			||||
            $tpl->assign('month_start', date("n",strtotime($info['start_date']))); | 
				
			||||
            $tpl->assign('year_start', date("Y",strtotime($info['start_date']))); | 
				
			||||
            $yearStart = date("Y",strtotime($info['start_date'])); | 
				
			||||
        } elseif (strpos($info['start_date'],'0000') === false) { | 
				
			||||
            $yearStart = date("Y",strtotime($info['start_date'])); | 
				
			||||
        } else { | 
				
			||||
            $yearStart  = date("Y"); | 
				
			||||
        } | 
				
			||||
        if ($info['end_date'] != '0000-00-00' && $info['end_date'] != NULL) { | 
				
			||||
            $tpl->assign('day_end', date("j",strtotime($info['end_date']))); | 
				
			||||
            $tpl->assign('month_end', date("n",strtotime($info['end_date']))); | 
				
			||||
            $tpl->assign('year_end', date("Y",strtotime($info['end_date']))); | 
				
			||||
            $yearEnd = date("Y",strtotime($info['end_date'])); | 
				
			||||
        } elseif (strpos($info['end_date'],'0000') === false) { | 
				
			||||
            $yearEnd = date("Y",strtotime($info['end_date'])); | 
				
			||||
        } else { | 
				
			||||
            $yearEnd  = date("Y"); | 
				
			||||
        } | 
				
			||||
        $tpl->assign('new_action', '0'); | 
				
			||||
        $tpl->assign('specialty_id', $_GET['specialty_id']); | 
				
			||||
         | 
				
			||||
        $listClassroom = classroomList($_GET['specialty_id']); | 
				
			||||
        $tpl->assign('listClassroom', $listClassroom); | 
				
			||||
        $listTutors = tutorsList($_GET['specialty_id']); | 
				
			||||
        $tpl->assign('listTutors', $listTutors);         | 
				
			||||
    } | 
				
			||||
     | 
				
			||||
    $yearList = array(); | 
				
			||||
    if ($yearStart > $yearEnd) { | 
				
			||||
        $tmp = $yearStart; | 
				
			||||
        $yearStart = $yearEnd; | 
				
			||||
        $yearEnd = $tmp;     | 
				
			||||
    } | 
				
			||||
    $yearStart -= 5; | 
				
			||||
    $yearEnd += 5; | 
				
			||||
    $fin_rango_anio = (($yearStart + 15) < $yearEnd) ? ($yearEnd+1):($yearStart +15); | 
				
			||||
    while ($yearStart <= $fin_rango_anio) { | 
				
			||||
        $yearList[] = $yearStart; | 
				
			||||
        $yearStart++; | 
				
			||||
    } | 
				
			||||
    $tpl->assign('list_year', $yearList); | 
				
			||||
    if (isset($_SESSION['sepe_message_info'])) { | 
				
			||||
        $tpl->assign('message_info', $_SESSION['sepe_message_info']);     | 
				
			||||
        unset($_SESSION['sepe_message_info']); | 
				
			||||
    } | 
				
			||||
    if (isset($_SESSION['sepe_message_error'])) { | 
				
			||||
        $tpl->assign('message_error', $_SESSION['sepe_message_error']);     | 
				
			||||
        unset($_SESSION['sepe_message_error']); | 
				
			||||
    } | 
				
			||||
    $tpl->assign('sec_token',$token); | 
				
			||||
    $listing_tpl = 'sepe/view/specialty-action-edit.tpl'; | 
				
			||||
    $content = $tpl->fetch($listing_tpl); | 
				
			||||
    $tpl->assign('content', $content); | 
				
			||||
    $tpl->display_one_col_template(); | 
				
			||||
 | 
				
			||||
} else { | 
				
			||||
    header('Location:' . api_get_path(WEB_PATH)); | 
				
			||||
} | 
				
			||||
@ -0,0 +1,135 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 *    This script displays a specialty classroom edit form. | 
				
			||||
 *    @package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
use \ChamiloSession as Session; | 
				
			||||
require_once '../config.php'; | 
				
			||||
 | 
				
			||||
$course_plugin = 'sepe'; | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
$_cid = 0; | 
				
			||||
 | 
				
			||||
if (!empty($_POST)) { | 
				
			||||
    $check = Security::check_token('post'); | 
				
			||||
    if ($check) { | 
				
			||||
        $sltCentersExists = trim(Security::remove_XSS(stripslashes($_POST['slt_centers_exists']))); | 
				
			||||
        $specialtyId = trim(Security::remove_XSS(stripslashes($_POST['specialty_id']))); | 
				
			||||
        $existsCenterId = trim(Security::remove_XSS(stripslashes($_POST['exists_center_id']))); | 
				
			||||
        $centerOrigin = trim(Security::remove_XSS(stripslashes($_POST['center_origin']))); | 
				
			||||
        $centerCode = trim(Security::remove_XSS(stripslashes($_POST['center_code']))); | 
				
			||||
        $newClassroom = trim(Security::remove_XSS(stripslashes($_POST['new_classroom']))); | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
        $classroomId = trim(Security::remove_XSS(stripslashes($_POST['classroom_id']))); | 
				
			||||
         | 
				
			||||
        if ($sltCentersExists == '1') { | 
				
			||||
            $sql = "INSERT INTO $tableSepeSpecialtyClassroom (specialty_id, center_id)  | 
				
			||||
                    VALUES ('".$specialtyId."','".$existsCenterId."');"; | 
				
			||||
            $res = Database::query($sql); | 
				
			||||
            if (!$res) { | 
				
			||||
                echo Database::error(); | 
				
			||||
                $_SESSION['sepe_message_error'] = $plugin->get_lang('NoSaveChange'); | 
				
			||||
            } else { | 
				
			||||
                if ($newClassroom == "1") { | 
				
			||||
                    $classroomId = Database::insert_id(); | 
				
			||||
                } | 
				
			||||
                $_SESSION['sepe_message_info'] = $plugin->get_lang('SaveChange'); | 
				
			||||
            } | 
				
			||||
        } else { | 
				
			||||
           //Checker exists centers | 
				
			||||
            $sql = "SELECT * FROM $tableCenters  | 
				
			||||
                    WHERE center_origin='".$centerOrigin."' AND center_code='".$centerCode."'"; | 
				
			||||
            $rs_tmp = Database::query($sql); | 
				
			||||
            if (Database::num_rows($rs_tmp) > 0) { | 
				
			||||
                $aux = Database::fetch_assoc($rs_tmp); | 
				
			||||
                $centerId = $aux['id'];     | 
				
			||||
            } else { | 
				
			||||
                $params = array( | 
				
			||||
                    'center_origin' => $centerOrigin, | 
				
			||||
                    'center_code' => $centerCode, | 
				
			||||
                ); | 
				
			||||
                $centerId = Database::insert($tableCenters, $params); | 
				
			||||
            } | 
				
			||||
     | 
				
			||||
            if (isset($newClassroom) && $newClassroom != '1') { | 
				
			||||
                $sql = "UPDATE $tableSepeSpecialtyClassroom SET center_id='".$centerId."' WHERE id='".$classroomId."';";     | 
				
			||||
            } else { | 
				
			||||
                $sql = "INSERT INTO $tableSepeSpecialtyClassroom (specialty_id, center_id) VALUES ('".$specialtyId."','".$centerId."');"; | 
				
			||||
            } | 
				
			||||
            $res = Database::query($sql); | 
				
			||||
            if (!$res) { | 
				
			||||
                echo Database::error(); | 
				
			||||
                $_SESSION['sepe_message_error'] = $plugin->get_lang('NoSaveChange'); | 
				
			||||
            } else { | 
				
			||||
                if ($newClassroom == '1') { | 
				
			||||
                    $classroomId = Database::insert_id(); | 
				
			||||
                } | 
				
			||||
                $_SESSION['sepe_message_info'] = $plugin->get_lang('SaveChange'); | 
				
			||||
            } | 
				
			||||
        } | 
				
			||||
        session_write_close(); | 
				
			||||
        header("Location: specialty-action-edit.php?new_specialty=0&specialty_id=".$specialtyId."&action_id=".$actionId); | 
				
			||||
    } else { | 
				
			||||
        $newClassroom = trim(Security::remove_XSS(stripslashes($_POST['new_classroom']))); | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
        $classroomId = trim(Security::remove_XSS(stripslashes($_POST['classroom_id']))); | 
				
			||||
        $specialtyId = trim(Security::remove_XSS(stripslashes($_POST['specialty_id']))); | 
				
			||||
        Security::clear_token(); | 
				
			||||
        $_SESSION['sepe_message_error'] = $plugin->get_lang('ProblemToken'); | 
				
			||||
        $token = Security::get_token(); | 
				
			||||
        session_write_close(); | 
				
			||||
        header("Location:specialty-classroom-edit.php?new_classroom=".$newClassroom."&specialty_id=".$specialtyId."&classroom_id=".$classroomId."&action_id=".$actionId); | 
				
			||||
    } | 
				
			||||
} else { | 
				
			||||
    $token = Security::get_token(); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
if (api_is_platform_admin()) { | 
				
			||||
    $courseId = getCourse($_GET['action_id']); | 
				
			||||
    $interbreadcrumb[] = array("url" => "/plugin/sepe/src/sepe-administration-menu.php", "name" => $plugin->get_lang('MenuSepe')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "formative-actions-list.php", "name" => $plugin->get_lang('FormativesActionsList')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "formative-action.php?cid=".$courseId, "name" => $plugin->get_lang('FormativeAction')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "specialty-action-edit.php?new_specialty=0&specialty_id=".$_GET['specialty_id']."&action_id=".$_GET['action_id'], "name" => $plugin->get_lang('SpecialtyFormativeAction')); | 
				
			||||
    if (isset($_GET['new_classroom']) && $_GET['new_classroom'] == "1") { | 
				
			||||
        $templateName = $plugin->get_lang('NewSpecialtyClassroom'); | 
				
			||||
        $tpl = new Template($templateName); | 
				
			||||
        $tpl->assign('action_id', $_GET['action_id']); | 
				
			||||
        $tpl->assign('specialty_id', $_GET['specialty_id']); | 
				
			||||
        $info = array(); | 
				
			||||
        $tpl->assign('info', $info); | 
				
			||||
        $tpl->assign('new_classroom', '1'); | 
				
			||||
    } else { | 
				
			||||
        $templateName = $plugin->get_lang('EditSpecialtyClassroom'); | 
				
			||||
        $tpl = new Template($templateName); | 
				
			||||
        $tpl->assign('action_id', $_GET['action_id']); | 
				
			||||
        $tpl->assign('specialty_id', $_GET['specialty_id']); | 
				
			||||
        $tpl->assign('classroom_id', $_GET['classroom_id']); | 
				
			||||
        $info = getInfoSpecialtyClassroom($_GET['classroom_id']); | 
				
			||||
        $tpl->assign('info', $info); | 
				
			||||
        $tpl->assign('new_classroom', '0'); | 
				
			||||
             | 
				
			||||
    } | 
				
			||||
    $centerList = getCentersList(); | 
				
			||||
    $tpl->assign('listExistsCenters', $centerList); | 
				
			||||
     | 
				
			||||
    if (isset($_SESSION['sepe_message_info'])) { | 
				
			||||
        $tpl->assign('message_info', $_SESSION['sepe_message_info']);     | 
				
			||||
        unset($_SESSION['sepe_message_info']); | 
				
			||||
    } | 
				
			||||
    if (isset($_SESSION['sepe_message_error'])) { | 
				
			||||
        $tpl->assign('message_error', $_SESSION['sepe_message_error']);     | 
				
			||||
        unset($_SESSION['sepe_message_error']); | 
				
			||||
    } | 
				
			||||
    $tpl->assign('sec_token',$token); | 
				
			||||
         | 
				
			||||
    $listing_tpl = 'sepe/view/specialty-classroom-edit.tpl'; | 
				
			||||
    $content = $tpl->fetch($listing_tpl); | 
				
			||||
    $tpl->assign('content', $content); | 
				
			||||
    $tpl->display_one_col_template(); | 
				
			||||
 | 
				
			||||
} else { | 
				
			||||
    header('Location:' . api_get_path(WEB_PATH)); | 
				
			||||
} | 
				
			||||
@ -0,0 +1,224 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 *    This script displays a specialty tutors edit form. | 
				
			||||
 *    @package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
use \ChamiloSession as Session; | 
				
			||||
require_once '../config.php'; | 
				
			||||
 | 
				
			||||
$course_plugin = 'sepe'; | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
$_cid = 0; | 
				
			||||
 | 
				
			||||
if ( !empty($_POST)) { | 
				
			||||
    $check = Security::check_token('post'); | 
				
			||||
    if ($check) { | 
				
			||||
        $sltUserExists = trim(Security::remove_XSS(stripslashes($_POST['slt_user_exists']))); | 
				
			||||
        $existingTutor = trim(Security::remove_XSS(stripslashes($_POST['existingTutor']))); | 
				
			||||
        $specialtyId = trim(Security::remove_XSS(stripslashes($_POST['specialty_id']))); | 
				
			||||
        $tutorAccreditation = trim(Security::remove_XSS(stripslashes($_POST['tutor_accreditation']))); | 
				
			||||
        $professionalExperience = trim(Security::remove_XSS(stripslashes($_POST['professional_experience']))); | 
				
			||||
        $teachingCompetence = trim(Security::remove_XSS(stripslashes($_POST['teaching_competence']))); | 
				
			||||
        $experienceTeleforming = trim(Security::remove_XSS(stripslashes($_POST['experience_teleforming']))); | 
				
			||||
        $trainingTeleforming = trim(Security::remove_XSS(stripslashes($_POST['training_teleforming']))); | 
				
			||||
        $specialtyTutorId = trim(Security::remove_XSS(stripslashes($_POST['specialtyTutorId']))); | 
				
			||||
        $documentType = trim(Security::remove_XSS(stripslashes($_POST['document_type']))); | 
				
			||||
        $documentNumber = trim(Security::remove_XSS(stripslashes($_POST['document_number']))); | 
				
			||||
        $documentLetter = trim(Security::remove_XSS(stripslashes($_POST['document_letter']))); | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
        $newTutor = trim(Security::remove_XSS(stripslashes($_POST['new_tutor']))); | 
				
			||||
        $platformUserId = trim(Security::remove_XSS(stripslashes($_POST['platform_user_id']))); | 
				
			||||
     | 
				
			||||
        if ($sltUserExists == "1") { | 
				
			||||
            $sql = "SELECT * FROM plugin_sepe_tutors WHERE cod='".$existingTutor."';"; | 
				
			||||
            $rs = Database::query($sql); | 
				
			||||
            $tmp = Database::fetch_assoc($rs); | 
				
			||||
                         | 
				
			||||
            $sql = "INSERT INTO $tableSepeSpecialtyTutors ( | 
				
			||||
                        specialty_id,  | 
				
			||||
                        tutor_id, | 
				
			||||
                        tutor_accreditation, | 
				
			||||
                        professional_experience, | 
				
			||||
                        teaching_competence, | 
				
			||||
                        experience_teleforming    , | 
				
			||||
                        training_teleforming | 
				
			||||
                    ) VALUES ( | 
				
			||||
                        '".$specialtyId."', | 
				
			||||
                        '".$existingTutor."', | 
				
			||||
                        '".$tmp['tutor_accreditation']."', | 
				
			||||
                        '".$tmp['professional_experience']."', | 
				
			||||
                        '".$tmp['teaching_competence']."', | 
				
			||||
                        '".$tmp['experience_teleforming    ']."', | 
				
			||||
                        '".$tmp['training_teleforming']."' | 
				
			||||
                    );"; | 
				
			||||
            $res = Database::query($sql); | 
				
			||||
        } else { | 
				
			||||
            $sql = "SELECT id  | 
				
			||||
                    FROM $tableSepeTutors  | 
				
			||||
                    WHERE  | 
				
			||||
                        document_type='".$documentType."' | 
				
			||||
                        AND document_number='".$documentNumber."'  | 
				
			||||
                        AND document_letter='".$documentLetter."';"; | 
				
			||||
            $rs = Database::query($sql); | 
				
			||||
            if (Database::num_rows($rs) > 0) { | 
				
			||||
                $aux = Database::fetch_assoc($rs); | 
				
			||||
                $sql = "UPDATE $tableSepeTutors SET  | 
				
			||||
                        platform_user_id='".$platformUserId."',  | 
				
			||||
                        tutor_accreditation='".$tutorAccreditation."',  | 
				
			||||
                        professional_experience='".$professionalExperience."',  | 
				
			||||
                        teaching_competence='".$teachingCompetence."',  | 
				
			||||
                        experience_teleforming='".$experienceTeleforming."',  | 
				
			||||
                        training_teleforming='".$trainingTeleforming."'  | 
				
			||||
                        WHERE id='".$aux['id']."';";      | 
				
			||||
                $res = Database::query($sql); | 
				
			||||
                if (!$res) { | 
				
			||||
                    error_log(Database::error()); | 
				
			||||
                    $_SESSION['sepe_message_error'] = $plugin->get_lang('NoSaveChange'); | 
				
			||||
                } | 
				
			||||
                $newTutor = 0; //Reset variable, no create new tutor, exists tutor | 
				
			||||
                $tutor_id = $aux['id']; | 
				
			||||
                $specialtyTutorId = getSpecialtyTutorId($specialtyId, $tutor_id); | 
				
			||||
            } else { | 
				
			||||
                $sql = "UPDATE $tableSepeTutors  | 
				
			||||
                        SET platform_user_id=''  | 
				
			||||
                        WHERE platform_user_id='".$platformUserId."'"; | 
				
			||||
                Database::query($sql); | 
				
			||||
                $sql = "INSERT INTO $tableSepeTutors ( | 
				
			||||
                            platform_user_id, | 
				
			||||
                            document_type, | 
				
			||||
                            document_number, | 
				
			||||
                            document_letter, | 
				
			||||
                            tutor_accreditation, | 
				
			||||
                            professional_experience, | 
				
			||||
                            teaching_competence, | 
				
			||||
                            experience_teleforming, | 
				
			||||
                            training_teleforming | 
				
			||||
                        ) VALUES ( | 
				
			||||
                            '".$platformUserId."', | 
				
			||||
                            '".$documentType."', | 
				
			||||
                            '".$documentNumber."', | 
				
			||||
                            '".$documentLetter."', | 
				
			||||
                            '".$tutorAccreditation."', | 
				
			||||
                            '".$professionalExperience."', | 
				
			||||
                            '".$teachingCompetence."', | 
				
			||||
                            '".$experienceTeleforming."', | 
				
			||||
                            '".$trainingTeleforming."' | 
				
			||||
                        );"; | 
				
			||||
                $res = Database::query($sql); | 
				
			||||
                if (!$res) { | 
				
			||||
                    error_log(Database::error()); | 
				
			||||
                    $_SESSION['sepe_message_error'] = $plugin->get_lang('NoSaveChange'); | 
				
			||||
                } else { | 
				
			||||
                    $tutor_id = Database::insert_id(); | 
				
			||||
                } | 
				
			||||
            } | 
				
			||||
             | 
				
			||||
            if (isset($newTutor) && $newTutor != "1") { | 
				
			||||
                $sql = "UPDATE $tableSepeSpecialtyTutors SET  | 
				
			||||
                        tutor_id='".$tutor_id."',  | 
				
			||||
                        tutor_accreditation='".$tutorAccreditation."',  | 
				
			||||
                        professional_experience='".$professionalExperience."',  | 
				
			||||
                        teaching_competence='".$teachingCompetence."',  | 
				
			||||
                        experience_teleforming='".$experienceTeleforming."',  | 
				
			||||
                        training_teleforming='".$trainingTeleforming."'  | 
				
			||||
                        WHERE id='".$specialtyTutorId."';";     | 
				
			||||
            } else { | 
				
			||||
                $sql = "INSERT INTO $tableSepeSpecialtyTutors ( | 
				
			||||
                            specialty_id, | 
				
			||||
                            tutor_id, | 
				
			||||
                            tutor_accreditation, | 
				
			||||
                            professional_experience, | 
				
			||||
                            teaching_competence, | 
				
			||||
                            experience_teleforming, | 
				
			||||
                            training_teleforming | 
				
			||||
                        ) VALUES ( | 
				
			||||
                            '".$specialtyId."', | 
				
			||||
                            '".$tutor_id."', | 
				
			||||
                            '".$tutorAccreditation."', | 
				
			||||
                            '".$professionalExperience."', | 
				
			||||
                            '".$teachingCompetence."', | 
				
			||||
                            '".$experienceTeleforming."', | 
				
			||||
                            '".$trainingTeleforming."' | 
				
			||||
                        );"; | 
				
			||||
            } | 
				
			||||
            $res = Database::query($sql); | 
				
			||||
            if (!$res) { | 
				
			||||
                error_log(Database::error()); | 
				
			||||
                $_SESSION['sepe_message_error'] = $plugin->get_lang('NoSaveChange'); | 
				
			||||
            } else { | 
				
			||||
                if ($newTutor == "1") { | 
				
			||||
                    $tutor_id = Database::insert_id(); | 
				
			||||
                } | 
				
			||||
                $_SESSION['sepe_message_info'] = $plugin->get_lang('SaveChange'); | 
				
			||||
            } | 
				
			||||
        } | 
				
			||||
        session_write_close(); | 
				
			||||
        header("Location: specialty-action-edit.php?new_specialty=0&specialty_id=".$specialtyId."&action_id=".$actionId); | 
				
			||||
    } else { | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
        $newTutor = trim(Security::remove_XSS(stripslashes($_POST['new_tutor']))); | 
				
			||||
        $specialtyId = trim(Security::remove_XSS(stripslashes($_POST['specialty_id']))); | 
				
			||||
        $specialtyTutorId = trim(Security::remove_XSS(stripslashes($_POST['specialtyTutorId']))); | 
				
			||||
        Security::clear_token(); | 
				
			||||
        $token = Security::get_token(); | 
				
			||||
        $_SESSION['sepe_message_error'] = $plugin->get_lang('ProblemToken'); | 
				
			||||
        session_write_close(); | 
				
			||||
        header("Location: specialty-tutor-edit.php?new_tutor=".$newTutor."&specialty_id=".$specialtyId."&tutor_id=".$specialtyTutorId."&action_id=".$actionId); | 
				
			||||
    } | 
				
			||||
} else { | 
				
			||||
    $token = Security::get_token(); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
if (api_is_platform_admin()) { | 
				
			||||
    $courseId = getCourse($_GET['action_id']); | 
				
			||||
    $interbreadcrumb[] = array("url" => "/plugin/sepe/src/sepe-administration-menu.php", "name" => $plugin->get_lang('MenuSepe')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "formative-actions-list.php", "name" => $plugin->get_lang('FormativesActionsList')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "formative-action.php?cid=".$courseId, "name" => $plugin->get_lang('FormativeAction')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "specialty-action-edit.php?new_specialty=0&specialty_id=".$_GET['specialty_id']."&action_id=".$_GET['action_id'], "name" => $plugin->get_lang('SpecialtyFormativeAction')); | 
				
			||||
    if (isset($_GET['new_tutor']) && $_GET['new_tutor'] == "1") { | 
				
			||||
        $templateName = $plugin->get_lang('NewSpecialtyTutor'); | 
				
			||||
        $tpl = new Template($templateName); | 
				
			||||
        $tpl->assign('action_id', $_GET['action_id']); | 
				
			||||
        $tpl->assign('specialty_id', $_GET['specialty_id']); | 
				
			||||
        $info = array(); | 
				
			||||
        $tpl->assign('info', $info); | 
				
			||||
        $tpl->assign('new_tutor', '1'); | 
				
			||||
        $platformUserId = ''; | 
				
			||||
    } else { | 
				
			||||
        $templateName = $plugin->get_lang('EditSpecialtyTutor'); | 
				
			||||
        $tpl = new Template($templateName); | 
				
			||||
        $tpl->assign('action_id', $_GET['action_id']); | 
				
			||||
        $tpl->assign('specialty_id', $_GET['specialty_id']); | 
				
			||||
        $tpl->assign('tutor_id', $_GET['tutor_id']); | 
				
			||||
        $info = getInfoSpecialtyTutor($_GET['tutor_id']); | 
				
			||||
        $tpl->assign('info', $info); | 
				
			||||
        $tpl->assign('new_tutor', '0'); | 
				
			||||
        $platformUserId = $info['platform_user_id']; | 
				
			||||
             | 
				
			||||
    } | 
				
			||||
    $tutorsList = getTutorsSpecialty($_GET['specialty_id']); | 
				
			||||
    $tpl->assign('ExistingTutorsList', $tutorsList); | 
				
			||||
     | 
				
			||||
    $listTeachers = CourseManager::getTeachersFromCourse($courseId); | 
				
			||||
    $listTeachers = freeTeacherList($listTeachers,$_GET['specialty_id'],$platformUserId); | 
				
			||||
    $tpl->assign('listTeachers', $listTeachers); | 
				
			||||
    if (isset($_SESSION['sepe_message_info'])) { | 
				
			||||
        $tpl->assign('message_info', $_SESSION['sepe_message_info']);     | 
				
			||||
        unset($_SESSION['sepe_message_info']); | 
				
			||||
    } | 
				
			||||
    if (isset($_SESSION['sepe_message_error'])) { | 
				
			||||
        $tpl->assign('message_error', $_SESSION['sepe_message_error']);     | 
				
			||||
        unset($_SESSION['sepe_message_error']); | 
				
			||||
    } | 
				
			||||
    $tpl->assign('sec_token',$token); | 
				
			||||
         | 
				
			||||
    $listing_tpl = 'sepe/view/specialty-tutor-edit.tpl'; | 
				
			||||
    $content = $tpl->fetch($listing_tpl); | 
				
			||||
    $tpl->assign('content', $content); | 
				
			||||
    $tpl->display_one_col_template(); | 
				
			||||
} else { | 
				
			||||
    header('Location:' . api_get_path(WEB_PATH)); | 
				
			||||
} | 
				
			||||
@ -0,0 +1,159 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
 | 
				
			||||
/** | 
				
			||||
 *    This script displays a specialty tutorial edit form. | 
				
			||||
 *    @package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
 | 
				
			||||
use \ChamiloSession as Session; | 
				
			||||
require_once '../config.php'; | 
				
			||||
 | 
				
			||||
$course_plugin = 'sepe'; | 
				
			||||
$plugin = SepePlugin::create(); | 
				
			||||
$_cid = 0; | 
				
			||||
 | 
				
			||||
if ( !empty($_POST)) { | 
				
			||||
    $check = Security::check_token('post'); | 
				
			||||
    if ($check) { | 
				
			||||
        $centerOrigin = trim(Security::remove_XSS(stripslashes($_POST['center_origin']))); | 
				
			||||
        $centerCode = trim(Security::remove_XSS(stripslashes($_POST['center_code']))); | 
				
			||||
        $dayStart = trim(Security::remove_XSS(stripslashes($_POST['day_start']))); | 
				
			||||
        $monthStart = trim(Security::remove_XSS(stripslashes($_POST['month_start']))); | 
				
			||||
        $yearStart = trim(Security::remove_XSS(stripslashes($_POST['year_start']))); | 
				
			||||
        $dayEnd = trim(Security::remove_XSS(stripslashes($_POST['day_end']))); | 
				
			||||
        $monthEnd = trim(Security::remove_XSS(stripslashes($_POST['month_end']))); | 
				
			||||
        $yearEnd = trim(Security::remove_XSS(stripslashes($_POST['year_end']))); | 
				
			||||
        $tutorialId = trim(Security::remove_XSS(stripslashes($_POST['tutorial_id']))); | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
        $specialtyId = trim(Security::remove_XSS(stripslashes($_POST['specialty_id']))); | 
				
			||||
        $newTutorial = trim(Security::remove_XSS(stripslashes($_POST['new_tutorial']))); | 
				
			||||
        $starDate = $yearStart."-".$monthStart."-".$dayStart; | 
				
			||||
        $endDate = $yearEnd."-".$monthEnd."-".$dayEnd; | 
				
			||||
     | 
				
			||||
        if (isset($newTutorial) && $newTutorial != "1") { | 
				
			||||
            $sql = "UPDATE $tableSepeParticipantsSpecialtyTutorials SET  | 
				
			||||
                        center_origin='".$centerOrigin."',  | 
				
			||||
                        center_code='".$centerCode."',  | 
				
			||||
                        start_date='".$starDate."',  | 
				
			||||
                        end_date='".$endDate."'  | 
				
			||||
                    WHERE id='".$tutorialId."';";     | 
				
			||||
        } else { | 
				
			||||
            $sql = "INSERT INTO $tableSepeParticipantsSpecialtyTutorials ( | 
				
			||||
                        participant_specialty_id,  | 
				
			||||
                        center_origin, | 
				
			||||
                        center_code, | 
				
			||||
                        start_date, | 
				
			||||
                        end_date | 
				
			||||
                    ) VALUES ( | 
				
			||||
                        '".$specialtyId."', | 
				
			||||
                        '".$centerOrigin."', | 
				
			||||
                        '".$centerCode."', | 
				
			||||
                        '".$starDate."', | 
				
			||||
                        '".$endDate."' | 
				
			||||
                    );"; | 
				
			||||
        } | 
				
			||||
        $res = Database::query($sql); | 
				
			||||
        if (!$res) { | 
				
			||||
            error_log(Database::error()); | 
				
			||||
            $_SESSION['sepe_message_error'] = $plugin->get_lang('NoSaveChange'); | 
				
			||||
        } else { | 
				
			||||
            $_SESSION['sepe_message_info'] = $plugin->get_lang('SaveChange'); | 
				
			||||
        } | 
				
			||||
         | 
				
			||||
        session_write_close(); | 
				
			||||
        $participantId = getParticipantId($specialtyId); | 
				
			||||
        header("Location: participant-specialty-edit.php?new_specialty=0&participant_id=".$participantId."&specialty_id=".$specialtyId."&action_id=".$actionId); | 
				
			||||
    } else { | 
				
			||||
        $tutorialId = trim(Security::remove_XSS(stripslashes($_POST['tutorial_id']))); | 
				
			||||
        $actionId = trim(Security::remove_XSS(stripslashes($_POST['action_id']))); | 
				
			||||
        $specialtyId = trim(Security::remove_XSS(stripslashes($_POST['specialty_id']))); | 
				
			||||
        $newTutorial = trim(Security::remove_XSS(stripslashes($_POST['new_tutorial']))); | 
				
			||||
        Security::clear_token(); | 
				
			||||
        $token = Security::get_token(); | 
				
			||||
        $_SESSION['sepe_message_error'] = $plugin->get_lang('ProblemToken'); | 
				
			||||
        session_write_close(); | 
				
			||||
        header("Location: specialty-tutorial-edit.php?new_tutorial=".$newTutorial."&specialty_id=".$specialtyId."&tutorial_id=".$tutorialId."&action_id=".$actionId); | 
				
			||||
    } | 
				
			||||
} else { | 
				
			||||
    $token = Security::get_token(); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
if (api_is_platform_admin()) { | 
				
			||||
    $courseId = getCourse($_GET['action_id']); | 
				
			||||
    $participantId = getParticipantId($_GET['specialty_id']); | 
				
			||||
    $interbreadcrumb[] = array("url" => "/plugin/sepe/src/sepe-administration-menu.php", "name" => $plugin->get_lang('MenuSepe')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "formative-actions-list.php", "name" => $plugin->get_lang('FormativesActionsList')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "formative-action.php?cid=".$courseId, "name" => $plugin->get_lang('FormativeAction')); | 
				
			||||
    $interbreadcrumb[] = array("url" => "participant-specialty-edit.php?new_specialty=0&participant_id=".$participantId."&specialty_id=".$_GET['specialty_id']."&action_id=".$_GET['action_id'], "name" => $plugin->get_lang('SpecialtyFormativeParcipant')); | 
				
			||||
    if (isset($_GET['new_tutorial']) && $_GET['new_tutorial'] == "1") { | 
				
			||||
        $templateName = $plugin->get_lang('new_tutorial'); | 
				
			||||
        $tpl = new Template($templateName); | 
				
			||||
        $tpl->assign('action_id', $_GET['action_id']); | 
				
			||||
        $tpl->assign('specialty_id', $_GET['specialty_id']); | 
				
			||||
        $info = array(); | 
				
			||||
        $tpl->assign('info', $info); | 
				
			||||
        $tpl->assign('new_tutorial', '1'); | 
				
			||||
        $startYear = $endYear = date("Y"); | 
				
			||||
    } else { | 
				
			||||
        $templateName = $plugin->get_lang('edit_tutorial'); | 
				
			||||
        $tpl = new Template($templateName); | 
				
			||||
        $tpl->assign('action_id', $_GET['action_id']); | 
				
			||||
        $tpl->assign('specialty_id', $_GET['specialty_id']); | 
				
			||||
        $tpl->assign('tutorial_id', $_GET['tutorial_id']); | 
				
			||||
        $info = getInfoSpecialtyTutorial($_GET['tutorial_id']); | 
				
			||||
        $tpl->assign('info', $info); | 
				
			||||
        $tpl->assign('new_tutorial', '0'); | 
				
			||||
        if ($info['start_date'] != '0000-00-00' && $info['start_date'] != NULL) { | 
				
			||||
            $tpl->assign('day_start', date("j",strtotime($info['start_date']))); | 
				
			||||
            $tpl->assign('month_start', date("n",strtotime($info['start_date']))); | 
				
			||||
            $tpl->assign('year_start', date("Y",strtotime($info['start_date']))); | 
				
			||||
            $startYear = date("Y",strtotime($info['start_date'])); | 
				
			||||
        } elseif (strpos($info['end_date'],'0000') === false) { | 
				
			||||
            $startYear = date("Y",strtotime($info['start_date'])); | 
				
			||||
        } else { | 
				
			||||
            $startYear = date("Y"); | 
				
			||||
        } | 
				
			||||
        if ($info['end_date'] != '0000-00-00' && $info['end_date'] != NULL) { | 
				
			||||
            $tpl->assign('day_end', date("j",strtotime($info['end_date']))); | 
				
			||||
            $tpl->assign('month_end', date("n",strtotime($info['end_date']))); | 
				
			||||
            $tpl->assign('year_end', date("Y",strtotime($info['end_date']))); | 
				
			||||
            $endYear = date("Y",strtotime($info['end_date'])); | 
				
			||||
        } elseif (strpos($info['end_date'],'0000') === false) { | 
				
			||||
            $endYear = date("Y",strtotime($info['end_date'])); | 
				
			||||
        } else { | 
				
			||||
            $endYear = date("Y"); | 
				
			||||
        } | 
				
			||||
    } | 
				
			||||
    $listYears = array(); | 
				
			||||
    if ($startYear > $endYear) { | 
				
			||||
        $tmp = $startYear; | 
				
			||||
        $startYear = $endYear; | 
				
			||||
        $endYear = $tmp; | 
				
			||||
    } | 
				
			||||
    $startYear -= 5; | 
				
			||||
    $endYear += 5; | 
				
			||||
    $endRangeYear = (($startYear + 15) < $endYear) ? ($endYear+1):($startYear +15); | 
				
			||||
    while ($startYear <= $endRangeYear) { | 
				
			||||
        $listYears[] = $startYear; | 
				
			||||
        $startYear++; | 
				
			||||
    } | 
				
			||||
    $tpl->assign('list_year', $listYears); | 
				
			||||
     | 
				
			||||
    if (isset($_SESSION['sepe_message_info'])) { | 
				
			||||
        $tpl->assign('message_info', $_SESSION['sepe_message_info']);     | 
				
			||||
        unset($_SESSION['sepe_message_info']); | 
				
			||||
    } | 
				
			||||
    if (isset($_SESSION['sepe_message_error'])) { | 
				
			||||
        $tpl->assign('message_error', $_SESSION['sepe_message_error']);     | 
				
			||||
        unset($_SESSION['sepe_message_error']); | 
				
			||||
    } | 
				
			||||
    $tpl->assign('sec_token',$token); | 
				
			||||
 | 
				
			||||
    $listing_tpl = 'sepe/view/specialty-tutorial-edit.tpl'; | 
				
			||||
    $content = $tpl->fetch($listing_tpl); | 
				
			||||
    $tpl->assign('content', $content); | 
				
			||||
    $tpl->display_one_col_template(); | 
				
			||||
} else { | 
				
			||||
    header('Location:' . api_get_path(WEB_PATH)); | 
				
			||||
} | 
				
			||||
@ -0,0 +1,13 @@ | 
				
			||||
<?php | 
				
			||||
/* For licensing terms, see /license.txt */ | 
				
			||||
/** | 
				
			||||
 * Config the plugin | 
				
			||||
 * @package chamilo.plugin.sepe | 
				
			||||
 */ | 
				
			||||
require_once __DIR__ . '/config.php'; | 
				
			||||
 | 
				
			||||
if (!api_is_platform_admin()) { | 
				
			||||
    die ('You must have admin permissions to install plugins'); | 
				
			||||
} | 
				
			||||
 | 
				
			||||
SepePlugin::create()->update(); | 
				
			||||
@ -0,0 +1,33 @@ | 
				
			||||
<script type='text/javascript' src="../js/sepe.js"></script> | 
				
			||||
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/> | 
				
			||||
 | 
				
			||||
<div class="row"> | 
				
			||||
    <form class="form-horizontal" action="configuration.php" method="post" name="configuration_form"> | 
				
			||||
        <div class="col-md-2"> </div> | 
				
			||||
        <div class="col-md-8"> | 
				
			||||
            {% if message_info != "" %} | 
				
			||||
                <div class="confirmation-message"> | 
				
			||||
                    {{ message_info }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            {% if message_error != "" %} | 
				
			||||
                <div class="error-message"> | 
				
			||||
                    {{ message_error }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            <fieldset> | 
				
			||||
                <legend>{{ 'SepeUser' | get_plugin_lang('SepePlugin') }}</legend> | 
				
			||||
                <div class="form-group"> | 
				
			||||
                    <label class="col-md-2 control-label">{{ 'ApiKey' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                    <div class="col-md-7"> | 
				
			||||
                        <input class="form-control" type="text" id="input_key" name="api_key" value="{{ info }}" /> | 
				
			||||
                    </div> | 
				
			||||
                    <div class="col-md-3"> | 
				
			||||
                        <input type="button" id="key-sepe-generator" class="btn btn-info" value="{{ 'GenerateApiKey' | get_plugin_lang('SepePlugin') }}" /> | 
				
			||||
                    </div> | 
				
			||||
                </div> | 
				
			||||
            </fieldset> | 
				
			||||
        </div> | 
				
			||||
        <div class="col-md-2"> </div> | 
				
			||||
    </form> | 
				
			||||
</div> | 
				
			||||
@ -0,0 +1,300 @@ | 
				
			||||
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/> | 
				
			||||
 | 
				
			||||
<div class="row"> | 
				
			||||
    <form class="form-horizontal" action="formative-action-edit.php" method="post" name="data-center-form"> | 
				
			||||
        <div class="col-md-3"> | 
				
			||||
            <div id="course_category_well" class="well"> | 
				
			||||
                <ul class="nav nav-list"> | 
				
			||||
                    <li class="nav-header"><h3>{{ 'Actions' | get_plugin_lang('SepePlugin') }}:</h3></li> | 
				
			||||
                    <li> | 
				
			||||
                        {% if new_action == "1" %} | 
				
			||||
                            <input type="hidden" name="action_id" value="0" /> | 
				
			||||
                            <input type="hidden" name="course_id" value="{{ course_id }}" /> | 
				
			||||
                        {% else %} | 
				
			||||
                            <input type="hidden" name="action_id" value="{{ info.id }}" /> | 
				
			||||
                        {% endif %} | 
				
			||||
                        <input type="hidden" name="sec_token" value="{{ sec_token }}" /> | 
				
			||||
                        <input class="btn btn-primary sepe-btn-menu-side" type="submit" value="{{ 'SaveChanges' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                    <li> | 
				
			||||
                        <input class="btn btn-warning sepe-btn-menu-side" type="reset" value="{{ 'Reset' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                </ul> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
        <div class="col-md-9"> | 
				
			||||
             {% if message_info != "" %} | 
				
			||||
                <div class="alert alert-success"> | 
				
			||||
                    {{ message_info }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            {% if message_error != "" %} | 
				
			||||
                <div class="alert alert-danger"> | 
				
			||||
                    {{ message_error }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            <div class="well_border"> | 
				
			||||
                <fieldset> | 
				
			||||
                    <legend>{{ 'FormativeAction' | get_plugin_lang('SepePlugin') }}</legend> | 
				
			||||
                    <div class="well"> | 
				
			||||
                        <legend><h4>{{ 'ActionIdentifier' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-md-3 control-label">{{ 'ActionOrigin' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-md-2"> | 
				
			||||
                                <input class="form-control" type="text" name="action_origin" value="{{ info.action_origin }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-md-3 control-label">{{ 'ActionCode' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-md-2"> | 
				
			||||
                                <input class="form-control" type="text" name="action_code" value="{{ info.action_code }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-md-3 control-label">{{ 'Situation' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-md-9"> | 
				
			||||
                            <select  name="situation" class="form-control"> | 
				
			||||
                            <option value=""></option> | 
				
			||||
                            {% if info.situation == "10" %} | 
				
			||||
                                <option value="10" selected="selected">{{ 'Situation10' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="10">{{ 'Situation10' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %} | 
				
			||||
                            {% if info.situation == "20" %} | 
				
			||||
                                <option value="20" selected="selected">{{ 'Situation20' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="20">{{ 'Situation20' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %} | 
				
			||||
                            {% if info.situation == "30" %} | 
				
			||||
                                <option value="30" selected="selected">{{ 'Situation30' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="30">{{ 'Situation30' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %} | 
				
			||||
                            {% if info.situation == "40" %} | 
				
			||||
                                <option value="40" selected="selected">{{ 'Situation40' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="40">{{ 'Situation40' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %} | 
				
			||||
                            {% if info.situation == "50" %} | 
				
			||||
                                <option value="50" selected="selected">{{ 'Situation50' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="50">{{ 'Situation50' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %} | 
				
			||||
                            </select> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="well"> | 
				
			||||
                        <legend><h4>{{ 'MainSpecialtyIdentifier' | get_plugin_lang('SepePlugin') | upper }}</h4></legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-md-3 control-label">{{ 'SpecialtyOrigin' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-md-9"> | 
				
			||||
                                <input class="form-control" type="text" name="specialty_origin" value="{{ info.specialty_origin }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                     | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-md-3 control-label">{{ 'ProfessionalArea' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-md-9"> | 
				
			||||
                                <input class="form-control" type="text" name="professional_area" value="{{ info.professional_area }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                             | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-md-3 control-label">{{ 'SpecialtyCode' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-md-9"> | 
				
			||||
                                <input class="form-control" type="text" name="specialty_code" value="{{ info.specialty_code }}"/> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-md-3 control-label">{{ 'Duration' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-md-2"> | 
				
			||||
                            <input class="form-control" type="number" name="duration" value="{{ info.duration }}" /> | 
				
			||||
                        </div> | 
				
			||||
                        <div class="col-md-7 alert alert-info sepe-message-info">     | 
				
			||||
                            {{ 'NumHoursFormativeAction' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                     <div class="form-group"> | 
				
			||||
                        <label class="col-md-3 control-label">{{ 'StartDate' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-md-4"> | 
				
			||||
                            <select name="day_start" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in 1..31 %} | 
				
			||||
                                    <option value="{{ i }}" {% if day_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                            / | 
				
			||||
                            <select name="month_start" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in 1..12 %} | 
				
			||||
                                    <option value="{{ i }}" {% if month_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                            / | 
				
			||||
                            <select name="year_start" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in list_year %} | 
				
			||||
                                    {% if year_start == i %} | 
				
			||||
                                        <option value="{{ i }}" selected="selected">{{ i }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="{{ i }}">{{ i }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                        </div> | 
				
			||||
                        <div class="col-md-5 alert alert-info sepe-message-info"> | 
				
			||||
                            {{ 'StartDateMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-md-3 control-label">{{ 'EndDate' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-md-4"> | 
				
			||||
                            <select name="day_end" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in 1..31 %} | 
				
			||||
                                    <option value="{{ i }}" {% if day_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                            / | 
				
			||||
                            <select name="month_end" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in 1..12 %} | 
				
			||||
                                    <option value="{{ i }}" {% if month_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                            / | 
				
			||||
                            <select name="year_end" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in list_year %} | 
				
			||||
                                    {% if year_end == i %} | 
				
			||||
                                        <option value="{{ i }}" selected="selected">{{ i }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="{{ i }}">{{ i }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                        </div> | 
				
			||||
                        <div class="alert alert-info col-md-5 sepe-message-info"> | 
				
			||||
                            {{ 'EndDateMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-md-3 control-label">{{ 'FullItineraryIndicator' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-md-2"> | 
				
			||||
                            <select class="form-control" name="full_itinerary_indicator"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% if info.full_itinerary_indicator == "SI" %} | 
				
			||||
                                    <option value="SI" selected="selected">SI</option> | 
				
			||||
                                {% else %} | 
				
			||||
                                    <option value="SI">SI</option> | 
				
			||||
                                {% endif %} | 
				
			||||
                                {% if info.full_itinerary_indicator == "NO" %} | 
				
			||||
                                    <option value="NO" selected="selected">NO</option> | 
				
			||||
                                {% else %} | 
				
			||||
                                    <option value="NO">NO</option> | 
				
			||||
                                   {% endif %} | 
				
			||||
                            </select> | 
				
			||||
                        </div> | 
				
			||||
                        <div class="alert alert-info col-md-7 sepe-message-info"> | 
				
			||||
                            {{ 'FullItineraryIndicatorMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-md-3 control-label">{{ 'FinancingType' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-md-2"> | 
				
			||||
                            <select name="financing_type" class="form-control"> | 
				
			||||
                            <option value=""></option> | 
				
			||||
                            {% if info.financing_type == "PU" %} | 
				
			||||
                                <option value="PU" selected="selected">{{ 'Public' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="PU">{{ 'Public' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %} | 
				
			||||
                            {% if info.financing_type == "PR" %} | 
				
			||||
                                <option value="PR" selected="selected">{{ 'Private' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %}     | 
				
			||||
                                <option value="PR">{{ 'Private' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %} | 
				
			||||
                            </select> | 
				
			||||
                         </div> | 
				
			||||
                        <div class="alert alert-info col-md-7 sepe-message-info"> | 
				
			||||
                            {{ 'FinancingTypeMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-md-3 control-label">{{ 'AttendeesCount' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-md-2"> | 
				
			||||
                            <input class="form-control" type="number" name="attendees_count" value="{{ info.attendees_count }}" /> | 
				
			||||
                        </div> | 
				
			||||
                        <div class="alert alert-info col-md-7 sepe-message-info"> | 
				
			||||
                            {{ 'AttendeesCountMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="well"> | 
				
			||||
                        <legend><h4>{{ 'DescriptionAction' | get_plugin_lang('SepePlugin') | upper }}</h4></legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-md-3 control-label">{{ 'NameAction' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-md-9"> | 
				
			||||
                                <input class="form-control" type="text" name="action_name" value="{{ info.action_name }}" /> | 
				
			||||
                                <div class="alert alert-info sepe-message-info sepe-margin-top"> | 
				
			||||
                                    {{ 'NameActionMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                     | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-md-3 control-label">{{ 'GlobalInfo' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-md-9"> | 
				
			||||
                                <textarea class="form-control" name="global_info">{{ info.global_info }}</textarea> | 
				
			||||
                                 <div class="alert alert-info sepe-message-info sepe-margin-top"> | 
				
			||||
                                    {{ 'GlobalInfoMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                                 </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-md-3 control-label">{{ 'Schedule' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-md-9"> | 
				
			||||
                                <textarea class="form-control" name="schedule">{{ info.schedule }}</textarea> | 
				
			||||
                                 <div class="alert alert-info sepe-message-info sepe-margin-top"> | 
				
			||||
                                    {{ 'ScheduleMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                                 </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-md-3 control-label">{{ 'Requirements' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-md-9"> | 
				
			||||
                                <textarea class="form-control" name="requirements">{{ info.requirements }}</textarea> | 
				
			||||
                                 <div class="alert alert-info sepe-message-info sepe-margin-top"> | 
				
			||||
                                    {{ 'RequirementsMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                                 </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-md-3 control-label">{{ 'ContactAction' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-md-9"> | 
				
			||||
                                <textarea class="form-control" name="contact_action">{{ info.contact_action }}</textarea> | 
				
			||||
                                 <div class="alert alert-info sepe-message-info sepe-margin-top"> | 
				
			||||
                                    {{ 'ContactActionMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                                 </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                </fieldset> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
    </form> | 
				
			||||
</div> | 
				
			||||
@ -0,0 +1,269 @@ | 
				
			||||
<script type='text/javascript' src="../js/sepe.js"></script> | 
				
			||||
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/> | 
				
			||||
 | 
				
			||||
<div class="row"> | 
				
			||||
    <div class="col-md-3"> | 
				
			||||
        <div id="course_category_well" class="well"> | 
				
			||||
            <ul class="nav nav-list"> | 
				
			||||
                <li class="nav-header"><h3>{{ 'Options' | get_plugin_lang('SepePlugin') }}:</h3></li> | 
				
			||||
                <li class="sepe-edit-link"> | 
				
			||||
                    <a href="formative-action-edit.php?action_id={{ action_id }}">{{ 'ActionEdit' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                </li> | 
				
			||||
                <li class="sepe-delete-link"> | 
				
			||||
                    <input type="hidden" id="action_id"  value="{{ action_id }}"  /> | 
				
			||||
                    <input type="hidden" id="confirmDeleteAction" value="{{ 'confirmDeleteAction' | get_plugin_lang('SepePlugin') }}" /> | 
				
			||||
                    <a href="formative-action-delete.php" id="delete-action">{{ 'DeleteAction' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                </li> | 
				
			||||
                <li class="sepe-list-link"> | 
				
			||||
                    <a href="formative-actions-list.php">{{ 'ActionsList' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                </li> | 
				
			||||
            </ul> | 
				
			||||
        </div> | 
				
			||||
    </div> | 
				
			||||
    <div class="col-md-9"> | 
				
			||||
        {% if message_info != "" %} | 
				
			||||
            <div class="alert alert-success"> | 
				
			||||
                {{ message_info }} | 
				
			||||
            </div> | 
				
			||||
        {% endif %} | 
				
			||||
        {% if message_error != "" %} | 
				
			||||
            <div class="alert alert-danger"> | 
				
			||||
                {{ message_error }} | 
				
			||||
            </div> | 
				
			||||
        {% endif %} | 
				
			||||
        <div class="well_border"> | 
				
			||||
            <form class="form-horizontal"> | 
				
			||||
                <fieldset> | 
				
			||||
                <legend>{{ 'FormativeAction' | get_plugin_lang('SepePlugin') }}:</legend> | 
				
			||||
                {% if info != false %} | 
				
			||||
                    <div class="well"> | 
				
			||||
                        <legend><h4>{{ 'ActionIdentifier' | get_plugin_lang('SepePlugin') }}: </h4></legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'ActionOrigin' | get_plugin_lang('SepePlugin') }}:</label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text">{{ info.action_origin|e }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'ActionCode' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text">{{ info.action_code|e }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'Situation' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <label class="sepe-input-text"> | 
				
			||||
                                {% if info.situation == "10" %} | 
				
			||||
                                    10-Solicitada Autorización | 
				
			||||
                                {% endif %} | 
				
			||||
                                {% if info.situation == "20" %} | 
				
			||||
                                    20-Programada/Autorizada | 
				
			||||
                                {% endif %} | 
				
			||||
                                {% if info.situation == "30" %} | 
				
			||||
                                    30-Iniciada | 
				
			||||
                                {% endif %} | 
				
			||||
                                {% if info.situation == "40" %} | 
				
			||||
                                    40-Finalizada | 
				
			||||
                                {% endif %} | 
				
			||||
                                {% if info.situation == "50" %} | 
				
			||||
                                    50-Cancelada | 
				
			||||
                                {% endif %} | 
				
			||||
                            </label> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="well sepe-subfield"> | 
				
			||||
                        <legend><h4>{{ 'MainSpecialtyIdentifier' | get_plugin_lang('SepePlugin') }}</h4></legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'SpecialtyOrigin' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text">{{ info.specialty_origin|e }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'ProfessionalArea' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text">{{ info.professional_area|e }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'SpecialtyCode' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text">{{ info.specialty_code|e }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'Duration' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <label class="sepe-input-text"> | 
				
			||||
                            {% if info.duration > 0 %} | 
				
			||||
                                {{ info.duration }} | 
				
			||||
                            {% else %} | 
				
			||||
                                <i>{{ 'Unspecified' | get_plugin_lang('SepePlugin') }}</i> | 
				
			||||
                            {% endif %}     | 
				
			||||
                             </label> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'StartDate' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <label class="sepe-input-text"> | 
				
			||||
                            {% if info.start_date == "0000-00-00" %} | 
				
			||||
                                <i>{{ 'Unspecified' | get_plugin_lang('SepePlugin') }}</i> | 
				
			||||
                            {% else %} | 
				
			||||
                                {{ start_date }} | 
				
			||||
                            {% endif %}                         | 
				
			||||
                            </label> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'EndDate' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <label class="sepe-input-text"> | 
				
			||||
                            {% if info.end_date == "0000-00-00" %} | 
				
			||||
                                <i>{{ 'Unspecified' | get_plugin_lang('SepePlugin') }}</i> | 
				
			||||
                            {% else %} | 
				
			||||
                                {{ end_date }} | 
				
			||||
                            {% endif %}  | 
				
			||||
                            </label> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'FullItineraryIndicator' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <label class="sepe-input-text">{{ info.full_itinerary_indicator }}</label> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'FinancingType' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <label class="sepe-input-text"> | 
				
			||||
                            {% if info.financing_type == "PU" %} | 
				
			||||
                                Pública | 
				
			||||
                            {% endif %} | 
				
			||||
                            {% if info.financing_type == "PR" %} | 
				
			||||
                                Privada | 
				
			||||
                            {% endif %} | 
				
			||||
                            {% if info.financing_type == "" %} | 
				
			||||
                                <i>{{ 'Unspecified' | get_plugin_lang('SepePlugin') }}</i> | 
				
			||||
                            {% endif %} | 
				
			||||
                            </label> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'AttendeesCount' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <label class="sepe-input-text">{{ info.attendees_count }}</label> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="well"> | 
				
			||||
                    <legend><h4>{{ 'DescriptionAction' | get_plugin_lang('SepePlugin') }}</h4></legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'NameAction' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text">{{ info.action_name|e }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'GlobalInfo' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text">{{ info.global_info|e }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'Schedule' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text">{{ info.schedule|e }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'Requirements' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text">{{ info.requirements|e }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'ContactAction' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text">{{ info.contact_action|e }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                {% else %} | 
				
			||||
                    <div class="error-message">{{ 'NoFormativeAction' | get_plugin_lang('SepePlugin') }}</div> | 
				
			||||
                {% endif %} | 
				
			||||
                </fieldset> | 
				
			||||
            </form> | 
				
			||||
         </div> | 
				
			||||
         <div class="well_border"> | 
				
			||||
            <form class="form-horizontal"> | 
				
			||||
                <fieldset> | 
				
			||||
                <legend>{{ 'Specialtys' | get_plugin_lang('SepePlugin') }}: | 
				
			||||
                    <a href="specialty-action-edit.php?new_specialty=1&action_id={{ action_id }}" class="btn btn-info pull-right">{{ 'CreateSpecialty' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                </legend> | 
				
			||||
                <input type="hidden" id="confirmDeleteSpecialty" value="{{ 'confirmDeleteSpecialty' | get_plugin_lang('SepePlugin') }}" /> | 
				
			||||
                {% for specialty in listSpecialty %} | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'Specialty' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <table width="100%" class="sepe-input-text"> | 
				
			||||
                            <tr> | 
				
			||||
                                <td>{{ specialty.specialty_origin }} {{ specialty.professional_area }} {{ specialty.specialty_code }}</td> | 
				
			||||
                                <td> | 
				
			||||
                                    <a href="#" class="btn btn-danger btn-sm pull-right sepe-margin-side delete-specialty" id="specialty{{ specialty.id }}">{{ 'Delete' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                    <a href="specialty-action-edit.php?new_specialty=0&specialty_id={{ specialty.id }}&action_id={{ action_id }}" class="btn btn-warning btn-sm pull-right sepe-margin-side">{{ 'Edit' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                </td> | 
				
			||||
                            </tr> | 
				
			||||
                            </table> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                {% endfor %}                 | 
				
			||||
                </fieldset> | 
				
			||||
            </form> | 
				
			||||
         </div> | 
				
			||||
          | 
				
			||||
         <div class="well_border"> | 
				
			||||
            <form class="form-horizontal"> | 
				
			||||
                <fieldset> | 
				
			||||
                <legend>{{ 'Participants' | get_plugin_lang('SepePlugin') }}: | 
				
			||||
                    <a href="participant-action-edit.php?new_participant=1&action_id={{ action_id }}" class="btn btn-info pull-right">{{ 'CreateParticipant' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                </legend> | 
				
			||||
                <input type="hidden" id="confirmDeleteParticipant" value="{{ 'confirmDeleteParticipant' | get_plugin_lang('SepePlugin') }}" /> | 
				
			||||
                {% for participant in listParticipant %} | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'Participant' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <table width="100%" class="sepe-input-text"> | 
				
			||||
                            <tr> | 
				
			||||
                                <td>{{ participant.firstname }} {{ participant.lastname }} </td> | 
				
			||||
                                <td>{{ participant.document_number }} {{ participant.documente_letter }} </td> | 
				
			||||
                                <td> | 
				
			||||
                                    <a href="#" class="btn btn-danger btn-sm pull-right sepe-margin-side delete-participant" id="participant{{ participant.id }}">{{ 'Delete' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                    <a href="participant-action-edit.php?new_participant=0&participant_id={{ participant.id }}&action_id={{ action_id }}" class="btn btn-warning btn-sm pull-right sepe-margin-side">{{ 'Edit' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                </td> | 
				
			||||
                            </tr> | 
				
			||||
                            </table> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                {% endfor %}  | 
				
			||||
                </fieldset> | 
				
			||||
            </form> | 
				
			||||
         </div> | 
				
			||||
    </div> | 
				
			||||
</div> | 
				
			||||
@ -0,0 +1,71 @@ | 
				
			||||
<script type='text/javascript' src="../js/sepe.js"></script> | 
				
			||||
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/> | 
				
			||||
 | 
				
			||||
<div class="row"> | 
				
			||||
    <div class="col-md-12"> | 
				
			||||
        {% if message_info != "" %} | 
				
			||||
            <div class="alert alert-success"> | 
				
			||||
                {{ message_info }} | 
				
			||||
            </div> | 
				
			||||
        {% endif %} | 
				
			||||
        {% if message_error != "" %} | 
				
			||||
            <div class="alert alert-danger"> | 
				
			||||
                {{ message_error }} | 
				
			||||
            </div> | 
				
			||||
        {% endif %} | 
				
			||||
        <div class="page-header"> | 
				
			||||
       		<h2>{{ 'FormativesActionsList' | get_plugin_lang('SepePlugin') }}</h2> | 
				
			||||
        </div> | 
				
			||||
         | 
				
			||||
        <div class="report_section"> | 
				
			||||
			{% if course_action_list|length > 0 %} | 
				
			||||
    			<input type="hidden" id="confirmDeleteUnlinkAction" value="{{ 'confirmDeleteAction' | get_plugin_lang('SepePlugin') }}" /> | 
				
			||||
                <table class="table table-bordered sepe-box-center" style="width:auto">  | 
				
			||||
            	{% for course in course_action_list %} | 
				
			||||
                	<tr> | 
				
			||||
                        <td class="sepe-vertical-align-middle">{{ 'Course' | get_lang }}: <strong>{{ course.title }}</strong> -> {{ 'ActionId' | get_plugin_lang('SepePlugin') | upper }}: <strong>{{ course.action_origin }} {{ course.action_code }}</strong></td> | 
				
			||||
                        <td class="text-center"> | 
				
			||||
                            <a href="#" class="btn btn-danger btn-sm sepe-margin-side delete-action" id="delete-action-id{{ course.action_id }}">{{ 'Delete' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                            <a href="#" class="btn btn-warning btn-sm sepe-margin-side unlink-action" id="unlink-action-id{{ course.id }}">{{ 'Unlink' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                            <a href="formative-action.php?cid={{ course.course_id }}" class="btn btn-info btn-sm sepe-margin-side">{{ 'SeeOrEdit' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                        </td> | 
				
			||||
                   	</tr> | 
				
			||||
                {% endfor %}  | 
				
			||||
                </table> | 
				
			||||
            {% else %} | 
				
			||||
            	<div class="alert alert-warning"> | 
				
			||||
                    {{ 'NoFormativeActionToCourse' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
        </div> | 
				
			||||
        <hr /> | 
				
			||||
        <div class="page-header"> | 
				
			||||
       		<h2>{{ 'CourseFreeOfFormativeAction' | get_plugin_lang('SepePlugin') }}</h2> | 
				
			||||
        </div> | 
				
			||||
 | 
				
			||||
        <div class="report_section"> | 
				
			||||
            <input type="hidden" id="alertAssignAction" value="{{ 'alertAssignAction'| get_plugin_lang('SepePlugin') }}" /> | 
				
			||||
			<table class="table table-striped">  | 
				
			||||
        	{% for course in course_free_list %} | 
				
			||||
            	<tr> | 
				
			||||
                    <td class="sepe-vertical-align-middle">{{ 'Course' | get_lang }}: <strong>{{ course.title }}</strong></td> | 
				
			||||
                    <td class="text-center sepe-vertical-align-middle"> | 
				
			||||
                    	<select class="chzn-select" id="action_formative{{ course.id }}" style="width:250px"> | 
				
			||||
                        	<option value="">{{ 'SelectAction' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% for action in action_free_list %} | 
				
			||||
                            	<option value="{{ action.id }}"> | 
				
			||||
                                    {{ action.action_origin }} {{ action.action_code }} | 
				
			||||
                                </option> | 
				
			||||
                            {% endfor %}   | 
				
			||||
                        </select> | 
				
			||||
                    </td> | 
				
			||||
                    <td class="text-center sepe-vertical-align-middle" style="min-width:240px"> | 
				
			||||
                        <a href="#" class="btn btn-info btn-sm sepe-margin-side assign_action" id="course_id{{ course.id }}">{{ 'AssignAction' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                        <a href="formative-action-edit.php?new_action=1&cid={{ course.id }}" class="btn btn-success btn-sm sepe-margin-side">{{ 'CreateAction' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                    </td> | 
				
			||||
               	</tr> | 
				
			||||
            {% endfor %}  | 
				
			||||
            </table> | 
				
			||||
        </div>  | 
				
			||||
    </div> | 
				
			||||
</div> | 
				
			||||
@ -0,0 +1,86 @@ | 
				
			||||
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/> | 
				
			||||
 | 
				
			||||
<div class="row"> | 
				
			||||
    <form class="form-horizontal" action="identification-data-edit.php" method="post" name="form_data_center"> | 
				
			||||
        <div class="col-md-3"> | 
				
			||||
            <div id="course_category_well" class="well"> | 
				
			||||
                <ul class="nav nav-list"> | 
				
			||||
                    <li class="nav-header"><h3>{{ 'Options' | get_plugin_lang('SepePlugin') }}:</h3></li> | 
				
			||||
                    <li> | 
				
			||||
                        <input class="btn btn-primary sepe-btn-menu-side" type="submit" value="{{ 'SaveChanges' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                        <input type="hidden" name="id" value="{{ info.id }}" /> | 
				
			||||
                        <input type="hidden" name="sec_token" value="{{ sec_token }}" /> | 
				
			||||
                    </li> | 
				
			||||
                    <li> | 
				
			||||
                        <input class="btn btn-warning sepe-btn-menu-side" type="reset" value="{{ 'Reset' | get_plugin_lang('SepePlugin') }}" /> | 
				
			||||
                    </li> | 
				
			||||
                </ul> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
        <div class="col-md-9"> | 
				
			||||
            {% if message_info != "" %} | 
				
			||||
                <div class="alert alert-success"> | 
				
			||||
                    {{ message_info }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            {% if message_error != "" %} | 
				
			||||
                <div class="alert alert-danger"> | 
				
			||||
                    {{ message_error }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            <div class="well_border span8"> | 
				
			||||
                <fieldset> | 
				
			||||
                    <legend>{{ 'DataCenter' | get_plugin_lang('SepePlugin') }}</legend> | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-sm-3 control-label">{{ 'CenterOrigin' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                        <div class="col-sm-2"> | 
				
			||||
                            <input type="text" class="form-control" name="center_origin" value="{{ info.center_origin }}" /> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-sm-3 control-label">{{ 'CenterCode' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                        <div class="col-sm-2"> | 
				
			||||
                            <input type="text" class="form-control" name="center_code" value="{{ info.center_code }}" /> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-sm-3 control-label">{{ 'NameCenter' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <input type="text" class="form-control" name="center_name" value="{{ info.center_name }}" /> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-sm-3 control-label">{{ 'PlatformUrl' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <input type="text" class="form-control" name="url" value="{{ info.url }}" style="width:100%"/> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-sm-3 control-label">{{ 'TrackingUrl' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <input type="text" class="form-control" name="tracking_url" value="{{ info.tracking_url }}" style="width:100%" /> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-sm-3 control-label">{{ 'Phone' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                        <div class="col-sm-3"> | 
				
			||||
                            <input type="text" class="form-control" name="phone" value="{{ info.phone }}" /> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-sm-3 control-label">{{ 'Mail' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                        <div class="col-sm-3"> | 
				
			||||
                            <input type="text" class="form-control" name="mail" value="{{ info.mail }}" /> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                </fieldset> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
    </form> | 
				
			||||
</div> | 
				
			||||
@ -0,0 +1,96 @@ | 
				
			||||
<script type='text/javascript' src="../js/sepe.js"></script> | 
				
			||||
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/> | 
				
			||||
 | 
				
			||||
<div class="row"> | 
				
			||||
    <div class="col-md-3"> | 
				
			||||
        <div id="course_category_well" class="well"> | 
				
			||||
            <ul class="nav nav-list"> | 
				
			||||
                <li class="nav-header"><h3>{{ 'Options' | get_plugin_lang('SepePlugin') }}:</h3></li> | 
				
			||||
                <li class="sepe-edit-link"> | 
				
			||||
                    <a href="identification-data-edit.php"> | 
				
			||||
                    {% if info == false %} | 
				
			||||
                        {{ 'NewCenter' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                    {% else %} | 
				
			||||
                        {{ 'EditCenter' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                    {% endif %} | 
				
			||||
                    </a> | 
				
			||||
                </li> | 
				
			||||
                <li class="sepe-delete-link"> | 
				
			||||
                    <input type="hidden" id="confirmDeleteCenterData" value="{{ 'confirmDeleteCenterData'|get_plugin_lang('SepePlugin') }}" /> | 
				
			||||
                    <a href="identification-data-delete.php" id="delete-center-data">{{ 'DeleteCenter' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                </li> | 
				
			||||
            </ul> | 
				
			||||
        </div> | 
				
			||||
    </div> | 
				
			||||
    <div class="col-md-9"> | 
				
			||||
        {% if message_info != "" %} | 
				
			||||
            <div class="alert alert-success"> | 
				
			||||
                {{ message_info }} | 
				
			||||
            </div> | 
				
			||||
        {% endif %} | 
				
			||||
        {% if message_error != "" %} | 
				
			||||
            <div class="alert alert-danger"> | 
				
			||||
                {{ message_error }} | 
				
			||||
            </div> | 
				
			||||
        {% endif %} | 
				
			||||
        <div class="well_border"> | 
				
			||||
            <form class="form-horizontal"> | 
				
			||||
                <fieldset> | 
				
			||||
                    <legend>{{ 'DataCenter' | get_plugin_lang('SepePlugin') }}</legend> | 
				
			||||
                    {% if info != false %} | 
				
			||||
                        <div class="form-group "> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'CenterOrigin' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text text-primary">{{ info.center_origin }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
 | 
				
			||||
                        <div class="form-group "> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'CenterCode' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text text-primary">{{ info.center_code }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
         | 
				
			||||
                        <div class="form-group "> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'NameCenter' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text text-primary">{{ info.center_name }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
         | 
				
			||||
                        <div class="form-group "> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'PlatformUrl' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text text-primary">{{ info.url }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
         | 
				
			||||
                        <div class="form-group "> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'TrackingUrl' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text text-primary">{{ info.tracking_url }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
         | 
				
			||||
                        <div class="form-group "> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'Phone' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text text-primary">{{ info.phone }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
         | 
				
			||||
                        <div class="form-group "> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'Mail' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <label class="sepe-input-text text-primary">{{ info.mail }}</label> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    {% else %} | 
				
			||||
                        <div class="alert alert-danger">{{ 'NoIdentificationData' | get_plugin_lang('SepePlugin') }}</div> | 
				
			||||
                    {% endif %} | 
				
			||||
                </fieldset> | 
				
			||||
            </form> | 
				
			||||
        </div> | 
				
			||||
    </div> | 
				
			||||
</div> | 
				
			||||
@ -0,0 +1,318 @@ | 
				
			||||
<script type='text/javascript' src="../js/sepe.js"></script> | 
				
			||||
<script type='text/javascript'> | 
				
			||||
    $(document).ready(function () { | 
				
			||||
        $("select[name='company_tutor_id']").change(function(){ | 
				
			||||
            if ($(this).val() == "new_company_tutor") { | 
				
			||||
                $("#new-company-tutor-layer").show(); | 
				
			||||
            } else { | 
				
			||||
                $("#new-company-tutor-layer").hide(); | 
				
			||||
            } | 
				
			||||
        }); | 
				
			||||
         | 
				
			||||
        $("select[name='training_tutor_id']").change(function(){ | 
				
			||||
            if ($(this).val() == "new_training_tutor") { | 
				
			||||
                $("#new-training-tutor-layer").show(); | 
				
			||||
            } else { | 
				
			||||
                $("#new-training-tutor-layer").hide(); | 
				
			||||
            } | 
				
			||||
        }); | 
				
			||||
    }); | 
				
			||||
</script> | 
				
			||||
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/> | 
				
			||||
 | 
				
			||||
<div class="row"> | 
				
			||||
    <form class="form-horizontal" action="participant-action-edit.php" method="post" name="form_participant_action"> | 
				
			||||
        <div class="col-md-3"> | 
				
			||||
            <div id="course_category_well" class="well"> | 
				
			||||
                <ul class="nav nav-list"> | 
				
			||||
                    <li class="nav-header"><h3>{{ 'Actions' | get_plugin_lang('SepePlugin') }}:</h3></li> | 
				
			||||
                    <li> | 
				
			||||
                        {% if new_participant == "1" %} | 
				
			||||
                            <input type="hidden" name="action_id" value="{{ action_id }}" /> | 
				
			||||
                            <input type="hidden" name="new_participant" value="1" /> | 
				
			||||
                        {% else %} | 
				
			||||
                            <input type="hidden" name="action_id" value="{{ action_id }}" /> | 
				
			||||
                            <input type="hidden" name="participant_id" value="{{ participant_id }}" /> | 
				
			||||
                            <input type="hidden" name="new_participant" value="0" /> | 
				
			||||
                        {% endif %} | 
				
			||||
                        <input type="hidden" name="sec_token" value="{{ sec_token }}" /> | 
				
			||||
                        <input class="btn btn-primary sepe-btn-menu-side" type="submit" value="{{ 'SaveChanges' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                    <li> | 
				
			||||
                        <input class="btn btn-warning sepe-btn-menu-side" type="reset" value="{{ 'Reset' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                </ul> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
        <div class="col-md-9"> | 
				
			||||
            {% if message_info != "" %} | 
				
			||||
                <div class="alert alert-success"> | 
				
			||||
                    {{ message_info }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            {% if message_error != "" %} | 
				
			||||
                <div class="alert alert-danger"> | 
				
			||||
                    {{ message_error }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            <div class="well_border"> | 
				
			||||
                <fieldset> | 
				
			||||
                    <legend>{{ 'FormativeActionParticipant' | get_plugin_lang('SepePlugin') }}</legend> | 
				
			||||
                    <div class="well sepe-subfield"> | 
				
			||||
                        <legend><h4>{{ 'UserPlatformList' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'Student' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <input type="hidden" id="alertSelectUser" value="{{ 'alertSelectUser'|get_plugin_lang('SepePlugin') }}" /> | 
				
			||||
                                <select name="platform_user_id" id="platform_user_id" class="form-control"> | 
				
			||||
                                    {% if info_user_platform is empty %} | 
				
			||||
                                        <option value="" selected="selected"></option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value=""></option> | 
				
			||||
                                        <option value="{{ info_user_platform.user_id }}" selected="selected">{{ info_user_platform.firstname }} {{ info_user_platform.lastname }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                              | 
				
			||||
                                    {% for student in listStudent %} | 
				
			||||
                                        <option value="{{ student.user_id }}">{{ student.firstname }} {{ student.lastname }}</option> | 
				
			||||
                                    {% endfor %} | 
				
			||||
                                </select> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                    <div class="well sepe-subfield"> | 
				
			||||
                        <legend><h4>{{ 'ParticipantIdentifier' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'DocumentType' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <select  name="document_type" class="form-control"> | 
				
			||||
                                    <option value=""></option> | 
				
			||||
                                    {% if info.document_type == "D" %} | 
				
			||||
                                        <option value="D" selected="selected">{{ 'DocumentTypeD' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="D">{{ 'DocumentTypeD' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                    {% if info.document_type == "E" %} | 
				
			||||
                                        <option value="E" selected="selected">{{ 'DocumentTypeE' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="E">{{ 'DocumentTypeE' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                    {% if info.document_type == "U" %} | 
				
			||||
                                        <option value="U" selected="selected">{{ 'DocumentTypeU' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="U">{{ 'DocumentTypeU' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                    {% if info.document_type == "G" %} | 
				
			||||
                                        <option value="G" selected="selected">{{ 'DocumentTypeG' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="G">{{ 'DocumentTypeG' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                    {% if info.document_type == "W" %} | 
				
			||||
                                        <option value="W" selected="selected">{{ 'DocumentTypeW' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="W">{{ 'DocumentTypeW' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                    {% if info.document_type == "H" %} | 
				
			||||
                                        <option value="H" selected="selected">{{ 'DocumentTypeH' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="H">{{ 'DocumentTypeH' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                </select> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'DocumentNumber' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-3"> | 
				
			||||
                                <input class="form-control" type="text" name="document_number" value="{{ info.document_number }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'DocumentLetter' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-2"> | 
				
			||||
                                <input class="form-control" type="text" name="document_letter" value="{{ info.document_letter }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="alert alert-warning"> | 
				
			||||
                            {{ 'DocumentFormatMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'CompetenceKey' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <input class="form-control" type="text" name="key_competence" value="{{ info.key_competence }}" /> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="well sepe-subfield"> | 
				
			||||
                        <legend class="sepe-subfield">{{ 'TrainingAgreement' | get_plugin_lang('SepePlugin') | upper }}: </legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'ContractId' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <input class="form-control" type="text" name="contract_id" value="{{ info.contract_id }}" /> | 
				
			||||
                                {{ 'ContractIdMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                                 | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'CompanyFiscalNumber' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <input class="form-control" type="text" name="company_fiscal_number" value="{{ info.company_fiscal_number }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="well"> | 
				
			||||
                        <legend class="sepe-subfield2">{{ 'TutorIdCompany' | get_plugin_lang('SepePlugin') | upper }}: </legend> | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="control-label col-sm-3">{{ 'CompanyTutorsList' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                                <div class="col-sm-9"> | 
				
			||||
                                    <select name="company_tutor_id" class="form-control"> | 
				
			||||
                                        <option value="new_company_tutor">{{ 'CreateNewTutorCompany' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                        {% for tutor in list_tutor_company %} | 
				
			||||
                                            {% if tutor.id == info.company_tutor_id or ( info|length == 0 and tutor.id == "1" ) %} | 
				
			||||
                                                <option value="{{ tutor.id }}" selected="selected">{{ tutor.alias }}</option> | 
				
			||||
                                            {% else %} | 
				
			||||
                                                <option value="{{ tutor.id }}">{{ tutor.alias }}</option>    | 
				
			||||
                                            {% endif %} | 
				
			||||
                                        {% endfor %} | 
				
			||||
                                    </select> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                             | 
				
			||||
                            <div id="new-company-tutor-layer" style="display:none"> | 
				
			||||
                                <div class="form-group"> | 
				
			||||
                                    <label class="control-label col-sm-3">{{ 'Name' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                                    <div class="col-sm-9"> | 
				
			||||
                                        <input class="form-control" type="text" name="tutor_company_alias" value="" /> | 
				
			||||
                                    </div> | 
				
			||||
                                </div>                       | 
				
			||||
                             | 
				
			||||
                                <div class="form-group"> | 
				
			||||
                                    <label class="control-label col-sm-3">{{ 'DocumentType' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                    <div class="col-sm-9"> | 
				
			||||
                                | 
				
			||||
                                    <select  name="tutor_company_document_type" class="form-control"> | 
				
			||||
                                        <option value="" selected="selected"></option> | 
				
			||||
                                        <option value="D">{{ 'DocumentTypeD' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                        <option value="E">{{ 'DocumentTypeE' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                        <option value="U">{{ 'DocumentTypeU' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                        <option value="G">{{ 'DocumentTypeG' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                        <option value="W">{{ 'DocumentTypeW' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                        <option value="H">{{ 'DocumentTypeH' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    </select> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
         | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="control-label col-sm-3">{{ 'DocumentNumber' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-3"> | 
				
			||||
                                    <input class="form-control" type="text" name="tutor_company_document_number" value="" /> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                                 | 
				
			||||
                                <div class="form-group"> | 
				
			||||
                                    <label class="control-label col-sm-3">{{ 'DocumentLetter' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                    <div class="col-sm-2"> | 
				
			||||
                                        <input class="form-control" type="text" name="tutor_company_document_letter" value="" /> | 
				
			||||
                                    </div> | 
				
			||||
                                </div> | 
				
			||||
                                 | 
				
			||||
                                <div class="alert alert-warning mensaje_info"> | 
				
			||||
                                    {{ 'DocumentFormatMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                         | 
				
			||||
                        <div class="well"> | 
				
			||||
                        <legend class="sepe-subfield2">{{ 'TutorIdTraining' | get_plugin_lang('SepePlugin') | upper }}: </legend> | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="control-label col-sm-3">{{ 'TrainingTutorsList' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                                <div class="col-sm-9"> | 
				
			||||
                                    <select name="training_tutor_id" class="form-control"> | 
				
			||||
                                        <option value="new_training_tutor">{{ 'CreateNewTutorTraining' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                        {% for tutor in list_tutor_training %} | 
				
			||||
                                            {% if tutor.id == info.training_tutor_id or ( info|length == 0 and tutor.id == "1" ) %} | 
				
			||||
                                                <option value="{{ tutor.id }}" selected="selected">{{ tutor.alias }}</option> | 
				
			||||
                                            {% else %} | 
				
			||||
                                                <option value="{{ tutor.id }}">{{ tutor.alias }}</option>    | 
				
			||||
                                            {% endif %} | 
				
			||||
                                        {% endfor %} | 
				
			||||
                                    </select> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                         | 
				
			||||
                            <div id="new-training-tutor-layer" style="display:none"> | 
				
			||||
                                <div class="form-group"> | 
				
			||||
                                    <label class="control-label col-sm-3">{{ 'Name' | get_plugin_lang('SepePlugin') }}</label> | 
				
			||||
                                    <div class="col-sm-9"> | 
				
			||||
                                        <input class="form-control" type="text" name="tutor_training_alias" value="" /> | 
				
			||||
                                    </div> | 
				
			||||
                                </div>  | 
				
			||||
                             | 
				
			||||
                               <div class="form-group"> | 
				
			||||
                                    <label class="control-label col-sm-3">{{ 'DocumentType' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                    <div class="col-sm-9"> | 
				
			||||
                                        <select  name="tutor_training_document_type" class="form-control"> | 
				
			||||
                                            <option value="" selected="selected"></option> | 
				
			||||
                                            <option value="D">{{ 'DocumentTypeD' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                            <option value="E">{{ 'DocumentTypeE' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                            <option value="U">{{ 'DocumentTypeU' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                            <option value="G">{{ 'DocumentTypeG' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                            <option value="W">{{ 'DocumentTypeW' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                            <option value="H">{{ 'DocumentTypeH' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                        </select> | 
				
			||||
                                    </div> | 
				
			||||
                                </div> | 
				
			||||
                            | 
				
			||||
                                <div class="form-group"> | 
				
			||||
                                    <label class="control-label col-sm-3">{{ 'DocumentNumber' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                    <div class="col-sm-3"> | 
				
			||||
                                        <input class="form-control" type="text" name="tutor_training_document_number" value="" /> | 
				
			||||
                                    </div> | 
				
			||||
                                </div> | 
				
			||||
                                 | 
				
			||||
                                <div class="form-group"> | 
				
			||||
                                    <label class="control-label col-sm-3">{{ 'DocumentLetter' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                    <div class="col-sm-2"> | 
				
			||||
                                        <input class="form-control" type="text" name="tutor_training_document_letter" value="" /> | 
				
			||||
                                    </div> | 
				
			||||
                                </div> | 
				
			||||
                             | 
				
			||||
                                <div class="alert alert-warning"> | 
				
			||||
                                    {{ 'DocumentFormatMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </div>     | 
				
			||||
                     | 
				
			||||
                    <div class="well sepe-subfield"> | 
				
			||||
                        {% if new_participant == "1" %} | 
				
			||||
                            <legend>{{ 'SpecialtiesParcipant' | get_plugin_lang('SepePlugin') | upper }}: </legend> | 
				
			||||
                            <div class="alert alert-warning">{{ 'SpecialtiesParcipantMessage' | get_plugin_lang('SepePlugin') }}</div> | 
				
			||||
                        {% else %} | 
				
			||||
                            <legend>{{ 'SpecialtiesParcipant' | get_plugin_lang('SepePlugin') | upper }}:  | 
				
			||||
                                <a href="participant-specialty-edit.php?new_specialty=1&participant_id={{ info.id }}&action_id={{ action_id }}" class="btn btn-sm btn-info pull-right">{{ 'CreateSpecialty' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                            </legend> | 
				
			||||
                            <input type="hidden" id="confirmDeleteParticipantSpecialty" value="{{ 'confirmDeleteParticipantSpecialty'|get_plugin_lang('SepePlugin') }}" /> | 
				
			||||
                            {% for specialty in listParticipantSpecialty %} | 
				
			||||
                                <div class="form-group"> | 
				
			||||
                                    <label class="control-label col-sm-3">{{ 'Specialty' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                    <div class="col-sm-9"> | 
				
			||||
                                        <label class="sepe-input-text">{{ specialty.specialty_origin }} {{ specialty.professional_area }} {{ specialty.specialty_code }} | 
				
			||||
                                            <a href="#" class="btn btn-danger btn-sm pull-right sepe-margin-side delete-specialty-participant" id="specialty{{ specialty.id }}">{{ 'Delete' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                            <a href="participant-specialty-edit.php?new_specialty=0&participant_id={{ info.id }}&specialty_id={{ specialty.id }}&action_id={{ action_id }}" class="btn btn-warning btn-sm pull-right sepe-margin-side">{{ 'Edit' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                        </label> | 
				
			||||
                                    </div> | 
				
			||||
                                </div> | 
				
			||||
                            {% endfor %} | 
				
			||||
                        {% endif %} | 
				
			||||
                    </div> | 
				
			||||
                </fieldset> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
    </form> | 
				
			||||
</div> | 
				
			||||
@ -0,0 +1,322 @@ | 
				
			||||
<script type='text/javascript' src="../js/sepe.js"></script> | 
				
			||||
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/> | 
				
			||||
 | 
				
			||||
<div class="row"> | 
				
			||||
    <form class="form-horizontal" action="participant-specialty-edit.php" method="post" name="form_specialty_action"> | 
				
			||||
        <div class="col-md-3"> | 
				
			||||
            <div id="course_category_well" class="well"> | 
				
			||||
                <ul class="nav nav-list"> | 
				
			||||
                    <li class="nav-header"><h3>{{ 'Actions' | get_plugin_lang('SepePlugin') }}:</h3></li> | 
				
			||||
                    <li> | 
				
			||||
                        {% if new_specialty == "1" %} | 
				
			||||
                            <input type="hidden" name="action_id" value="{{ action_id }}" /> | 
				
			||||
                            <input type="hidden" name="participant_id" value="{{ participant_id }}" /> | 
				
			||||
                            <input type="hidden" name="new_specialty" value="1" /> | 
				
			||||
                        {% else %} | 
				
			||||
                            <input type="hidden" name="action_id" value="{{ action_id }}" /> | 
				
			||||
                            <input type="hidden" name="specialty_id" value="{{ specialty_id }}" /> | 
				
			||||
                            <input type="hidden" name="participant_id" value="{{ participant_id }}" /> | 
				
			||||
                            <input type="hidden" name="new_specialty" value="0" /> | 
				
			||||
                        {% endif %} | 
				
			||||
                        <input type="hidden" name="sec_token" value="{{ sec_token }}" /> | 
				
			||||
                        <input class="btn btn-primary sepe-btn-menu-side" type="submit" value="{{ 'SaveChanges' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                    <li> | 
				
			||||
                        <input class="btn btn-warning sepe-btn-menu-side" type="reset" value="{{ 'Reset' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                </ul> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
        <div class="col-md-9"> | 
				
			||||
            {% if message_info != "" %} | 
				
			||||
                <div class="alert alert-success"> | 
				
			||||
                    {{ message_info }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            {% if message_error != "" %} | 
				
			||||
                <div class="alert alert-danger"> | 
				
			||||
                    {{ message_error }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            <div class="well_border"> | 
				
			||||
                <fieldset> | 
				
			||||
                    <legend>{{ 'SpecialtiesParcipant' | get_plugin_lang('SepePlugin') | upper }}</legend> | 
				
			||||
                    <div class="well sepe-subfield"> | 
				
			||||
                        <legend><h4>{{ 'SpecialtyIdentifier' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'SpecialtyOrigin' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <input class="form-control" type="text" name="specialty_origin" value="{{ info.specialty_origin }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'ProfessionalArea' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <input class="form-control" type="text" name="professional_area" value="{{ info.professional_area }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'SpecialtyCode' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <input class="form-control" type="text" name="specialty_code" value="{{ info.specialty_code }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-lg-3">{{ 'RegistrationDate' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-lg-4"> | 
				
			||||
                            <select name="day_registration" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in 1..31 %} | 
				
			||||
                                    <option value="{{ i }}" {% if day_registration == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                            / | 
				
			||||
                            <select name="month_registration" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in 1..12 %} | 
				
			||||
                                    <option value="{{ i }}" {% if month_registration == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                            / | 
				
			||||
                            <select name="year_registration" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in list_year %} | 
				
			||||
                                    {% if year_registration == i %} | 
				
			||||
                                        <option value="{{ i }}" selected="selected">{{ i }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="{{ i }}">{{ i }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                        </div> | 
				
			||||
                        <div class="alert alert-info col-lg-5 sepe-message-info"> | 
				
			||||
                            {{ 'RegistrationDateMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-lg-3">{{ 'LeavingDate' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-lg-4"> | 
				
			||||
                            <select name="day_leaving" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in 1..31 %} | 
				
			||||
                                    <option value="{{ i }}" {% if day_leaving == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                            / | 
				
			||||
                            <select name="month_leaving" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in 1..12 %} | 
				
			||||
                                    <option value="{{ i }}" {% if month_leaving == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                            / | 
				
			||||
                            <select name="year_leaving" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in list_year %} | 
				
			||||
                                    {% if year_leaving == i %} | 
				
			||||
                                        <option value="{{ i }}" selected="selected">{{ i }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="{{ i }}">{{ i }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                        </div> | 
				
			||||
                        <div class="alert alert-info col-lg-5"> | 
				
			||||
                            {{ 'LeavingDateMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="well sepe-subfield"> | 
				
			||||
                        {% if new_specialty == "1" %} | 
				
			||||
                            <legend>{{ 'ClassroomTutorials' | get_plugin_lang('SepePlugin') | upper }}: </legend> | 
				
			||||
                            <div class="alert alert-warning"> | 
				
			||||
                                {{ 'ClassroomTutorialsMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                            </div> | 
				
			||||
                        {% else %} | 
				
			||||
                            <legend>{{ 'ClassroomTutorials' | get_plugin_lang('SepePlugin') | upper }}:  | 
				
			||||
                                <a href="specialty-tutorial-edit.php?new_tutorial=1&specialty_id={{ info.id }}&action_id={{ action_id }}" class="btn btn-sm btn-info pull-right">{{ 'CreateClassroomTutorial' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                            </legend> | 
				
			||||
                            {% for tutorial in listSpecialtyTutorials %} | 
				
			||||
                                <div class="form-group"> | 
				
			||||
                                    <label class="control-label col-sm-3">{{ 'ClassroomTutorial' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                    <div class="col-sm-9"> | 
				
			||||
                                        <label class="campo_texto">{{ tutorial.center_origin }} {{ tutorial.center_code }} | 
				
			||||
                                        <a href="#" class="btn btn-danger btn-sm pull-right sepe-margin-side del_classroom" id="tutorial{{ tutorial.id }}">{{ 'Delete' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                        <a href="specialty-tutorial-edit.php?new_tutorial=0&specialty_id={{ info.id }}&tutorial_id={{ tutorial.id }}&action_id={{ action_id }}" class="btn btn-warning btn-sm pull-right sepe-margin-side">{{ 'Edit' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                        </label> | 
				
			||||
                                    </div> | 
				
			||||
                                </div> | 
				
			||||
                            {% endfor %} | 
				
			||||
                        {% endif %} | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="well sepe-subfield"> | 
				
			||||
                        <legend><h4>{{ 'FinalEvaluation' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend> | 
				
			||||
                        <div class="well"> | 
				
			||||
                            <legend class="sepe-subfield2">{{ 'FinalEvaluationClassroom' | get_plugin_lang('SepePlugin') | upper }}</legend> | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="control-label col-sm-3">{{ 'CenterOrigin' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-9"> | 
				
			||||
                                    <input class="form-control" type="text" name="center_origin" value="{{ info.center_origin }}" /> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                             | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="control-label col-sm-3">{{ 'CenterCode' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-9"> | 
				
			||||
                                    <input class="form-control" type="text" name="center_code" value="{{ info.center_code }}" /> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-lg-3">{{ 'StartDate' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-lg-4"> | 
				
			||||
                                <select name="day_start" class="form-control sepe-slt-date"> | 
				
			||||
                                    <option value=""></option> | 
				
			||||
                                    {% for i in 1..31 %} | 
				
			||||
                                        <option value="{{ i }}" {% if day_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                    {% endfor %} | 
				
			||||
                                </select> | 
				
			||||
                                / | 
				
			||||
                                <select name="month_start" class="form-control sepe-slt-date"> | 
				
			||||
                                    <option value=""></option> | 
				
			||||
                                    {% for i in 1..12 %} | 
				
			||||
                                        <option value="{{ i }}" {% if month_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                    {% endfor %} | 
				
			||||
                                </select> | 
				
			||||
                                / | 
				
			||||
                                <select name="year_start" class="form-control sepe-slt-date"> | 
				
			||||
                                    <option value=""></option> | 
				
			||||
                                    {% for i in list_year_2 %} | 
				
			||||
                                        {% if year_start == i %} | 
				
			||||
                                            <option value="{{ i }}" selected="selected">{{ i }}</option> | 
				
			||||
                                        {% else %} | 
				
			||||
                                            <option value="{{ i }}">{{ i }}</option> | 
				
			||||
                                        {% endif %} | 
				
			||||
                                    {% endfor %} | 
				
			||||
                                </select> | 
				
			||||
                            </div> | 
				
			||||
                            <div class="alert alert-info col-lg-5 sepe-message-info"> | 
				
			||||
                                {{ 'StartDateMessageEvaluation' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                     | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-lg-3">{{ 'EndDate' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-lg-4"> | 
				
			||||
                                <select name="day_end" class="form-control sepe-slt-date"> | 
				
			||||
                                    <option value=""></option> | 
				
			||||
                                    {% for i in 1..31 %} | 
				
			||||
                                        <option value="{{ i }}" {% if day_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                    {% endfor %} | 
				
			||||
                                </select> | 
				
			||||
                                / | 
				
			||||
                                <select name="month_end" class="form-control sepe-slt-date"> | 
				
			||||
                                    <option value=""></option> | 
				
			||||
                                    {% for i in 1..12 %} | 
				
			||||
                                        <option value="{{ i }}" {% if month_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                    {% endfor %} | 
				
			||||
                                </select> | 
				
			||||
                                / | 
				
			||||
                                <select name="year_end" class="form-control sepe-slt-date"> | 
				
			||||
                                    <option value=""></option> | 
				
			||||
                                    {% for i in list_year_2 %} | 
				
			||||
                                        {% if year_end == i %} | 
				
			||||
                                            <option value="{{ i }}" selected="selected">{{ i }}</option> | 
				
			||||
                                        {% else %} | 
				
			||||
                                            <option value="{{ i }}">{{ i }}</option> | 
				
			||||
                                        {% endif %} | 
				
			||||
                                    {% endfor %} | 
				
			||||
                                </select> | 
				
			||||
                            </div> | 
				
			||||
                            <div class="alert alert-info col-lg-5 sepe-message-info"> | 
				
			||||
                                {{ 'EndDateMessageEvaluation' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="well sepe-subfield"> | 
				
			||||
                    <legend><h4>{{ 'Results' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'FinalResult' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <select  name="final_result" class="form-control"> | 
				
			||||
                                    <option value=""></option> | 
				
			||||
                                    {% if info.final_result == "0" %} | 
				
			||||
                                        <option value="0" selected="selected">{{ 'Initiated' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="0">{{ 'Initiated' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                    {% if info.final_result == "1" %} | 
				
			||||
                                        <option value="1" selected="selected">{{ 'LeavePlacement' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="1">{{ 'LeavePlacement' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                    {% if info.final_result == "2" %} | 
				
			||||
                                        <option value="2" selected="selected">{{ 'AbandonOtherReasons' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="2">{{ 'AbandonOtherReasons' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                    {% if info.final_result == "3" %} | 
				
			||||
                                        <option value="3" selected="selected">{{ 'EndsPositiveEvaluation' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="3">{{ 'EndsPositiveEvaluation' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                    {% if info.final_result == "4" %} | 
				
			||||
                                        <option value="4" selected="selected">{{ 'EndsNegativeEvaluation' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="4">{{ 'EndsNegativeEvaluation' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                    {% if info.final_result == "5" %} | 
				
			||||
                                        <option value="5" selected="selected">{{ 'EndsNoEvaluation' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="5">{{ 'EndsNoEvaluation' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                    {% if info.final_result == "6" %} | 
				
			||||
                                        <option value="6" selected="selected">{{ 'FreeEvaluation' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="6">{{ 'FreeEvaluation' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                    {% if info.final_result == "7" %} | 
				
			||||
                                        <option value="7" selected="selected">{{ 'Exempt' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="7">{{ 'Exempt' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                </select> | 
				
			||||
                                <div class="alert alert-info sepe-message-info sepe-margin-top"> | 
				
			||||
                                    {{ 'FinalResultMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'FinalQualification' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <input class="form-control" type="text" name="final_qualification" value="{{ info.final_qualification }}" /> | 
				
			||||
                                <div class="alert alert-info sepe-message-info sepe-margin-top"> | 
				
			||||
                                    {{ 'FinalQualificationMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'FinalScore' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <input class="form-control" class="form-control" type="text" name="final_score" value="{{ info.final_score }}" /> | 
				
			||||
                                <div class="alert alert-info sepe-message-info sepe-margin-top"> | 
				
			||||
                                    {{ 'FinalScoreMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                </fieldset> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
    </form> | 
				
			||||
</div> | 
				
			||||
@ -0,0 +1,5 @@ | 
				
			||||
<div class="row"> | 
				
			||||
    <div class="col-md-12"> | 
				
			||||
    	{{ html_text }} | 
				
			||||
    </div> | 
				
			||||
</div> | 
				
			||||
@ -0,0 +1,365 @@ | 
				
			||||
<script type='text/javascript' src="../js/sepe.js"></script> | 
				
			||||
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/> | 
				
			||||
 | 
				
			||||
<div class="row"> | 
				
			||||
    <form class="form-horizontal" action="specialty-action-edit.php" method="post" name="form_specialty_action"> | 
				
			||||
        <div class="col-md-3"> | 
				
			||||
            <div id="course_category_well" class="well"> | 
				
			||||
                <ul class="nav nav-list"> | 
				
			||||
                    <li class="nav-header"><h3>{{ 'Actions' | get_plugin_lang('SepePlugin') }}:</h3></li> | 
				
			||||
                    <li> | 
				
			||||
                        {% if new_action == "1" %} | 
				
			||||
                            <input type="hidden" name="action_id" value="{{ action_id }}" /> | 
				
			||||
                            <input type="hidden" name="new_specialty" value="1" /> | 
				
			||||
                        {% else %} | 
				
			||||
                            <input type="hidden" name="action_id" value="{{ action_id }}" /> | 
				
			||||
                            <input type="hidden" name="specialty_id" value="{{ specialty_id }}" /> | 
				
			||||
                            <input type="hidden" name="new_specialty" value="0" /> | 
				
			||||
                        {% endif %} | 
				
			||||
                        <input type="hidden" name="sec_token" value="{{ sec_token }}" /> | 
				
			||||
                        <input class="btn btn-primary sepe-btn-menu-side" type="submit" value="{{ 'SaveChanges' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                    <li> | 
				
			||||
                        <input  class="btn btn-warning sepe-btn-menu-side" type="reset" value="{{ 'Reset' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                </ul> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
        <div class="col-md-9"> | 
				
			||||
            {% if message_info != "" %} | 
				
			||||
                <div class="alert alert-success"> | 
				
			||||
                    {{ message_info }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            {% if message_error != "" %} | 
				
			||||
                <div class="alert alert-danger"> | 
				
			||||
                    {{ message_error }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            <div class="well_border"> | 
				
			||||
                <fieldset> | 
				
			||||
                    <legend>{{ 'SpecialtyFormativeAction' | get_plugin_lang('SepePlugin') }}</legend> | 
				
			||||
                    <div class="well"> | 
				
			||||
                        <legend><h4>{{ 'SpecialtyIdentifier' | get_plugin_lang('SepePlugin') | upper}}: </h4></legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'SpecialtyOrigin' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-2"> | 
				
			||||
                                <input class="form-control" type="text" name="specialty_origin" value="{{ info.specialty_origin }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'ProfessionalArea' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-2"> | 
				
			||||
                                <input class="form-control" type="text" name="professional_area" value="{{ info.professional_area }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'SpecialtyCode' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-3"> | 
				
			||||
                                <input class="form-control" type="text" name="specialty_code" value="{{ info.specialty_code }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="well"> | 
				
			||||
                        <legend><h4>{{ 'DeliveryCenter' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'CenterOrigin' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-2"> | 
				
			||||
                                <input class="form-control" type="text" name="center_origin" value="{{ info.center_origin }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'CenterCode' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-3"> | 
				
			||||
                                <input class="form-control" type="text" name="center_code" value="{{ info.center_code }}" /> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-lg-3 control-label">{{ 'StartDate' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-lg-4"> | 
				
			||||
                            <select name="day_start" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in 1..31 %} | 
				
			||||
                                    <option value="{{ i }}" {% if day_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                            / | 
				
			||||
                            <select name="month_start" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in 1..12 %} | 
				
			||||
                                    <option value="{{ i }}" {% if month_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                            / | 
				
			||||
                            <select name="year_start" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in list_year %} | 
				
			||||
                                    {% if year_start == i %} | 
				
			||||
                                        <option value="{{ i }}" selected="selected">{{ i }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="{{ i }}">{{ i }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                        </div> | 
				
			||||
                        <div class="alert alert-info sepe-message-info col-lg-5"> | 
				
			||||
                            {{ 'SpecialtyStartDateMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-lg-3 control-label">{{ 'EndDate' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-lg-4"> | 
				
			||||
                            <select name="day_end" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in 1..31 %} | 
				
			||||
                                    <option value="{{ i }}" {% if day_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                            / | 
				
			||||
                            <select name="month_end" class="form-control sepe-slt-date"> | 
				
			||||
                                {% for i in 1..12 %} | 
				
			||||
                                    <option value="{{ i }}" {% if month_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                            / | 
				
			||||
                            <select name="year_end" class="form-control sepe-slt-date"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% for i in list_year %} | 
				
			||||
                                    {% if year_end == i %} | 
				
			||||
                                        <option value="{{ i }}" selected="selected">{{ i }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="{{ i }}">{{ i }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                        </div> | 
				
			||||
                        <div class="col-lg-5 sepe-message-info alert alert-info"> | 
				
			||||
                            {{ 'SpecialtyEndDateMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="col-sm-3 control-label">{{ 'ModalityImpartition' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <select  name="modality_impartition" class="chzn-select"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% if info.modality_impartition == "TF" %} | 
				
			||||
                                    <option value="TF" selected="selected">Teleformación</option> | 
				
			||||
                                {% else %} | 
				
			||||
                                    <option value="TF">Teleformación</option> | 
				
			||||
                                {% endif %} | 
				
			||||
                                {% if info.modality_impartition == "PR" %} | 
				
			||||
                                    <option value="PR" selected="selected">Presencial</option> | 
				
			||||
                                {% else %} | 
				
			||||
                                    <option value="PR">Presencial</option> | 
				
			||||
                                {% endif %} | 
				
			||||
                                {% if info.modality_impartition == "PE" %} | 
				
			||||
                                    <option value="PE" selected="selected">Práctica no laboral (formación) en centro de trabajo</option> | 
				
			||||
                                {% else %} | 
				
			||||
                                    <option value="PE">Práctica no laboral (formación) en centro de trabajo</option> | 
				
			||||
                                {% endif %} | 
				
			||||
                            </select> | 
				
			||||
                            <em class="alert alert-info sepe-message-info sepe-margin-top"> | 
				
			||||
                                {{ 'ModalityImpartitionMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                            </em> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="well sepe-subfield"> | 
				
			||||
                        <legend><h4>{{ 'DurationData' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'ClassroomHours' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-2"> | 
				
			||||
                                <input class="form-control" type="number" name="classroom_hours" value="{{ info.classroom_hours }}" /> | 
				
			||||
                            </div> | 
				
			||||
                            <div class="col-sm-7 alert alert-info sepe-message-info">{{ 'ClassroomHoursMessage' | get_plugin_lang('SepePlugin') }}</div> | 
				
			||||
                        </div> | 
				
			||||
                         | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="col-sm-3 control-label">{{ 'DistanceHours' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-2"> | 
				
			||||
                                <input class="form-control" type="number" name="distance_hours" value="{{ info.distance_hours }}" /> | 
				
			||||
                            </div> | 
				
			||||
                            <div class="col-sm-7 alert alert-info sepe-message-info">{{ 'DistanceHoursMessage' | get_plugin_lang('SepePlugin') }}</div> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="well"> | 
				
			||||
                        {% if new_action == "1" %} | 
				
			||||
                            <legend><h4>{{ 'ClassroomSessionCenter' | get_plugin_lang('SepePlugin') | upper}}: </h4></legend> | 
				
			||||
                            <div class="alert alert-warning">{{ 'ClassroomSessionCenterMessage' | get_plugin_lang('SepePlugin') }}</div> | 
				
			||||
                        {% else %} | 
				
			||||
                            <legend> | 
				
			||||
                                <h4> | 
				
			||||
                                    {{ 'ClassroomSessionCenter' | get_plugin_lang('SepePlugin') }}:  | 
				
			||||
                                    <a href="specialty-classroom-edit.php?new_classroom=1&specialty_id={{ info.id }}&action_id={{ action_id }}" class="btn btn-sm btn-info pull-right">{{ 'CreateClassroomCenter' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                </h4> | 
				
			||||
                            </legend> | 
				
			||||
                            <input type="hidden" id="confirmDeleteClassroom" value="{{ 'confirmDeleteClassroom'|get_plugin_lang('SepePlugin') }}" /> | 
				
			||||
                            {% for classroom in listClassroom %} | 
				
			||||
                                <div class="form-group"> | 
				
			||||
                                    <label class="col-sm-3 control-label">{{ 'ClassroomCenter' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                    <div class="col-sm-9"> | 
				
			||||
                                        <label class="campo_texto">{{ classroom.center_origin }} {{ classroom.center_code }} | 
				
			||||
                                            <a href="#" class="btn btn-danger btn-sm pull-right sepe-margin-side delete-classroom" id="classroom{{ classroom.id }}">{{ 'Delete' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                            <a href="specialty-classroom-edit.php?new_classroom=0&specialty_id={{ info.id }}&classroom_id={{ classroom.id }}&action_id={{ action_id }}" class="btn btn-warning btn-sm pull-right sepe-margin-side">{{ 'Edit' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                        </label> | 
				
			||||
                                    </div> | 
				
			||||
                                </div> | 
				
			||||
                            {% endfor %} | 
				
			||||
                        {% endif %} | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="well"> | 
				
			||||
                        {% if new_action == "1" %} | 
				
			||||
                            <legend><h4>{{ 'TrainingTutors' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend> | 
				
			||||
                            <div class="alert alert-warning">{{ 'TrainingTutorsMessage' | get_plugin_lang('SepePlugin') }}</div> | 
				
			||||
                        {% else %} | 
				
			||||
                            <legend> | 
				
			||||
                                <h4> | 
				
			||||
                                    {{ 'TrainingTutors' | get_plugin_lang('SepePlugin') }}: | 
				
			||||
                                    <a href="specialty-tutor-edit.php?new_tutor=1&specialty_id={{ info.id }}&action_id={{ action_id }}" class="btn btn-sm btn-info pull-right">{{ 'CreateTrainingTutor' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                </h4> | 
				
			||||
                            </legend> | 
				
			||||
                            <input type="hidden" id="confirmDeleteTutor" value="{{ 'confirmDeleteTutor'|get_plugin_lang('SepePlugin') }}" /> | 
				
			||||
                            {% for tutor in listTutors %} | 
				
			||||
                                <div class="form-group"> | 
				
			||||
                                    <label class="col-sm-3 control-label">{{ 'TrainingTutor' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                    <div class="col-sm-9"> | 
				
			||||
                                        <label class="campo_texto"> | 
				
			||||
                                            {{ tutor.firstname }} {{ tutor.lastname }} | 
				
			||||
                                             ( {{ tutor.document_number }}-{{ tutor.document_letter }} ) | 
				
			||||
                                            <a href="#" class="btn btn-danger btn-sm pull-right sepe-margin-side delete-tutor" id="tutor{{ tutor.id }}">{{ 'Delete' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                            <a href="specialty-tutor-edit.php?new_tutor=0&specialty_id={{ info.id }}&tutor_id={{ tutor.id }}&action_id={{ action_id }}" class="btn btn-warning btn-sm pull-right sepe-margin-side">{{ 'Edit' | get_plugin_lang('SepePlugin') }}</a> | 
				
			||||
                                        </label> | 
				
			||||
                                    </div> | 
				
			||||
                                </div> | 
				
			||||
                            {% endfor %} | 
				
			||||
                        {% endif %} | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="well"> | 
				
			||||
                        <legend><h4>{{ 'ContentUse' | get_plugin_lang('SepePlugin') | upper }}</h4></legend> | 
				
			||||
                        <div class="well"> | 
				
			||||
                            <legend class="sepe-subfield2">{{ 'MorningSchedule' | get_plugin_lang('SepePlugin') | upper }}</legend> | 
				
			||||
                            <div class="alert alert-info sepe-message-info">{{ 'MorningScheduleMessage' | get_plugin_lang('SepePlugin') }}</div> | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="col-sm-3 control-label">{{ 'ParticipantsNumber' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-2"> | 
				
			||||
                                    <input class="form-control" type="number" name="mornings_participants_number" value="{{ info.mornings_participants_number }}" /> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                     | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="col-sm-3 control-label">{{ 'AccessNumber' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-2"> | 
				
			||||
                                    <input class="form-control" type="number" name="mornings_access_number" value="{{ info.mornings_access_number }}" /> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                         | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="col-sm-3 control-label">{{ 'TotalDuration' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-2"> | 
				
			||||
                                    <input class="form-control" type="number" name="morning_total_duration" value="{{ info.morning_total_duration }}"/> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                        <hr /> | 
				
			||||
                         | 
				
			||||
                        <div class="well"> | 
				
			||||
                            <legend class="sepe-subfield2">{{ 'AfternoonSchedule' | get_plugin_lang('SepePlugin') | upper }}</legend> | 
				
			||||
                            <div class="alert alert-info sepe-message-info">{{ 'AfternoonScheduleMessage' | get_plugin_lang('SepePlugin') }}</div> | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="col-sm-3 control-label">{{ 'ParticipantsNumber' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-2"> | 
				
			||||
                                    <input class="form-control" type="number" name="afternoon_participants_number" value="{{ info.afternoon_participants_number }}" /> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                         | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="col-sm-3 control-label">{{ 'AccessNumber' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-2"> | 
				
			||||
                                    <input class="form-control" type="number" name="afternoon_access_number" value="{{ info.afternoon_access_number }}" /> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                             | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="col-sm-3 control-label">{{ 'TotalDuration' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-2"> | 
				
			||||
                                    <input class="form-control" type="number" name="afternoon_total_duration" value="{{ info.afternoon_total_duration }}"/> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                        <hr /> | 
				
			||||
                         | 
				
			||||
                         | 
				
			||||
                        <div class="well"> | 
				
			||||
                            <legend class="sepe-subfield2">{{ 'NightSchedule' | get_plugin_lang('SepePlugin') | upper }}</legend> | 
				
			||||
                            <div class="alert alert-info sepe-message-info">{{ 'NightScheduleMessage' | get_plugin_lang('SepePlugin') }}</div>  | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="col-sm-3 control-label">{{ 'ParticipantsNumber' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-2"> | 
				
			||||
                                    <input class="form-control" type="number" name="night_participants_number" value="{{ info.night_participants_number }}" /> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                         | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="col-sm-3 control-label">{{ 'AccessNumber' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-2"> | 
				
			||||
                                    <input class="form-control" type="number" name="night_access_number" value="{{ info.night_access_number }}" /> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                             | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="col-sm-3 control-label">{{ 'TotalDuration' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-2"> | 
				
			||||
                                    <input class="form-control" type="number" name="night_total_duration" value="{{ info.night_total_duration }}"/> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                        <hr /> | 
				
			||||
                         | 
				
			||||
                        <div class="well"> | 
				
			||||
                            <legend class="sepe-subfield2">{{ 'MonitoringAndEvaluation' | get_plugin_lang('SepePlugin') | upper }}</legend> | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="col-sm-3 control-label">{{ 'ParticipantsNumber' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-2"> | 
				
			||||
                                    <input class="form-control" type="number" name="attendees_count" value="{{ info.attendees_count }}" /> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                         | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="col-sm-3 control-label">{{ 'LearningActivityCount' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-2"> | 
				
			||||
                                    <input class="form-control" type="number" name="learning_activity_count" value="{{ info.learning_activity_count }}" /> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                             | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="col-sm-3 control-label">{{ 'AttemptCount' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-2"> | 
				
			||||
                                    <input class="form-control" type="number" name="attempt_count" value="{{ info.attempt_count }}"/> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                             | 
				
			||||
                            <div class="form-group"> | 
				
			||||
                                <label class="col-sm-3 control-label">{{ 'EvaluationActivityCount' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                                <div class="col-sm-2"> | 
				
			||||
                                    <input class="form-control" type="number" name="evaluation_activity_count" value="{{ info.evaluation_activity_count }}"/> | 
				
			||||
                                </div> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                        <hr /> | 
				
			||||
                    </div> | 
				
			||||
                </fieldset> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
    </form> | 
				
			||||
</div> | 
				
			||||
@ -0,0 +1,94 @@ | 
				
			||||
<script type='text/javascript' src="../js/sepe.js"></script> | 
				
			||||
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/> | 
				
			||||
 | 
				
			||||
<div class="row"> | 
				
			||||
    <form class="form-horizontal" action="specialty-classroom-edit.php" method="post" name="form_specialty_action"> | 
				
			||||
        <div class="col-md-3"> | 
				
			||||
            <div id="course_category_well" class="well"> | 
				
			||||
                <ul class="nav nav-list"> | 
				
			||||
                    <li class="nav-header"><h3>{{ 'Actions' | get_plugin_lang('SepePlugin') }}:</h3></li> | 
				
			||||
                    <li> | 
				
			||||
                    {% if new_classroom == "1" %} | 
				
			||||
                        <input type="hidden" name="action_id" value="{{ action_id }}" /> | 
				
			||||
                        <input type="hidden" name="specialty_id" value="{{ specialty_id }}" /> | 
				
			||||
                        <input type="hidden" name="new_classroom" value="1" /> | 
				
			||||
                    {% else %} | 
				
			||||
                        <input type="hidden" name="action_id" value="{{ action_id }}" /> | 
				
			||||
                        <input type="hidden" name="specialty_id" value="{{ specialty_id }}" /> | 
				
			||||
                        <input type="hidden" name="classroom_id" value="{{ classroom_id }}" /> | 
				
			||||
                        <input type="hidden" name="new_classroom" value="0" /> | 
				
			||||
                    {% endif %} | 
				
			||||
                    <input type="hidden" name="sec_token" value="{{ sec_token }}" /> | 
				
			||||
                    <input class="btn btn-primary sepe-btn-menu-side" type="submit" value="{{ 'SaveChanges' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                    <li> | 
				
			||||
                        <input class="btn btn-warning sepe-btn-menu-side" type="reset" value="{{ 'Reset' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                </ul> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
        <div class="col-md-9"> | 
				
			||||
            {% if message_info != "" %} | 
				
			||||
                <div class="alert alert-success"> | 
				
			||||
                    {{ message_info }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            {% if message_error != "" %} | 
				
			||||
                <div class="alert alert-danger"> | 
				
			||||
                    {{ message_error }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
             | 
				
			||||
            {% if new_classroom == "1" %} | 
				
			||||
                <div class="well_border"> | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'UseExistingCenter' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <select  id="slt_centers_exists" class="chzn-select" style="width:100%" name="slt_centers_exists"> | 
				
			||||
                                <option value="1" selected="selected">{{ 'UseExisting' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                <option value="0">{{ 'CreateNewCenter' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            </select> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                </div> | 
				
			||||
                 | 
				
			||||
                <div class="well_border" id="centers-list-layer"> | 
				
			||||
                    <fieldset> | 
				
			||||
                    <legend>{{ 'CenterList' | get_plugin_lang('SepePlugin') }}</legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'Center' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <select  name="exists_center_id" class="chzn-select" style="width:100%"> | 
				
			||||
                                    <option value="" selected="selected"></option> | 
				
			||||
                                    {% for center in listExistsCenters %} | 
				
			||||
                                        <option value="{{ center.id }}">{{ center.center_origin }} {{ center.center_code }}</option> | 
				
			||||
                                    {% endfor %} | 
				
			||||
                                </select> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </fieldset> | 
				
			||||
                </div> | 
				
			||||
                <div class="well_border" style="display:none" id="center-data-layer"> | 
				
			||||
            {% else %} | 
				
			||||
                <div class="well_border" id="center-data-layer"> | 
				
			||||
            {% endif %} | 
				
			||||
                <fieldset> | 
				
			||||
                    <legend>{{ 'ClassroomCenter' | get_plugin_lang('SepePlugin') | upper }}</legend> | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'CenterOrigin' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-2"> | 
				
			||||
                            <input class="form-control" type="text" name="center_origin" value="{{ info.center_origin }}" /> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                         | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'CenterCode' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-3"> | 
				
			||||
                            <input class="form-control" type="text" name="center_code" value="{{ info.center_code }}" /> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                </fieldset> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
    </form> | 
				
			||||
</div> | 
				
			||||
@ -0,0 +1,285 @@ | 
				
			||||
<script type='text/javascript' src="../js/sepe.js"></script> | 
				
			||||
<script type='text/javascript'> | 
				
			||||
    $(document).ready(function () { | 
				
			||||
        $("input[type='submit']").click(function(e){ | 
				
			||||
            e.preventDefault(); | 
				
			||||
            e.stopPropagation(); | 
				
			||||
            if ( $("#slt_user_exists").val() == "1" ) { | 
				
			||||
                if ($("select[name='existingTutor']").val()=="") { | 
				
			||||
                    alert("{{ 'SelectUserExistsMessage' | get_plugin_lang('SepePlugin') }}") | 
				
			||||
                } else { | 
				
			||||
                    $("form").submit();         | 
				
			||||
                } | 
				
			||||
            } else { | 
				
			||||
                var document_type = $("select[name='document_type']").val(); | 
				
			||||
                var document_number = $("input[name='document_number']").val(); | 
				
			||||
                var document_letter = $("input[name='document_letter']").val(); | 
				
			||||
                var vplatform_user_id = $("select[name='platform_user_id']").val(); | 
				
			||||
                if ($.trim(document_type)=='' || $.trim(document_number)=='' || $.trim(document_letter)=='') { | 
				
			||||
                    alert("{{ 'RequiredTutorField' | get_plugin_lang('SepePlugin') }}"); | 
				
			||||
                } else { | 
				
			||||
                    if ($("input[name='new_tutor']" ).val()=="0") { | 
				
			||||
                        $.post("function.php", {tab:"checkTutorEdit", type:document_type, number:document_number, letter:document_letter, platform_user_id:vplatform_user_id}, | 
				
			||||
                        function (data) { | 
				
			||||
                            if (data.status == "false") { | 
				
			||||
                                if (confirm(data.content)) { | 
				
			||||
                                    $("form").submit(); | 
				
			||||
                                } | 
				
			||||
                            } else { | 
				
			||||
                                $("form").submit(); | 
				
			||||
                            } | 
				
			||||
                        }, "json"); | 
				
			||||
                    } else { | 
				
			||||
                        $("form").submit();     | 
				
			||||
                    } | 
				
			||||
                } | 
				
			||||
            } | 
				
			||||
        }); | 
				
			||||
    }); | 
				
			||||
</script> | 
				
			||||
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/> | 
				
			||||
 | 
				
			||||
<div class="row"> | 
				
			||||
    <form class="form-horizontal" action="specialty-tutor-edit.php" method="post" name="form_specialty_action"> | 
				
			||||
        <div class="col-md-3"> | 
				
			||||
            <div id="course_category_well" class="well"> | 
				
			||||
                <ul class="nav nav-list"> | 
				
			||||
                    <li class="nav-header"><h3>{{ 'Actions' | get_plugin_lang('SepePlugin') }}:</h3></li> | 
				
			||||
                    <li> | 
				
			||||
                        {% if new_tutor == "1" %} | 
				
			||||
                            <input type="hidden" name="action_id" value="{{ action_id }}" /> | 
				
			||||
                            <input type="hidden" name="specialty_id" value="{{ specialty_id }}" /> | 
				
			||||
                            <input type="hidden" name="new_tutor" value="1" /> | 
				
			||||
                        {% else %} | 
				
			||||
                            <input type="hidden" name="action_id" value="{{ action_id }}" /> | 
				
			||||
                            <input type="hidden" name="specialty_id" value="{{ specialty_id }}" /> | 
				
			||||
                            <input type="hidden" name="specialtyTutorId" value="{{ tutor_id }}" /> | 
				
			||||
                            <input type="hidden" name="new_tutor" value="0" /> | 
				
			||||
                        {% endif %} | 
				
			||||
                        <input type="hidden" name="sec_token" value="{{ sec_token }}" /> | 
				
			||||
                        <input class="btn btn-primary sepe-btn-menu-side" type="submit" value="{{ 'SaveChanges' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                    <li> | 
				
			||||
                        <input class="btn btn-warning sepe-btn-menu-side" type="reset" value="{{ 'Reset' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                </ul> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
        <div class="col-md-9"> | 
				
			||||
            {% if message_info != "" %} | 
				
			||||
                <div class="alert alert-success"> | 
				
			||||
                    {{ message_info }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            {% if message_error != "" %} | 
				
			||||
                <div class="alert alert-danger"> | 
				
			||||
                    {{ message_error }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
             | 
				
			||||
            {% if new_tutor == "1" %} | 
				
			||||
                <div class="well_border"> | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'UseExistingTutor' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <select  id="slt_user_exists" class="form-control" name="slt_user_exists"> | 
				
			||||
                                <option value="1" selected="selected">{{ 'UseExisting' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                <option value="0">{{ 'CreateNewTutor' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            </select> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                </div> | 
				
			||||
                 | 
				
			||||
                <div class="well_border" id="tutors-list-layer"> | 
				
			||||
                    <fieldset> | 
				
			||||
                        <legend>{{ 'TutorsList' | get_plugin_lang('SepePlugin') }}</legend> | 
				
			||||
                        <div class="form-group"> | 
				
			||||
                            <label class="control-label col-sm-3">{{ 'Tutor' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                            <div class="col-sm-9"> | 
				
			||||
                                <select  name="existingTutor" class="form-control"> | 
				
			||||
                                    <option value=""></option> | 
				
			||||
                                    {% for tutor in ExistingTutorsList %} | 
				
			||||
                                        <option value="{{ tutor.id }}">{{ tutor.data }}</option> | 
				
			||||
                                    {% endfor %} | 
				
			||||
                                </select> | 
				
			||||
                            </div> | 
				
			||||
                        </div> | 
				
			||||
                    </fieldset> | 
				
			||||
                </div> | 
				
			||||
                <div class="well_border" style="display:none" id="tutor-data-layer"> | 
				
			||||
            {% else %} | 
				
			||||
                <input type="hidden" name="slt_user_exists" value="0" /> | 
				
			||||
                <div class="well_border" id="tutor-data-layer"> | 
				
			||||
            {% endif %} | 
				
			||||
              <fieldset> | 
				
			||||
                <legend>{{ 'TutorTrainer' | get_plugin_lang('SepePlugin') }}</legend> | 
				
			||||
                <div class="well"> | 
				
			||||
                    <legend><h4>{{ 'TutorIdentifier' | get_plugin_lang('SepePlugin') | upper }}: </h4></legend> | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'DocumentType' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <select  name="document_type" class="form-control"> | 
				
			||||
                                <option value=""></option> | 
				
			||||
                                {% if info.document_type == "D" %} | 
				
			||||
                                    <option value="D" selected="selected">{{ 'DocumentTypeD' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                {% else %} | 
				
			||||
                                    <option value="D">{{ 'DocumentTypeD' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                {% endif %} | 
				
			||||
                                {% if info.document_type == "E" %} | 
				
			||||
                                    <option value="E" selected="selected">{{ 'DocumentTypeE' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                {% else %} | 
				
			||||
                                    <option value="E">{{ 'DocumentTypeE' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                {% endif %} | 
				
			||||
                                {% if info.document_type == "U" %} | 
				
			||||
                                    <option value="U" selected="selected">{{ 'DocumentTypeU' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                {% else %} | 
				
			||||
                                    <option value="U">{{ 'DocumentTypeU' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                {% endif %} | 
				
			||||
                                {% if info.document_type == "G" %} | 
				
			||||
                                    <option value="G" selected="selected">{{ 'DocumentTypeG' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                {% else %} | 
				
			||||
                                    <option value="G">{{ 'DocumentTypeG' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                {% endif %} | 
				
			||||
                                {% if info.document_type == "W" %} | 
				
			||||
                                    <option value="W" selected="selected">{{ 'DocumentTypeW' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                {% else %} | 
				
			||||
                                    <option value="W">{{ 'DocumentTypeW' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                {% endif %} | 
				
			||||
                                {% if info.document_type == "H" %} | 
				
			||||
                                    <option value="H" selected="selected">{{ 'DocumentTypeH' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                {% else %} | 
				
			||||
                                    <option value="H">{{ 'DocumentTypeH' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                                {% endif %} | 
				
			||||
                            </select> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                         | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'DocumentNumber' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-2"> | 
				
			||||
                            <input class="form-control" type="text" name="document_number" value="{{ info.document_number }}" /> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'DocumentLetter' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-1"> | 
				
			||||
                            <input class="form-control" type="text" name="document_letter" value="{{ info.document_letter }}" /> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                     | 
				
			||||
                    <div class="warning-message"> | 
				
			||||
                        {{ 'DocumentFormatMessage' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                    </div> | 
				
			||||
                </div> | 
				
			||||
                 | 
				
			||||
                <div class="form-group"> | 
				
			||||
                    <label class="control-label col-sm-3">{{ 'TutorAccreditation' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                    <div class="col-sm-9"> | 
				
			||||
                        <input class="form-control" type="text" name="tutor_accreditation" value="{{ info.tutor_accreditation }}" style="width:100%" /> | 
				
			||||
                        <div class="alert alert-info sepe-message-info sepe-margin-top">{{ 'TutorAccreditationMessage' | get_plugin_lang('SepePlugin') }}</div> | 
				
			||||
                    </div> | 
				
			||||
                </div> | 
				
			||||
                     | 
				
			||||
                <div class="form-group"> | 
				
			||||
                    <label class="control-label col-sm-3">{{ 'ProfessionalExperience' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                    <div class="col-sm-2"> | 
				
			||||
                        <input class="form-control" class="sepe-numeric-field" type="number" name="professional_experience" value="{{ info.professional_experience }}" /> | 
				
			||||
                    </div> | 
				
			||||
                    <div class="alert alert-info sepe-message-info col-sm-7">{{ 'ProfessionalExperienceMessage' | get_plugin_lang('SepePlugin') }}</div> | 
				
			||||
                </div> | 
				
			||||
                 | 
				
			||||
                <div class="form-group"> | 
				
			||||
                    <label class="control-label col-sm-3">{{ 'TeachingCompetence' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                    <div class="col-sm-9"> | 
				
			||||
                        <select  name="teaching_competence" class="form-control" > | 
				
			||||
                            <option value=""></option> | 
				
			||||
                            {% if info.teaching_competence == "01" %} | 
				
			||||
                                <option value="01" selected="selected">{{ 'TeachingCompetence01' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="01">{{ 'TeachingCompetence01' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %} | 
				
			||||
                            {% if info.teaching_competence == "02" %} | 
				
			||||
                                <option value="02" selected="selected">{{ 'TeachingCompetence02' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="02">{{ 'TeachingCompetence02' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %}{% if info.teaching_competence == "03" %} | 
				
			||||
                                <option value="03" selected="selected">{{ 'TeachingCompetence03' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="03">{{ 'TeachingCompetence03' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %}{% if info.teaching_competence == "04" %} | 
				
			||||
                                <option value="04" selected="selected">{{ 'TeachingCompetence04' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="04">{{ 'TeachingCompetence04' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %}{% if info.teaching_competence == "05" %} | 
				
			||||
                                <option value="05" selected="selected">{{ 'TeachingCompetence05' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="05">{{ 'TeachingCompetence05' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %}{% if info.teaching_competence == "06" %} | 
				
			||||
                                <option value="06" selected="selected">{{ 'TeachingCompetence06' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="06">{{ 'TeachingCompetence06' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %} | 
				
			||||
                        </select> | 
				
			||||
                    </div> | 
				
			||||
                </div> | 
				
			||||
                 | 
				
			||||
                <div class="form-group"> | 
				
			||||
                    <label class="control-label col-sm-3">{{ 'ExperienceTeleforming' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                    <div class="col-sm-2"> | 
				
			||||
                        <input class="form-control" type="number" name="experience_teleforming" value="{{ info.experience_teleforming }}" /> | 
				
			||||
                    </div> | 
				
			||||
                    <div class="col-sm-7 alert alert-info sepe-message-info">{{ 'ExperienceTeleformingMessage' | get_plugin_lang('SepePlugin') }}</div> | 
				
			||||
                </div> | 
				
			||||
                     | 
				
			||||
                <div class="form-group"> | 
				
			||||
                    <label class="control-label col-sm-3">{{ 'TrainingTeleforming' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                    <div class="col-sm-9"> | 
				
			||||
                        <select  name="training_teleforming" class="form-control"> | 
				
			||||
                            <option value=""></option> | 
				
			||||
                            {% if info.training_teleforming == "01" %} | 
				
			||||
                                <option value="01" selected="selected">{{ 'TrainingTeleforming01' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="01">{{ 'TrainingTeleforming01' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %} | 
				
			||||
                            {% if info.training_teleforming == "02" %} | 
				
			||||
                                <option value="02" selected="selected">{{ 'TrainingTeleforming02' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="02">{{ 'TrainingTeleforming02' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %} | 
				
			||||
                            {% if info.training_teleforming == "03" %} | 
				
			||||
                                <option value="03" selected="selected">{{ 'TrainingTeleforming03' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="03">{{ 'TrainingTeleforming03' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %} | 
				
			||||
                            {% if info.training_teleforming == "04" %} | 
				
			||||
                                <option value="04" selected="selected">{{ 'TrainingTeleforming04' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% else %} | 
				
			||||
                                <option value="04">{{ 'TrainingTeleforming04' | get_plugin_lang('SepePlugin') }}</option> | 
				
			||||
                            {% endif %} | 
				
			||||
                        </select> | 
				
			||||
                    </div> | 
				
			||||
                </div> | 
				
			||||
                 | 
				
			||||
                <div class="well sepe-subfield"> | 
				
			||||
                    <legend class="sepe-subfield">{{ 'PlatformTeacher' | get_plugin_lang('SepePlugin') | upper }}: </legend> | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'Teacher' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <select  name="platform_user_id" class="form-control"> | 
				
			||||
                                <option value="" selected="selected"></option> | 
				
			||||
                                {% for teacher in listTeachers %} | 
				
			||||
                                    {% if info.platform_user_id == teacher.user_id %} | 
				
			||||
                                        <option value="{{ teacher.user_id }}" selected="selected">{{ teacher.firstname }} {{ teacher.lastname }}</option> | 
				
			||||
                                    {% else %} | 
				
			||||
                                        <option value="{{ teacher.user_id }}">{{ teacher.firstname }} {{ teacher.lastname }}</option> | 
				
			||||
                                    {% endif %} | 
				
			||||
                                {% endfor %} | 
				
			||||
                            </select> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                </div> | 
				
			||||
            </fieldset> | 
				
			||||
        </div> | 
				
			||||
    </form> | 
				
			||||
</div> | 
				
			||||
@ -0,0 +1,127 @@ | 
				
			||||
<script type='text/javascript' src="../js/sepe.js"></script> | 
				
			||||
<link rel="stylesheet" type="text/css" href="../resources/plugin.css"/> | 
				
			||||
 | 
				
			||||
<div class="row"> | 
				
			||||
    <form class="form-horizontal" action="specialty-tutorial-edit.php" method="post" name="form_specialty_action"> | 
				
			||||
        <div class="col-md-3"> | 
				
			||||
            <div id="course_category_well" class="well"> | 
				
			||||
                <ul class="nav nav-list"> | 
				
			||||
                    <li class="nav-header"><h3>{{ 'Actions' | get_plugin_lang('SepePlugin') }}:</h3></li> | 
				
			||||
                    <li> | 
				
			||||
                        {% if new_tutorial == "1" %} | 
				
			||||
                            <input type="hidden" name="action_id" value="{{ action_id }}" /> | 
				
			||||
                            <input type="hidden" name="specialty_id" value="{{ specialty_id }}" /> | 
				
			||||
                            <input type="hidden" name="new_tutorial" value="1" /> | 
				
			||||
                        {% else %} | 
				
			||||
                            <input type="hidden" name="action_id" value="{{ action_id }}" /> | 
				
			||||
                            <input type="hidden" name="specialty_id" value="{{ specialty_id }}" /> | 
				
			||||
                            <input type="hidden" name="tutorial_id" value="{{ tutorial_id }}" /> | 
				
			||||
                            <input type="hidden" name="new_tutorial" value="0" /> | 
				
			||||
                        {% endif %} | 
				
			||||
                        <input type="hidden" name="sec_token" value="{{ sec_token }}" /> | 
				
			||||
                        <input class="btn btn-primary sepe-btn-menu-side" type="submit" value="{{ 'SaveChanges' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                    <li> | 
				
			||||
                        <input class="btn btn-warning sepe-btn-menu-side" type="reset" value="{{ 'Reset' | get_plugin_lang('SepePlugin') }}"  /> | 
				
			||||
                    </li> | 
				
			||||
                </ul> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
        <div class="col-md-9"> | 
				
			||||
            {% if message_info != "" %} | 
				
			||||
                <div class="alert alert-success"> | 
				
			||||
                    {{ message_info }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            {% if message_error != "" %} | 
				
			||||
                <div class="alert alert-danger"> | 
				
			||||
                    {{ message_error }} | 
				
			||||
                </div> | 
				
			||||
            {% endif %} | 
				
			||||
            <div class="well_border"> | 
				
			||||
                <fieldset> | 
				
			||||
                    <legend>{{ 'ClassroomCenter' | get_plugin_lang('SepePlugin') | upper }}</legend> | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'CenterOrigin' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <input class="form-control" type="text" name="center_origin" value="{{ info.center_origin }}" /> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                         | 
				
			||||
                    <div class="form-group"> | 
				
			||||
                        <label class="control-label col-sm-3">{{ 'CenterCode' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                        <div class="col-sm-9"> | 
				
			||||
                            <input class="form-control" type="text" name="center_code" value="{{ info.center_code }}" /> | 
				
			||||
                        </div> | 
				
			||||
                    </div> | 
				
			||||
                </fieldset> | 
				
			||||
                 | 
				
			||||
                <div class="form-group"> | 
				
			||||
                    <label class="control-label col-lg-3">{{ 'StartDate' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                    <div class="col-lg-4"> | 
				
			||||
                        <select name="day_start" class="form-control sepe-slt-date"> | 
				
			||||
                            <option value=""></option> | 
				
			||||
                            {% for i in 1..31 %} | 
				
			||||
                                <option value="{{ i }}" {% if day_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                            {% endfor %} | 
				
			||||
                        </select> | 
				
			||||
                        / | 
				
			||||
                        <select name="month_start" class="form-control sepe-slt-date"> | 
				
			||||
                            <option value=""></option> | 
				
			||||
                            {% for i in 1..12 %} | 
				
			||||
                                <option value="{{ i }}" {% if month_start == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                            {% endfor %} | 
				
			||||
                        </select> | 
				
			||||
                        / | 
				
			||||
                        <select name="year_start" class="form-control sepe-slt-date"> | 
				
			||||
                            <option value=""></option> | 
				
			||||
                            {% for i in list_year %} | 
				
			||||
                                {% if year_start == i %} | 
				
			||||
                                    <option value="{{ i }}" selected="selected">{{ i }}</option> | 
				
			||||
                                {% else %} | 
				
			||||
                                    <option value="{{ i }}">{{ i }}</option> | 
				
			||||
                                {% endif %} | 
				
			||||
                            {% endfor %} | 
				
			||||
                        </select> | 
				
			||||
                    </div> | 
				
			||||
                    <div class="alert alert-info sepe-message-info col-lg-5"> | 
				
			||||
                        {{ 'StartDateMessageTutorial' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                    </div> | 
				
			||||
                </div> | 
				
			||||
                     | 
				
			||||
                <div class="form-group"> | 
				
			||||
                    <label class="col-lg-3 control-label">{{ 'EndDate' | get_plugin_lang('SepePlugin') }}: </label> | 
				
			||||
                    <div class="col-lg-4"> | 
				
			||||
                        <select name="day_end" class="form-control sepe-slt-date"> | 
				
			||||
                            <option value=""></option> | 
				
			||||
                            {% for i in 1..31 %} | 
				
			||||
                                <option value="{{ i }}" {% if day_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                            {% endfor %} | 
				
			||||
                        </select> | 
				
			||||
                        / | 
				
			||||
                        <select name="month_end" class="form-control sepe-slt-date"> | 
				
			||||
                            <option value=""></option> | 
				
			||||
                            {% for i in 1..12 %} | 
				
			||||
                                <option value="{{ i }}" {% if month_end == i %} selected="selected" {% endif %} >{{ "%02d"|format(i) }}</option> | 
				
			||||
                            {% endfor %} | 
				
			||||
                        </select> | 
				
			||||
                        / | 
				
			||||
                        <select name="year_end" class="form-control sepe-slt-date"> | 
				
			||||
                            <option value=""></option> | 
				
			||||
                            {% for i in list_year %} | 
				
			||||
                                {% if year_end == i %} | 
				
			||||
                                    <option value="{{ i }}" selected="selected">{{ i }}</option> | 
				
			||||
                                {% else %} | 
				
			||||
                                    <option value="{{ i }}">{{ i }}</option> | 
				
			||||
                                {% endif %} | 
				
			||||
                            {% endfor %} | 
				
			||||
                        </select> | 
				
			||||
                    </div> | 
				
			||||
                    <div class="alert alert-info sepe-message-info col-lg-5"> | 
				
			||||
                        {{ 'EndDateMessageTutorial' | get_plugin_lang('SepePlugin') }} | 
				
			||||
                    </div> | 
				
			||||
                </div> | 
				
			||||
            </div> | 
				
			||||
        </div> | 
				
			||||
    </form> | 
				
			||||
</div> | 
				
			||||
									
										
											File diff suppressed because it is too large
											Load Diff
										
									
								
							
						
					Loading…
					
					
				
		Reference in new issue