Changeset 579 for trunk/pages/tickets.php
- Timestamp:
- Apr 30, 2009, 8:10:25 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/tickets.php
r407 r579 1 1 <?php 2 echo " 3 <table border=\"1\" width=\"555\">2 3 echo('<table border="1" width="555"> 4 4 <tr> 5 5 <th>Podal</th> … … 7 7 <th>Text</th> 8 8 <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'); 13 while($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 } 24 echo('</table>'); 28 25 29 26 ?>
Note:
See TracChangeset
for help on using the changeset viewer.