コード例 #1
0
ファイル: question3.php プロジェクト: EsthervdG/PACT
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
    <link rel="stylesheet" href="style.css">
</head>
<body>

<form action="question3.php" name="Questionnaire" method="post" class="col-md-6 col-md-offset-4">
    <h1>PACT</h1>
    <p id="q1">Is it the first appointment of the patient?</p>
    <input class="answers" value="No" name="answer1">
    <p id="q2">How many complaints does the patient have?</p>
    <?php 
if (readRow('answer2') === "1") {
    ?>
        <input list="answers2" class="answers" name="answer2" value="1">
    <?php 
} elseif (readRow('answer2') === "2") {
    ?>
        <input list="answers2" class="answers" name="answer2" value="2">
    <?php 
} else {
    echo "fail";
}
?>

    <p id="q3">Does the patient complain about psychiatric symptoms?</p>
    <input list="answersYN" class="answers" name="answer3" placeholder="Make a choice">
        <datalist id="answersYN">
            <option value="Yes" name="yes">
            <option value="No" name="no">
        </datalist>
    <input type="submit" name="submit3" value="OK">
コード例 #2
0
ファイル: singleConsult.php プロジェクト: EsthervdG/PACT
<?php

include "functions.php";
if (isset($_POST['submitStart'])) {
    header('Location: start.php');
}
?>

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<form action="singleConsult.php" name="Questionnaire" method="post" class="col-md-6 col-md-offset-4">
<p>A single consultation for <?php 
echo readRow('name');
?>
 seems most appropriate here.</p>
    <br>
<p>For a new session click on the button:</p>
<input type="submit" name="submitStart" value="Start NEW">
</form>
</body>
</html>
コード例 #3
0
ファイル: question6.php プロジェクト: EsthervdG/PACT
    <p id="q4">Does the patient have a short life expectancy due to their illness?</p>
    <input list="answersYN" class="answers" name="answer4" placeholder="Make a choice" value="No">

    <?php 
for ($i = 1; $i <= readRow('answer2'); $i++) {
    ?>
        <p>Does complaint <?php 
    echo $i;
    ?>
 appear to be severe?</p>
        <input list="answersYN" class="answers" name="answer5_<?php 
    echo $i;
    ?>
" value="<?php 
    echo readRow('answer5_' . $i);
    ?>
">
    <?php 
}
?>

    <p id="q6">Does the patient prefer a single or double consultation?</p>
    <input list="answers6" class="answers" name="answer6" placeholder="Make a choice">
    <datalist id="answers6">
        <option value="Yes, single">
        <option value="Yes, double">
        <option value="No">
    </datalist>
    <input type="submit" name="submit6" value="OK" >
コード例 #4
0
ファイル: question5.php プロジェクト: EsthervdG/PACT
    ?>
        <input list="answers2" class="answers" name="answer2" value="2">
        <?php 
} else {
    echo "fail";
}
?>

    <p id="q3">Does the patient complain about psychiatric symptoms?</p>
    <input list="answersYN" class="answers" name="answer3" placeholder="Make a choice" value="No">

    <p id="q4">Does the patient have a short life expectancy due to their illness?</p>
    <input list="answersYN" class="answers" name="answer4" placeholder="Make a choice" value="No">

<?php 
for ($i = 0; $i < readRow('answer2'); $i++) {
    ?>
        <p>Does complaint <?php 
    echo $i + 1;
    ?>
 appear to be severe?</p>
        <input list="answersYN" class="answers" name="answer5_<?php 
    echo $i + 1;
    ?>
">
            <datalist id="answersYN">
                <option value="Yes" name="yes">
                <option value="No" name="no">
            </datalist>
<?php 
}