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

    +161

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    else
    		{
    		fronter = user;
    		LasTCID			= MDnextResponse_array[0];
    		document.vicidial_form.lead_id.value			= MDnextResponse_array[1];
    		LeaDPreVDispO	= MDnextResponse_array[2];
    		document.vicidial_form.vendor_lead_code.value	= MDnextResponse_array[4];
    		document.vicidial_form.list_id.value			= MDnextResponse_array[5];
    		document.vicidial_form.gmt_offset_now.value		= MDnextResponse_array[6];
    		document.vicidial_form.phone_code.value			= MDnextResponse_array[7];
    		if ( (disable_alter_custphone=='Y') || (disable_alter_custphone=='HIDE') )
    			{
    			var tmp_pn = document.getElementById("phone_numberDISP");
    			if (disable_alter_custphone=='Y')
    {
    tmp_pn.innerHTML		= MDnextResponse_array[8];
    }
    			}
    		document.vicidial_form.phone_number.value		= MDnextResponse_array[8];
    		document.vicidial_form.title.value= MDnextResponse_array[9];
    		document.vicidial_form.first_name.value			= MDnextResponse_array[10];
    		document.vicidial_form.middle_initial.value		= MDnextResponse_array[11];
    		document.vicidial_form.last_name.value			= MDnextResponse_array[12];
    		document.vicidial_form.address1.value			= MDnextResponse_array[13];
    		document.vicidial_form.address2.value			= MDnextResponse_array[14];
    		document.vicidial_form.address3.value			= MDnextResponse_array[15];
    		document.vicidial_form.city.value= MDnextResponse_array[16];
    		document.vicidial_form.state.value= MDnextResponse_array[17];
    		document.vicidial_form.province.value			= MDnextResponse_array[18];
    		document.vicidial_form.postal_code.value		= MDnextResponse_array[19];
    		document.vicidial_form.country_code.value		= MDnextResponse_array[20];
    		document.vicidial_form.gender.value= MDnextResponse_array[21];
    		document.vicidial_form.date_of_birth.value		= MDnextResponse_array[22];
    		document.vicidial_form.alt_phone.value			= MDnextResponse_array[23];
    		document.vicidial_form.email.value= MDnextResponse_array[24];
    		document.vicidial_form.security_phrase.value	= MDnextResponse_array[25];
    		var REGcommentsNL = new RegExp("!N","g");
    		MDnextResponse_array[26] = MDnextResponse_array[26].replace(REGcommentsNL, "\n");
    		document.vicidial_form.comments.value			= MDnextResponse_array[26];
    		document.vicidial_form.called_count.value		= MDnextResponse_array[27];
    		previous_called_count			= MDnextResponse_array[27];
    		previous_dispo	= MDnextResponse_array[2];
    		CBentry_time	= MDnextResponse_array[28];
    		CBcallback_time	= MDnextResponse_array[29];
    		CBuser			= MDnextResponse_array[30];
    		CBcomments		= MDnextResponse_array[31];
    		dialed_number	= MDnextResponse_array[32];
    		dialed_label	= MDnextResponse_array[33];
    		source_id		= MDnextResponse_array[34];
    		document.vicidial_form.rank.value= MDnextResponse_array[35];
    		document.vicidial_form.owner.value= MDnextResponse_array[36];
    	//	CalL_ScripT_id	= MDnextResponse_array[37];
    		script_recording_delay			= MDnextResponse_array[38];
    		CalL_XC_a_NuMber= MDnextResponse_array[39];
    		CalL_XC_b_NuMber= MDnextResponse_array[40];
    		CalL_XC_c_NuMber= MDnextResponse_array[41];
    		CalL_XC_d_NuMber= MDnextResponse_array[42];
    		CalL_XC_e_NuMber= MDnextResponse_array[43];
    
    		timer_action = campaign_timer_action;
    		timer_action_message = campaign_timer_action_message;
    		timer_action_seconds = campaign_timer_action_seconds;
    			
    		lead_dial_number = document.vicidial_form.phone_number.value;
    		var dispnum = document.vicidial_form.phone_number.value;
    		var status_display_number = phone_number_format(dispnum);

    Запостил: 7ion, 20 Марта 2011

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

    • Такое ощущение, что у автора был очень плохой кодогенератор, и в какой-то момент он сломался, и автор решил дописать вручную...
      Ответить

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