コード例 #1
0
<?php

namespace ReusingDublin;

use ReusingDublin;
/**
 * Site index view file
 * @package  ReusingDublin
 * @author daithi coombes <*****@*****.**>
 */
$site = Site::getSite($_GET['id']);
?>
    <div class="container-fluid">
        <p class="title">Share your information with us</p>

        <form method="post">
            <input type="hidden" name="data[site_id]" value="<?php 
echo $site['id'];
?>
">

            <div class="form-group">
                <label for="questions">
                    Tell me something about this Site/Location as Suggested Below(Example Questions)
                </label>
                <select id="questions" name="data[question]" class="form-control">
                    <option value="" disabled="disabled" selected="selected">Please see the Example Question List</option>
                    <option value="Why do you think this site is in its current condition?">Why do you think this site is in its current condition?</option>
                    <option value="What has the site been previously used for?">What has the site been previously used for?</option>
                    <option value="How long has the site been in this condition?">How long has the site been in this condition?</option>
                    <option value="Is there any activity on the site?">Is there any activity on the site?</option>
コード例 #2
0
ファイル: site.php プロジェクト: aoifecor/reusingdublin
</a></li>
                        <?php 
    }
}
?>
                        </ul>
                    </div>
                </div>
            </span>

        </div>
    </div>

    <div class="container-fluid">
        <?php 
$comments = Site::getComments($site['id']);
foreach ($comments as $comment) {
    ?>
            <div class="row comment panel panel-default">
                <div class="col-xs-3 user-details">
                    <div class="row">
                        <span class="col-md-6">
                            <img src="<?php 
    echo Gravatar::get_gravatar($comment['email']);
    ?>
">
                        </span>
                        <div class="col-md-6">
                            <?php 
    echo $comment['name'];
    ?>