Wyciokazz

filmai.php su borderiu

Dec 18th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. <?php
  2. require_once "maincore.php";
  3. require_once THEMES."templates/header.php";
  4. echo"<script type='text/javascript' src='".INCLUDES."title.js'></script>";
  5. ?>
  6. <style type="text/css">
  7.  
  8. tooltip {
  9. font-family: Verdana, Arial, Helvetica, sans-serif;
  10. font-size: 10px;
  11. color: #ffffff;
  12. position: absolute;
  13. z-index: 3000;
  14. /*border: 1px solid #111;*/
  15. background-color: #000;
  16. padding: 5px;
  17.  
  18. }
  19.  
  20. tooltip h3, #tooltip div { margin: 0; }
  21.  
  22. div#qTip {
  23. padding: 5px;
  24. border: 0px solid #666;
  25. display: none;
  26. background: #000;
  27. color: #FFFFFF;
  28. font-family: Verdana, Arial, Helvetica, sans-serif;
  29. font-size: 10px;
  30. text-align: left;
  31. position: absolute;
  32. z-index: 1000;
  33. }
  34. .borderis
  35. {
  36. border: 4px solid #1874CD;
  37. border-radius: 5px;
  38. padding: 4px;
  39. background-color: black;
  40. border-image: initial;
  41. }
  42.  
  43. .borderis2
  44. {
  45. border: 4px solid #000000;
  46. border-radius: 5px;
  47. padding: 4px;
  48. background-color: black;
  49. border-image: initial;
  50. }
  51. </style>
  52. <?php
  53.  
  54.  
  55. $items_per_page = 16;
  56.  
  57.  
  58. if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) {
  59. $_GET['rowstart'] = 0;
  60. }
  61.  
  62. $rows = dbcount("(*)", DB_NEWS, "news_draft='0'");
  63. //opentable("");
  64.  
  65. //$result = dbquery("SELECT * FROM ".$db_prefix."news ORDER BY news_datestamp DESC LIMIT 0,4");
  66. $result = dbquery(
  67. "SELECT * FROM ".DB_NEWS."
  68. WHERE news_draft='0' ORDER BY news_datestamp DESC
  69. LIMIT ".$_GET['rowstart'].",$items_per_page"
  70. );
  71.  
  72.  
  73. if (dbrows($result) != 0) {
  74. $counter = 0; $columns = 4;
  75. echo"<table cellpadding='0' cellspacing='0' width='100%' style='padding:5px;'>\n<tr>\n";
  76. while($data = dbarray($result)) {
  77. //$kat = dbresult(dbquery("SELECT download_cat_name FROM ".$db_prefix."download_cats WHERE download_cat_id='$id'"), 0);
  78. if ($counter != 0 && ($counter % $columns == 0)) { echo "</tr>\n<tr>\n"; }
  79.  
  80. $wynik = dbquery("SELECT SUM(rating_vote) FROM ".DB_RATINGS." WHERE rating_type='N' AND rating_item_id='".$data['news_id']."'");
  81. $info2 = dbresult($wynik,0);
  82. $num_rating = dbcount("(rating_vote)", DB_RATINGS, "rating_type='N' AND rating_item_id='".$data['news_id']."'");
  83. $wyn_rating = ($num_rating ? $info2 / $num_rating : 0);
  84. $komentarai = dbcount("(comment_id)", DB_COMMENTS, "comment_type='N' AND comment_item_id='".$data['news_id']."' AND comment_hidden='0'");
  85. // $tas = trimlink($data['news_news'], 600);
  86. $tas = $data['news_breaks'] == "y" ? nl2br(stripslashes($data['news_news'])) : stripslashes($data['news_news']);
  87.  
  88. echo"<td style='padding:5px;'>";
  89.  
  90. echo "<table cellpadding='0' cellspacing='0' width='150' class='borderis' onmouseover=\"className='borderis2'\" onmouseout=\"className='borderis'\">\n<tr>\n";
  91.  
  92. echo"<td colspan='2' align='center'><a href='/news.php?readmore=".$data['news_id']."' tit='<table width=260px><tr><td class=c>
  93. <b><span style=color:#0099FF;font-size:12px;>".$data['news_subject']."</span></b><br>$tas<br>
  94. <b>&#381;i&#363;r&#279;jo: ".$data['news_reads']."</b>
  95.  
  96. </td></tr>
  97. </table>'><img src='".IMAGES_N.$data['news_image']."' width='160' height='245' /></a></td>";
  98.  
  99. echo"</tr>
  100. <td width='105' style='padding:2px;'><img src='".THEME."images/retitingai/".ceil($wyn_rating).".png' width='80' height='13' alt='".ceil($wyn_rating)."' style='vertical-align:middle;' title='".ceil($wyn_rating)."' /></td>
  101. <td class='c' align='right'><a href='/news.php?readmore=".$data['news_id']."'>&#381;i&#363;r&#279;ti</a></td>
  102. </tr>";
  103.  
  104. echo"</table>";
  105.  
  106.  
  107.  
  108. echo "</td>\n" ;
  109. $counter++;
  110. }
  111. echo "</tr>\n</table>\n";
  112.  
  113. }
  114.  
  115.  
  116. //closetable();
  117. echo"<div align='center'>";
  118. if ($rows > $items_per_page) {
  119. echo makepagenav($_GET['rowstart'], $items_per_page, $rows, 3);
  120. }
  121.  
  122. require_once THEMES."templates/footer.php";
  123.  
  124. ?>
Add Comment
Please, Sign In to add comment