SHARE
TWEET

Untitled

a guest Jun 19th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div style="clear:both;"></div>
  2. <h1>Willkommen auf Grufix.de</h1>
  3.  
  4. <p>Mit dem neuen Grufix.de k&ouml;nnt ihr viel anstellen. Ihr k&ouml;nnt eure ganzen Screenshots von
  5. euren Designs posten und sie verwalten und anschliessend auch noch zum Forum hoch-
  6. laden wenn du Lust darauf hast. Ausserdem kannst du auch andere Designs kommentieren.
  7. Das ist doch was tolles oder? Was sagst du dazu?</p>
  8. <br>
  9.  
  10. <?php
  11.  
  12.     echo anchor( 'feedback' , 'Gib uns Feedback!' );
  13.  
  14. ?>
  15.  
  16. <hr style="margin-top: 40px; margin-bottom: 30px;" />
  17.  
  18.  
  19. <?php
  20.  
  21.  
  22.     $sql        =       "SELECT * FROM images ORDER BY likes DESC LIMIT 10";
  23.     $query  =       $this->db->query($sql);
  24.    
  25.     foreach( $query->result() as $row )
  26.     {
  27.         echo "<div class='imgWrapper'>";
  28.         echo "<img src='" . $row->source . "' alt='" . $row->name . "' width='240px;' /><br />";
  29.        
  30.         $imageid                = mysql_real_escape_string($row->image_id);
  31.         $memberid           = mysql_real_escape_string($row->user_id);
  32.        
  33.         $sql_member         = "SELECT * FROM member WHERE `member_id`=" . $memberid . " LIMIT 1";
  34.         $query_member       = $this->db->query($sql_member);
  35.         $row_member         = $query_member->row();
  36.        
  37.         echo "<div class='imgHover'>
  38.        
  39.         <a href='graphs/" . $imageid . "' class='link'></a>
  40.         <font style='font-weight: bold; margin-top: 5px; display: inline-block;'>" . $row->name . "</font>
  41.         <br />
  42.         <span class='author'>by " . anchor( "user/view/" . $row->user_id , $row_member->name . " " . $row_member->surname ) .       "</span><br />
  43.         <span class='author'>am " . $row->date . "
  44.         </div>";
  45.         echo "</div>";
  46.     }
  47. ?>
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top