Commit 5183d7b4 authored by GROSS-AMBLARD David's avatar GROSS-AMBLARD David
Browse files

adds a presentation.html file into projects, that will be displayed on top of...

adds a presentation.html file into projects, that will be displayed on top of the Contribute page (facultative).
parent f1600e0e
<h1>Welcome to the HEADWORK project!</h1>
<p>HEADWORK is a crowdsourcing platform for participative projects of any kind. You can select your project of interest
in the <b>Project</b> menu. Here you'll find tutorial activities to discover what's inside HEADWORK and its
academic foundations. Enjoy!
</p>
<h1>Welcome to the Wirk project!</h1>
<p>Wirk is a private company that offers crowdsourcing services, as a partner of the HEADWORK ANR project.
A community of 50,000 freelance participants are available to answer when AI is stuck!
</p>
<p>This demo projects allows to illustrate how Wirk users and Wirk APIs can be called within HEADWORK.</p>
......@@ -24,7 +24,7 @@ function showLogin($conn)
// If a user is coming from foulefactory platform then first of all store his url in session.
$_SESSION["incomingparentURL"] = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$VIEW['MAIN'] .= "<center>" . HTMLbr() . HTMLbr() . HTMLbr() . HTMLh1("Welcome to") . "<br/>" . HTMLimg("images/bulb_textUnder_bubbles.png", 500, 500) . "<h1>A crowdsourcing platform for participative projects of any kind.</h1></center>" . <<<EOT
$VIEW['MAIN'].= "<center>" . HTMLbr() . HTMLbr() . HTMLbr() . HTMLh1("Welcome to") . "<br/>" . HTMLimg("images/bulb_textUnder_bubbles.png", 500, 500) . "<h1>A crowdsourcing platform for participative projects of any kind.</h1></center>" . <<<EOT
<br/><table><tr><td>
<table>
<tr>
......@@ -556,6 +556,10 @@ function showTasks($conn, $displayAlert = false)
$VIEW["MAIN"] .= "<div id='container'>";
$presentationFilename="projects/".$_SESSION['project']."/presentation.html";
if (file_exists($presentationFilename))
$VIEW["MAIN"].=file_get_contents($presentationFilename);
$VIEW["MAIN"] .= "<div id='activity-list'>";
if ($_SESSION['project'] != null){
startAllArtifact($conn, $_SESSION['id']);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment