194 lines
6.9 KiB
Cheetah
194 lines
6.9 KiB
Cheetah
<!-- TMPL_INCLUDE Name="cat-top.inc" -->
|
|
|
|
<div id="mainbloc">
|
|
<!-- TMPL_IF Name="viewshelf" -->
|
|
<form>
|
|
<h1 class="catalogue"><!-- TMPL_VAR NAME="shelfname" --></h1>
|
|
|
|
<div id="bloc25">
|
|
<h2 class="catalogue">Shelf content</h2>
|
|
<table class="small">
|
|
<tr colspan="4">
|
|
<th class="catalogue">delete</th>
|
|
<th class="catalogue">barcode</th>
|
|
<th class="catalogue">title</th>
|
|
<th class="catalogue">Author</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP Name="itemsloop" -->
|
|
<!-- TMPL_IF NAME="toggle" --><tr class="hilighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
|
|
<td><input type="checkbox" name="REM-<!-- TMPL_VAR NAME="itemnumber" -->"></td>
|
|
<td><!-- TMPL_VAR NAME="barcode" --></td>
|
|
<td><a href="../MARCdetail.pl?bib=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a></td>
|
|
<td><!-- TMPL_VAR NAME="author" --></td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
|
|
<input type="hidden" name="modifyshelfcontents" value="1">
|
|
<input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
|
|
<!-- TMPL_IF name="manageshelf" -->
|
|
<input type="submit" value="Remove Selected Items" class="button catalogue">
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
</form>
|
|
|
|
<!-- TMPL_IF name="manageshelf" -->
|
|
<div id="bloc25">
|
|
<form>
|
|
<h2 class="catalogue">Add a book by barcode</h2>
|
|
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
|
|
<input type="hidden" name="modifyshelfcontents" value="1">
|
|
<input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
|
|
<input name="addbarcode">
|
|
<input type="hidden" name="modifyshelfcontents" value="1">
|
|
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
|
|
<input type="submit" value="Save" class="button catalogue">
|
|
</form>
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
<div id="bloc25">
|
|
<a href="shelves.pl" class="button catalogue">Shelf list</a>
|
|
</div>
|
|
<!-- TMPL_ELSE -->
|
|
<!-- TMPL_IF Name="shelves" -->
|
|
<h1 class="catalogue">Bookshelves</h1>
|
|
<!-- TMPL_IF Name="status1" -->
|
|
<p class="problem"><!-- TMPL_VAR NAME="string1" --><p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_LOOP Name="paramsloop" -->
|
|
<!-- TMPL_IF Name="status" -->
|
|
<p class="problem"><!-- TMPL_VAR NAME="string" --><p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
<div id="bloc25">
|
|
<h2 class="catalogue">Select Shelves to Delete</h2>
|
|
<form method="post">
|
|
<input type="hidden" name="shelves" value="1">
|
|
<!-- TMPL_LOOP Name="shelvesloop" -->
|
|
<!-- TMPL_IF name="canmanage" -->
|
|
<p>
|
|
<label>
|
|
<input type="checkbox" name="DEL-<!-- TMPL_VAR NAME="shelf" -->">
|
|
</label>
|
|
<a href="shelves.pl?viewshelf=<!-- TMPL_VAR name="shelf" -->"><!-- TMPL_VAR NAME="shelfname" --></a> (<!-- TMPL_VAR NAME="shelfbookcount" --> item(s))
|
|
</p>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_LOOP -->
|
|
<p>
|
|
<input type="submit" value="Delete Shelves" class="button catalogue">
|
|
</p>
|
|
</form>
|
|
</div>
|
|
<div id="bloc25">
|
|
<form method="post">
|
|
<input type="hidden" name="shelves" value="1">
|
|
<h2 class="catalogue">Add Shelf</h2>
|
|
<p><label>Name</label><input type="text" name="addshelf" size="25"></p>
|
|
<p><label>Owner</label><input type="hidden" name="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->"><!-- TMPL_VAR NAME="loggedinusername" --></p>
|
|
<p><label>Category</label>
|
|
<select name="category">
|
|
<option value="1">Private</option>
|
|
<option value="2">Public</option>
|
|
<option value="3">Free</option>
|
|
</select>
|
|
</p>
|
|
<p> <li>a private bookshelf is managed by you & can be seen only by you.</li>
|
|
<li> A public can be seen by everybody, but managed only by you.</li>
|
|
<li> A free can be managed by any user.</li>
|
|
</p>
|
|
<p>
|
|
<input type="submit" value="Add New Shelf" class="button catalogue">
|
|
<a href="shelves.pl" class="button catalogue">back to shelf list</a>
|
|
</p>
|
|
|
|
</form>
|
|
</div>
|
|
<!-- TMPL_ELSE -->
|
|
<div id="bloc25">
|
|
<h2 class="catalogue">Shelf list</h2>
|
|
<table class="small">
|
|
<tr>
|
|
<th class="catalogue">Shelf name</th>
|
|
<th class="catalogue">Category</th>
|
|
<th class="catalogue">Content size</th>
|
|
<th class="catalogue">Modify</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP Name="shelvesloop" -->
|
|
<!-- TMPL_IF NAME="toggle" --><tr class="hilighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
|
|
<td>
|
|
<a href="shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->">
|
|
<!-- TMPL_VAR NAME="shelfname" -->
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_IF NAME="category1" -->
|
|
Private
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="category2" -->
|
|
Public
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="category3" -->
|
|
Free
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<td>
|
|
<!-- TMPL_VAR NAME="shelfbookcount" --> item(s)
|
|
</td>
|
|
<!-- TMPL_IF name="mine" -->
|
|
<td>
|
|
<a href="shelves.pl?op=modif&shelf=<!-- TMPL_VAR NAME="shelf" -->" class="button catalogue">Modify</a>
|
|
<!-- TMPL_VAR name="surname" --><!-- TMPL_VAR name="firstname" -->
|
|
</td>
|
|
<!-- TMPL_ELSE -->
|
|
<td> </td>
|
|
<!-- /TMPL_IF -->
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
</div>
|
|
<div id="bloc25">
|
|
<a href="shelves.pl?shelves=1" class="button catalogue">Add or Remove Book Shelves</a>
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_IF name="edit" -->
|
|
<div id="bloc25">
|
|
<form method="post">
|
|
<input type="hidden" name="op" value="modifsave">
|
|
<h2 class="catalogue">Modify shelf</h2>
|
|
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->">
|
|
<p><label>Name</label><input type="text" name="shelfname" size="25" value="<!-- TMPL_VAR name="shelfname"-->"></p>
|
|
<p><label>Owner</label><input type="hidden" name="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->"><!-- TMPL_VAR NAME="loggedinusername" --></p>
|
|
<p><label>Category</label>
|
|
<select name="category">
|
|
<!-- TMPL_IF name="category1" -->
|
|
<option value="1" selected>Private</option>
|
|
<!-- TMPL_ELSE -->
|
|
<option value="1">Private</option>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="category2" -->
|
|
<option value="2" selected>Public</option>
|
|
<!-- TMPL_ELSE -->
|
|
<option value="2">Public</option>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF name="category3" -->
|
|
<option value="3" selected>Free</option>
|
|
<!-- TMPL_ELSE -->
|
|
<option value="3">Free</option>
|
|
<!-- /TMPL_IF -->
|
|
</select>
|
|
</p>
|
|
<p> <li>a private bookshelf is managed by you & can be seen only by you.</li>
|
|
<li> A public can be seen by everybody, but managed only by you.</li>
|
|
<li> A free can be managed by any user.</li>
|
|
</p>
|
|
<p>
|
|
<input type="submit" value="Save" class="button catalogue">
|
|
</p>
|
|
|
|
</form>
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
<!-- TMPL_INCLUDE Name="cat-bottom.inc" -->
|