$RegLastDate) $errors['RegLastDate'] = 'Select the date after Opening date of Registration'; if($RegLastDate > $BatchStartDate) $errors['BatchStartDate'] = 'Select the date after Last date of Registration'; if($BatchStartDate > $BatchEndDate) $errors['BatchEndDate'] = 'Select the date after Starting date of Batch'; // if($RegStartDate != "Select-Select-Select") // { // if(!checkdate( $values['RegLastMonth'], $values['RegLastDay'], $values['RegLastYear'])) $errors['RegLastDate'] = 'Correct Registration Ending Date Required'; // } } if(!checkdate( $values['BatchStartMonth'], $values['BatchStartDay'], $values['BatchStartYear'])) $errors['BatchStartDate'] = 'Correct Batch Starting Date Required'; if(!checkdate( $values['BatchEndMonth'], $values['BatchEndDay'], $values['BatchEndYear'])) $errors['BatchEndDate'] = 'Correct Batch Ending Date Required'; if($BatchStartDate > $BatchEndDate) $errors['BatchEndDate'] = 'Select the date after Starting date of Batch'; // if (htmlentities($values['RegReqd']) == "Yes" && (htmlentities($values['EventType']) == "LPF" || htmlentities($values['EventType']) == "ScienceDay" || htmlentities($values['EventType']) == "Other" || //htmlentities($values['EventType']) == "Lecture" || htmlentities($values['EventType']) == "Demonstration" || htmlentities($values['EventType']) == "CelebrationDay")) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ FILE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $EventFile = $_SESSION['EventFile']; $Code = $_SESSION['Code'] ; $_SESSION['uploads'] = "1"; $uploaddir = "uploads/"; $query0 = "SELECT `EventNo` FROM EventsInfo Order by EventNo"; $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)) { $EventCnt = $r["EventNo"]; } $EventCnt++; } else { $EventCnt = "1"; } $ext = findexts($_FILES['Event_PDF']['name']) ; // POST Extension of File echo $ext; if($ext == "") { $_SESSION["FileUp"]= 0; } else { $_SESSION["FileUp"]= 1; } $tname = $Code."EV".$EventCnt."Brochure."; $filename = $tname.$ext; $uploadfile = $uploaddir.$filename; // echo "----->".$uploadfile; $_SESSION["uploadfile"] = $uploadfile; if($ext != "") { if(($_FILES['Event_PDF']['size']) > 5242880) { $errors['EventFL'] = "File Size is more than 5 MB"; } if((!ereg(".pdf", $filename))) { $errors['EventFL'] = "Event Brochure : Only PDF allowed"; } } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //print_r($errors); return (count($errors) == 0); } //--------------------------------------------------------------------------------------------------------------------------------------- // DISPLAY FORM FUNCTION //--------------------------------------------------------------------------------------------------------------------------------------- function outputOptionList($list, $selected) { foreach ($list as $item) echo "\n"; } function DisplayForm($values, $errors) { // $chars = "abcdefghijkmnopqrstuvwxyz023456789"; $i=0; $d=date(d); $m=date(F); $n=date(n); $y=date(Y); $optionListMonth = array( array('Value' =>'Select', 'Text' => '(select Month)'), array('Value' =>'01', 'Text' => 'January'), array('Value' =>'02', 'Text' => 'February'), array('Value' =>'03', 'Text' => 'March'), array('Value' =>'04', 'Text' => 'April'), array('Value' =>'05', 'Text' => 'May'), array('Value' =>'06', 'Text' => 'June'), array('Value' =>'07', 'Text' => 'July'), array('Value' =>'08', 'Text' => 'August'), array('Value' =>'09', 'Text' => 'September'), array('Value' =>'10', 'Text' => 'October'), array('Value' =>'11', 'Text' => 'November'), array('Value' =>'12', 'Text' => 'December'), ); $optionEventName = array( array('Value' =>'Select', 'Text' => '(select Event)'), array('Value' =>'Lecture', 'Text' => 'Lecture'), array('Value' =>'Demonstration', 'Text' => 'Demonstration'), array('Value' =>'CelebrationDay', 'Text' => 'Celebration Day'), array('Value' =>'SciCamp', 'Text' => 'Initiative in Science Education for School Children(Handson training Lab'), array('Value' =>'LPF', 'Text' => 'Lila Poonawalla Foundation Girls Science Camp'), array('Value' =>'ScienceDay', 'Text' => 'Science Day/Open Day'), array('Value' =>'SummerCamp', 'Text' => 'Summer Science Camp'), array('Value' =>'TeachersPgm', 'Text' => 'Teachers Training Program'), array('Value' =>'SchoolVisit', 'Text' => 'School Visit'), array('Value' =>'Other', 'Text' => 'Other'), ); $nextY = $y+1; //echo $nextY; $next2Y = $nextY+1; //echo $next2Y; $optionListYear = array( array('Value' => 'Select', 'Text' => "(select Year)"), array('Value' => '2023', 'Text' => "2023"), array('Value' => '2024', 'Text' => "2024"), array('Value' => '2025', 'Text' => "2025"), ); //print_r($optionListYear); $days = array( array('Value' =>'Select', 'Text' => 'Date'), array('Value' =>'01', 'Text' => '01'), array('Value' =>'02', 'Text' => '02'), array('Value' =>'03', 'Text' => '03'), array('Value' =>'04', 'Text' => '04'), array('Value' =>'05', 'Text' => '05'), array('Value' =>'06', 'Text' => '06'), array('Value' =>'07', 'Text' => '07'), array('Value' =>'08', 'Text' => '08'), array('Value' =>'09', 'Text' => '09'), array('Value' =>'10', 'Text' => '10'), array('Value' =>'11', 'Text' => '11'), array('Value' =>'12', 'Text' => '12'), array('Value' =>'13', 'Text' => '13'), array('Value' =>'14', 'Text' => '14'), array('Value' =>'15', 'Text' => '15'), array('Value' =>'16', 'Text' => '16'), array('Value' =>'17', 'Text' => '17'), array('Value' =>'18', 'Text' => '18'), array('Value' =>'19', 'Text' => '19'), array('Value' =>'20', 'Text' => '20'), array('Value' =>'21', 'Text' => '21'), array('Value' =>'22', 'Text' => '22'), array('Value' =>'23', 'Text' => '23'), array('Value' =>'24', 'Text' => '24'), array('Value' =>'25', 'Text' => '25'), array('Value' =>'26', 'Text' => '26'), array('Value' =>'27', 'Text' => '27'), array('Value' =>'28', 'Text' => '28'), array('Value' =>'29', 'Text' => '29'), array('Value' =>'30', 'Text' => '30'), array('Value' =>'31', 'Text' => '31'), ); ?> SCIENCE PARK UNIVERSITY OF PUNE

 

