예제 #1
0
                    $env->reportType = $doc_info->type;
                    if ($showPlatforms) {
                        $printingOptions['showPlatformNotes'] = true;
                        $docText .= renderPlatformHeading($tocPrefix, $platforms[$platform_id], $printingOptions);
                    }
                    $actionContext['level'] = 0;
                    $docText .= renderTestPlanForPrinting($db, $tree2work, $printingOptions, $env, $actionContext);
                    if ($printingOptions['metrics']) {
                        $docText .= buildTestPlanMetrics($doc_data->statistics, $platform_id);
                    }
                    break;
            }
        }
    }
}
$docText .= renderEOF();
// Needed for platform feature
if ($printingOptions['toc']) {
    $printingOptions['tocCode'] .= '</div>';
    $topText .= $printingOptions['tocCode'];
}
$docText = $topText . $docText;
// add application header to HTTP
if ($args->format == FORMAT_ODT || $args->format == FORMAT_MSWORD) {
    flushHttpHeader($args->format, $doc_info->type);
}
// send out the data
echo $docText;
/** 
 * Process input data
 * 
예제 #2
0
$text2print .= renderReqSpecNodeForPrinting($db, $node, $options, null, 0, $args->tproject_id);
// now get all it's children (just requirements).
$childrenReq = $reqspec_mgr->get_requirements($args->reqspec_id);
if (!is_null($childrenReq) && $req_cfg->show_child_reqs_on_reqspec_print_view) {
    // IMPORTANT NOTICE:
    // 'docType' => 'SINGLE_REQ' among other things remove the indent on req table
    // that is present by default.
    // That's why we need to pass any other value.
    $reqPrintOpts = array('toc' => 0, 'req_linked_tcs' => 1, 'req_cf' => 1, 'req_scope' => 1, 'req_relations' => 1, 'req_coverage' => 1, 'req_status' => 1, 'req_type' => 1, 'req_author' => 1, 'displayVersion' => 1, 'displayDates' => 1, 'displayLastEdit' => 1, 'docType' => SINGLE_REQ);
    $text2print .= '<div><h2>' . lang_get('reqs') . '</h2></div>';
    $loop2do = count($childrenReq);
    for ($rdx = 0; $rdx < $loop2do; $rdx++) {
        $text2print .= renderReqForPrinting($db, $childrenReq[$rdx], $reqPrintOpts, null, 0, $args->tproject_id);
    }
}
$text2print .= renderEOF();
echo $text2print;
/*
  function: init_args
  args:
  
  returns: 
*/
function init_args(&$treeMgr)
{
    $_REQUEST = strings_stripSlashes($_REQUEST);
    $args = new stdClass();
    $args->reqspec_id = isset($_REQUEST['reqspec_id']) ? intval($_REQUEST['reqspec_id']) : 0;
    $args->tproject_name = '';
    $args->tproject_id = isset($_REQUEST['tproject_id']) ? intval($_REQUEST['tproject_id']) : 0;
    if ($args->tproject_id > 0) {