print "</td>" . NEWLINE;
 print "<td class=grid-header-l>" . lang_get('email_qa_owner') . "</td>" . NEWLINE;
 print "<td class=grid-data-l>";
 print "Y" == $email_qa_owner ? "Yes" : "No";
 print "</td>" . NEWLINE;
 print "</tr>" . NEWLINE;
 /*print"<td class=grid-data-l colspan=3>". NEWLINE;
 			print nl2br($test_purpose);
 			print"</td>". NEWLINE;
 		print"</tr>". NEWLINE;*/
 print "<tr>" . NEWLINE;
 print "<td class=grid-header-l>" . NEWLINE;
 print lang_get('test_comments');
 print "</td>" . NEWLINE;
 print "<td class=grid-data-l colspan=3>" . NEWLINE;
 print nl2br(replace_uri($test_comments));
 print "</td>" . NEWLINE;
 print "</tr>" . NEWLINE;
 print "</table>" . NEWLINE;
 print "<table class=hide95>" . NEWLINE;
 print "<tr>" . NEWLINE;
 # UPDATE TEST
 print "<td class=center width='50%'>" . NEWLINE;
 print "<form method=post action='{$update_action_page}'>" . NEWLINE;
 print "<input type='submit' value='" . lang_get('update_test') . "'>" . NEWLINE;
 print "</form>" . NEWLINE;
 print "</td>" . NEWLINE;
 # ADD VERSION
 /*
 print"<td class=center width='33%'>". NEWLINE;
 print"<form name=testdetail method=post action='$add_version_page'>". NEWLINE;
function html_print_teststep_with_hyperlinks($info_step_class, $action, $input, $result)
{
    $step_action = replace_uri($action);
    $step_test_inputs = replace_uri($input);
    $step_expected = replace_uri($result);
    print "<td align=left><div {$info_step_class}>{$step_action}</div></td>" . NEWLINE;
    print "<td align=left><div {$info_step_class}>{$step_test_inputs}</div></td>" . NEWLINE;
    print "<td align=left><div {$info_step_class}>{$step_expected}</div></td>" . NEWLINE;
}
Exemple #3
0
/**
  Checks if the URI to translate is prefixed with an internet protocol
  if not, the protocol is added. Calls then replace_uri.
  @see      replace_uri
  @param    string  str The string to be parsed an replaced
  @return   string  str The tag-added string
*/
function make_link($str)
{
    if (!preg_match("/mailto:|http:/", $str)) {
        if (preg_match("/@/", $str)) {
            $str = "mailto:" . $str;
        }
        if (preg_match("/www/", $str)) {
            $str = "http://" . $str;
        }
    }
    return replace_uri($str);
}