" target="_blank"> |
DNA Bank Network - Location Stock Administration |
|
|
| 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! | "; }
else {
if($formSubmitSaveBox)
{
if(empty($formNewBox))
{ unset($formNewBox); }
else
{
$result= mysqli_query($GLOBALS["___mysqli_ston"], "SELECT ID_Stock_Box, Stock_Box FROM stock_box " .
"WHERE Stock_Box = '$formNewBox'");
if(mysqli_num_rows($result))
{
echo "Entry exists already!";
}
else
{
$result = "INSERT INTO stock_box (Stock_Box, Created_Who)" .
"VALUES ('$formNewBox','$log')";
$sql = mysqli_query($GLOBALS["___mysqli_ston"], $result);
#######################################Error 1###############################################################
if(!$sql)
{ $msg = $result."\n";
$msg .= "####Error 1####";
if($debug == '1') echo $msg;
trigger_error($msg, E_USER_ERROR);
/**
* calling Error message
*/
include ("Errorreport.php"); }
#############################################################################################################
else {
include("../config/ChangesAccepted.php"); }
}
}
}//if ($formSubmitSaveBox)
if($formSubmitSaveRack)
{
if(empty($formNewRack))
{ unset($formNewRack); }
else
{
$result= mysqli_query($GLOBALS["___mysqli_ston"], "SELECT ID_Stock_Rack, Stock_Rack FROM stock_rack " .
"WHERE Stock_Rack = '$formNewRack'");
if(mysqli_num_rows($result))
{
echo " Entry exists already!";
}
else
{
$result = "INSERT INTO stock_rack (Stock_Rack, Created_Who)" .
"VALUES ('$formNewRack','$log')";
$sql = mysqli_query($GLOBALS["___mysqli_ston"], $result);
#######################################Error 2###############################################################
if(!$sql)
{ $msg = $result."\n";
$msg .= "####Error 2####";
if($debug == '1') echo $msg;
trigger_error($msg, E_USER_ERROR);
/**
* calling Error message
*/
include ("Errorreport.php"); }
#############################################################################################################
else {
echo "Changes accepted!"; }
}
}
}//if ($formSubmitSaveRack)
if($formSubmitSaveFridge)
{
if(empty($formNewFridge))
{ unset($formNewFridge); }
else
{
$result= mysqli_query($GLOBALS["___mysqli_ston"], "SELECT ID_Stock_Fridge, Stock_Fridge FROM stock_fridge " .
"WHERE Stock_Fridge = '$formNewFridge'");
if(mysqli_num_rows($result))
{
echo " Entry exists already!";
}
else
{
$result = "INSERT INTO stock_fridge (Stock_Fridge, Created_Who)" .
"VALUES ('$formNewFridge','$log')";
$sql = mysqli_query($GLOBALS["___mysqli_ston"], $result);
#######################################Error 3###############################################################
if(!$sql)
{ $msg = $result."\n";
$msg .= "####Error 3####";
if($debug == '1') echo $msg;
trigger_error($msg, E_USER_ERROR);
/**
* calling Error message
*/
include ("Errorreport.php"); }
#############################################################################################################
else {
echo "Changes accepted!"; }
}
}
}//if ($formSubmitSaveFridge)
}
?>
".htmlentities(((($___mysqli_tmp = mysqli_fetch_field_direct($result, 0)->name) && (!is_null($___mysqli_tmp))) ? $___mysqli_tmp : false))."";
while ($row = mysqli_fetch_row($result))
{
echo "";
for ($j=0; $j<$num_fields; $j++)
echo "".htmlentities($row[$j])." | ";
echo " ";
}
((mysqli_free_result($result) || (is_object($result) && (get_class($result) == "mysqli_result"))) ? true : false);
?>
".htmlentities(((($___mysqli_tmp = mysqli_fetch_field_direct($result, 0)->name) && (!is_null($___mysqli_tmp))) ? $___mysqli_tmp : false))."";
while ($row = mysqli_fetch_row($result))
{
echo "";
for ($j=0; $j<$num_fields; $j++)
echo "".htmlentities($row[$j])." | ";
echo " ";
}
((mysqli_free_result($result) || (is_object($result) && (get_class($result) == "mysqli_result"))) ? true : false);
?>
|
".htmlentities(((($___mysqli_tmp = mysqli_fetch_field_direct($result, 0)->name) && (!is_null($___mysqli_tmp))) ? $___mysqli_tmp : false))."";
while ($row = mysqli_fetch_row($result))
{
echo "";
for ($j=0; $j<$num_fields; $j++)
echo "".htmlentities($row[$j])." | ";
echo " ";
}
((mysqli_free_result($result) || (is_object($result) && (get_class($result) == "mysqli_result"))) ? true : false);
?>
|
|
|
Nach Schließen des Formulares müssen Sie die Input- bzw. Suchmaske neu laden, damit die Änderungen aktiv werden. |
|