|
if ($page_header != "home") { ?>
}?>
require_once('../includes/DbConnector.php');
require_once('../includes/Validator.php');
// Create an object (instance) of the DbConnector and Validator
$connector = new DbConnector();
$validator = new Validator();
?>
// Validate the sectionID, and if it's ok delete the section
if ($HTTP_GET_VARS['StudyID'] != "")
{
$study = $HTTP_GET_VARS['StudyID'];
if ( $validator->validateNumber($study,'Study ID'))
{
$result = $connector->query('SELECT * from Studies where Approved="1" and ID="'.$study.'"');
$row_cat = $connector->fetchArray($result);
if ($row_cat['OnlyTxt'] != 1)
{
echo '
';
echo 'Back to all studies |
|
| ';
if ($row_cat['FilePath'] != "")
{
echo '
| ';
}
echo '
'.$row_cat[Who].' |
|
'.$row_cat[About].' |
|
'.$row_cat[Benefits].' |
|
See Informed Consent process. '.$row_cat[ConsentTxt].' |
|
'.$row_cat[Obligations].' |
|
Status: '.$row_cat[Status].' |
|
Lead Coordinator: '.$row_cat[Coordinator].' |
Alternate Contact: '.$row_cat[BackupName].' |
|
For more information call 254-751-1144, option 11 or you can submit your information online |
|
Volunteer for this study online | ';
echo ' |
| ';
}
else
{
echo '
';
echo 'Back to all studies |
| ';
if ($row_cat['ImagePath'] != "")
{
echo ' |
| ';
}
echo ' | ';
if ($row_cat['LgText'] != "")
{
echo ''.$row_cat[LgText].' |
| ';
}
//echo 'Status: '.$row_cat[Status].' | ';
if ($row_cat['Coordinator'] != "")
{
echo 'Lead Coordinator: '.$row_cat[Coordinator].' | ';
}
if ($row_cat['BackupName'] != "")
{
echo 'Alternate Contact: '.$row_cat[BackupName].' | ';
}
// echo ' |
// For more information call 254-751-1144, option 11 or you can submit your information online | ';
echo ' |
';
/* if ($row_cat['FilePath'] != "")
{
echo '';
}*/
if ($row_cat['FilePath2'] != "")
{
echo '';
}
if ($row_cat['FilePath3'] != "")
{
echo '';
}
if ($row_cat['FilePath4'] != "")
{
echo '';
}
if ($row_cat['FilePath5'] != "")
{
echo '';
}
if ($row_cat['FilePath6'] != "")
{
echo '';
}
echo ' |
|
';
echo ' |
';
if ($row_cat['FilePath'] != "")
{
echo '';
}
else
{
echo ' ';
}
echo ' |
|
| ';
}
}
else
{
echo "Couldn't delete. The image: ".$validator->listErrors();
}
}
else
{
$result4 = $connector->query('SELECT ID,SummaryTitle, Summary, Status, Approved, Active from Studies where Active="1" order by status');
while ($row_cat2 = $connector->fetchArray($result4))
{
echo '
'.$row_cat2['Summary'].' |
|
Status: '.$row_cat2['Status'].' |
|
View more detail |
|
| ';
}
}
?>
|
|