0) { $http_input_vars = $HTTP_GET_VARS; } if (sizeof($HTTP_POST_VARS) > 0) { $http_input_vars = $HTTP_POST_VARS; } while (list($key, $value) = each($http_input_vars)) { if (in_array($key,$allowed_full_keys)) { if (($magic_quotes_gpc_off) && (! $slashesadded)){ $value = addslashes($value); } ${$key} = $value; } else { reset($allowed_key_prefixes); while (list($foo, $keyname) = each($allowed_key_prefixes)) { if (preg_match("/^".$keyname."\d+/",$key)) { if (($magic_quotes_gpc_off) && (! $slashesadded)){ $value = addslashes($value); } ${$key} = $value; break; } } } } $slashesadded = true; // authenticate user.... $db_CMS->db_process_query("select", $athTbl, "*", "none", "athUserName = '$usernm' and athPassword = '$passwd' and athLevel = 'organizer'", "none"); if ($db_CMS->dbNumRow == 0) { // error something wrong..... reset the whole page... echo "something wrong"; } else { if ($mode == "sts") { // we basically update the status of user to deleted.. switch($chgStatus) { case "rqs" : $chgStatus = "requested"; break; case "cnf" : $chgStatus = "confirmed"; break; case "del" : $chgStatus = "deleted"; break; case "wtd" : $chgStatus = "withdrawn"; break; case "pna" : $chgStatus = "Appr. reqd."; break; } $db_CMS->db_process_query("update",$rgsTbl,"rgsStatus = '$chgStatus'","none","rgsID = '$rgsID'","none"); } switch ($viewBy) { case "vewAll" : $cndValue = "none"; break; case "vewAllExcDelWithDr" : $cndValue = "((not (rgsStatus = 'withdrawn')) and (not (rgsStatus = 'deleted')))"; break; case "vewAllExcDel" : $cndValue = "(not (rgsStatus = 'deleted'))"; break; case "vewConfirmed" : $cndValue = "rgsStatus = 'confirmed'"; break; case "vewPending" : $cndValue = "rgsStatus = 'Appr. reqd.'"; break; case "vewRequested" : $cndValue = "rgsStatus = 'requested'"; break; case "vewWithdrawn": $cndValue = "rgsStatus = 'withdrawn'"; break; case "vewDeleted" : $cndValue = "rgsStatus = 'deleted'"; break; default : $cndValue = "((not (rgsStatus = 'withdrawn')) and (not (rgsStatus = 'deleted')))"; } // find out all participants registered for the conference switch ($orderBy) { case null : $orderBy = "rgsID"; break; case "" : $orderBy = "rgsID"; break; } if ($orderBy != "anbName") { $db_CMS->db_process_query("select",$rgsTbl,"*","none","$cndValue","$orderBy"); } else { $db_CMS->db_process_query("select",$rgsTbl,"*","none","$cndValue","none"); } $sRsltSet_rgs = $db_CMS->dbRsltSet; if ($db_CMS->dbNumRow > 0) { //ok there are people registered.. now find out details about them.. $errFlag = false; $rowCount = 0; // initialize a counter.. // list of coloumn names to be displayed.. $colValue = array("ID","User Name","Full Name","Registration Date","Category","Status","anbodyID","paymentID","email", "tagName", "tagAddress"); while ($sCurRow_rgs = $db_CMS->db_fetch_array($sRsltSet_rgs)) { $rgsID = $sCurRow_rgs["rgsID"]; $athUserName = $sCurRow_rgs["athUserName"]; $pymID = $sCurRow_rgs["pymID"]; $rgsRegistrationDate = $sCurRow_rgs["rgsRegistrationDate"]; $rgsCategory = $sCurRow_rgs["rgsCategory"]; $rgsStatus = $sCurRow_rgs["rgsStatus"]; $rgsTagAddress = $sCurRow_rgs["rgsTagAddress"]; // look up personal information for now.. $db_CMS->db_process_query("select",$anbTbl,"*","none","athUserName = '$athUserName'","none"); $sRsltSet_anb = $db_CMS->dbRsltSet; $sCurRow_anb = $db_CMS->db_fetch_array($sRsltSet_anb); // ok store the respective values... $rowValue[$rowCount][$colValue[0]] = $rgsID; $rowValue[$rowCount][$colValue[1]] = $athUserName; $rowValue[$rowCount][$colValue[2]] = $sCurRow_anb["anbLName"]; $rowValue[$rowCount][$colValue[2]] .= ", ".$sCurRow_anb["anbTitle"]; $rowValue[$rowCount][$colValue[2]] .= " ".$sCurRow_anb["anbFName"]; $rowValue[$rowCount][$colValue[3]] = $rgsRegistrationDate; $rowValue[$rowCount][$colValue[4]] = $rgsCategory; $rowValue[$rowCount][$colValue[5]] = $rgsStatus; $rowValue[$rowCount][$colValue[6]] = $pymID; $rowValue[$rowCount][$colValue[7]] = $sCurRow_anb["anbEmail"]; $rowValue[$rowCount][$colValue[8]] = $sCurRow_anb["anbFName"]." ".$sCurRow_anb["anbLName"]; $rowValue[$rowCount][$colValue[9]] = $rgsTagAddress; rmvQuotes($rowValue[$rowCount][$colValue[8]]); $rowCount++; } // create a new array.. for ($rowTmpCnt=0;$rowTmpCnt
"; // create the column names... for ($count=0;$count<$colCount;$count++) { $colLabel = $colValue[$count]; $colLabel = preg_replace("/\s/","
",$colLabel); echo ""; } echo ""; echo ""; if ($errFlag) { echo ""; echo ""; echo ""; } else { // lets print their respective values........... reset($rowTmpValue); $countX = 0; while (list($key,$value) = each($rowTmpValue)) { if (($rowValue[$key][$colValue[5]] == "deleted") || ($rowValue[$key][$colValue[5]] == "withdrawn")){ echo ""; } else { if ($rowValue[$key][$colValue[5]] == "confirmed") { echo ""; } else { echo ""; } } for ($countY=0;$countY<$colCount;$countY++) { if ($rowValue[$key][$colValue[$countY]] == "") { $rowValue[$key][$colValue[$countY]] = " "; } echo ""; } // end of for echo ""; $countX++; // increment the row counter... echo ""; } } echo ""; echo ""; echo ""; echo ""; echo ""; // php code ends here.. ?>
Participant Administration
"; echo "".$colLabel.""; echo ""; echo " "; echo "
"; echo $errMsg; echo "
"; echo ""; switch ($countY) { case 0 : echo $countX+1; break; case 2 : echo "".$rowValue[$key][$colValue[$countY]]."
"; echo ""; $all_e_mails_on_list = $all_e_mails_on_list.$rowValue[$key][$colValue[7]].","; break; case 3 : $colDateValue = $rowValue[$key][$colValue[$countY]]; $colDateValue = preg_replace("/\s/","
",$colDateValue); echo "".$colDateValue.""; break; case 5 : echo ""; echo ""; echo ""; break; default : echo $rowValue[$key][$colValue[$countY]]; } // end of switch echo "
"; echo "
"; echo ""; echo ""; echo "
"; echo ""; echo "
"; echo "
"; echo "Order By :
"; echo ""; echo "
"; echo "View by status :
"; echo ""; echo "
"; echo ""; echo "

"; echo "E-mail all people on the list above

"; ?>