Ejemplo n.º 1
0
\t\t</div><!-- container -->

END;
        } else {
            $content = <<<END
\t 
\t <div id="container">
\t\t<p>I'm sorry, something went wrong when sending your e-mail. Please try again.</p>
\t\t<p><ahref="contact.php">Back to contact page.</a></p>
\t </div><!-- container -->

END;
        }
    }
} else {
    $form = formHTML();
    $content = <<<END
\t
\t\t<div id="container">
\t\t\t{$form}
\t\t</div><!-- container -->

END;
}
echo $header;
echo $content;
echo $footer;
//---------------------------------------
//Returns HTML for contact form
function formHTML($name = "", $email = "", $msg = "")
{
Ejemplo n.º 2
0
        if ($arr[$key_current][block] == "") {
            $arr[$key_current][block] = "0";
        }
        if ($arr[$key_current][retest] == "") {
            $arr[$key_current][retest] = "0";
        }
        if ($arr[$key_current][deferred] == "") {
            $arr[$key_current][deferred] = "0";
        }
        if ($arr[$key_current][automated] == "") {
            $arr[$key_current][automated] = "0";
        }
    }
}
mysql_close($link);
$result .= formHTML($arr, $should_exec);
$file_name = getChart($exec_arr, $auto_arr, $user_arr, $testplan_name);
$result .= "<br></br><img src= {$file_name} />";
$result .= "\n</body>\n</html>";
$STDOUT = fopen('/home/wautorun/qa/web/projects/report/' . $testplan_name . '4.2.2.0_Test_Plan.html', 'wb');
$STDERR = fopen('error.log', 'wb');
fwrite($STDOUT, $result);
sendMail($file_name, $testplan_name);
function getName($testerid)
{
    $sql3 = "SELECT * from users where id=" . $testerid;
    $result3 = mysql_query($sql3);
    $row3 = mysql_fetch_assoc($result3);
    $userfirst = $row3[first];
    $userlast = $row3[last];
    $username = "******";