Beispiel #1
0
    } else {
        # Upload is successful, update datase with actual nr of files successfully uploaded
        $img->setImgMaxNr($picnr, $icount - 1);
        # Redirect to fresh mode
        header("location:{$thisfile}" . URL_REDIRECT_APPEND . "&pid={$pid}&saved=1&mode=show&nr={$picnr}&maxpic={$maxpic}");
        exit;
    }
}
$lang_tables[] = 'radio.php';
$lang_tables[] = 'prompt.php';
require './include/init_show.php';
$page_title = $LDUploadDicom;
if ($mode == 'show' && $nr) {
    $imgpath = $root_path . $dicom_img_localpath . $pid . "/{$nr}";
    $files =& $img->FilesListArray($imgpath, FILE_DISCRIM);
    $rows = $img->LastRecordCount();
}
# Default nr of files
if (!isset($maxpic) || !$maxpic || !is_numeric($maxpic) || $maxpic < 0) {
    $maxpic = 4;
}
# Prepare some parameters based on selected dicom viewer module
$pop_only = false;
switch ($_SESSION['sess_dicom_viewer']) {
    case 'raimjava':
        $pop_only = true;
        break;
    default:
        # Default viewer
}
# Set break file
Beispiel #2
0
define('LANG_FILE', 'actions.php');
//define('LANG_FILE','radio.php');
//define('NO_2LEVEL_CHK',1);
$local_user = '******';
require_once $root_path . 'include/inc_front_chain_lang.php';
require_once $root_path . 'global_conf/inc_remoteservers_conf.php';
$thisfile = basename($_SERVER['PHP_SELF']);
$breakfile = 'patient_search.php' . URL_APPEND;
if (isset($img_nr) && $img_nr) {
    # Get the dicom image
    include_once $root_path . 'include/care_api_classes/class_image.php';
    $img_obj = new Image();
    $dicom =& $img_obj->getDicomImage($img_nr);
    //echo $img_obj->getLastQuery();
    $imgpath = $root_path . 'radiology/dicom_img/' . $dicom['pid'] . '/' . $img_nr;
    if ($count = $img_obj->LastRecordCount()) {
        if ($files =& $img_obj->FilesListArray($imgpath, FILE_DISCRIM)) {
            $NUM = $img_obj->LastRecordCount();
        } else {
            $nogo = true;
        }
    } else {
        $nogo = true;
    }
} else {
    $nogo = true;
}
# If no go, get out of here
if ($nogo || !$NUM) {
    header("location:view_person_search.php" . URL_REDIRECT_APPEND);
    exit;