$str = "(dnabanknumbers.DNA_Bank_Number = '' OR dnabanknumbers.DNA_Bank_Number IS NULL) OR ";
$description = " DNA Extraction No = ";
$value = "empty";
break;
case 'formRelation':
$str = "(dnabanknumbers.ID_RelationDNA_Voucher = '0' OR dnabanknumbers.ID_RelationDNA_Voucher = '' OR dnabanknumbers.ID_RelationDNA_Voucher IS NULL) OR ";
$description = " Relation to Voucher = ";
$value = "empty";
break;
case 'formNoVoucherData':
$str = "dnabanknumbers.ID_Cache NOT IN (SELECT ID_Cache FROM cachecollection) OR ";
$description = " DNA samples ";
$value = "without voucher data";
break;
case 'formType':
$str = "(dnabanknumbers.ID_Type = '0' OR dnabanknumbers.ID_Tissue = '' OR dnabanknumbers.ID_Tissue IS NULL) OR ";
$description = " DNA Type = ";
$value = "empty";
break;
case 'formPreservation':
$str = "(dnabanknumbers.ID_Preservation = '0' OR dnabanknumbers.ID_Preservation = '' OR dnabanknumbers.ID_Preservation IS NULL) OR ";
$description = " Preservation = ";
$value = "empty";
break;
case 'formTissue':
$str = "(dnabanknumbers.ID_Tissue = '0' OR dnabanknumbers.ID_Tissue = '' OR dnabanknumbers.ID_Tissue IS NULL) OR ";
$description = " Tissue = ";
$value = "empty";
break;
case 'formExtractionMethod':
$str = "(dnabanknumbers.ID_Extraction_Method = '0' OR dnabanknumbers.ID_Extraction_Method = '' OR dnabanknumbers.ID_Extraction_Method IS NULL) AND ";
$description = " Extraction Method = ";
$value = "empty";
break;
case 'formExtractionDate':
$str = "(dnabanknumbers.Extraction_Date IS NULL OR dnabanknumbers.Extraction_Date = '') OR ";
$description = " Extraction Date = ";
$value = "empty";
break;
case 'formExtractionStaff':
$str = "dnabanknumbers.ID_Extraction_Staff = '0' OR ";
$description = " Extraction Staff = ";
$value = "empty";
break;
case 'formPurificationMethod':
$str = "dnabanknumbers.ID_Purification = '0' OR ";
$description = " Purification Method = ";
$value = "empty";
break;
case 'formAbsorbance280':
$str = "(dnabanknumbers.Absorbance280 IS NULL OR dnabanknumbers.Absorbance280 = '') OR ";
$description = " Absorbance 280/260 = ";
$value = "empty";
break;
case 'formAbsorbance230':
$str = "(dnabanknumbers.Absorbance230 IS NULL OR dnabanknumbers.Absorbance230 = '') OR ";
$description = " Absorbance 230/260 = ";
$value = "empty";
break;
case 'formConcentration':
$str = "(dnabanknumbers.Concentration IS NULL OR dnabanknumbers.Concentration = '') OR ";
$description = " Concentration = ";
$value = "empty";
break;
case 'formDegradation':
$str = "(dnabanknumbers.ID_Degradation = '0' OR dnabanknumbers.ID_Degradation = '' OR dnabanknumbers.ID_Degradation IS NULL) OR ";
$description = " Quality = ";
$value = "empty";
break;
case 'formCheckDate':
$str = "(dnabanknumbers.Check_Date IS NULL OR dnabanknumbers.Check_Date = '') OR ";
$description = " Quality Check Date = ";
$value = "empty";
break;
case 'formStock':
$str = "(dnabanknumbers.ID_Location_Stock = '0' OR dnabanknumbers.ID_Location_Stock = '' OR dnabanknumbers.ID_Location_Stock IS NULL) OR ";
if($_REQUEST['sort'] == "DU" or $_REQUEST['sort'] == "" or $Sorting == "") { $OrderBy = " ORDER BY LENGTH(dnabanknumbers.Dna_Bank_Number),dnabanknumbers.DNA_Bank_Number "; }
if($_REQUEST['sort'] == "DD") { $OrderBy = " ORDER BY LENGTH(dnabanknumbers.Dna_Bank_Number),dnabanknumbers.DNA_Bank_Number DESC "; }
if($_REQUEST['sort'] == "SU") { $OrderBy = " ORDER BY cachecollection.UnitID_Specimen "; }
if($_REQUEST['sort'] == "SD") { $OrderBy = " ORDER BY cachecollection.UnitID_Specimen DESC "; }
if($_REQUEST['sort'] == "CU") { $OrderBy = " ORDER BY cachecollection.CollectionCode_Specimen "; }
if($_REQUEST['sort'] == "CD") { $OrderBy = " ORDER BY cachecollection.CollectionCode_Specimen DESC "; }
if($_REQUEST['sort'] == "IU") { $OrderBy = " ORDER BY cachecollection.InstitutionCode_Specimen "; }
if($_REQUEST['sort'] == "ID") { $OrderBy = " ORDER BY cachecollection.InstitutionCode_Specimen DESC "; }
if($_REQUEST['sort'] == "TU") { $OrderBy = " ORDER BY cachetaxonidentified.NameAuthorYear "; }
if($_REQUEST['sort'] == "TD") { $OrderBy = " ORDER BY cachetaxonidentified.NameAuthorYear DESC "; }
if ($row->ID_Aliquots_Fridge != $AliquotsFridge or $row->ID_Aliquots_Rack != $AliquotsRack or $row->ID_Aliquots_Box != $AliquotsBox or $Rest_Quantity_old != $RestQuantity or $Position_old != $Positions)