version 1.7, 2001/05/02 20:34:34
|
version 1.9, 2001/05/02 23:00:05
|
Line 11
|
Line 11
|
# 03/23 Guy Albertelli |
# 03/23 Guy Albertelli |
# 03/24,03/29 Gerd Kortemeyer) |
# 03/24,03/29 Gerd Kortemeyer) |
# |
# |
# 03/31,04/03 Gerd Kortemeyer |
# 03/31,04/03,05/02 Gerd Kortemeyer |
|
|
package Apache::lonretrieve; |
package Apache::lonretrieve; |
|
|
Line 55 sub phaseone {
|
Line 55 sub phaseone {
|
$version.'"></td><th>'.$version.'</th><td>'. |
$version.'"></td><th>'.$version.'</th><td>'. |
localtime($rmtime).'</td><td>'. |
localtime($rmtime).'</td><td>'. |
'<a href="'.$urldir.$filename.'.meta" target=cat>'. |
'<a href="'.$urldir.$filename.'.meta" target=cat>'. |
'Metadata Version '.$version.'</a></td></tr>'); |
'Metadata Version '.$version.'</a>'); |
|
if (&Apache::lonnet::fileembstyle($suffix) eq 'ssi') { |
|
$r->print( |
|
' <a target=cat href="/adm/diff?filename='.$fn. |
|
'&versionone=priv&versiontwo='.$version. |
|
'">Diffs with Version '.$version.'</a>'); |
|
} |
|
$r->print('</a></td></tr>'); |
} |
} |
} |
} |
closedir(DIR); |
closedir(DIR); |
Line 66 sub phaseone {
|
Line 73 sub phaseone {
|
$r->print('<tr><td><input type=radio name=version value="new"></td>'. |
$r->print('<tr><td><input type=radio name=version value="new"></td>'. |
'<th>Current</th><td>'.localtime($rmtime). |
'<th>Current</th><td>'.localtime($rmtime). |
'</td><td><a href="'.$urldir.$main.'.'.$suffix.'.meta" target=cat>'. |
'</td><td><a href="'.$urldir.$main.'.'.$suffix.'.meta" target=cat>'. |
'Metadata current version</a></td></tr></table><p>'. |
'Metadata current version</a>'); |
|
if (&Apache::lonnet::fileembstyle($suffix) eq 'ssi') { |
|
$r->print( |
|
' <a target=cat href="/adm/diff?filename='.$fn. |
|
'&versionone=priv'. |
|
'">Diffs with current Version</a>'); |
|
} |
|
$r->print('</td></tr></table><p>'. |
'<font size=+1 color=red>Retrieval of an old version will '. |
'<font size=+1 color=red>Retrieval of an old version will '. |
'overwrite the file currently in construction space</font><p>'. |
'overwrite the file currently in construction space</font><p>'. |
'<input type=submit value="Retrieve version"></form>'); |
'<input type=submit value="Retrieve version"></form>'); |