PATH:
root
/
paleypartneradmin1234praca
<?php if(!isset($_SESSION["id_konta"])) { header("Location: ../index.php"); } ?> <header> <h1>Praca</h1> <a href="index.php?logout=1"><span>wyloguj</span><img src="images/close.jpg" alt="wyloguj"/></a> </header> <div id="content"> <?php echo "<div id=\"menu2\"><a href=\"content.php?k=10&o=1\">dodaj ofertę pracy</a></div>"; echo "<table id=\"TABELA\" class=\"list\"><thead> <tr style=\"height: 50px; background: #f5f5f5;\"> <th style=\"width: 5%; text-align: center;\"> <b>ID</b></th> <th style=\"width: 20%; text-align: center;\"> <b>Data</b></th> <th style=\" text-align: left;\"> <b>Tytul</b></th> <th style=\"width: 5%; text-align: center;\"> <b>Gł</b></th> <th style=\"width: 20%; text-align: center;\"> <b>Edytuj/Usuń</b></th> </tr></thead>"; include_once 'connection.php'; connection(); $zapytanie ="SELECT `id`, `data`, `tytul`, `glowna` FROM praca ORDER BY id asc"; $result = mysql_query($zapytanie)or die(mysql_error()); while($result_oferta = mysql_fetch_array($result)) { $id = $result_oferta[0]; $data = $result_oferta[1]; $tytul = $result_oferta[2]; $glowna = $result_oferta[3]; echo "<tr> <td style=\"text-align: center; \">$id</td> <td style=\"text-align: center; \">$data</td> <td style=\"text-align: left; \">$tytul</td> <td style=\"text-align: left; \">"; if($glowna == 1)echo "tak"; echo "</td> <td style=\"\">" ?> <form id="<?php echo "$id"; ?>" action="<?php echo "content.php?k=10&a=$id&o=2";?>" method="POST"> <input name="id" type="hidden" value="<?php echo $id; ?>" /> <input class="edit" type="submit" name="edytuj" value="Edytuj"> </form> <form id="<?php echo "del_".$id; ?>" action="<?php echo "content.php?k=10&a=$id&o=2";?>" onsubmit="return confirmDelete();" method="POST" > <input name="delete" type="hidden" value="<?php echo $id; ?>" /> <input class="delete" type="submit" name="usun" value="Usuń"> </form> <?php echo "</td> </tr>"; } ?> </div>
[+]
..
[-] aktualnosci.php
[edit]
[-] dodaj_aktualnosc.php
[edit]
[-] edytuj_aktualnosc.php
[edit]
[-] index.php
[edit]