fork download
  1.  
  2.  
  3.  
  4.  
  5. <?php
  6.  
  7. // Each sponsor is an element of the $sponsors array:
  8.  
  9. $sponsors = array(
  10. array('bison','Przykladowy opis po poslku','Example description in English','http://w...content-available-to-author-only...k.com/'),
  11. array('bazarynka','Przykladowy opis po poslku','Example description in English','http://w...content-available-to-author-only...k.com/'),
  12. array('budkasuflera','Przykladowy opis po poslku','Example description in English','http://w...content-available-to-author-only...k.com/'),
  13. array('doda','Przykladowy opis po poslku','Example description in English','http://w...content-available-to-author-only...k.com/'),
  14. array('limo','Przykladowy opis po poslku','Example description in English','http://w...content-available-to-author-only...k.com/'),
  15. array('diil','Przykladowy opis po poslku','Example description in English','http://w...content-available-to-author-only...k.com/'),
  16. array('dge','Przykladowy opis po poslku','Example description in English','http://w...content-available-to-author-only...k.com/')
  17.  
  18. );
  19.  
  20. shuffle($sponsors);
  21. ?>
  22.  
  23.  
  24.  
  25. <style type="text/css">
  26.  
  27.  
  28. .center {text-align:center;}
  29.  
  30.  
  31. /* ---- styling the list ---- */
  32.  
  33. #work {
  34. float:left;
  35. list-style:none;
  36. margin:0;
  37. padding:0;
  38. }
  39. #work li {
  40. float:left;
  41. display:block;
  42. width:130px;
  43. margin:10px;
  44. display:inline;
  45. padding:0px;
  46. background:#fff;
  47. border:0px solid #333333;
  48. height:130px;
  49. }
  50. #work li a {
  51. /*border:none;*/
  52. }
  53. #work p {
  54.  
  55. font-size: 0.80em;
  56.  
  57. margin: 10px;
  58.  
  59.  
  60. }
  61.  
  62.  
  63. /* ---- show-hide elements ---- */
  64.  
  65. #work li .show{
  66. display:block;
  67. width:130px;
  68. height:130px;
  69. }
  70. #work li .hide {
  71. color:#d4df9d;
  72. text-align: left;
  73. height: 0;
  74. overflow: hidden;
  75. background:#111111;
  76.  
  77. cursor: pointer;
  78.  
  79. }
  80. #work li:hover .hide, #work li.over .hide {
  81. cursor: pointer;
  82. height: 130px;
  83. padding:5px;
  84. width:130px;
  85. border:1px solid #333333;
  86. }
  87. #work li:hover .show, #work li.over .show {
  88. height: 0;
  89. overflow: hidden;
  90. }
  91.  
  92.  
  93.  
  94. </style>
  95.  
  96.  <ul id="work">
  97.  
  98. <?php
  99.  
  100. foreach($sponsors as $company)
  101.  
  102. {
  103.  
  104. echo '
  105.  
  106. <li> <a class="show" href="#"><img src="demo/img/sponsors/'.$company[0].'.jpg" /></a>
  107. <div class="hide"><!--<a href="#"><h4>Limo Company</h4></a>-->
  108. <p>'.$company[1].'</p><p><a href="'.$company[3].'">www</a>
  109. </div>
  110. </li>
  111.  
  112. ';
  113.  
  114. }
  115.  
  116.  
  117.  
  118. </ul>
  119.  
  120.  
  121.  
  122. ?>
  123.  
  124.  
  125.  
Runtime error #stdin #stdout 0.02s 13664KB
stdin
Standard input is empty
stdout
Parse error: syntax error, unexpected '<' in /home/SZxhGn/prog.php on line 118