purchase more basic seminar listings
in order to post any more seminars."; } } } } if ($submit != "" && $numSeminarsLeft > 0) { $tok = strtok ($required, ","); while ($tok) { if (!$$tok) { $req[] = $tok; $missing = 1; } $tok = strtok (","); } if ($missing) { $errors = "The following fields are mandatory:\n
\n
\n
    \n"; $i=0; while ($req[$i]) { $errors = $errors . "
  • $req[$i]\n"; $i++; } $errors = $errors . "
\n
\n"; } if ($major2TopicID == "") { $major2TopicID = 0; } if ($email) { $testemail = exec("../cgi-local/validateemail.cgi '$email'"); if (!$testemail) { $errors = $errors . "Invalid email address format.\n"; } } if (!$errors) { $now = Date("Y-m-d h:m:s"); # $q = "select SeminarDeluxeID from Seminar order by SeminarDeluxeID desc"; # $aResult = mysql($database, $q); # $aNum = mysql_numrows($aResult); # if ($aNum > 0) { # $SeminarDeluxeID = mysql_result($aResult,0,"SeminarDeluxeID"); # $SeminarDeluxeID++; # } $SeminarDeluxeID = 0; $sql = "insert into Seminar (seminarID,companyID,seminar,eduTypeID,major1TopicID,major2TopicID,otherMinor1,otherMinor2,keywords,phone,email,url,active,dateEntered,description,dateModified,processed,minor1TopicID,minor2TopicID,audience, price, schedule, registrationNumber, accreditation, open, image, upsize, topics, summary, courseObjectives, instructorBio, SeminarDeluxeID, deluxeActive) values ('', $companyID, '$seminar', $eduTypeID, $major1TopicID, $major2TopicID, '', '', '$keywords', '$phone', '$email', '$url', 0, '$now', '$description', '', 0, 0, 0, '$audience', '$price', '$schedule', '$registrationNumber', '$accreditation', '$open', '$image', '$upsize', '$topics', '$summary', '$courseObjectives', '$instructorBio', '$SeminarDeluxeID', 0)"; #echo "$sql
\n"; $result = mysql($database, $sql); $seminarID = mysql_insert_id(); #echo "result=$result, semid=$seminarID"; $sql = "select eduType from EduType where eduTypeID=$eduTypeID"; $result = mysql($database, $sql); $eduType = mysql_result($result,0,"eduType"); if ($eduType != "Private" && $eduType != "Web Based Training") { $dateslink = ", or here to add public dates for this seminar"; } $template = File("addcourse2temp.html"); $i=0; while ($i" . mysql_result($result,$i,"eduType") . "\n"; $i++; } $major1Topics = "