version 1.115, 2008/11/28 16:10:26
|
version 1.116, 2008/12/05 09:41:59
|
Line 105 sub handler {
|
Line 105 sub handler {
|
my $numres = 0; |
my $numres = 0; |
|
|
# Start off the directory table. |
# Start off the directory table. |
$r->print('<h3>'.&mt('Directory Contents:').'</h3>'); |
|
$r->print(&Apache::loncommon::start_data_table() |
$r->print(&Apache::loncommon::start_data_table() |
.&Apache::loncommon::start_data_table_header_row() |
.&Apache::loncommon::start_data_table_header_row() |
.'<th>'.&mt('Type').'</th>' |
.'<th>'.&mt('Type').'</th>' |
Line 377 sub dircontrols {
|
Line 376 sub dircontrols {
|
); |
); |
my $mytype = $lt{'type'}; # avoid conflict with " and ' in javascript |
my $mytype = $lt{'type'}; # avoid conflict with " and ' in javascript |
$r->print(<<END); |
$r->print(<<END); |
<table id="LC_cstr_controls"> |
<div class="columnSection"> |
<tr> |
<div> |
<th>$lt{'acti'}</th> |
<form name="curractions" method="post" action=""> |
<th>$lt{'updc'}</th> |
<fieldset> |
<th>$lt{'crea'}</th> |
<legend>$lt{'acti'}</legend> |
</tr> |
<select name="dirtask" onchange="currdiract(this.form)"> |
<tr> |
|
<td> |
|
<form name="curractions" method="post" action=""> |
|
<select name="dirtask" onchange="currdiract(this.form)"> |
|
<option>$lt{'sela'}</option> |
<option>$lt{'sela'}</option> |
<option value="publish">$lt{'pubd'}</option> |
<option value="publish">$lt{'pubd'}</option> |
<option value="editmeta">$lt{'edit'}</option> |
<option value="editmeta">$lt{'edit'}</option> |
<option value="printdir">$lt{'prnt'}</option> |
<option value="printdir">$lt{'prnt'}</option> |
<option value="delete">$lt{'dedr'}</option> |
<option value="delete">$lt{'dedr'}</option> |
</select> |
</select> |
<input type="hidden" name="filename" value="/~$uname$thisdisfn/" /> |
<input type="hidden" name="filename" value="/~$uname$thisdisfn/" /> |
</form> |
</fieldset> |
<form name="publishdir" method="post" action="/adm/publish" target="_parent"> |
</form> |
<input type="hidden" name="pubrec" value="" /> |
<form name="publishdir" method="post" action="/adm/publish" target="_parent"> |
<input type="hidden" name="filename" value="" /> |
<input type="hidden" name="pubrec" value="" /> |
</form> |
<input type="hidden" name="filename" value="" /> |
<form name="printdir" method="post" action="/adm/printout" target="_parent"> |
</form> |
<input type="hidden" name="postdata" value="" /> |
<form name="printdir" method="post" action="/adm/printout" target="_parent"> |
</form> |
<input type="hidden" name="postdata" value="" /> |
</td> |
</form> |
<td> |
</div> |
<form name="upublisher" enctype="multipart/form-data" method="post" action="/adm/upload" target="_parent"> |
|
<input type="hidden" name="filename" value="/~$uname$thisdisfn/" /> |
<div> |
<input type="file" name="upfile" size="20" /> |
<form name="upublisher" enctype="multipart/form-data" method="post" action="/adm/upload" target="_parent"> |
<input type="button" value="$lt{'uplo'}" onclick="checkUpload(this.form)" /> |
<fieldset> |
</form> |
<legend>$lt{'updc'}</legend> |
</td> |
<input type="hidden" name="filename" value="/~$uname$thisdisfn/" /> |
<td> |
<input type="file" name="upfile" size="20" /> |
<form name="fileaction" method="post" action="/adm/cfile" target="_parent"> |
<input type="button" value="$lt{'uplo'}" onclick="checkUpload(this.form)" /> |
<span style="white-space: nowrap"> |
</fieldset> |
|
</form> |
|
</div> |
|
|
|
<div> |
|
<form name="fileaction" method="post" action="/adm/cfile" target="_parent"> |
|
<fieldset> |
|
<legend>$lt{'crea'}</legend> |
|
<span class="LC_nobreak"> |
<input type="hidden" name="filename" value="/~$uname$thisdisfn/" /> |
<input type="hidden" name="filename" value="/~$uname$thisdisfn/" /> |
<script type="text/javascript"> |
<script type="text/javascript"> |
function validate_go() { |
function validate_go() { |
Line 438 sub dircontrols {
|
Line 441 sub dircontrols {
|
<option value="newdir">$lt{'nsub'}:</option> |
<option value="newdir">$lt{'nsub'}:</option> |
</select> <input type="text" name="newfilename" value="$lt{'type'}" onfocus="if (this.value == '$mytype') this.value=''" /> <input type="button" value="Go" onclick="validate_go();" /> |
</select> <input type="text" name="newfilename" value="$lt{'type'}" onfocus="if (this.value == '$mytype') this.value=''" /> <input type="button" value="Go" onclick="validate_go();" /> |
</span> |
</span> |
</form> |
</fieldset> |
</td> |
</form> |
</tr> |
</div> |
</table> |
</div> |
END |
END |
} |
} |
|
|