Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.39 KB | None | 0 0
  1. <script type='text/javascript' src='/public/js/3rd_party/lightbox.js'></script>
  2.  
  3. <script type='text/javascript'>
  4. //<![CDATA[
  5. // Lightbox Configuration
  6. LightboxOptions = Object.extend({
  7. fileLoadingImage: '/public/style_images/dev/lightbox/loading.gif',
  8. fileBottomNavCloseImage: '/public/style_images/dev/lightbox/closelabel.gif',
  9. overlayOpacity: 0.8, // controls transparency of shadow overlay
  10. animate: true, // toggles resizing animations
  11. resizeSpeed: 10, // controls the speed of the image resizing animations (1=slowest and 10=fastest)
  12. borderSize: 10, //if you adjust the padding in the CSS, you will need to update this variable
  13. // When grouping images this is used to write: Image # of #.
  14. // Change it for non-english localization
  15. labelImage: "Obrazek",
  16. labelOf: "z"
  17. }, window.LightboxOptions || {});
  18. /* Watch for a lightbox image and set up our downloadbutton watcher */
  19. document.observe('click', (function(event){
  20. var target = event.findElement('a[rel*="lightbox"]') || event.findElement('area[rel*="lightbox"]') || event.findElement('span[rel*="lightbox"]');
  21. if (target) {
  22. event.stop();
  23. gbl_addDownloadButton();
  24. }
  25. }).bind(this));
  26. var _to = '';
  27. var _last = '';
  28. function gbl_addDownloadButton()
  29. {
  30. if ( typeof( ipsLightbox.lightboxImage ) != 'undefined' && ipsLightbox.lightboxImage.src )
  31. {
  32. if ( _last != ipsLightbox.lightboxImage.src )
  33. {
  34. if ( ! $('gbl_d') )
  35. {
  36. $('bottomNav').insert( { top: "<div id='gbl_d' style='text-align:right;padding-bottom:4px;'></div>" } );
  37. }
  38.  
  39. $('gbl_d').update( "<a href='"+ ipsLightbox.lightboxImage.src + "' target='_blank'><img src='/public/style_images/dev/lightbox/download-icon.png' /></a>" );
  40.  
  41. _last = ipsLightbox.lightboxImage.src;
  42. }
  43. }
  44.  
  45. /* Check for init and then keep checking for new image */
  46. _to = setTimeout( "gbl_addDownloadButton()", 1000 );
  47. }
  48. //]]>
  49. </script>
  50.  
  51. <style>
  52. .header{font-size:14px;}
  53. .formularz{font: normal 13px helvetica, arial, sans-serif; padding: 3px; border-width: 1px; border-style: solid; border-color: rgba(0, 0, 0, 0.29); background: #fff; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 5px;}
  54. .row {margin-right: -4px;margin-left: -8px;}
  55. </style>
  56. <div style="position: static; top: 134px; left: 10px; height: auto; margin-left: 15px;">
  57. <div class="ipsPad">
  58. <if test="$this->memberData['member_group_id'] == 4">
  59. <if test="$this->memberData['member_id'] == $member['member_id']">
  60. <div class='row'>
  61. <div class='col-lg-8'>
  62. <span class='header'>Dodawanie nowego screenshota!</span><br>
  63. <span style='font-size:12px;'>W tym miejscu możesz przesłać nam twoje najciekawsze screenshoty z gry, które następnie mogą zostać ocenione przez resztę społeczności! Najlepsze zdjęcia z każdego tygodnia będą trafiać na nasz portal!<br>Zdjęcia powinny być wgrywane w formacie 1920 x 1080!<br>
  64. </span>
  65. <br>
  66.  
  67. <form action="/user/{$this->memberData['member_id']}-{$this->memberData['members_seo_name']}/?tab=screenCard" method="POST" ENCTYPE="multipart/form-data" style="text-align: center;">
  68.  
  69. <input class='formularz' name="title" type="text" placeholder="Tytuł" style='width:250px;'><br><br>
  70. <input type="file" name="plik"/>
  71. <br/>
  72. <br>
  73. <input type="submit" class="input_submit" name="submitForm" value="Wyślij zdjęcie">
  74. </form>
  75.  
  76.  
  77. </div>
  78. <div class='col-lg-4'>
  79. <span class='header'>Regulamin</span>
  80. </div>
  81. <div class='col-lg-12'>
  82. </if>
  83. <if test="count($data)">
  84. <span class='header'>Twoje screeny z gry!</span><br>
  85. <php>
  86. $test = $this->memberData['last_rep'] + 64800;
  87. </php><span style='font-size:12px;'>
  88. Możesz rozdać reputacje: {parse date="$test" format="short"}</span><br><br>
  89. <div class='row' style='margin-left: 10%;'>
  90. <foreach loop="$data as $data">
  91. <div class="img-thumbnail col-lg-5" style="padding: 0.25rem;margin-right: 20px;">
  92. <a href="{$data['LINK']}" rel="lightbox">
  93. <div style="background:url('{$data['LINK']}');background-size: cover;background-position:center;width:100%;height:200px;">
  94. </div>
  95. </a>
  96. <div style="width:100%;">
  97. <div>
  98.  
  99. <a href='/index.php?app=panel&module=sotwrep&scrid={$data['ID']}&guid={$member['member_id']}'>
  100. <p style="float:left; padding-top:2px; font-size:10px;"><span style='font-size: 12px; background: green; color: white; padding: 2px 4px; border-radius: 4px;'>
  101. <i class="fas fa-plus"></i></span>
  102. </a>
  103.  
  104.  
  105. <p style="float:left; padding-top:2px; font-size:10px;"><span style='font-size: 12px; background: green; color: white; padding: 2px 6px; border-radius: 4px; margin-left: 5px; margin-right: 5px; font-weight: bold;'>
  106. <php>
  107. $count = $this->DB->query('SELECT COUNT(*) as max FROM `jochym_sotw_rep` WHERE `ID_OBR` = '.$data['ID'].'');
  108. $count = $this->DB->fetch($count);
  109. </php>
  110.  
  111.  
  112. {$count['max']}</span>
  113. {$data['TITLE']}</p>
  114. <span style="float:right; margin-right:6px; padding-top:2px; font-size:10px;">{parse date="$data['DATA']" format="short"}</span>
  115. </div>
  116. </div>
  117. </div>
  118. </foreach>
  119. <div style='float:right;'>{$pagination}</div>
  120. <else />
  121. <p class='message unspecific'>Użytkownik nie przesłał zdjęć!</p>
  122. </if>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127.  
  128.  
  129.  
  130. <else />
  131. System ten jest w fazie kodowania. Niedługo zostanie upubliczniony ;)
  132. </if>
  133. </div></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement