Ejemplo n.º 1
0
 *
 */
require_once "../../config.inc.php";
require_once "common.php";
require_once 'exttable.class.php';
testlinkInitPage($db, true, false, "checkRights");
$templateCfg = templateConfiguration();
$tcase_cfg = config_get('testcase_cfg');
$importance_levels = config_get('importance_levels');
$args = init_args();
$tproject_mgr = new testproject($db);
$msg_key = 'all_testcases_has_testplan';
$edit_label = lang_get('design');
$edit_img = TL_THEME_IMG_DIR . "edit_icon.png";
$gui = new stdClass();
$gui->freeTestCases = $tproject_mgr->getFreeTestCases($args->tproject_id);
$gui->path_info = null;
$gui->tableSet = null;
if (!is_null($gui->freeTestCases['items'])) {
    if ($gui->freeTestCases['allfree']) {
        // has no sense display all test cases => display just message.
        $msg_key = 'all_testcases_are_free';
    } else {
        $msg_key = '';
        $tcasePrefix = $tproject_mgr->getTestCasePrefix($args->tproject_id) . $tcase_cfg->glue_character;
        $tcaseSet = array_keys($gui->freeTestCases['items']);
        $options = array('output_format' => 'path_as_string');
        $tsuites = $tproject_mgr->tree_manager->get_full_path_verbose($tcaseSet, $options);
        $titleSeperator = config_get('gui_title_separator_1');
        $columns = getColumnsDefinition();
        // Extract the relevant data and build a matrix