Esempio n. 1
0
    $barcode = $rasWrapper->getValue('get', 'barcode');
}
// standardmaessig kamera 1 verwenden
$useWebcamNo = 1;
if ($rasWrapper->getValue('post', 'useWebcamNo') === false) {
    if ($rasWrapper->getValue('session', 'useWebcamNo') !== false) {
        $useWebcamNo = $rasWrapper->getValue('session', 'useWebcamNo');
    }
} else {
    if ($rasWrapper->getValue('post', 'useWebcamNo') == 2) {
        $useWebcamNo = 2;
    } else {
        $useWebcamNo = 1;
    }
}
$rasWrapper->setValue('session', 'useWebcamNo', $useWebcamNo);
/*
echo ("SESSION-after:");
print_r($_SESSION);
echo ("\n<br>\n");
*/
$camWrapper = new AxisImageAcquisition($barcode, $useWebcamNo);
$fileWrapper = new DilpsBarcodeAndFileChecker($barcode);
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
Esempio n. 2
0
 foreach ($storeDbValues as $valueKey) {
     if ($rasWrapper->getValue('post', $valueKey)) {
         $funcName = 'set' . ucfirst($valueKey);
         if (method_exists($wrapper, $funcName)) {
             $wrapper->{$funcName}($rasWrapper->getValue('post', $valueKey));
             // echo ("\$wrapper->{$funcName}(".$rasWrapper->getValue('post',$valueKey).") aufgerufen\n<br>\n");
         }
         /*
         else 
         {
         	echo ("\$wrapper->{$funcName}() nicht gefunden\n<br>\n");
         }
         */
         if ($sessionSavedValues) {
             if (in_array($valueKey, $sessionSavedValues)) {
                 $rasWrapper->setValue('session', $valueKey, $rasWrapper->getValue('post', $valueKey));
             }
         }
     }
     /*
     else 
     {
     	echo ("Wert {$valueKey} nicht in \$_POST enthalten\n<br>\n");
     }
     */
 }
 // zur einfacheren Handhabung, die Angabe zu den in der Session gespeicherten Werten,
 // dort ablegen
 if (isset($_POST['save_value'])) {
     $_SESSION['save_value'] = $_POST['save_value'];
 } else {