PATH:
root
/
paleypartneradmin1234slider2
<?php if(!isset($_SESSION["id_konta"])) { header("Location: ../index.php"); } ?> <header> <h1>Slider2</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=55&o=1\">dodaj slajd</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=\" text-align: left;\"> <b>Tytul</b></th> <th style=\"width: 21%; text-align: center;\"> <b>Edytuj/Usuń</b></th> </tr> </thead>"; include_once 'connection.php'; connection(); $zapytanie ="SELECT `id`, `tytul` FROM slider2 ORDER BY id asc"; $result = mysql_query($zapytanie)or die(mysql_error()); while($result_oferta = mysql_fetch_array($result)) { $id = $result_oferta[0]; $tytul = $result_oferta[1]; echo "<tr> <td style=\"text-align: center; \">$id</td> <td style=\"text-align: left; \">$tytul</td> <td style=\"text-align: center;\">" ?> <form id="<?php echo "$id"; ?>" action="<?php echo "content.php?k=55&t=$id&o=2";?>" method="POST"> <input name="id" type="hidden" value="<?php echo $id; ?>" /> <input class="edit" type="submit" name="edytuj" value="Edytuj"> <!--<div style="width: 100px; height: 20px; border: solid 1px black; margin: 5px 5px 5px 5px; cursor: pointer; background: yellow; text-align: center;" onclick="javascript:parentNode.submit();">edytuj</div>--> </form> <form id="<?php echo "del_".$id; ?>" action="<?php echo "content.php?k=55&t=$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ń"> <!--<div style="width: 100px; height: 20px; border: solid 1px black; margin: 5px 5px 5px 5px; cursor: pointer; background: red; text-align: center;" onclick="confirmDelete2(<?php echo "del_".$id; ?>);">usun</div>--> </form> <?php echo "</td> </tr>"; } ?> </div>
[+]
..
[-] slidery.php
[edit]
[-] edytuj_slider.php
[edit]
[-] dodaj_slider.php
[edit]
[-] index.php
[edit]