version 1.64, 2008/07/19 02:28:44
|
version 1.65, 2008/07/19 21:44:55
|
Line 1985 sub print_scantronformat {
|
Line 1985 sub print_scantronformat {
|
$css_class = $itemcount%2?' class="LC_odd_row"':''; |
$css_class = $itemcount%2?' class="LC_odd_row"':''; |
$datatable .= '<tr'.$css_class.'>'; |
$datatable .= '<tr'.$css_class.'>'; |
if (!$is_custom) { |
if (!$is_custom) { |
$datatable .= '<td>'.&mt('Default in use:').'<br />'; |
$datatable .= '<td>'.&mt('Default in use:').'<br />'. |
|
'<span class="LC_nobreak">'; |
if ($scantronurl) { |
if ($scantronurl) { |
$datatable .= '<a href="'.$scantronurl.'" target="_blank">'. |
$datatable .= '<a href="'.$scantronurl.'" target="_blank">'. |
&mt('Default scantron format file').'</a>'; |
&mt('Default scantron format file').'</a>'; |
} else { |
} else { |
$datatable = &mt('File unavailable for display'); |
$datatable = &mt('File unavailable for display'); |
} |
} |
$datatable .= '</td>'; |
$datatable .= '</span></td>'; |
if (keys(%error) == 0) { |
if (keys(%error) == 0) { |
$datatable .= '<td valign="bottom">'; |
$datatable .= '<td valign="bottom">'; |
if (!$switchserver) { |
if (!$switchserver) { |
Line 2013 sub print_scantronformat {
|
Line 2014 sub print_scantronformat {
|
} |
} |
$datatable .= '<td>'.$errorstr.'</td><td> '; |
$datatable .= '<td>'.$errorstr.'</td><td> '; |
} elsif ($scantronurl) { |
} elsif ($scantronurl) { |
$datatable .= '<td><a href="'.$scantronurl.'" target="_blank">' |
$datatable .= '<td><span class="LC_nobreak">'. |
.&mt('Custom scantron format file').'</a>' |
'<a href="'.$scantronurl.'" target="_blank">'. |
.'<span class="LC_nobreak"><label>' |
&mt('Custom scantron format file').'</a><label>'. |
.'<input type="checkbox" name="scantronformat_del"' |
'<input type="checkbox" name="scantronformat_del"'. |
.'" value="1" />'.&mt('Delete?').'</label></td>' |
'" value="1" />'.&mt('Delete?').'</label></span></td>'. |
.'<td>'.&mt('Replace:').'</span><br />'; |
'<td><span class="LC_nobreak"> '. |
|
&mt('Replace:').'</span><br />'; |
} |
} |
} |
} |
if (keys(%error) == 0) { |
if (keys(%error) == 0) { |
if ($switchserver) { |
if ($switchserver) { |
$datatable .= &mt('Upload to library server: [_1]',$switchserver); |
$datatable .= &mt('Upload to library server: [_1]',$switchserver); |
} else { |
} else { |
$datatable .=' <input type="file" name="scantronformat" />'; |
$datatable .='<span class="LC_nobreak"> '. |
|
'<input type="file" name="scantronformat" /></span>'; |
} |
} |
} |
} |
$datatable .= '</td></tr>'; |
$datatable .= '</td></tr>'; |