// edit $regelsArr['select'] .= $LINETEMP[1]; $regelsArr['select'] .= sprintf($LINETEMP[2], '', $ICONTEMP[4], $ICONTEMP[2], '', '', $ICONTEMP[5]); $arr_files = Gsm_get_files(WB_PATH . "/" . $regelsArr['file0'] . "/" . $regelsArr['file1'], "_" . $regelsArr['file_pre'] . "_" . $populateArray['recid']); foreach ($arr_files as $key => $value) { $populateArray['bijlage'] .= sprintf($ICONTEMP[20], $regelsArr['file0'] . "/" . $regelsArr['file1'], $value, $value, $populateArray['recid'], substr($value, 10, 6)); if ($debug) { $msg['bug'] .= __LINE__ . ' EN: ' . $key . "|" . $value . '</br>'; } } //$arr_files as $key => $value break; default: // default list $regelsArr['select'] .= $LINETEMP[1]; $regelsArr['select'] .= sprintf($LINETEMP[9], "", "", Gsm_next($regelsArr['search'], $regelsArr['n'], $regelsArr['seq'], $regelsArr['qty']), isset($regelsArr['filename_pdf']) ? sprintf($ICONTEMP[18], "", $regelsArr['filename_pdf']) : "", ""); break; } //$regelsArr[ 'mode' ] /* * the output to the screen */ /* * display */ switch ($regelsArr['mode']) { case 5: // edit $_SESSION['page_h'] = sha1(MICROTIME() . $_SERVER['HTTP_USER_AGENT']); $parseViewArray = array('header' => strtoupper($regelsArr['project']), 'kopregels' => $regelsArr['head'], 'page_id' => $page_id, 'zoeken' => $regelsArr['search'], 'section_id' => $section_id, 'message' => message($msg, $debug), 'recid' => $populateArray['recid'], 'bk_name' => $populateArray['name'], 'bk_date' => $populateArray['booking_date'], 'bk_comment' => $populateArray['boekstuk'], 'bk_project_opt' => Gsm_option($projectArray, $populateArray['project']), 'bk_debet_opt' => Gsm_option($rekeningArray, $populateArray['debet_id']), 'bk_tegen1_opt' => Gsm_option($rekeningArray, $populateArray['tegen1_id']), 'bk_tegen2_opt' => Gsm_option($rekeningArray, $populateArray['tegen2_id']), 'bk_debet_amount' => $populateArray['debet_amount'], 'bk_tegen1_amount' => $populateArray['tegen1_amount'], 'bk_tegen2_amount' => $populateArray['tegen2_amount'], 'bk_book_doc' => $populateArray['bijlage'], 'update' => $populateArray['updated'], 'hash' => $_SESSION['page_h'], 'selection' => $regelsArr['select'], 'memory' => $regelsArr['memory'] . "|", 'toegift' => $regelsArr['toegift'], 'rapportage' => $regelsArr['rapport'], 'return' => CH_RETURN, 'mod' => $regelsArr['module'], 'module' => $regelsArr['module'], 'sel' => ''); $prout .= Gsm_prout($TEMPLATE[3] . $TEMPLATE[4], $parseViewArray);
case 8: // Nieuw $regelsArr['select'] .= $LINETEMP[1]; if (isset($settingArr['opinfo'])) { $regelsArr['select'] .= sprintf($LINETEMP[6], "", stripslashes(htmlspecialchars($settingArr['opinfo']))); } $regelsArr['select'] .= sprintf($LINETEMP[2], "", $regelsArr['edit_ok'] ? $ICONTEMP[4] : "", $ICONTEMP[2], "", "", ""); break; default: // new list $msg['bug'] .= __LINE__ . '</br>'; $regelsArr['select'] .= $LINETEMP[1]; if (isset($settingArr['opinfo'])) { $regelsArr['select'] .= sprintf($LINETEMP[6], "", stripslashes(htmlspecialchars($settingArr['opinfo']))); } $regelsArr['select'] .= sprintf($LINETEMP[9], "", "", Gsm_next($regelsArr['search'], $regelsArr['n'], $regelsArr['seq'], $regelsArr['qty']), "", ""); $regelsArr['select'] .= sprintf($LINETEMP[2], "", $regelsArr['add_ok'] && $regelsArr['mode'] != 1 ? $ICONTEMP[3] : "", $regelsArr['mode'] == 1 ? $ICONTEMP[10] : "", $regelsArr['pdf_ok'] && $regelsArr['mode'] != 1 ? $ICONTEMP[11] : "", isset($regelsArr['filename_pdf']) ? sprintf($ICONTEMP[18], "", $regelsArr['filename_pdf']) : "", ""); break; } /* * display */ switch ($regelsArr['mode']) { case 9: // display // display default: // default $_SESSION['page_h'] = sha1(MICROTIME() . $_SERVER['HTTP_USER_AGENT']); $parseViewArray = array('header' => strtoupper($regelsArr['project']), 'page_id' => $page_id, 'section_id' => $section_id, 'kopregels' => $regelsArr['head'], 'description' => $regelsArr['descr'], 'message' => message($msg, $debug), 'selection' => $regelsArr['select'], 'return' => CH_RETURN, 'parameter' => $regelsArr['search'], 'sel' => $regelsArr['search'], 'module' => $regelsArr['module'], 'memory' => $regelsArr['memory'] . "|", 'toegift' => $regelsArr['toegift'], 'recid' => $regelsArr['recid'], 'rapportage' => $regelsArr['rapport'], 'hash' => $_SESSION['page_h']); $prout .= Gsm_prout($TEMPLATE[2], $parseViewArray);
break; case 8: // Nieuw $regelsArr['select'] .= $TEMPLATE[96]; if (isset($settingArr['opinfo'])) { $regelsArr['select'] .= sprintf($TEMPLATE[93], "", stripslashes(htmlspecialchars($settingArr['opinfo']))); } $regelsArr['select'] .= sprintf($TEMPLATE[91], "", $regelsArr['edit_ok'] ? $ICONTEMP[4] : "", $ICONTEMP[2], "", "", ""); break; default: // new list $regelsArr['select'] .= $TEMPLATE[96]; if (isset($settingArr['opinfo'])) { $regelsArr['select'] .= sprintf($TEMPLATE[93], "", stripslashes(htmlspecialchars($settingArr['opinfo']))); } $regelsArr['select'] .= sprintf($TEMPLATE[97], "", "", Gsm_next($regelsArr['search'], $regelsArr['n'], $regelsArr['seq'], $regelsArr['qty']), "", ""); $regelsArr['select'] .= sprintf($TEMPLATE[91], "", $regelsArr['add_ok'] && $regelsArr['mode'] != 1 ? $ICONTEMP[3] : "", $regelsArr['mode'] == 1 ? $ICONTEMP[10] : "", $regelsArr['pdf_ok'] ? $ICONTEMP[11] : "", isset($regelsArr['filename_pdf']) ? sprintf($ICONTEMP[18], "", $regelsArr['filename_pdf']) : "", ""); break; } /* * display */ switch ($regelsArr['mode']) { case 9: // display // display default: // default $_SESSION['page_h'] = sha1(MICROTIME() . $_SERVER['HTTP_USER_AGENT']); $parseViewArray = array('header' => strtoupper($regelsArr['project']), 'page_id' => $page_id, 'section_id' => $section_id, 'kopregels' => $regelsArr['head'], 'description' => $regelsArr['descr'], 'message' => message($msg, $debug), 'selection' => $regelsArr['select'], 'return' => CH_RETURN, 'parameter' => $regelsArr['search'], 'sel' => $regelsArr['search'], 'module' => $regelsArr['module'], 'mod' => $regelsArr['modulen'], 'memory' => $regelsArr['memory'] . "|", 'toegift' => $regelsArr['toegift'], 'recid' => $regelsArr['recid'], 'rapportage' => $regelsArr['rapport'], 'hash' => $_SESSION['page_h']); $prout .= $TEMPLATE[1];