Commit | Line | Data |
---|---|---|
bc13d5d6 H |
1 | <?php |
2 | ||
3 | class Showz { | |
4 | ||
5 | function showDel($action,$id) { | |
6 | ||
7 | } | |
8 | ||
9 | function showNav($start=true) { | |
10 | $action=$_GET['action']; | |
11 | global $kyberia; | |
12 | global $offset; | |
13 | global $limit; | |
14 | global $user_id; | |
15 | if ($start) echo "<input type='submit' name='event' value='poslat'>"; | |
16 | if ($start && $action=='forum') echo "<input type='submit' name='event' value='odpovedat'>"; | |
17 | echo "<input type='submit' value='<' name='event' class='textinput'> | |
18 | <input type='submit' value='<<' name='event' class='textinput'>"; | |
19 | if ($start) echo "<input type='submit' name='event' value='zmazat'>"; | |
20 | if ($start) echo "<input type='text' value='$limit' name='limit' class='textinput'>"; | |
21 | echo "<input type='submit' value='>>' name='event' class='textinput'> | |
22 | <input type='submit' name='event' value='>' class='textinput'>"; | |
23 | echo "<input type='hidden' name='offset' value='$offset'>"; | |
24 | if ($start) echo "<input type='submit' name='event' value='nahlad'>"; | |
25 | if ($start) echo "<input type='submit' name='event' value='hladat'>"; | |
26 | ||
27 | ||
28 | if ($start && $action=='forum') { | |
29 | $set3=$kyberia->query("select user_k from user where id='$user_id'"); | |
30 | $set3->next(); | |
31 | $kamount="Este mas ".$set3->getString('user_k')." K."; | |
32 | echo "<br><center>"; | |
33 | echo "<table><tr><td valign='middle'>".$kamount."</td><td valign='middle'><input type='hidden' name='k_amount' value='1'><input type='submit' value='K!' name='event' class='smalltextinput'> </td>"; | |
34 | echo "<td valign='middle'><input value='delbetween' class='delete' type='checkbox' name='delbetween'> zmaz mezi <input type='checkbox' value='NO-HTML' name='nohtml' value='nohtml' class='delete'> NO-HTML</td></tr></table>"; | |
35 | echo "</center>"; | |
36 | } | |
37 | ||
38 | } | |
39 | ||
40 | function showDate($date) { | |
41 | echo " ".$date; | |
42 | } | |
43 | ||
44 | function showLocation($action,$id,$name) { | |
45 | if ($name) echo " [lokacia::<a class='location' href='".SCRIPT."?action=$action&node_id=$id'>$name</a>] "; | |
46 | else echo " [lokacia:<a class='location' href='".SCRIPT."?action=$action'>$action</a>] "; | |
47 | } | |
48 | ||
49 | } |