-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbook_edit_catalog.php
74 lines (72 loc) · 2.37 KB
/
book_edit_catalog.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php include("includes/session.php"); ?>
<?php include("includes/ebooks.php"); ?>
<?php include_once("templates/header.php"); ?>
<?php if(!$session->logged_in){ ?>
<script language="javascript" type="text/javascript">
<!--
location.replace("/login.php");
//-->
</script>
<?php
die();
}
$book_id = $_GET['id'];
?>
<div id="content">
<?php
$q = "SELECT * FROM " . TBL_BOOKS . " WHERE id='$book_id' and uid='$session->uid'";
$result = mysql_query($q, $database->connection);
while($row = mysql_fetch_array($result)) {
$book_id = $row['id'];
$title = $row['title'];
$author = $row['author'];
if($author == "") {
$author = $session->firstname . ' ' . $session->surname;
}
$edition = $row['edition'];
$ebooks = $row['ebooks'];
$published = $row['published'];
$description = $row['description'];
$book_image = '/img/placeholder-square-1.png';
if($row['image'] != '') {
$book_image = '/books/' . $session->uid. '/uploads/'.$row['image'];
}
}
?>
<p><a href="/myebooks.php">Meine E-books</a> -> <a href="/ebook_edit.php?id=<?php echo $book_id;?>"><?php echo $title;?></a></p>
<p> </p>
<?php
$catalog_selected = true;
include_once("templates/book_tabs.php"); ?>
<h1>E-Book-Creator Katalog</h1>
<div id="book_description" class="editBox">
<div class="widget-header">Beschreibung
<div style="position: absolute; right: 0; top: 0;">
<span class="widgetSaving" title="Speicherstatus"></span>
</div>
</div>
<div rel="description" class="textarea settings" style="background:#fff; padding: 5px;"><?php echo $description;?></div>
</div>
<div id="book_image" class="editBox">
<div class="widget-header">Cover/Vorschaubild
<div style="position: absolute; right: 0; top: 0;">
<span class="widgetSaving" title="Speicherstatus"></span>
</div>
</div>
<div class="image">
<div class="image_display"><img src="<?php echo $book_image;?>" /></div>
<div id="image_<?php echo $widget_id;?>" class="user-image-uploader">
<noscript>
<p>Please enable JavaScript to use file uploader.</p>
<!-- or put a simple form for upload here -->
</noscript>
</div>
</div>
</div>
Zielgruppe (checkboxen), Kategorie (checkboxen), Land (dropdown)
<br><br>
</div>
</div>
<?php include_once("templates/footer.php"); ?>
</body>
</html>