* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * * HUBzero is a registered trademark of Purdue University. * * @package hubzero-cms * @copyright Copyright 2005-2015 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ // No direct access defined('_HZEXEC_') or die; ?> <p> You have <strong><?php echo \Components\Courses\Helpers\Form::timeDiff($realLimit * 60); ?> </strong> to complete this form. There are <strong><?php echo $this->pdf->getQuestionCount(); ?> </strong> questions. <?php if ($this->dep->getAllowedAttempts() > 1) { ?> You are allowed <strong><?php echo $this->dep->getAllowedAttempts(); ?> </strong> attempts. This is your <strong><?php echo \Components\Courses\Helpers\Form::toOrdinal((int) $this->resp->getAttemptNumber());
<p>Completed <?php echo Date::of($resp->getEndTime())->toLocal('r'); ?> </p> <?php if ($this->dep->getResultsClosed() == 'details') { ?> <p>Detailed results will be available <?php echo $dep->getEndTime() ? Date::of($dep->getEndTime())->toLocal('r') . " (about " . \Components\Courses\Helpers\Form::timeDiff(strtotime($this->dep->getEndTime()) - strtotime(Date::of('now'))) . " from now)" : 'soon'; ?> . Check the course progress page for more details.</p> <?php } elseif ($this->dep->getResultsClosed() == 'score') { ?> <p>Your score will be available <?php echo $dep->getEndTime() ? Date::of($dep->getEndTime())->toLocal('r') . " (about " . \Components\Courses\Helpers\Form::timeDiff(strtotime($this->dep->getEndTime()) - strtotime(Date::of('now'))) . " from now)" : 'soon'; ?> . Check the course progress page for more details.</p> <?php } ?> <?php if ($this->dep->getAllowedAttempts() > 1) { ?> <?php $attempt = $resp->getAttemptNumber(); ?> <p> You are allowed <strong><?php echo $this->dep->getAllowedAttempts(); ?>