Upcoming Events

 

 

To add a New Event, please fill the detailed information...

 
   
 Type of Event * :    
  
 Name of the Event * :    
  
 Name of the Lecture Series * :    
  
 Topic of the Lecture  * :    
  
 Lecture by Speaker * :    
  
 Duration of the Event(Day & Time) * :    
  
 Eligibility Criteria * :    
  
 Batch size :    
  
Fees :    
  
Extra Information   
(If anything like early bird discount etc.) 
: 
  
Registration Required?   >Yes  >No  
  
Registration opens on:        
  
Last date of registration :        
  
 Batch Starting Date * :        
  
Batch Ending Date  :        
  
Upload Brochure File   :  
  
    
  

 

".$RegLastDay."
"; $RegLastMonth = $_POST["RegLastMonth"]; $RegLastYear = $_POST["RegLastYear"]; $BatchStartDay = $_POST["BatchStartDay"]; $BatchStartMonth = $_POST["BatchStartMonth"]; $BatchStartYear = $_POST["BatchStartYear"]; $BatchEndDay = $_POST["BatchEndDay"]; $BatchEndMonth = $_POST["BatchEndMonth"]; $BatchEndYear = $_POST["BatchEndYear"]; switch($EventType) { //case 'Lecture': $EvName = 'Lecture'; break; //case 'Demonstration': $EvName = 'Demonstration'; break; //case 'CelebrationDay': $EvName = 'Celebration Day'; break; case 'SciCamp': $EvName = 'Initiative in Science Education for School Children(Handson training Lab)'; break; case 'LPF': $EvName = 'Lila Poonawalla Foundation Girls Science Camp'; break; case 'ScienceDay': $EvName = 'Science Day/Open Day'; break; case 'SummerCamp': $EvName = 'Summer Science Camp'; break; case 'TeachersPgm': $EvName = 'Teachers Training Program'; break; } $RegSDT = strtotime($RegStartMonth."/".$RegStartDay."/".$RegStartYear); $RegStartDate = date('Y-m-d',$RegSDT); //echo $RegStartDate."
"; $RegLDT = strtotime($RegLastMonth."/".$RegLastDay."/".$RegLastYear); $RegLastDate = date('Y-m-d',$RegLDT); //echo $RegLastDate; $EveSDT = strtotime($BatchStartMonth."/".$BatchStartDay."/".$BatchStartYear); $BatchStartDate = date('Y-m-d',$EveSDT); //echo $BatchStartDate; $EveLDT = strtotime($BatchEndMonth."/".$BatchEndDay."/".$BatchEndYear); $BatchEndDate = date('Y-m-d',$EveLDT); //echo $BatchEndDate; if($EventType == "LPF" || $EventType == "ScienceDay") { $RegStartDate = "0000-00-00"; $RegLastDate = "0000-00-00"; $EventFees = "-"; } if($RegStartDate == "1970-01-01") { $RegStartDate= "0000-00-00"; } if($RegLastDate == "1970-01-01") { $RegLastDate= "0000-00-00"; } if($BatchEndDate == "1970-01-01") { $BatchEndDate= "0000-00-00"; } if($EventType == "Lecture" || $EventType == "Demonstration" || $EventType == "CelebrationDay" || $EventType == "Other") { $EvName = $EventName; //echo $EventType; echo $EventName; } if($RegReqd=="No") { $RegStartDate= "0000-00-00"; $RegEndDate= "0000-00-00"; } if (isset($EventType) && isset($EventDuration) && isset($EventEligibility) && isset($BatchStartDay)) { ?>

Problem with adding New Event into the Database...