1. PHP / Говнокод #20525

    +4

    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
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    // Change the color of the displayed status
    		if ($status == "active") {
    			$status_display = '<font color="white">' . $status . '</font>';
    		} elseif ($status == "sold") {
    			$status_display = '<font color="green">' . $status . '</font>';
    		} elseif ($status == "emis") {
    			$status_display = '<font color="orange">' . $status . '</font>';
    		} elseif ($status == "alert") {
    			//
    		} elseif ($status == "deleted") {
    			$status_display = '<font color="white">' . $status . '</font>';
    			//$style="text-decoration: line-through;";
    		} elseif ($status == "closed") {
    			$status_display = '<font color="closed">' . $status . '</font>';
    		} elseif ($status == "options_sent") {
    			$status_display = '<font color="yellow">' . $status . '</font>';
    		}
    		if ($trip_type == "one_way") {
    			$one_way = "SELECTED";
    			$round_trip = "";
    			$trip_type = '<font color="DarkBlue">One Way</font>';
    		} else {
    			$one_way = "";
    			$round_trip = "SELECTED";
    			$trip_type = '<font color="#348017">Round Trip</font>';
    		}
    		if ($cabin_class == "economy_class") {
    			$eco_class = "SELECTED";
    			$bus_class = "";
    			$ooo_class = "";
    		} elseif ($cabin_class == "business_class") {
    			$eco_class = "";
    			$bus_class = "SELECTED";
    			$ooo_class = "";
    		} elseif ($cabin_class == "o_class") {
    			$eco_class = "";
    			$bus_class = "";
    			$ooo_class = "SELECTED";
    		}
    		if ($num_pass == "1") {
    			$n1 = "SELECTED";
    			$n2 = "";
    			$n3 = "";
    			$n4 = "";
    			$n5 = "";
    			$n6 = "";
    			$n7 = "";
    			$n8 = "";
    			$n9 = "";
    			$n10 = "";
    		} elseif ($num_pass == "2") {
    			$n1 = "";
    			$n2 = "SELECTED";
    			$n3 = "";
    			$n4 = "";
    			$n5 = "";
    			$n6 = "";
    			$n7 = "";
    			$n8 = "";
    			$n9 = "";
    			$n10 = "";
    		} elseif ($num_pass == "3") {
    			$n1 = "";
    			$n2 = "";
    			$n3 = "SELECTED";
    			$n4 = "";
    			$n5 = "";
    			$n6 = "";
    			$n7 = "";
    			$n8 = "";
    			$n9 = "";

    Вот почему не надо мелочиться. И нанимать нормальных программистов.

    Запостил: OMD, 11 Августа 2016

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

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