0) { while (list($key, $value) = each($HTTP_POST_VARS)) { ${$key} = $value; } } 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 "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; case "vewDef" : $cndValue = "NOT (rgsStatus = 'deleted' or rgsStatus = 'withdrawn')"; break; default : $cndValue = "NOT (rgsStatus = 'deleted' or rgsStatus = 'withdrawn')"; break; } // find out all participants registered for the umc2k conferences.. 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","Full Name","Phone","Registration Date","Category","Status","anbodyID","paymentID","email","userName","tagName","tagAddress "); while ($sCurRow_rgs = $db_CMS->db_fetch_array($sRsltSet_rgs)) { $rgsID = $sCurRow_rgs["rgsID"]; $anbID = $sCurRow_rgs["anbID"]; $cnfID = $sCurRow_rgs["cnfID"]; $pymID = $sCurRow_rgs["pymID"]; $ctgID = $sCurRow_rgs["ctgID"]; $rgsRegisterDate = $sCurRow_rgs["rgsRegisterDate"]; $rgsStatus = $sCurRow_rgs["rgsStatus"]; $rgsTagName = $sCurRow_rgs["rgsTagName"]; $rgsTagAddress = $sCurRow_rgs["rgsTagAddress"]; // look up personal information for now.. $db_CMS->db_process_query("select",$anbTbl,"*","none","anbID = '$anbID'","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]] .= $sCurRow_anb["anbTitle"]; $rowValue[$rowCount][$colValue[1]] .= " ".$sCurRow_anb["anbFName"]; $rowValue[$rowCount][$colValue[1]] .=" ".$sCurRow_anb["anbLName"]; $rowValue[$rowCount][$colValue[2]] = $sCurRow_anb["anbPhone"]; $rowValue[$rowCount][$colValue[3]] = $rgsRegisterDate; $rowValue[$rowCount][$colValue[4]] = $ctgID; $rowValue[$rowCount][$colValue[5]] = $rgsStatus; $rowValue[$rowCount][$colValue[6]] = $anbID; $rowValue[$rowCount][$colValue[7]] = $pymID; $rowValue[$rowCount][$colValue[8]] = $sCurRow_anb["anbEmail"]; $rowValue[$rowCount][$colValue[9]] = $sCurRow_anb["athUserName"]; $rowValue[$rowCount][$colValue[10]] = $rgsTagName; $rowValue[$rowCount][$colValue[11]] = $rgsTagAddress; $rowCount++; } // let's do the sorting..here.. based on the orderby variable.. // we only have to do it for full Name switch ($orderBy) { case "anbName" : // create a new array.. for ($rowTmpCnt=0;$rowTmpCnt
"; // create the coloumn names... for ($count=0;$count<$colCount;$count++) { echo ""; } echo ""; echo ""; if ($errFlag) { echo ""; echo ""; echo ""; } else { // lets print their respective values........... if (count($rowTmpValue) > 0) { 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 ""; } echo ""; $countX++; // increment the row counter... echo ""; } } else { $rowCount = count($rowValue); for ($countX=0;$countX<$rowCount;$countX++) { if (($rowValue[$countX][$colValue[5]] == "deleted") || ($rowValue[$countX][$colValue[5]] == "withdrawn")){ echo ""; } else { if ($rowValue[$countX][$colValue[5]] == "confirmed") { echo ""; } else { echo ""; } } for ($countY=0;$countY<$colCount;$countY++) { if ($rowValue[$countX][$colValue[$countY]] == "") { $rowValue[$countX][$colValue[$countY]] = " "; } echo ""; } echo ""; echo ""; } } } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; // php code ends here.. ?>
Participant Administration
"; echo "".$colValue[$count].""; echo ""; echo " "; echo "
"; echo $errMsg; echo "
"; echo ""; switch ($countY) { case 0 : echo $countX+1; break; case 1 : echo "".$rowValue[$key][$colValue[$countY]].""; echo ""; break; case 5 : echo ""; echo ""; echo ""; break; default : echo $rowValue[$key][$colValue[$countY]]; } echo ""; echo ""; echo ""; echo "
"; echo ""; echo "
"; echo ""; switch ($countY) { case 0 : echo $countX+1; break; case 1 : echo "".$rowValue[$countX][$colValue[$countY]]."
"; echo ""; break; case 5 : echo ""; echo ""; echo ""; break; default : echo $rowValue[$countX][$colValue[$countY]]; break; } echo "
"; echo "
"; echo ""; echo ""; echo "
"; echo ""; echo "
"; echo "
"; echo "Order By :
"; echo ""; echo "
"; echo "View by status :
"; echo ""; echo "
"; echo ""; echo ""; echo ""; echo "