var __serverAddressAtMS = "https://ilkogretim.ttnetvitamin.com.tr/"; var __login = "IlkogretimGiris"; var __teacher = "Ogretmen"; function msLoginFlash(operation, username, password, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtMS + __login, "l_op@#!l_un@#!l_pw", operation + "@#!" + username + "@#!" + password, callBackFunc); } // TEACHER RELATED FUNCTIONS START function loginTeacherFlash(operation, username, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtMS + __login, "l_op@#!l_un", operation + "@#!" + username, callBackFunc); } function redirectTeacherFlash(teacherUrl) { var formElement = document.createElement("form"); var inputElement = document.createElement("input"); inputElement.name = "t_op"; inputElement.value = "redirect"; inputElement.type = "hidden"; formElement.appendChild(inputElement); inputElement = document.createElement("input"); inputElement.name = "t_tu"; inputElement.value = teacherUrl; inputElement.type = "hidden"; formElement.appendChild(inputElement); formElement.setAttribute("action", __serverAddressAtMS + __teacher); formElement.setAttribute("method", "post"); document.body.appendChild(formElement); formElement.submit(); } function getTeacherInfoFlash(operation, userId, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtMS + __teacher, "t_op@#!t_uid", operation + "@#!" + userId, callBackFunc); } function registerNormalTeacherFlash(operation, userId, homePhone, cityId, townId, address, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtMS + __teacher, "t_op@#!t_uid@#!t_hp@#!t_cid@#!t_tid@#!t_a", operation + "@#!" + userId + "@#!" + homePhone + "@#!" + cityId + "@#!" + townId + "@#!" + address, callBackFunc); } function registerUnverifiedTeacherFlash(operation, userId, branchId, classroomId, email, mobilePhone, homePhone, cityId, townId, address, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtMS + __teacher, "t_op@#!t_uid@#!t_bid@#!t_crid@#!t_e@#!t_mp@#!t_hp@#!t_cid@#!t_tid@#!t_a", operation + "@#!" + userId + "@#!" + branchId + "@#!" + classroomId + "@#!" + email + "@#!" + mobilePhone + "@#!" + homePhone + "@#!" + cityId + "@#!" + townId + "@#!" + address, callBackFunc); } // TEACHER RELATED FUNCTIONS END