diff --git a/~dev_rating/application/classes/Controller/Handler/Map.php b/~dev_rating/application/classes/Controller/Handler/Map.php
index 4e752896ce2083465f2ea2f2dcf5caf3e0947f00..3392e940337292fc07cf278df6db3c0d7e0144db 100644
--- a/~dev_rating/application/classes/Controller/Handler/Map.php
+++ b/~dev_rating/application/classes/Controller/Handler/Map.php
@@ -234,21 +234,21 @@ class Controller_Handler_Map extends Controller_Handler {
 					$this->post->offsetGet('DisciplineID'),
 					''
 				);
-				$data['ModuleID'] = $result[0]['Num'];
-				if ($data['ModuleID'] > 0) {
+				$data['moduleID'] = $result[0]['Num'];
+				if ($data['moduleID'] > 0) {
 					// Добавление мероприятия
 					// Т.к. модуль должен содержать хотя бы
 					// 1 мероприятие
 					$result = $this->model->AddSubmodule(
 						$this->user['TeacherID'],
-						$data['ModuleID'],
+						$data['moduleID'],
 						'0', //MaxRate
 						'',
 						'', //Description
 						'CurrentControl'
 					);
-					$data['SubmoduleID'] = $result[0]['Num'];
-					if ($data['SubmoduleID'] > 0)
+					$data['submoduleID'] = $result[0]['Num'];
+					if ($data['submoduleID'] > 0)
 						$data['success'] = true;
 				}
 					
@@ -259,19 +259,19 @@ class Controller_Handler_Map extends Controller_Handler {
 		// Добавление мероприятия
 		public function action_AddSubmodule() {
 			$data['success'] = false;
-            $this->post -> rule('ModuleID', 'not_empty')
-                        -> rule('ModuleID', 'digit');
+            $this->post -> rule('submoduleID', 'not_empty')
+                        -> rule('submoduleID', 'digit');
             if($this->post->check()) {
 					$result = $this->model->AddSubmodule(
 						$this->user['TeacherID'],
-						$this->post->offsetGet('ModuleID'),
+						$this->post->offsetGet('submoduleID'),
 						'0', //MaxRate
 						'',
 						'', //Description
 						'CurrentControl'
 					);
-					$data['SubmoduleID'] = $result[0]['Num'];
-					if ($data['SubmoduleID'] > 0)
+					$data['submoduleID'] = $result[0]['Num'];
+					if ($data['submoduleID'] > 0)
 						$data['success'] = true;
 			}
 			$this->response->body(json_encode($data));
diff --git a/~dev_rating/application/views/teacher/discipline/EditStructure.twig b/~dev_rating/application/views/teacher/discipline/EditStructure.twig
index f4949d30a132a3642c81562ab4eaf2930bf4198c..7870b46685e5fe700a66590069560195fa9d8880 100644
--- a/~dev_rating/application/views/teacher/discipline/EditStructure.twig
+++ b/~dev_rating/application/views/teacher/discipline/EditStructure.twig
@@ -8,8 +8,8 @@
 
 {% block map_content %}
 	<p class="notification" style="display: none;">{{ Discipline.SemesterNum }} семестр {{ Discipline.SemesterYear }}/{{ Discipline.SemesterYear + 1 }} учебного года</p>
-	<div class="RateIndicatorDIV">
-		Количество баллов: <span class="RateIndicator">{{ Map.MaxRate }}</span>{% if Map.isSetBonus == true %} + 10 бонусных баллов{% endif %}
+	<div class="rateIndicatorDIV">
+		Количество баллов: <span class="rateIndicator">{{ Map.MaxRate }}</span>{% if Map.isSetBonus == true %} + 10 бонусных баллов{% endif %}
 	</div>
 	<div class="studyMap StructureTable">
 		<div class="name">Виды контрольных мероприятий</div>
@@ -23,7 +23,7 @@
 			<div class="moduleGroup" id="{{ Map[i].ModuleID }}">
 				<div class="moduleHead">
 					<div class="name">
-						<input type="text" class="inputName ModuleName" placeholder="Наименование модуля" value="{{ Map[i].ModuleTitle }}" >
+						<input type="text" class="inputName moduleName" placeholder="Наименование модуля" value="{{ Map[i].ModuleTitle }}" >
 					</div>
 					<div class="currentControl">{{ Map[i].CurrentControl }}</div>
 					<div class="landmarkControl">{{ Map[i].LandmarkControl }}</div>
@@ -35,26 +35,26 @@
 							</div>
 						{% endif %}
 				</div>
-				<div class="subModules">
+				<div class="submodules">
 					{% for j in range(1, Map[i].SubmodulesCount) if Map[i].SubmodulesCount > 0 %}
-						<div class="subModule" id="{{ Map[i][j].SubmoduleID }}">
+						<div class="submodule" id="{{ Map[i][j].SubmoduleID }}">
 							<div class="name">
-								<input type="text" class="inputName SubmoduleName" placeholder="Наименование мероприятия" value="{{ Map[i][j].Title }}">
+								<input type="text" class="inputName submoduleName" placeholder="Наименование мероприятия" value="{{ Map[i][j].Title }}">
 							</div>
 							<div class="currentControl"><input type="text" class="inputCredit inputCurrentControl" value="{% if Map[i][j].SubmoduleControl == 'CurrentControl' %}{{ Map[i][j].MaxRate }}{% else %}0{% endif %}"></div>
 							<div class="landmarkControl"><input type="text" class="inputCredit inputLandmarkControl" value="{% if Map[i][j].SubmoduleControl == 'LandmarkControl' %}{{ Map[i][j].MaxRate }}{% else %}0{% endif %}"></div>
 							{% if Discipline.isLocked != 1 %}
 								<div class="actions">
-									<div class="deleteSubModule icon delete"></div>
-									<div class="downSubModule icon down"></div>
-									<div class="upSubModule icon up"></div>
+									<div class="deleteSubmodule icon delete"></div>
+									<div class="downSubmodule icon down"></div>
+									<div class="upSubmodule icon up"></div>
 								</div>
 							{% endif %}
 						</div>
 					{% endfor %}
 				</div>
 				{% if Discipline.isLocked != 1 %}
-					<button class="addSubModule">Добавить мероприятие</button>
+					<button class="addSubmodule">Добавить мероприятие</button>
 				{% endif %}
 			</div>
 		{% endif %}
diff --git a/~dev_rating/media/css/discipline.css b/~dev_rating/media/css/discipline.css
index fe6dabc795c880c06c66b818a1b77bf93adc6c86..b04fef3f6853a465432408a0f1bdd9854ba5434f 100644
--- a/~dev_rating/media/css/discipline.css
+++ b/~dev_rating/media/css/discipline.css
@@ -159,7 +159,7 @@
 	margin: 5px 0 15px 0
 }
 /* Количество баллов (индикатор) */
-.RateIndicatorDIV {
+.rateIndicatorDIV {
 	margin: 15px 0 25px 0;
 	font-size: 18px;
 	text-align: center;
@@ -225,7 +225,7 @@
 			color: #00CC00
 		}
 		
-		.confirmDeleteSubModule {
+		.confirmDeleteSubmodule {
 			margin-left: 10px;
 			cursor: pointer;
 			background: transparent;
@@ -260,10 +260,10 @@
 	}
 	
 	/* Список мероприятий (подмодулей) */
-	.subModules {
+	.submodules {
 	}
 		/* Мероприятие (Подмодуль) */
-		.subModule {
+		.submodule {
 			background-color: #e4e4e4;
 			padding: 6px 15px;
 			margin: 5px 8px
@@ -299,7 +299,7 @@
 		font-weight: bold;
 	}
 	/* Кнопка добавления мероприятия */
-	.addSubModule {
+	.addSubmodule {
 		float: right;
 		background: url(icons/add.png) no-repeat 10px center  #e4e4e4;
 		padding: 8px 20px 8px 40px;
diff --git a/~dev_rating/media/js/discipline/CreateDiscipline.js b/~dev_rating/media/js/discipline/CreateDiscipline.js
index aa82ed2c90b5697dc0b5d98cf4fc3d437ee817d7..15c5d5bef38d1f8cb13744a0a20bfffd8aa6478c 100644
--- a/~dev_rating/media/js/discipline/CreateDiscipline.js
+++ b/~dev_rating/media/js/discipline/CreateDiscipline.js
@@ -34,7 +34,7 @@ $(function() {
 
         if (errCount === 0) {
             $.post(
-                g_URL + "handler/map/AddDiscipline",
+                g_URLdir + "handler/map/AddDiscipline",
                 {
                     "Grade": gradeID,
                     "SubjectID": subjectID,
@@ -49,7 +49,7 @@ $(function() {
                 {
                     data = $.parseJSON(data);
                     if(data.success === true) {
-                        setTimeout("location.replace('"+g_URL+"discipline/structure/"+data.DisciplineID+"')", 800); 
+                        setTimeout("location.replace('"+g_URLdir+"discipline/structure/"+data.DisciplineID+"')", 800); 
                     } else {
                         jThis.removeAttr("disabled");
                         EventInspector_ShowMsg("Ошибка при добавлении дисциплины", "error");
diff --git a/~dev_rating/media/js/discipline/EditSettings.js b/~dev_rating/media/js/discipline/EditSettings.js
index bf5ed645fe998ed9c6dde1935a63e813cf6be699..4e65039c1959e1ca27480ad523df7b88a42e1ae7 100644
--- a/~dev_rating/media/js/discipline/EditSettings.js
+++ b/~dev_rating/media/js/discipline/EditSettings.js
@@ -201,7 +201,7 @@ $(function() {
     {
         var jThis = $(this);
         var value = parseInt(jThis.val());
-        if (value === LectionCount)
+        if (value === practiceCount)
             return;
         $(this).prop("disabled", true);
         $.post(
diff --git a/~dev_rating/media/js/discipline/EditStructure.js b/~dev_rating/media/js/discipline/EditStructure.js
index 2d867c156a61329667c9d2987729295b0ee879ed..7778f558a985e3dc9ea10b91ef0f3689db3c9280 100644
--- a/~dev_rating/media/js/discipline/EditStructure.js
+++ b/~dev_rating/media/js/discipline/EditStructure.js
@@ -1,16 +1,16 @@
 var $ = jQuery;
 $(function() {
 var jSubmodulePrototype = $($.parseHTML(
-								'<div class="subModule">\
+								'<div class="submodule">\
 									<div class="name">\
-										<input type="text" class="inputName SubmoduleName" value="" placeholder="Наименование мероприятия">\
+										<input type="text" class="inputName submoduleName" value="" placeholder="Наименование мероприятия">\
 									</div>\
 									<div class="currentControl"><input type="text" class="inputCredit inputCurrentControl" value="0"></div>\
 									<div class="landmarkControl"><input type="text" class="inputCredit inputLandmarkControl" value="0"></div>\
 									<div class="actions">\
-										<div class="deleteSubModule icon delete"></div>\
-										<div class="downSubModule icon down"></div>\
-										<div class="upSubModule icon up"></div>\
+										<div class="deleteSubmodule icon delete"></div>\
+										<div class="downSubmodule icon down"></div>\
+										<div class="upSubmodule icon up"></div>\
 									</div>\
 								</div>'
 							));
@@ -19,7 +19,7 @@ var	jModulePrototype 	= $($.parseHTML(
 								'<div class="moduleGroup">\
 									<div class="moduleHead">\
 										<div class="name">\
-											<input type="text" class="inputName ModuleName" value="" placeholder="Наименование модуля">\
+											<input type="text" class="inputName moduleName" value="" placeholder="Наименование модуля">\
 										</div>\
 										<div class="currentControl">0</div>\
 										<div class="landmarkControl">0</div>\
@@ -29,8 +29,8 @@ var	jModulePrototype 	= $($.parseHTML(
 											<div class="upModule icon up"></div>\
 										</div>\
 									</div>\
-									<div class="subModules"></div>\
-									<button class="addSubModule">Добавить мероприятие</button>\
+									<div class="submodules"></div>\
+									<button class="addSubmodule">Добавить мероприятие</button>\
 								</div>'
 							)); 
 
@@ -39,68 +39,68 @@ var jConfirmPrototype 	= $($.parseHTML(
 							));
 
 	// Шаблон мероприятия
-	function GetSubModuleTmp(){
+	function GetSubmoduleTmp(){
 		return jSubmodulePrototype.clone();
 	}
 
 	// Шаблон модуля
 	function GetModuleTmp() {
 		var ret = jModulePrototype.clone();
-		ret.children('div.subModules').append(GetSubModuleTmp());
+		ret.children('div.submodules').append(GetSubmoduleTmp());
 		return ret;
 	};
 
 	// Подсчет текущего контроля
-	function CountCurrentControl(subModulesDiv){
+	function CountCurrentControl(jSubModulesDiv){
 		var maxCredits = 0;
-		$('input.inputCurrentControl', subModulesDiv).each(function(){
+		$('input.inputCurrentControl', jSubModulesDiv).each(function(){
 			var credit = parseInt($(this).val());
 			maxCredits = maxCredits + ((isNum(credit)) ? credit : 0);
 		});
-		subModulesDiv.prev().children('div.currentControl').text(maxCredits);
+		jSubModulesDiv.prev().children('div.currentControl').text(maxCredits);
 	}
 	// Подсчет рубежного контроля
-	function CountLandmarkControl(subModulesDiv){
+	function CountLandmarkControl(jSubModulesDiv){
 		var maxCredits = 0;
-		$('input.inputLandmarkControl', subModulesDiv).each(function(){
+		$('input.inputLandmarkControl', jSubModulesDiv).each(function(){
 			var credit = parseInt($(this).val());
 			maxCredits = maxCredits + ((isNum(credit)) ? credit : 0); 
 		});
-		subModulesDiv.prev().children('div.landmarkControl').text(maxCredits);
+		jSubModulesDiv.prev().children('div.landmarkControl').text(maxCredits);
 	}
 	
 
-	function ChangeSubmoduleMaxAndControl(thisObj, ID, NewMaxRate, ControlType) { 
+	function ChangeSubModuleMaxAndControl(jThis, ID, newMaxRate, controlType) { 
 		$.post(
-			URLdir + 'handler/map/ChangeSubmoduleMaxAndControl',
+			g_URLdir + 'handler/map/ChangeSubModuleMaxAndControl',
 			{
 				'SubmoduleID': ID,
-				'MaxRate': NewMaxRate,
-				'ControlType': ControlType
+				'MaxRate': newMaxRate,
+				'ControlType': controlType
 			},
 			function(data){
 				data = $.parseJSON(data);
 				if(data.success === true)
 					EventInspector_ShowMsg('Max балл мероприятия изменен', 'success');
 				else EventInspector_ShowMsg('Ошибка при изменении max балла', 'error');
-				thisObj.removeAttr('disabled');
+				jThis.removeAttr('disabled');
 			}
 		);
 	}
 	
 	// Установить новый max балл
-	function SetNewRateAndControl(thisObj, OldMaxRate) {
+	function SetNewRateAndControl(jThis, oldMaxRate) {
 		// DIV с мероприятиями для данного модуля
-		var subModulesDiv = thisObj.parent().parent().parent();
+		var jSubModulesDiv = jThis.parent().parent().parent();
 		// ID мероприятия
-		var ID = thisObj.parent().parent().attr('id');
-		var NewMaxRate = 0;
-		if (thisObj.val().length > 0 )
-			NewMaxRate = parseInt(thisObj.val());
+		var ID = jThis.parent().parent().attr('id');
+		var newMaxRate = 0;
+		if (jThis.val().length > 0 )
+			newMaxRate = parseInt(jThis.val());
 		
 		// Ограничение 100 баллов
-		var MaxSumRate = 100;
-		if ($('div.ExamModule').first().length > 0) MaxSumRate = 60;
+		var maxSumRate = 100;
+		if ($('div.ExamModule').first().length > 0) maxSumRate = 60;
 		
 		var currentControl = 0;
 		$('div.moduleHead').children('div.currentControl').each(function(){
@@ -113,53 +113,53 @@ var jConfirmPrototype 	= $($.parseHTML(
 		});
 		
 		var subtract = 0;
-		if (thisObj.parent().attr('class').indexOf('landmarkControl') + 1 > 0)
-			subtract = parseInt(thisObj.parent().siblings('.currentControl').children().val());
-		if (thisObj.parent().attr('class').indexOf('currentControl') + 1 > 0)
-			subtract = parseInt(thisObj.parent().siblings('.landmarkControl').children().val());
+		if (jThis.parent().attr('class').indexOf('landmarkControl') + 1 > 0)
+			subtract = parseInt(jThis.parent().siblings('.currentControl').children().val());
+		if (jThis.parent().attr('class').indexOf('currentControl') + 1 > 0)
+			subtract = parseInt(jThis.parent().siblings('.landmarkControl').children().val());
 			
-		if (currentControl + landmarkControl + NewMaxRate - subtract - OldMaxRate > MaxSumRate) {
-			if (NewMaxRate == 0)
-				thisObj.val('0');
+		if (currentControl + landmarkControl + newMaxRate - subtract - oldMaxRate > maxSumRate) {
+			if (newMaxRate == 0)
+				jThis.val('0');
 			else {
 				EventInspector_ShowMsg('Сумма баллов превышает максимум', 'error');
-				thisObj.val(OldMaxRate);
-				thisObj.removeAttr('disabled')
+				jThis.val(oldMaxRate);
+				jThis.removeAttr('disabled')
 				return 0;
 			}
 		}
 		
 		// Меняем max балл
-		if (NewMaxRate != OldMaxRate) {
+		if (newMaxRate != oldMaxRate) {
 
-			ControlType = 'CurrentControl'; // По-умолчанию 
-			if ((thisObj.parent().attr('class')).indexOf('landmarkControl') + 1 > 0)
-				ControlType = 'LandmarkControl';
+			controlType = 'CurrentControl'; // По-умолчанию 
+			if ((jThis.parent().attr('class')).indexOf('landmarkControl') + 1 > 0)
+				controlType = 'LandmarkControl';
 
 
-			ChangeSubmoduleMaxAndControl(thisObj, ID, NewMaxRate, ControlType);
+			ChangeSubModuleMaxAndControl(jThis, ID, newMaxRate, controlType);
 			
 			// Счетчик баллов
-			var RateIndicarot = currentControl + landmarkControl + NewMaxRate - subtract - OldMaxRate;
-			if ($('div.ExamModule').length > 0) RateIndicarot += 40;
-			$('div.RateIndicatorDIV span.RateIndicator').html(RateIndicarot);
+			var rateIndicarot = currentControl + landmarkControl + newMaxRate - subtract - oldMaxRate;
+			if ($('div.ExamModule').length > 0) rateIndicarot += 40;
+			$('div.rateIndicatorDIV span.rateIndicator').html(rateIndicarot);
 			
-			if (ControlType == 'CurrentControl')
-				thisObj.parent().parent().find('div.landmarkControl').children('input.inputLandmarkControl').val('0');
+			if (controlType == 'CurrentControl')
+				jThis.parent().parent().find('div.landmarkControl').children('input.inputLandmarkControl').val('0');
 				
-			if (ControlType == 'LandmarkControl')
-				thisObj.parent().parent().find('div.currentControl').children('input.inputCurrentControl').val('0');
-		} else thisObj.removeAttr('disabled');
+			if (controlType == 'LandmarkControl')
+				jThis.parent().parent().find('div.currentControl').children('input.inputCurrentControl').val('0');
+		} else jThis.removeAttr('disabled');
 		
 		// Подсчет текущего и рубежного контроля после изменений
-		CountCurrentControl(subModulesDiv);
-		CountLandmarkControl(subModulesDiv);
+		CountCurrentControl(jSubModulesDiv);
+		CountLandmarkControl(jSubModulesDiv);
 	}
 	
 	// Поменять местами два модуля
 	function SwapModuleOrder(jModule1, jModule2) {
 		$.post(
-			URLdir + 'handler/map/SwapModuleOrder',
+			g_URLdir + 'handler/map/SwapModuleOrder',
 			{
 				'ModuleID1': jModule1.attr('id'),
 				'ModuleID2': jModule2.attr('id')
@@ -178,7 +178,7 @@ var jConfirmPrototype 	= $($.parseHTML(
 	// Поменять местами два мероприятия
 	function SwapSubmoduleOrder(jSubmodule1, jSubmodule2) {
 		$.post(
-			URLdir + 'handler/map/SwapSubmoduleOrder',
+			g_URLdir + 'handler/map/SwapSubmoduleOrder',
 			{
 				'SubmoduleID1': jSubmodule1.attr('id'),
 				'SubmoduleID2': jSubmodule2.attr('id')
@@ -199,49 +199,49 @@ var jConfirmPrototype 	= $($.parseHTML(
 	
 	// Переместить вверх МОДУЛЬ
     $(".moduleList").on('click', '.upModule', function(){
-        var parentDIV = $(this).parent().parent().parent();
-		var moduleGroupDiv = parentDIV.prev('div.moduleGroup');
-		if (moduleGroupDiv.length > 0) {
-			SwapModuleOrder(parentDIV, moduleGroupDiv);
+        var jCkickedModule = $(this).parent().parent().parent();
+		var jModuleGroupDiv = jCkickedModule.prev('div.moduleGroup');
+		if (jModuleGroupDiv.length > 0) {
+			SwapModuleOrder(jCkickedModule, jModuleGroupDiv);
 		}
     });
 	
 	// Переместить вниз МОДУЛЬ
     $(".moduleList").on('click', '.downModule', function(){
-        var parentDIV = $(this).parent().parent().parent();
-		var moduleGroupDiv = parentDIV.next('div.moduleGroup');
-		if (moduleGroupDiv.length > 0) {
-			SwapModuleOrder(moduleGroupDiv, parentDIV);
+        var jCkickedModule = $(this).parent().parent().parent();
+		var jModuleGroupDiv = jCkickedModule.next('div.moduleGroup');
+		if (jModuleGroupDiv.length > 0) {
+			SwapModuleOrder(jModuleGroupDiv, jCkickedModule);
 		}
     });
 	
 	// Переместить вверх мероприятие
-    $(".moduleList").on('click', '.upSubModule', function(){
-        var parentDIV = $(this).parent().parent();
-		var subModule = parentDIV.prev('div.subModule');
-		if (subModule.length > 0) {
-			SwapSubmoduleOrder(parentDIV, subModule);
+    $(".moduleList").on('click', '.upSubmodule', function(){
+        var jCkickedSubmodule = $(this).parent().parent();
+		var jSubModule = jCkickedSubmodule.prev('div.submodule');
+		if (jSubModule.length > 0) {
+			SwapSubmoduleOrder(jCkickedSubmodule, jSubModule);
 		}
     });
 	
 	// Переместить вниз мероприятие
-    $(".moduleList").on('click', '.downSubModule', function(){
-        var parentDIV = $(this).parent().parent();
-		var subModule = parentDIV.next('div.subModule');
-		if (subModule.length > 0) {
-			SwapSubmoduleOrder(subModule, parentDIV);
+    $(".moduleList").on('click', '.downSubmodule', function(){
+        var jCkickedSubmodule = $(this).parent().parent();
+		var jSubModule = jCkickedSubmodule.next('div.submodule');
+		if (jSubModule.length > 0) {
+			SwapSubmoduleOrder(jSubModule, jCkickedSubmodule);
 		}
     });
 	
 	// Добавить модуль
 	$('.addModule').click(function(){
-		var thisObj = $(this);
+		var jThis = $(this);
     	$(this).attr("disabled", true);
-		var OrderNum = $('div.moduleGroup', 'div.moduleList').last().index('.moduleGroup') + 2;
+		var orderNum = $('div.moduleGroup', 'div.moduleList').last().index('.moduleGroup') + 2;
 		$.post(
-			URLdir + 'handler/map/AddModule',
+			g_URLdir + 'handler/map/AddModule',
 			{
-				'DisciplineID': DisciplineID
+				'DisciplineID': g_disciplineID
 			},
 			function(data){
 				data = $.parseJSON(data);
@@ -254,14 +254,14 @@ var jConfirmPrototype 	= $($.parseHTML(
 					}
 						
 					// К добавленному модулю добавляем ID
-					var thisModuleDIV = $('div.moduleGroup').eq(OrderNum - 1);
-					thisModuleDIV.attr('id', data.ModuleID);
+					var thisModuleDIV = $('div.moduleGroup').eq(orderNum - 1);
+					thisModuleDIV.attr('id', data.moduleID);
 					// К добавленному в модуль мероприятию добавляем ID
-					thisModuleDIV.children('div.subModules').children('div.subModule').eq(0).attr('id', data.SubmoduleID);
+					thisModuleDIV.children('div.submodules').children('div.submodule').eq(0).attr('id', data.submoduleID);
 					EventInspector_ShowMsg('Модуль добавлен', 'success');
 				} else 
 					EventInspector_ShowMsg('Ошибка при добавлении модуля', 'error');
-				thisObj.removeAttr('disabled');
+				jThis.removeAttr('disabled');
 			}
 		);
 		
@@ -270,26 +270,26 @@ var jConfirmPrototype 	= $($.parseHTML(
 	});
 	
 	// Добавить мероприятие
-	$('div.moduleList').on('click', 'button.addSubModule', function(){
-		var thisObj = $(this);
+	$('div.moduleList').on('click', 'button.addSubmodule', function(){
+		var jThis = $(this);
     	$(this).attr("disabled", true);
-		var ModuleID = $(this).parent().attr('id');
-		var SubmodulesDIV = $(this).siblings('div.subModules');
-		var OrderNum = SubmodulesDIV.children('div.subModule').last().index() + 2;
+		var submoduleID = $(this).parent().attr('id');
+		var jSubmodulesDIV = $(this).siblings('div.submodules');
+		var orderNum = jSubmodulesDIV.children('div.submodule').last().index() + 2;
 		$.post(
-			URLdir + 'handler/map/AddSubmodule',
+			g_URLdir + 'handler/map/AddSubmodule',
 			{
-				'ModuleID': ModuleID
+				'submoduleID': submoduleID
 			},
 			function(data){
 				data = $.parseJSON(data);
 				if(data.success === true) {
 					// К добавленному мероприятию добавляем ID
-					SubmodulesDIV.append(GetSubModuleTmp());
-					SubmodulesDIV.children('div.subModule').eq(OrderNum - 1).attr('id', data.SubmoduleID);
+					jSubmodulesDIV.append(GetSubmoduleTmp());
+					jSubmodulesDIV.children('div.submodule').eq(orderNum - 1).attr('id', data.submoduleID);
 					EventInspector_ShowMsg('Мероприятие добавлено', 'success');
 				} else EventInspector_ShowMsg('Ошибка при добавлении мероприятия', 'error');
-				thisObj.removeAttr('disabled');
+				jThis.removeAttr('disabled');
 			}
 		);
 	});
@@ -305,17 +305,17 @@ var jConfirmPrototype 	= $($.parseHTML(
 	
 	// Подтверждение при удаление модуля
 	$('.moduleList').on('click', '.confirmDeleteModule', function(){
-		var thisObj = $(this);
+		var jThis = $(this);
 
 		$.post(
-			URLdir + 'handler/map/DeleteModule',
+			g_URLdir + 'handler/map/DeleteModule',
 			{
 				'ModuleID': $(this).parent().parent().parent().attr('id'),
 			},
 			function(data){
 				data = $.parseJSON(data);
 				if(data.success === true) {
-					thisObj.parent().parent().parent().remove();
+					jThis.parent().parent().parent().remove();
 					
 					var c = 0;
 					$('div.moduleGroup')
@@ -336,7 +336,7 @@ var jConfirmPrototype 	= $($.parseHTML(
 					var e = 0;
 					if ($('div.ExamModule').length > 0) e = 40;
 					
-					$('span.RateIndicator').html(c + l + e);
+					$('span.rateIndicator').html(c + l + e);
 
 					if ($('div.moduleGroup').length == 0)
 						$('.moduleList').prepend('<div class="empty"><p class="notification">Модули отсутствуют</p></div>'); // Показываем 'Модули отсутствуют'
@@ -350,37 +350,37 @@ var jConfirmPrototype 	= $($.parseHTML(
 	});
 	
 	// Удалить мероприятие
-	$('.moduleList').on('click', '.deleteSubModule ', function(){
+	$('.moduleList').on('click', '.deleteSubmodule ', function(){
 		if ($(this).parent().parent().parent().children().size() <= 1) {
 			EventInspector_ShowMsg('Невозможно удалить единственное мероприятие в модуле.', 'error');
 			return;
 		}
 		$(this).parent().css('display', 'none');
-		$(this).parent().parent().append('<div class="confirmDeleteDiv">Уверены? <span class="confirmDeleteSubModule">Да</span> <span class="cancel">Нет</span></div>');
+		$(this).parent().parent().append('<div class="confirmDeleteDiv">Уверены? <span class="confirmDeleteSubmodule">Да</span> <span class="cancel">Нет</span></div>');
 	});
 	
 	// Подтверждение при удаление мероприятия
-	$('.moduleList').on('click', '.confirmDeleteSubModule ', function(){
-		var thisObj = $(this);
-		var subModulesDiv = $(this).parent().parent().parent();
-		if (subModulesDiv.children().size() <= 1) {
+	$('.moduleList').on('click', '.confirmDeleteSubmodule ', function(){
+		var jThis = $(this);
+		var jSubmodulesDiv = $(this).parent().parent().parent();
+		if (jSubmodulesDiv.children().size() <= 1) {
 			EventInspector_ShowMsg('Невозможно удалить единственное мероприятие в модуле.', 'error');
 			return;
 		}
-		CountCurrentControl(subModulesDiv);
-		CountLandmarkControl(subModulesDiv);
+		CountCurrentControl(jSubmodulesDiv);
+		CountLandmarkControl(jSubmodulesDiv);
 
 		$.post(
-			URLdir + 'handler/map/DeleteSubmodule',
+			g_URLdir + 'handler/map/DeleteSubmodule',
 			{
 				'SubmoduleID': $(this).parent().parent().attr('id')
 			},
 			function(data){
 				data = $.parseJSON(data);
 				if(data.success === true) {
-					var sub = thisObj.parent().parent();
+					var sub = jThis.parent().parent();
 					var mod = sub.parent().parent().find('div.moduleHead');
-					// get old submodule values
+					// get old jSubModule values
 					var dif1 = parseInt(sub.find('div.currentControl').find('input').val());
 					var dif2 = parseInt(sub.find('div.landmarkControl').find('input').val());
 					
@@ -392,11 +392,11 @@ var jConfirmPrototype 	= $($.parseHTML(
 					mod.children('div.landmarkControl').html(old - dif2);
 
 					// change sum rate
-					var RateIndicator = $('span.RateIndicator');
-					old = RateIndicator.html();
-					RateIndicator.html(old - dif1 - dif2);
+					var rateIndicator = $('span.rateIndicator');
+					old = rateIndicator.html();
+					rateIndicator.html(old - dif1 - dif2);
 					
-					thisObj.parent().parent().remove();
+					jThis.parent().parent().remove();
 					EventInspector_ShowMsg('Мероприятие удалено', 'success');
 				}
 				else EventInspector_ShowMsg('Ошибка при удалении мероприятия', 'error');
@@ -411,93 +411,93 @@ var jConfirmPrototype 	= $($.parseHTML(
 	});
 	
 	// Поменять название модуля
-	var ModuleName;
-	$('div.moduleList').on('focusin', 'input.ModuleName', function(){
-		ModuleName = $(this).val();
+	var moduleName;
+	$('div.moduleList').on('focusin', 'input.moduleName', function(){
+		moduleName = $(this).val();
 	});
-	$('div.moduleList').on('focusout', 'input.ModuleName', function(){
-		var thisObj = $(this);
+	$('div.moduleList').on('focusout', 'input.moduleName', function(){
+		var jThis = $(this);
     	$(this).attr("disabled", true);
-		var NewModuleName = $(this).val();
-		if (NewModuleName != '' && ModuleName != NewModuleName) {
-			var ID = $(this).parent('').parent('').parent('').attr('id');
+		var newModuleName = $(this).val();
+		if (newModuleName !== '' && moduleName !== newModuleName) {
+			var ID = $(this).parent().parent().parent().attr('id');
 			$.post(
-				URLdir + 'handler/map/ChangeModuleName',
+				g_URLdir + 'handler/map/ChangeModuleName',
 				{
 					'ModuleID': ID,
-					'ModuleName': NewModuleName
+					'ModuleName': newModuleName
 				},
 				function(data){
 					data = $.parseJSON(data);
 					if(data.success === true)
 						EventInspector_ShowMsg('Имя модуля изменено', 'success');
 					else EventInspector_ShowMsg('Ошибка при изменении имени модуля', 'error');
-					thisObj.removeAttr('disabled');
+					jThis.removeAttr('disabled');
 				}
 			);
-		} else thisObj.removeAttr('disabled');
+		} else jThis.removeAttr('disabled');
 	});
-	$('.moduleList').on('keydown', '.ModuleName', function(e){
+	$('.moduleList').on('keydown', '.moduleName', function(e){
 		if(e.keyCode==13){
-			$('.ModuleName').trigger('focusout');
+			$('.moduleName').trigger('focusout');
 		}
 	});
 	
 	// Поменять название мероприятие
-	var SubmoduleName;
-	$('div.moduleList').on('focusin', 'input.SubmoduleName', function(){
-		SubmoduleName = $(this).val();
+	var submoduleName;
+	$('div.moduleList').on('focusin', 'input.submoduleName', function(){
+		submoduleName = $(this).val();
 	});
-	$('div.moduleList').on('focusout', 'input.SubmoduleName', function(){
-		var thisObj = $(this);
+	$('div.moduleList').on('focusout', 'input.submoduleName', function(){
+		var jThis = $(this);
     	$(this).attr("disabled", true);
-		var NewSubmoduleName = $(this).val();
-		if (NewSubmoduleName != '' && SubmoduleName != NewSubmoduleName) {
+		var newSubmoduleName = $(this).val();
+		if (newSubmoduleName !== '' && submoduleName !== newSubmoduleName) {
 			var ID = $(this).parent('div').parent('div').attr('id');
 			$.post(
-				URLdir + 'handler/map/ChangeSubmoduleName',
+				g_URLdir + 'handler/map/ChangeSubmoduleName',
 				{
 					'SubmoduleID': ID,
-					'SubmoduleName': NewSubmoduleName
+					'SubmoduleName': newSubmoduleName
 				},
 				function(data){
 					data = $.parseJSON(data);
 					if(data.success === true)
 						EventInspector_ShowMsg('Имя мероприятия изменено', 'success');
 					else EventInspector_ShowMsg('Ошибка при изменении имени мероприятия', 'error');
-					thisObj.removeAttr('disabled');
+					jThis.removeAttr('disabled');
 				}
 			);
-		} else thisObj.removeAttr('disabled');
+		} else jThis.removeAttr('disabled');
 	});
-	$('div.moduleList').on('keydown', 'input.SubmoduleName', function(e){
+	$('div.moduleList').on('keydown', 'input.jSubModuleName', function(e){
 		if(e.keyCode==13){
-			$('.SubmoduleName').trigger('focusout');
+			$('.jSubModuleName').trigger('focusout');
 		}
 	});
 	
 	// При записи в input текущий контроль
 	// При фокусе
-	var OldMaxRate = 0;
+	var oldMaxRate = 0;
 	$('div.moduleList').on('focusin', 'input.inputCurrentControl', function(){
-		OldMaxRate = $(this).val();
+		oldMaxRate = $(this).val();
 	});
 	// При потери фокуса
 	$('div.moduleList').on('focusout', 'input.inputCurrentControl', function(){
     	$(this).attr("disabled", true);
-		SetNewRateAndControl($(this), OldMaxRate);
+		SetNewRateAndControl($(this), oldMaxRate);
 	});
 	
 	// При записи в input рубежный контроль
 	// При фокусе
-	var OldMaxRate = 0;
+	var oldMaxRate = 0;
 	$('div.moduleList').on('focusin', 'input.inputLandmarkControl', function(){
-		OldMaxRate = $(this).val();
+		oldMaxRate = $(this).val();
 	});
 	// При потере фокуса
 	$('div.moduleList').on('focusout', 'input.inputLandmarkControl', function(){
 		$(this).attr("disabled", true);
-		SetNewRateAndControl($(this), OldMaxRate);
+		SetNewRateAndControl($(this), oldMaxRate);
 	});
 	
 	// В inputCredit (где баллы вводить) разрешаем вводить только цифры
diff --git a/~dev_rating/media/js/discipline/general.js b/~dev_rating/media/js/discipline/general.js
index 6c49d32c6c6ce4a325d2079a674d719818a93300..0fbb764d45c89818b37d3c9aa16a45af60557b19 100644
--- a/~dev_rating/media/js/discipline/general.js
+++ b/~dev_rating/media/js/discipline/general.js
@@ -5,6 +5,8 @@ var $ = jQuery;
 $(function() {
     g_URL = (window.location.href).split("/");
     g_disciplineID = g_URL[g_URL.length - 1];
+
+    DisciplineID = g_disciplineID;
     
     var subjectsGlobal = [];