PageRenderTime 52ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/includes/bizlevel.php

http://ebpls.googlecode.com/
PHP | 119 lines | 90 code | 28 blank | 1 comment | 27 complexity | 5f9bd7f80855ce3f450fb2e6c167a637 MD5 | raw file
  1. <?
  2. //get sub levels
  3. $getsl = mysql_query("SELECT b.* FROM ebpls_user_sublevel_listings a,
  4. ebpls_user_sublevel b WHERE a.user_id = $user_id
  5. and a.sublevel_id = b.id") or die (mysql_error());
  6. while ($getd = mysql_fetch_row($getsl)) {
  7. if ($getd[0]=='Business Permit') {
  8. $pm = 1;
  9. $bp = 1;
  10. if (trim($getd[1])=='Application') {
  11. $bpap = 1;
  12. $ssap = 1;
  13. if (trim($getd[2])=='New') {
  14. $bpapn = 1;
  15. }
  16. if (trim($getd[2])=='ReNew') {
  17. $bpapr = 1;
  18. }
  19. if (trim($getd[2])=='Retire') {
  20. $bpapt = 1;
  21. }
  22. if (trim($getd[2])=='Search') {
  23. $bpaps = 1;
  24. }
  25. }
  26. if (trim($getd[1])=='Assessment') {
  27. $bpas = 1;
  28. $ssass = 1;
  29. if (trim($getd[2])=='New') {
  30. $bpasn = 1;
  31. }
  32. if (trim($getd[2])=='ReNew') {
  33. $bpasr = 1;
  34. }
  35. if (trim($getd[2])=='Retire') {
  36. $bpast = 1;
  37. }
  38. if (trim($getd[2])=='Search') {
  39. $bpass = 1;
  40. }
  41. }
  42. if (trim($getd[1])=='Approval') {
  43. $bpapp = 1;
  44. $ssapp = 1;
  45. if (trim($getd[2])=='New') {
  46. $bpappn = 1;
  47. }
  48. if (trim($getd[2])=='ReNew') {
  49. $bpappr = 1;
  50. }
  51. if (trim($getd[2])=='Retire') {
  52. $bpappt = 1;
  53. }
  54. if (trim($getd[2])=='Search') {
  55. $bpapps = 1;
  56. }
  57. }
  58. if (trim($getd[1])=='Payment') {
  59. $bpay = 1;
  60. $sspay = 1;
  61. if (trim($getd[2])=='New') {
  62. $bpayn = 1;
  63. }
  64. if (trim($getd[2])=='ReNew') {
  65. $bpayr = 1;
  66. }
  67. if (trim($getd[2])=='Retire') {
  68. $bpayt = 1;
  69. }
  70. if (trim($getd[2])=='Search') {
  71. $bpays = 1;
  72. }
  73. }
  74. if (trim($getd[1])=='Releasing') {
  75. $bpar = 1;
  76. $ssar = 1;
  77. if (trim($getd[2])=='New') {
  78. $bparn = 1;
  79. }
  80. if (trim($getd[2])=='ReNew') {
  81. $bparr = 1;
  82. }
  83. if (trim($getd[2])=='Retire') {
  84. $bpart = 1;
  85. }
  86. if (trim($getd[2])=='Search') {
  87. $bpars = 1;
  88. }
  89. }
  90. }
  91. } // end while