1. JavaScript / Говнокод #27262

    0

    1. 001
    2. 002
    3. 003
    4. 004
    5. 005
    6. 006
    7. 007
    8. 008
    9. 009
    10. 010
    11. 011
    12. 012
    13. 013
    14. 014
    15. 015
    16. 016
    17. 017
    18. 018
    19. 019
    20. 020
    21. 021
    22. 022
    23. 023
    24. 024
    25. 025
    26. 026
    27. 027
    28. 028
    29. 029
    30. 030
    31. 031
    32. 032
    33. 033
    34. 034
    35. 035
    36. 036
    37. 037
    38. 038
    39. 039
    40. 040
    41. 041
    42. 042
    43. 043
    44. 044
    45. 045
    46. 046
    47. 047
    48. 048
    49. 049
    50. 050
    51. 051
    52. 052
    53. 053
    54. 054
    55. 055
    56. 056
    57. 057
    58. 058
    59. 059
    60. 060
    61. 061
    62. 062
    63. 063
    64. 064
    65. 065
    66. 066
    67. 067
    68. 068
    69. 069
    70. 070
    71. 071
    72. 072
    73. 073
    74. 074
    75. 075
    76. 076
    77. 077
    78. 078
    79. 079
    80. 080
    81. 081
    82. 082
    83. 083
    84. 084
    85. 085
    86. 086
    87. 087
    88. 088
    89. 089
    90. 090
    91. 091
    92. 092
    93. 093
    94. 094
    95. 095
    96. 096
    97. 097
    98. 098
    99. 099
    100. 100
    function check_cur_zak(id_zak, obj)
    {
    	obj.getElementsByTagName('img')[0].style.display='none';
    	obj.getElementsByTagName('img')[1].style.display='block';
    	var ch_ids_tree_dse = arr2_ids_dse[id_zak].split('|');
    	var ch_names_tree_dse = arr2_names_dse[id_zak].split('|');
    	var ch_obozs_tree_dse = arr2_obozs_dse[id_zak].split('|');
    	var ch_child_tree_dse = arr2_child_dse[id_zak].split('|');
    	var cur_tree_dse = '';
    
    	if(document.getElementById('nav_tekysh_3').name>0)
    	{
    		console.log(arr_oprs_c_r_2)
    		var spl_op_res = arr_oprs_c_r_2[document.getElementById('nav_tekysh_3').name].split('|');
    		var spl_op_res_arr = [];
    
    		for (var spl_f_ar=0; spl_f_ar<spl_op_res.length; spl_f_ar++)
    			spl_op_res_arr[spl_op_res[spl_f_ar]] = spl_op_res[spl_f_ar];
    	}
    
    	for (var ch_t_f_d=0; ch_t_f_d < (ch_ids_tree_dse.length-1); ch_t_f_d++)
    	{
    		var cur_tree_oper_cur_dse = '';
    		var jv3_arr_full_tbl_1_spl = jv2_arr_full_tbl_1_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_2_spl = jv2_arr_full_tbl_2_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_3_spl = jv2_arr_full_tbl_3_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_4_spl = jv2_arr_full_tbl_4_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_5_spl = jv2_arr_full_tbl_5_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_5_1_spl = jv2_arr_full_tbl_5_1_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_6_spl = jv2_arr_full_tbl_6_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_7_spl = jv2_arr_full_tbl_7_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_8_spl = jv2_arr_full_tbl_8_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_9_spl = jv2_arr_full_tbl_9_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_10_spl = jv2_arr_full_tbl_10_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_11_spl = jv2_arr_full_tbl_11_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_12_spl = jv2_arr_full_tbl_12_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_14_spl = jv2_arr_full_tbl_14_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_15_spl = jv2_arr_full_tbl_15_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		var jv3_arr_full_tbl_16_spl = jv2_arr_full_tbl_16_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    
    		jv3_arr_full_tbl_17_spl = jv2_arr_full_tbl_17_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		jv3_arr_full_tbl_18_spl = jv2_arr_full_tbl_18_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    		jv3_arr_full_tbl_19_spl = jv2_arr_full_tbl_19_spl[ch_ids_tree_dse[ch_t_f_d]].split('|');
    
    		var cur_dse_op_dse = '';
    		var cur_id_op_dse = '';
    		var cur_vp_op_dse = '';
    		
    		for (var ch_t_f_o=0; ch_t_f_o < (jv3_arr_full_tbl_1_spl.length-1); ch_t_f_o++)
    		{
    			var clas_tr_col = 'fff';
    			var clas_tr_br = 'fff';
    			var clas_tr_pr = 'fff';
    			var clas_tr_park = 'fff';
    			var zadel_op = 0;
    			var stl_b_tr_pr = '';
    			var js_vp_op = '0<br>0.00';
    			var js_ksz_op = '0<br>0.00';
    			// if (jv3_arr_full_tbl_14_spl[ch_t_f_o]>0)
    			// 	{
    			// 			clas_tr_col='ddffdd';
    			// 			clas_tr_br='ddffdd';
    			// 			clas_tr_pr='ddffdd';
    			// 			clas_tr_park='ddffdd';
    			// 	}
    
    			if(document.getElementById('nav_tekysh_3').name>0)
    			{
    				if (spl_op_res_arr[jv3_arr_full_tbl_16_spl[ch_t_f_o]])
    					{
    						clas_tr_pr='99ff99';
    						stl_b_tr_pr = 'font-size:150%; color:#13BD13;padding-left:5px';
    					}
    			var parks_for_cur_res = document.getElementById('park_sel_cur_res').options.length;
    				for (var p_f_c_r=0; p_f_c_r<parks_for_cur_res; p_f_c_r++)
    				{
    					if ((document.getElementById('park_sel_cur_res').options[p_f_c_r].value !== '0')&&(document.getElementById('park_sel_cur_res').options[p_f_c_r].value !== ''))
    					{
    						if (jv3_arr_full_tbl_5_1_spl[ch_t_f_o]==document.getElementById('park_sel_cur_res').options[p_f_c_r].value)
    									clas_tr_park='99ddff';
    					}
    				}
    			}
    
    			if (jv3_arr_full_tbl_12_spl[ch_t_f_o]==1)
    					clas_tr_br='ff9999';
    
    			if (jv3_arr_full_tbl_15_spl[ch_t_f_o]==0)
    			{
    
    				if(jv3_arr_full_tbl_3_spl[ch_t_f_o]=='')
    					jv3_arr_full_tbl_3_spl[ch_t_f_o]='0';
    
    				if(jv3_arr_full_tbl_6_spl[ch_t_f_o]=='')
    					jv3_arr_full_tbl_6_spl[ch_t_f_o]='0.00';
    
    				if(jv3_arr_full_tbl_7_spl[ch_t_f_o]=='')
    					jv3_arr_full_tbl_7_spl[ch_t_f_o]='0';
    
    				if(jv3_arr_full_tbl_8_spl[ch_t_f_o]=='')

    Запостил: kib0rg, 18 Февраля 2021

    Комментарии (11) RSS

    Добавить комментарий