tce__pdf__testgen_8php

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
tce_pdf_testgen.php File Reference

Namespaces

 com\tecnick\tcexam\admin
 TCExam Administration Area.
 

Variables

if(isset($_REQUEST[‘test_id’]) AND($_REQUEST[‘test_id’] > 0)) else
 
 $doc_title = unhtmlentities($l[‘w_test’])
 
 $doc_description = F_compact_string(unhtmlentities($l[‘h_test’]))
 
 $page_elements = 6
 
 $qtype = array(’S’, ’M’, ’T’, ‘O’)
 
 $dirvalue = ‘L’
 
 $isunicode = (strcasecmp($l[‘a_meta_charset’], ‘UTF-8’) == 0)
 
 $pdf = new TCPDFEX(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, $isunicode)
 
 $header_backlink = K_PATH_URL.‘admin/code/tce_edit_test.php?test_id=‘.$test_id
 
if(defined(’K_DIGSIG_ENABLE’) AND K_DIGSIG_ENABLE$cell_height_ratio = (K_CELL_HEIGHT_RATIO + 0.1)
 
 $page_width = $pdf->getPageWidth() - PDF_MARGIN_LEFT - PDF_MARGIN_RIGHT
 
 $data_cell_height = round(($cell_height_ratio * PDF_FONT_SIZE_DATA) / $pdf->getScaleFactor(), 2)
 
 $main_cell_height = round(($cell_height_ratio * PDF_FONT_SIZE_MAIN) / $pdf->getScaleFactor(), 2)
 
 $data_cell_width = round($page_width / $page_elements, 2)
 
 $data_cell_width_third = round($data_cell_width / 3, 2)
 
 $data_cell_width_half = round($data_cell_width / 2, 2)
 
 $qrstyle
 
 $grid_color = array(255, 0, 0)
 
 $grid_bg_color = array(255,205,205)
 
 $circle_bg_color = array(255,255,255)
 
 $line_width = 0.177
 
 $circle_radius = ($line_width * 11)
 
 $circle_width = (2 * $circle_radius) + $line_width
 
 $circle_shift = $circle_width + $line_width
 
 $circle_half_width = ($circle_width / 2)
 
 $align_mark_color = array(0,0,0)
 
 $align_mark_width = ($line_width * 7)
 
 $align_mark_lenght = ($line_width * 22)
 
 $align_mark_shift = ($line_width * 8)
 
 $row_height = $circle_width + (8 * $line_width)
 
 $line_style = array(‘width’ => $line_width, ‘cap’ => ‘butt’, ‘join’ => ‘miter’, ‘dash’ => 0, ‘phase’ => 0, ‘color’ => $grid_color)
 
 $bstyle
 
 $testdata = F_getTestData($test_id)
 
 $test_random_questions_select = F_getBoolean($testdata[‘test_random_questions_select’])
 
 $test_random_questions_order = F_getBoolean($testdata[‘test_random_questions_order’])
 
 $test_questions_order_mode = intval($testdata[‘test_questions_order_mode’])
 
 $test_random_answers_select = F_getBoolean($testdata[‘test_random_answers_select’])
 
 $test_random_answers_order = F_getBoolean($testdata[‘test_random_answers_order’])
 
 $test_answers_order_mode = intval($testdata[‘test_answers_order_mode’])
 
 $random_questions = ($test_random_questions_select OR $test_random_questions_order)
 
 $sql_answer_position = “
 
if(!$test_random_answers_order AND($test_answers_order_mode==0)) $sql_questions_order_by = “
 
 $msg = "\x50\x6f\x77\x65\x72\x65\x64\x20\x62\x79\x20\x54\x43\x45\x78\x61\x6d\x20\x28\x77\x77\x77\x2e\x74\x63\x65\x78\x61\x6d\x2e\x6f\x72\x67\x29"
 
 $lnk = "\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x74\x63\x65\x78\x61\x6d\x2e\x6f\x72\x67"
 

Detailed Description

Creates PDF documents for Pen-and-Paper testing.

Variable Documentation

$align_mark_color = array(0,0,0)

$align_mark_lenght = ($line_width * 22)

$align_mark_shift = ($line_width * 8)

$align_mark_width = ($line_width * 7)

$bstyle
Initial value:
= array(
'position' => '',
'align' => 'C',
'stretch' => false,
'fitwidth' => false,
'cellfitalign' => '',
'border' => false,
'hpadding' => 0,
'vpadding' => 0,
'fgcolor' => array(0,0,0),
'bgcolor' => false,
'text' => false
)
if (defined(’K_DIGSIG_ENABLE’) AND K_DIGSIG_ENABLE) $cell_height_ratio = (K_CELL_HEIGHT_RATIO + 0.1)

$circle_bg_color = array(255,255,255)

$circle_half_width = ($circle_width / 2)

$circle_radius = ($line_width * 11)

$circle_shift = $circle_width + $line_width

$circle_width = (2 * $circle_radius) + $line_width

$data_cell_height = round(($cell_height_ratio * PDF_FONT_SIZE_DATA) / $pdf->getScaleFactor(), 2)

$data_cell_width = round($page_width / $page_elements, 2)

$data_cell_width_half = round($data_cell_width / 2, 2)

$data_cell_width_third = round($data_cell_width / 3, 2)

$dirvalue = ‘L’

$doc_description = F_compact_string(unhtmlentities($l[‘h_test’]))

$doc_title = unhtmlentities($l[‘w_test’])

$grid_bg_color = array(255,205,205)

$grid_color = array(255, 0, 0)

$header_backlink = K_PATH_URL.‘admin/code/tce_edit_test.php?test_id=‘.$test_id

$isunicode = (strcasecmp($l[‘a_meta_charset’], ‘UTF-8’) == 0)

$line_style = array(‘width’ => $line_width, ‘cap’ => ‘butt’, ‘join’ => ‘miter’, ‘dash’ => 0, ‘phase’ => 0, ‘color’ => $grid_color)

$line_width = 0.177

$lnk = "\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x74\x63\x65\x78\x61\x6d\x2e\x6f\x72\x67"

$main_cell_height = round(($cell_height_ratio * PDF_FONT_SIZE_MAIN) / $pdf->getScaleFactor(), 2)

$msg = "\x50\x6f\x77\x65\x72\x65\x64\x20\x62\x79\x20\x54\x43\x45\x78\x61\x6d\x20\x28\x77\x77\x77\x2e\x74\x63\x65\x78\x61\x6d\x2e\x6f\x72\x67\x29"

$page_elements = 6

$page_width = $pdf->getPageWidth() - PDF_MARGIN_LEFT - PDF_MARGIN_RIGHT

$qrstyle
Initial value:
= array(
'border' => false,
'vpadding' => 0,
'hpadding' => 0,
'fgcolor' => array(0,0,0),
'bgcolor' => false,
'position' => 'C',
'module_width' => 2,
'module_height' => 2
)
$qtype = array(’S’, ’M’, ’T’, ‘O’)

$random_questions = ($test_random_questions_select OR $test_random_questions_order)

$row_height = $circle_width + (8 * $line_width)

$sql_answer_position = “

if (!$test_random_answers_order AND($test_answers_order_mode==0)) $sql_questions_order_by = “

$test_answers_order_mode = intval($testdata[‘test_answers_order_mode’])

$test_questions_order_mode = intval($testdata[‘test_questions_order_mode’])

$test_random_answers_order = F_getBoolean($testdata[‘test_random_answers_order’])

$test_random_answers_select = F_getBoolean($testdata[‘test_random_answers_select’])

$test_random_questions_order = F_getBoolean($testdata[‘test_random_questions_order’])

$test_random_questions_select = F_getBoolean($testdata[‘test_random_questions_select’])

$testdata = F_getTestData($test_id)

if ($l[‘a_meta_dir’]== ‘rtl’) else
Initial value:
{
exit
Definition: tce_show_result_user.php:51

 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy