function remove_apply(calendar_id)
{
var url="/ajax_functions.php";
url=url+"?action=remove_apply";
url=url+"&calendar_id="+calendar_id;
FT3=GetXmlHttpObject();
FT3.open("GET",url,true);
FT3.onreadystatechange = function(){remove_apply_state_change(calendar_id);};
FT3.send(null);
}
function remove_apply_state_change(calendar_id)
{
if (FT3.readyState == 1) {
}
if (FT3.readyState == 4) {
if (FT3.status == 200) {
if(FT3.responseText=='1')
document.getElementById('status_text_'+calendar_id).innerHTML='Lejelentkeztél';
}
}
}
function update_exam_time(calendar_id,subject_id)
{
var url="/ajax_functions.php";
url=url+"?action=update_exam_time";
url=url+"&calendar_id="+calendar_id;
FT3=GetXmlHttpObject();
FT3.open("GET",url,true);
FT3.onreadystatechange = function(){update_exam_time_state_change(subject_id,calendar_id);};
FT3.send(null);
}
function update_exam_time_state_change(subject_id,calendar_id)
{
if (FT3.readyState == 1) {
document.getElementById('status_exam_'+subject_id).innerHTML='
';
}
if (FT3.readyState == 4) {
if (FT3.status == 200) {
if(FT3.responseText!='0') {
document.getElementById('exam_application_'+subject_id).innerHTML='';
get_exam_times(subject_id);
document.getElementById('status_exam_'+subject_id).innerHTML='';
document.getElementById('students_'+subject_id).innerHTML=FT3.responseText;
hide('new_exam_application_'+subject_id);
// hide('exam_ul_'+subject_id);
// document.getElementById('status_text_'+original_calendar_id).innerHTML='Jelentkezek';
// document.getElementById('status_text_'+calendar_id).innerHTML=' - Lejelentkezés - ';
}
}
}
}
function get_hours_to_date_picker(input)
{
var input_data='
| '+document.getElementById('date_picker').date+' / | |
| óra: | '; input_data+=' |
| perc: | '; input_data+=' |