session_start();
global $scode;
$linkID = mysql_connect("localhost", "root", "zangtang");
mysql_select_db("SciPark");
$query0 = "SELECT * FROM AdminLogin WHERE `AdminLogin`='$login'";
$result0 = mysql_db_query("SciPark", $query0) or die ("could not query" . mysql_error());
$tung0=mysql_affected_rows();
$i=0; $j=0;
if(isset($_SESSION['AdminLogin']))
{
$ExhbtCode = $_SESSION["ExhbtCode"]; //echo $_SESSION["ExhbtCode"];
$query0 = "SELECT * FROM ExhbtMaster where ExhbtId = '$ExhbtCode' "; //echo $query0;
$result0 = mysql_db_query("SciPark", $query0) or die ("could not query" . mysql_error());
$tung0=mysql_affected_rows();
if($tung0 != 0)
{
while ($r = mysql_fetch_array($result0))
{
$ExhbtEName = $r["ExhbtName"]; $_SESSION["ExhbtEName"] = $ExhbtEName ;
$ExhbtEPrincipal = $r["ExhbtPrincipal"]; $_SESSION["ExhbtEPrincipal"] = $ExhbtEPrincipal ;
$ExhbtScientist = $r["Exhbt_Scientist"]; $_SESSION["ExhbtScientist"] = $ExhbtScientist ;
$ExhbtEDescription = $r["ExhbtDescr"]; $_SESSION["ExhbtEDescription"] = $ExhbtEDescription ;
$ExhbtMName = $r["ExhbtNameMarathi"]; $_SESSION["ExhbtMName"] = $ExhbtMName ;
$ExhbtMDescription = $r["ExhbtDescMarathi"]; $_SESSION["ExhbtDescMarathi"] = $ExhbtMDescription ;
$ExhbtMPrincipal = $r["ExhbtPrincipalMarathi"]; $_SESSION["ExhbtPrincipalMarathi"] = $ExhbtMPrincipal ;
$ExhbtCount = $r["ExhbtCount"]; $_SESSION["ExhbtCount"] = $ExhbtCount ;
$ExhbtWCount = $r["ExhbtWCount"]; $_SESSION["ExhbtWCount"] = $ExhbtWCount ;
$ExhbtNWCount = $r["ExhbtNWCount"]; $_SESSION["ExhbtNWCount"] = $ExhbtNWCount ;
$ExtraInfo = $r["ExhbtRemark"]; $_SESSION["ExhbtRemark"] = $ExtraInfo ;
$Vendor_Name = $r["Vendor_ID"]; $_SESSION["Vendor_Name"] = $Vendor_Name ; //echo "-".$_SESSION["Vendor_Name"];
$VendorArtist = $r["VendorArtist"]; $_SESSION["VendorArtist"] = $VendorArtist ;
$ExhbtPopularity = $r["ExhbtPopularity"]; $_SESSION["ExhbtPopularity"] = $ExhbtPopularity ;
$WebVisible = $r["WebShow"]; $_SESSION["WebShow"] = $WebVisible ;
$Exhbt_Image = $r["Exhbt_Image"]; $_SESSION["Exhbt_Image"] = $Exhbt_Image ;
$Exhbt_Audio = $r["Exhbt_Audio"]; $_SESSION["Exhbt_Audio"] = $Exhbt_Audio ;
$Exhbt_Video = $r["Exhbt_Video"]; $_SESSION["Exhbt_Video"] = $Exhbt_Video ;
}
}//tung0
//P0103001
$ScCode = substr($ExhbtCode,-7,2); //echo $BranchCode."-";
$ScSubCode = substr($ExhbtCode,-5,2); //echo $SubCatCode."
";
$query0 = "SELECT * FROM ExhbtCountMaster where SubjectCode='$ScCode' AND SubCatCode='$ScSubCode'";
$result0 = mysql_db_query("SciPark", $query0) or die ("could not query" . mysql_error());
$tung0=mysql_affected_rows();
if($tung0 != 0)
{ while ($r = mysql_fetch_array($result0)) { $SubjectName = $r["SubjectName"]; $SubCatName = $r["SubCatName"]; } }
?>
SCIENCE PARK UNIVERSITY OF PUNE
Home
Edit / Delete / Replace Media Files of the Exhibit
| |
$ExhbtCode = $_SESSION["ExhbtCode"]; //echo "--->".$ExhbtCode."<---";
$uploaddir = "uploads/MediaExhibits/".$ExhbtCode."/"; //echo $uploaddir;
$files = glob($uploaddir."Img*.*");
$Cnt = count($files);
//echo " -->".print_r($files)." ";
$Cnt = count($files); $Rem = 5-$Cnt; $j=1; $_SESSION["Imgs"] = $files;
if (count($files) > 0)
{
foreach ($files as $file)
{
$id = rand();
$FilePath = $file."?".$id; //echo $FilePath;
?>
![]() |
$j++;}
}
for($i=1;$i<=$Rem;$i++)
{
$chk[5-$i]="N"; ?>
 |
}
?>
|
Replace
if($files[0] != "") { ?>/ Delete } ?>
|
Replace
if($files[1] != "") { ?> /Delete } ?>
|
Replace
if($files[2] != "") { ?> /Delete } ?>
|
Replace
if($files[3] != "") { ?> /Delete } ?>
|
Replace
if($files[4] != "") { ?> /Delete } ?>
|
|
| |
|
|
}// If login passwd session
else
{
header( 'Location: Access_Denied.html' ) ;
}