| Server IP : 180.180.241.3 / Your IP : 216.73.216.25 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/umedia3/login.upload/ |
Upload File : |
<?
include("../inc/config.inc.php");
loginchk_lib();
//html_start();
if ($setorder!="" && $mid!="") {
$setorder=explode(",",$setorder);
//printr($setorder);
$s=tmq("update media_ftitems set ordr='0' where mid='$mid' and iscover='yes' ");
while (list($k,$v)=each($setorder)) {
$itsid=str_replace('imageBox','',$v);
$s=tmq("update media_ftitems set ordr='".(($k*10)+10)."' where id='$itsid' and iscover<>'yes' ");
}
?><SCRIPT LANGUAGE="JavaScript">
<!--
parent.location="index.php?mid=<?echo $mid;?>"
//-->
</SCRIPT><?
die;
}
?>
<style type="text/css">
body{
height:100%;
width:100%;
margin:10px;
padding-left:0px;
}
form{
display:inline;
}
.imageBox,.imageBoxHighlighted{
width:130px; /* Total width of each image box */
height:190px; /* Total height of each image box */
float:left;
}
.imageBox_theImage{
width:110px; /* Width of image */
height:125px; /* Height of image */
/*
Don't change these values *
*/
background-position: center center;
background-repeat: no-repeat;
margin: 0 auto;
margin-bottom:2px;
}
.imageBox .imageBox_theImage{
border:1px solid #DDD; /* Border color for not selected images */
padding:2px;
}
.imageBoxHighlighted .imageBox_theImage{
border:3px solid #316AC5; /* Border color for selected image */
padding:0px;
}
.imageBoxHighlighted span{ /* Title of selected image */
background-color: #316AC5;
color:#FFFFFF;
padding:2px;
}
.imageBox_label{ /* Title of images - both selected and not selected */
text-align:center;
font-family: arial;
font-size:11px;
padding-top:2px;
margin: 0 auto;
}
/*
DIV that indicates where the dragged image will be placed
*/
#insertionMarker{
height:150px;
width:6px;
position:absolute;
display:none;
}
#insertionMarkerLine{
width:6px; /* No need to change this value */
height:145px; /* To adjust the height of the div that indicates where the dragged image will be dropped */
}
#insertionMarker img{
float:left;
}
/*
DIV that shows the image as you drag it
*/
#dragDropContent{
opacity:0.4; /* 40 % opacity */
filter:alpha(opacity=40); /* 40 % opacity */
/*
No need to change these three values
*/
position:absolute;
z-index:10;
display:none;
}
</style>
<script type="text/javascript" src="../js/floating-gallery.js" ></script>
</head>
<body>
<TABLE width=100%>
<form action="somePage.html" method="post">
<TR>
<TD align=center><input type="button" style="width:100px" value="Save" onclick="saveImageOrder2()"></TD>
</TR>
</form>
</TABLE>
<div id="GalleryContainer">
<?
$s=tmq("select * from media_ftitems where mid='$mid' and iscover<>'yes' order by ordr , text ");
while ($r=tmq_fetch_array($s)) {
?>
<div class="imageBox" id="imageBox<? echo $r[id]?>">
<div class="imageBox_theImage" style="text-align:center">
<?index_fticon($r,90,80,"show","yes","_blank","left","yes");?>
</div>
<!-- <div class="imageBox_label"><span>-</span></div> -->
</div>
<?}?>
</div>
<div id="insertionMarker">
<img src="images/marker_top.gif">
<img src="images/marker_middle.gif" id="insertionMarkerLine">
<img src="images/marker_bottom.gif">
</div>
<div id="dragDropContent">
</div>
<div id="debug" style="clear:both">
</div>
<TABLE width=100%>
<form action="somePage.html" method="post">
<TR>
<TD align=center><input type="button" style="width:100px" value="Save" onclick="saveImageOrder2()"></TD>
</TR>
<SCRIPT LANGUAGE="JavaScript">
<!--
function saveImageOrder2()
{
var orderString = "";
var objects = document.getElementsByTagName('div');
for(var no=0;no<objects.length;no++){
if(objects[no].className=='imageBox' || objects[no].className=='imageBoxHighlighted'){
if(objects[no].id != "foo" && objects[no].parentNode.id != "dragDropContent"){ // Check if it's not the fake image, or the drag&drop box
if(orderString.length>0){
orderString = orderString + ',';
}
orderString = orderString + objects[no].id;
}
}
}
//alert(orderString);
self.location="ordersub.php?mid=<?echo $mid;?>&setorder="+orderString
}
//-->
</SCRIPT>
</form>
</TABLE>
</body>
</html>