version 1.55, 2010/12/03 21:33:52
|
version 1.56, 2010/12/03 22:00:28
|
Line 121 sub startGradeScreen {
|
Line 121 sub startGradeScreen {
|
my $allowed_to_edit = &Apache::lonnet::allowed('mgr',$env{'request.course.id'}); |
my $allowed_to_edit = &Apache::lonnet::allowed('mgr',$env{'request.course.id'}); |
|
|
if ($allowed_to_view) { |
if ($allowed_to_view) { |
$r->print('<table><tr>'); |
$r->print('<div id="LC_head_subbox">'); |
if ($notshowTotals) { $r->print ('<td>'.&mt('Students do not see total points.').'</td>'); } |
if ($notshowTotals) { $r->print (' '.&mt('Students do not see total points.').' '); } |
if ($notshowSPRSlink){ $r->print ('<td>'.&mt('Students do not see link to spreadsheet.').'</td>'); } |
if ($notshowSPRSlink){ $r->print (' '.&mt('Students do not see link to spreadsheet.').' '); } |
if ($showPoints) { $r->print ('<td>'.&mt('Students will see points based on problem weights.').'</td>'); } |
if ($showPoints) { $r->print (' '.&mt('Students will see points based on problem weights.').' '); } |
if ($showCategories) { $r->print ('<td>'.&mt('Students will see points based on categories.').'</td>'); } |
if ($showCategories) { $r->print (' '.&mt('Students will see points based on categories.').' '); } |
$r->print('<td>'.&Apache::lonhtmlcommon::coursepreflink(&mt('Grade display settings'),'grading').'</td></td></table>'); |
$r->print(' '.&Apache::lonhtmlcommon::coursepreflink(&mt('Grade display settings'),'grading').'</div>'); |
} |
} |
|
|
|
|
$r->print('<ul class="LC_TabContentBigger" id="main">'); |
$r->print("\n".'<ul class="LC_TabContentBigger" id="main">'); |
$r->print('<li'.($mode eq 'quick'?' class="active"':'').'><a href="/adm/quickgrades"><b>'. |
$r->print("\n".'<li'.($mode eq 'quick'?' class="active"':'').'><a href="/adm/quickgrades"><b>'. |
($showPoints?&mt('Points'):($showCategories?&mt('Grades'):&mt('Completion'))).'</b></a></li>'); |
($showPoints?&mt('Points'):($showCategories?&mt('Grades'):&mt('Completion'))).'</b></a></li>'); |
|
|
if (!($showPoints || $notshowSPRSlink) || ($allowed_to_view)) { |
if (!($showPoints || $notshowSPRSlink) || ($allowed_to_view)) { |
$r->print('<li'.($mode eq 'spreadsheet'?' class="active"':'').'><a href="/adm/'.($allowed_to_view?'classcalc':'studentcalc').'"><b>'. |
$r->print("\n".'<li'.($mode eq 'spreadsheet'?' class="active"':'').'><a href="/adm/'.($allowed_to_view?'classcalc':'studentcalc').'"><b>'. |
&mt('Spreadsheet').'</b></a></li>'); |
&mt('Spreadsheet').'</b></a></li>'); |
} |
} |
$r->print('</ul>'); |
$r->print("\n".'</ul>'."\n"); |
$r->print('<div class="LC_Box" style="clear:both;margin:0;"><div id="maincoursedoc" style="margin:0 0;padding:0 0;"><div class="LC_ContentBox" id="mainCourseDocuments" style="display: block;">'); |
$r->print('<div class="LC_Box" style="clear:both;margin:0;"><div id="maincoursedoc" style="margin:0 0;padding:0 0;"><div class="LC_ContentBox" id="mainCourseDocuments" style="display: block;">'); |
} |
} |
|
|