* Access to all user except of guests * @author Gabriele Droege, DNA Bank Network * @version 2.0 * @package Input * @copyright Copyright © 2011 DNA Bank Network http://www.dnabank-network.org
The contents of this file are subject to the Mozilla Public License Version 1.1 * @filesource * @license http://www.mozilla.org/MPL/ MPL */ /** * calling connection to database */ include ("../config/head.php"); /** * calling authorisation script */ include ("../auth.php"); ?> DNA Module - Add New Primer
"; echo""; while ($row = mysqli_fetch_object($result)) { echo ""; } } else { echo ""; } ((mysqli_free_result($result) || (is_object($result) && (get_class($result) == "mysqli_result"))) ? true : false); ?>

Add New Primer

"; } else { if($formSubmitSave) { if(empty($formNewPrimer)) { unset($formNewPrimer); } if($formNewPrimer=="") { echo "Please complete 'Primer'"; } if($formNewPrimer!="") { $result= mysqli_query($GLOBALS["___mysqli_ston"], "SELECT ID_Primer, Primer FROM primer " . "WHERE Primer = '$formNewPrimer'"); if(mysqli_num_rows($result)) { echo "Primer already exists!"; } else { $NewPrimer = addslashes($formNewPrimer); $PrimerRemarks = addslashes($formPrimerRemarks); $PrimerSequence = addslashes($formPrimerSequence); $GSC_Adapters = addslashes($formGSC_Adapters); $GSC_MultiplexIdentifiers = addslashes($formGSC_MultiplexIdentifiers); $sqlref = "SELECT * FROM reference WHERE ReferenceText = '$formReference' OR ReferenceShort = '$formReference'"; $resultref = mysqli_query($GLOBALS["___mysqli_ston"], $sqlref); while($row = mysqli_fetch_object($resultref)) { $ID_Ref = $row->ID_References; } $sql = "INSERT INTO primer (Primer, PrimerRemarks, PrimerSequence, GSC_Adapters, GSC_MultiplexIdentifiers, FK_Reference, Created_Who)" . "VALUES ('$NewPrimer','$PrimerRemarks','$PrimerSequence','$GSC_Adapters','$GSC_MultiplexIdentifiers','$ID_Ref','$log')"; $result = mysqli_query($GLOBALS["___mysqli_ston"], $sql); #######################################Error 1############################################################### if(!$result) { $msg = $sql."\n"; $msg .= "####Error 1####"; if($debug == '1') echo $msg; trigger_error($msg, E_USER_ERROR); /** * calling Error message */ include ("../config/Errorreport.php"); } ############################################################################################################# else { include("../config/DataSaved.php"); } } } }//if ($formSubmitSave) if($formSubmitUpdate) { $NewPrimer = addslashes($formNewPrimer); $NewPrimerRemarks = addslashes($formPrimerRemarks); $NewPrimerSequence = addslashes($formPrimerSequence); $NewGSC_Adapters = addslashes($formGSC_Adapters); $NewGSC_MultiplexIdentifiers = addslashes($formGSC_MultiplexIdentifiers); $ID_Primer = $_POST['ID_Primer']; $Current_Date = date('Y-m-d H:i:s'); if($formReference != "") { $sqlref = "SELECT * FROM reference WHERE ReferenceText = '$formReference' OR ReferenceShort = '$formReference'"; $resultref = mysqli_query($GLOBALS["___mysqli_ston"], $sqlref); while($row = mysqli_fetch_object($resultref)) { $ID_Ref = "'".$row->ID_References."'"; } if(!isset($ID_Ref)) { $ID_Ref = 'NULL'; } } else { $ID_Ref = 'NULL'; } $sql = "UPDATE primer SET Primer = '$NewPrimer', PrimerRemarks = '$NewPrimerRemarks', PrimerSequence = '$NewPrimerSequence', GSC_Adapters = '$NewGSC_Adapters', GSC_MultiplexIdentifiers = '$NewGSC_MultiplexIdentifiers', FK_Reference = $ID_Ref, Updated_Who = '$log', Updated_When = '$Current_Date' WHERE ID_Primer = '$ID_Primer'"; $result = mysqli_query($GLOBALS["___mysqli_ston"], $sql); #######################################Error 2############################################################### if(!$result) { $msg = $result."\n"; $msg .= "####Error 2####"; if($debug == '1') echo $msg; trigger_error($msg, E_USER_ERROR); /** * calling Error message */ include ("../config/Errorreport.php"); } ############################################################################################################# else { include("../config/ChangesAccepted.php"); } } //if ($formSubmitUpdate) ?>
With this tool you can administer all different primers related to amplification, cloning or single sequencing data. Below the green box you can see all records found in the database. It is not possible to delete entries here. To do so please ask your administrator for assistance. After finishing your entries please close this window and reload (F5) the input or search mask to get the updated list from database.
Sorry, as a guest you don't have permission for entering new data! If you want to search for existing DNA data please use the Search function!
'; echo ''; echo ""; echo ''; echo ''; echo ''; echo ''; echo ''; } } else { ?>

Edit Primer
Primer Name*
Primer Sequence (5'-3')
Primer Remarks/ Configurations
[GSC] Adapters
[GSC] Multiplex Identifiers
Reference/lab protocol
Add new Primer
Primer Name*
Primer Sequence (5'-3')
Primer Remarks/ Configurations
[GSC] Adapters
[GSC] Multiplex Identifiers
Reference/lab protocol
" target="blank">
* Mandatory field
"; if($num_rows > 0) { echo "

PrimerReferenceCreated
".$row->Primer.""; if($row->ReferenceUrl != "") { echo $row->ReferenceShort ? build_href1($row->ReferenceUrl, $row->ReferenceShort) : build_href1($row->ReferenceUrl, $row->ReferenceText); } else { echo $row->ReferenceShort ? $row->ReferenceShort : $row->ReferenceText; } echo "".$row->Created_Who." (".$row->Created_When.")
No primer entries found.