1 rizwank 1.1 <?php require('./inc/head.php'); ?>
2 <?php
3
4 $pid = $_GET['pid'];
5 $query = "SELECT * FROM $itbl WHERE id=$pid";
6 $result = mysql_query($query);
7
8
9 while ($row = mysql_fetch_array($result))
10 {
11 $fileName = $row['src'];
12 $st = $row['active'];
13 $cap = $row['caption'];
14 $link = $row['link'];
15 }
16 ?>
17 <html>
18 <head>
19 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
20 </head>
21 <body style="margin:10px 0 0; background:#fafafa; text-align:center;font-family:Lucida Grande, Arial, Verdana;font-size:85%;">
22 rizwank 1.1 <?php if ($m==1)
23 {
24 ?>
25 <p style="border:1px solid #cc0000;color:#cc0000;font-weight:bold;background:#e1e1e1;padding:5px;"><small>Update Successful!</small></p>
26 <?php } ?>
27
28 <form action="edit-pic-exe.php" method="post" style="font-weight:bold; font-size:.85em;">
29 <p>File Name: <span style="font-weight:normal"><?php echo $fileName; ?></span></p>
30 <fieldset style="border:0;margin:0 0 1em;padding:0;">Included in the Album? <input type="checkbox" value="1" name="inc" <?php if ($st == 1) echo 'checked="checked"'; ?> />
31 <?php if (($tn == 1) && (!ereg("swf", $fileName)) && (!ereg("flv", $fileName)))
32 { ?>
33 Album Thumbnail: <input type="checkbox" name="aTn" value="1" <?php if ($atn == $adminDir.'/albums/'.$p.'/tn/'.$fileName) echo 'checked="checked"'; ?> /><?php } ?></fieldset>
34 <fieldset style="border:0;margin:0 0 1em;padding:0;">Link: <input type="text" name="link" size="80" value="<?php echo $link; ?>" style="font-size:.9em;" /></fieldset>
35 <fieldset style="border:0;margin:0 0 1em;padding:0;">Caption:<br>
36 <textarea name="cap" cols="50" rows="3"><?php echo $cap; ?></textarea></fieldset>
37 <fieldset style="border:0;margin:0 0 1em;padding:0;"><input type="submit" value="Update Picture Information" style="font-size:.9em;" /></fieldset><input type="hidden" name="pid" value="<?php echo $pid; ?>" /><input type="hidden" name="aid" value="<?php echo $aid; ?>" /><input type="hidden" name="psrc" value="<?php echo $fileName; ?>" /><input type="hidden" name="setAtn" value="<?php echo $atn; ?>" /></form>
38 <?php
39 if ( ereg("swf", $fileName) ) {
40 ?>
41 <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="555" height="379" id="SlideShowPro" align="middle">
42 <param name="allowScriptAccess" value="sameDomain" />
43 rizwank 1.1 <param name="movie" value="albums/<?php echo $p; ?>/lg/<?php echo $fileName; ?>" />
44 <param name="quality" value="high" />
45 <param name="bgcolor" value="#666666" />
46 <embed src="albums/<?php echo $p; ?>/lg/<?php echo $fileName; ?>" quality="high" bgcolor="#e1e1e1" width="555" height="379" name="SlideShowPro" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
47 </object>
48 <?php } else if ( ereg("flv", $fileName) ) { ?>
49 <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="370" id="SlideShowPro" align="middle">
50 <param name="allowScriptAccess" value="sameDomain" />
51 <param name="movie" value="inc/sspadmin_viewer.swf?fn=../albums/<?php echo $p; ?>/lg/<?php echo $fileName; ?>" />
52 <param name="quality" value="high" />
53 <param name="bgcolor" value="#666666" />
54 <embed src="inc/sspadmin_viewer.swf?fn=../albums/<?php echo $p; ?>/lg/<?php echo $fileName; ?>" quality="high" bgcolor="#e1e1e1" width="400" height="370" name="SlideShowPro" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
55 </object>
56 <?php } else { ?>
57 <img src="albums/<?php echo $p; ?>/lg/<?php echo $fileName; ?>" style="margin:0 auto; padding:5px; background:#e1e1e1; border:1px solid #c7c7c7;" />
58 <?php } ?>
59
60
61
62
63 </body>
64 rizwank 1.1 </html>
|