Esempio n. 1
0
 static function time_spent($exam)
 {
     return WTPRecord::time_spent($exam);
 }
Esempio n. 2
0
        ?>
</td>
			<td><?php 
        echo $taking->in_progress ? __('N/A', 'watupro') : sprintf(__('%%%d', 'watupro'), $taking->percent_correct);
        ?>
</td>
			<td><?php 
        echo $taking->result ? preg_replace('/<script\\b[^>]*>(.*?)<\\/script>/is', "", $taking->result) : _e('N/A', 'watupro');
        if (trim(strip_tags($taking->result)) == __('None', 'watupro') and empty($none_info)) {
            printf(' ' . __('(<a href="%s" target="_blank">Why?</a>)', 'watupro'), 'http://blog.calendarscripts.info/receiving-grade-none-or-unexpected-grade-watupro/');
            $none_info = true;
        }
        ?>
</td>
			<td><?php 
        echo WTPRecord::time_spent_human(WTPRecord::time_spent($taking));
        ?>
</td>
			<td><?php 
        if ($taking->in_progress) {
            _e('N/A', 'watupro');
        } else {
            ?>
<a href="#" onclick="WatuPRO.takingDetails('<?php 
            echo $taking->ID;
            ?>
');return false;"><?php 
            _e('view', 'watupro');
            ?>
</a>
			<?php