Loading...
Skip to main content
Site identity, navigation, etc.
Log in
Username
Password
I forgot my password
CapsLock is on.
Log in
Stay in SSL mode
Navigation and related functionality and content
Related content
View template: tiki-quiz_stats_quiz.tpl
Edit CSS
Template listing
{title help="Quiz"}{tr}Stats for quiz:{/tr} {$quiz_info.name}{/title} <div class="t_navbar mb-4"> {button href="tiki-list_quizzes.php" class="btn btn-info" _text="{tr}List Quizzes{/tr}"} {button href="tiki-quiz_stats.php" class="btn btn-info" _text="{tr}Quiz Stats{/tr}"} {button href="tiki-quiz_stats_quiz.php?quizId=$quizId" class="btn btn-info" _text="{tr}This Quiz Stats{/tr}"} {button href="tiki-edit_quiz.php?quizId=$quizId" class="btn btn-primary" _text="{tr}Edit this Quiz{/tr}"} {if $tiki_p_admin_quizzes eq 'y'} <form style="display: inline;" action="tiki-quiz_stats_quiz.php" method="post"> {ticket} <input type="hidden" name="quizId" value="{$quizId}"> <input type="hidden" name="clear" value="{$quizId}"> <button type="submit" class="btn btn-primary" onclick="confirmPopup()"> {tr}Clear Stats{/tr} </button> </form> {/if} {button href="tiki-edit_quiz.php" _text="{tr}Admin Quizzes{/tr}"} </div> {* end link buttons *} <h2>{tr}Quiz stats{/tr}</h2> {* begin table for stats data *} <div class="table-responsive"> <table class="table"> <tr> <th> {* sort user *} <a href="tiki-quiz_stats_quiz.php?quizId={$quizId}&offset={$offset}&sort_mode={if $sort_mode eq 'user_desc'}user_asc{else}user_desc{/if}">{tr}User{/tr}</a> </th> {* Set the names of the table headings to reflect the names of the db *} {* sort date *} <th> <a href="tiki-quiz_stats_quiz.php?quizId={$quizId}&offset={$offset}&sort_mode={if $sort_mode eq 'timestamp_desc'}timestamp_asc{else}timestamp_desc{/if}">{tr}Date{/tr}</a> </th> {* sort time taken *} <th> <a href="tiki-quiz_stats_quiz.php?quizId={$quizId}&offset={$offset}&sort_mode={if $sort_mode eq 'timeTaken_desc'}timeTaken_asc{else}timeTaken_desc{/if}">{tr}time taken{/tr}</a> </th> {* sort points*} <th> <a href="tiki-quiz_stats_quiz.php?quizId={$quizId}&offset={$offset}&sort_mode={if $sort_mode eq 'points_desc'}points_asc{else}points_desc{/if}">{tr}points{/tr}</a> </th> <th> {* sort results *} <a href="tiki-quiz_stats_quiz.php?quizId={$quizId}&offset={$offset}&sort_mode={if $sort_mode eq 'resultId_desc'}resultId_asc{else}resultId_desc{/if}">{tr}Result{/tr}</a> </th> <th>{tr}Pass/Fail{/tr}</th> </tr> {section name=user loop=$channels} <tr> <td class="username">{$channels[user].user|userlink}</td> <td class="date">{$channels[user].timestamp|tiki_short_datetime}</td> <td class="date">{$channels[user].timeTaken} {tr}secs{/tr}</td> <td class="integer">{$channels[user].points} ({$channels[user].avgavg|string_format:"%.2f"}%)</td> <td class="action"> {if $tiki_p_view_user_results eq 'y'} <a class="tips" href="tiki-quiz_result_stats.php?quizId={$quizId}&resultId={$channels[user].resultId}&userResultId={$channels[user].userResultId}" title=":{tr}Results{/tr}"> {icon name='chart'} </a> {if $channels[user].hasDetails eq 'y'}({tr}Details{/tr}){/if} {/if} {if $tiki_p_admin_quizzes eq 'y'} <form style="display: inline;" action="tiki-quiz_stats_quiz.php" method="post"> {ticket} <input type="hidden" name="quizId" value="{$quizId}"> <input type="hidden" name="remove" value="{$channels[user].userResultId}"> <button type="submit" class="btn btn-link px-0 pt-0" onclick="confirmPopup()"> {icon name='remove'} </button> </form> {/if} </td> <td>{if $channels[user].ispassing}{tr}Passed{/tr}{else}{tr}Failed{/tr}{/if}</td> </tr> {/section} </table> </div> {pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links} {* begin second table *} <h2>{tr}Stats for this quiz Questions {/tr}</h2> {*first section beginning *} {section name=ix loop=$questions} {tr}Question:{/tr} <a class="link" href="tiki-edit_quiz_questions.php?quizId={$quizId}&questionId={$questions[ix].questionId|escape}">{$questions[ix].question|escape}<br></a> <div class="table-responsive"> <table class="table"> {* begin header data for table *} {* I'd like to have every table heading sorted for immediate analysis {* sort options *} <th> <a href="tiki-quiz_stats_quiz.php?quizId={$quizId}&offset={$offset}&sort_mode={if $sort_mode eq 'options_desc'}options_asc{else}options_desc{/if}">{tr}Options{/tr}</a> </th> *} <tr> <th>{tr}Option{/tr}</th> <th>{tr}Votes{/tr}</th> <th>{tr}Average{/tr}</th> </tr> {* begin looping of data from data base *} {*second section beginning *} {section name=jx loop=$questions[ix].options} <tr class="odd"> <td class="text">{$questions[ix].options[jx].optionText|escape}</td> <td class="text">{$questions[ix].options[jx].votes}</td> <td class="integer">{$questions[ix].options[jx].avg|string_format:"%.2f"}%</td> </tr> {/section} {*second section end *} </table> </div> <br> {/section} {*first section end *}
Related content
Most Popular Tags
adze
american woods
axe
broadleaf
broadleaf aspen
broadleafs
community
conifers
dendrology
eco friendly
education
froe
glossary
green
green woodworking
hammer
hard wood
hard woods
hardwoods
hickory
history
how to
joinery
literature
machinery
material processing
media
merchants
mortise
people
plane
poplar
safety
shaker
shave
society
soft woods
spokeshave
sustainable
template
tenon
terminology
tools
wood
works