"PHP" / Говнокод #4132 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  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
//               
                   // <?php if (!Yii::app()->user->checkAccess('partner')) { ?>

                        a+='<td'+cl+'>'+msg['keywords'][i][mord] + '</td>';

                   // <?php } ?>

                        //'</strong></td><td'+cl+'>'+currentMordCost+
                        a+='<td'+cl+'>'+(msg['keywords'][i]['costM'])
                        +'</td>'+
                        '<td'+cl+'>'+$.getTiming(msg['domainTrust'], msg['keywords'][i][mord]) + '</td>' +
                        '<td'+cl+'><img class="info" src=\"/images/information.png\" alt=\"'+i+'\" id=\"'+i+'\" > <B>' +msg['keywords'][i]['notice']+'</B></td></tr>';
                        msg['keywords'][i]['domainTrust'] = msg['domainTrust'];
                        hints[i]=jQuery.getHint(msg['keywords'][i]);
                        if (msg['keywords'][i]['bad']==true)
                            badCount++;
                        //mordNestedCost = mord/2 / msg['keywords'][i]['nested'].length;

                        //costMNested=(msg['keywords'][i]['costM']) / 2 / msg['keywords'][i]['nested'].length;
                        //if (halfMord == "-")
                        //	mordNestedCost = costMNested = "-";
                            mod='';modA='';
                        for (k=0;k<msg['keywords'][i]['nested'].length;k++)
                        {

                            if (k==parseInt(msg['keywords'][i]['up']))
                                {
                                    mod  = '<span style="color:#626262;font-weight:bold;">';
                                    modA = '<\/span>';
                                }
                                if (msg['keywords'][i]['nested'][k]['freq'] <= 50 && msg['keywords'][i]['nested'][k]['mordCost'] >= 1)
                                        {
                                msg['keywords'][i]['nested'][k]['notice'] += " <BR><span style='color:red'>Возможно посчитано неверно!</span>";
                                hasCriticalErrors = true;
                                        }
                            a+= '<tr><td'+cl+'>' + mod + '    '+(msg['keywords'][i]['nested'][k]['title'])+ modA +
                            '</td>';

                        // // <?php if (!Yii::app()->user->checkAccess('partner')) { ?>

                            a+='<td'+cl+'>'+(msg['keywords'][i]['nested'][k][mord])+'</td>';

                        // <?php } ?>

                            a+='<td'+cl+'>'+
                            //'</td><td'+cl+'>'+currentNestedMordCost+'</td><td'+cl+'>'+
                            (msg['keywords'][i]['nested'][k]['costM'])+'</td>'+
                                '<td'+cl+'>'+$.getTiming(msg['domainTrust'], msg['keywords'][i]['nested'][k][mord]) + '</td>' +
                                '<td'+cl+'>'+'<img class="info" src=\"/images/information.png\" alt=\"info_'+i+'_'+k+'\" id=\"'+i+'_'+k+'\" >'+' <B>'+msg['keywords'][i]['nested'][k]['notice']+'</B></td></tr>';
                            msg['keywords'][i]['nested'][k]['domainTrust'] = msg['domainTrust'];
                            hints[i+'_'+k]=jQuery.getHint(msg['keywords'][i]['nested'][k]);
                            if (msg['keywords'][i]['nested']['bad'] == true)
                                badCount++;




                        }

Как вам такая каша из яваскрипта, пхп и хтмл?

Запостил: user654321 user654321, (Updated )

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

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

Из-за тебя ушел bormand, guest!

    А не использовать ли нам bbcode?


    8