(file) Return to edit-album-order.php CVS log (file) (dir) Up to [RizwankCVS] / geekymedia_web / photo / sspadmin

 1 rizwank 1.1 <?php
 2             require "./inc/head.php";
 3             ?>
 4             <?php include "./inc/doctype.php"; ?>
 5             <head>
 6             <?php include "./inc/charset.php"; ?>
 7             <title>SSP Admin :: Edit Album</title>
 8             <?php include "./inc/head_elem.php"; ?>
 9             <script language="JavaScript" type="text/javascript" src="scripts/tool-man/core.js"></script>
10             <script language="JavaScript" type="text/javascript" src="scripts/tool-man/events.js"></script>
11             <script language="JavaScript" type="text/javascript" src="scripts/tool-man/css.js"></script>
12             <script language="JavaScript" type="text/javascript" src="scripts/tool-man/coordinates.js"></script>
13             <script language="JavaScript" type="text/javascript" src="scripts/tool-man/drag.js"></script>
14             <script language="JavaScript" type="text/javascript" src="scripts/tool-man/dragsort.js"></script>
15             <script language="JavaScript" type="text/javascript" src="scripts/tool-man/cookies.js"></script>
16             
17             <script language="JavaScript" type="text/javascript"><!--
18             	var dragsort = ToolMan.dragsort()
19             	var junkdrawer = ToolMan.junkdrawer()
20             
21             	window.onload = function() {
22 rizwank 1.1 
23             		dragsort.makeListSortable(document.getElementById("boxes"),
24             				saveOrder)
25             
26             		/*
27             		dragsort.makeListSortable(document.getElementById("twolists1"),
28             				saveOrder)
29             		dragsort.makeListSortable(document.getElementById("twolists2"),
30             				saveOrder)
31             		*/
32             	}
33             
34             	function saveOrder(item) {
35             		var group = item.toolManDragGroup
36             		var list = group.element.parentNode
37             		var id = list.getAttribute("id")
38             		if (id == null) return
39             		group.register('dragend', function() {
40             			ToolMan.cookies().set("list-" + id, 
41             					junkdrawer.serializeList(list), 365)
42             		})
43 rizwank 1.1 	}
44             
45             	//-->
46             </script>
47             
48             </head>
49             
50             <body id="order">
51             	<div id="container">
52             		
53             		<?php include "./inc/h1.php"; ?>
54             		
55             		<div id="sub-nav"><strong>Edit Album Sub-Nav &raquo;</strong> <a href="edit-album.php?aid=<?php echo $aid; ?>">Edit Album Metadata</a> | <a href="edit-album-images.php?aid=<?php echo $aid; ?>">Edit Album Images</a> | Edit Image Order</a></div>
56             		
57             		<h2>Edit Image Order :: <?php echo $aName; ?></h2>
58             		<?php if ($m==1) echo '<p class="update-msg"><small>Album Order Changed Successfully!</small></p>'; ?>
59             		<p>Drag images into the order you would like them to be shown in the slideshow. Be sure to click Save Order when you are done! <em>NOTE: Only active images are shown in this window.</em></p>
60             		<p style="text-align:right;"><span style="float:left"><input type="button" value="Save Order" onClick="saveOrderDB(<?php echo $aid; ?>)" /></span>Thumbnail View Height: <select id="thumb-size" onchange="sizeThumbs(false)"><option value="25">25</option><option value="50">50</option><option value="75" selected="selected">75</option><option value="100">100</option><option value="150">150</option></select></p>
61             		<?php writeImageBox($aid,$p,false); ?>
62             	</div>
63             	
64 rizwank 1.1 	
65             </body>
66             </html>

Rizwan Kassim
Powered by
ViewCVS 0.9.2