Ignore:
Timestamp:
Apr 30, 2009, 8:10:25 AM (16 years ago)
Author:
george
Message:
  • Opraveno: Doplněny ikony pro povolání death knight a soubory přejmenovány dle minimanageru.
  • Upraveno: Přeformátování a pročištění různých stránek.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pages/tickets.php

    r407 r579  
    11<?php
    2 echo "
    3   <table border=\"1\" width=\"555\">
     2
     3echo('<table border="1" width="555">
    44    <tr>
    55      <th>Podal</th>
     
    77      <th>Text</th>
    88      <th>Spravovat</th>
    9     </tr> 
    10 ";
    11 $db -> select_db($db_characters);
    12 $load_tickets = $db -> query("SELECT * FROM `character_ticket` ORDER BY `ticket_id` ASC;");
    13   while ($row = $load_tickets -> fetch_array())
    14   {
    15   $human_date = $server -> HumanDate ($row["ticket_lastchange"]);
    16   $player_name = $player -> GuidToCharName($row["guid"]);
    17   echo "
    18     <tr>
    19       <td align=\"center\">".$player_name."</td>
    20       <td align=\"center\">".$human_date."</td>
    21       <td><font size=\"2\">".$row["ticket_text"]."</font></td>
    22       <td align=\"center\"><a href=\"?ticket=".$row["ticket_id"]."\">Spravovat</a></td>
    23     </tr> 
    24   ";
    25   }
    26  echo "</table>";
    27 
     9    </tr>');
     10   
     11$db->select_db($Config['Mangos']['DatabaseCharacters']);
     12$load_tickets = $db->query('SELECT * FROM `character_ticket` ORDER BY `ticket_id` ASC');
     13while($row = $load_tickets->fetch_assoc())
     14{
     15  $human_date = $server->HumanDate($row['ticket_lastchange']);
     16  $player_name = $player->GuidToCharName($row['guid']);
     17  echo('<tr>
     18      <td align="center">'.$player_name.'</td>
     19      <td align="center">'.$human_date.'</td>
     20      <td><font size="2">'.$row['ticket_text'].'</font></td>
     21      <td align="center"><a href="?ticket='.$row['ticket_id'].'">Spravovat</a></td>
     22    </tr>');
     23}
     24echo('</table>');
    2825
    2926?>
Note: See TracChangeset for help on using the changeset viewer.