2011-12-28 21:36:35 +00:00
|
|
|
#!/mod/bin/jimsh
|
|
|
|
|
|
|
|
puts {
|
|
|
|
|
|
|
|
<div id=jbar></div>
|
|
|
|
|
2011-12-29 01:17:32 +00:00
|
|
|
<ul id=optmenu class=contextMenu style="width: 160px">
|
2011-12-28 21:36:35 +00:00
|
|
|
<li class=delete><a href=#delete>Delete</a></li>
|
|
|
|
<li class=cut><a href=#cut>Cut to clipboard</a></li>
|
|
|
|
<li class=pwcopy><a href=#copy>Copy to clipboard</a></li>
|
|
|
|
|
|
|
|
<li class=separator><a href=#rename>Rename</a></li>
|
|
|
|
<li><a href=#download>Download</a></li>
|
|
|
|
|
|
|
|
}
|
2012-01-22 19:47:47 +00:00
|
|
|
if {$model eq "HDR"} {
|
2011-12-28 21:36:35 +00:00
|
|
|
puts { <li class="separator"><a href=#decrypt>Decrypt</a></li> }
|
|
|
|
}
|
|
|
|
if {[system pkginst ffmpeg]} {
|
2012-02-12 23:11:23 +00:00
|
|
|
puts {
|
|
|
|
<li><a href=#audio>Extract Audio</a></li>
|
|
|
|
<li><a href=#mpg>Extract to MPG</a></li>
|
|
|
|
}
|
2011-12-28 21:36:35 +00:00
|
|
|
}
|
|
|
|
if $nicesplice {
|
2012-02-06 23:28:53 +00:00
|
|
|
puts {
|
|
|
|
<li class="cut"><a href=#crop>Crop</a></li>
|
|
|
|
<li class="cut"><a href=#chunk>Split (45m parts)</a></li>
|
|
|
|
}
|
2011-12-28 21:36:35 +00:00
|
|
|
}
|
|
|
|
puts {
|
|
|
|
<li class=separator><a href=#lock>Toggle Lock</a></li>
|
|
|
|
<li><a href=#enc>Toggle Enc</a></li>
|
|
|
|
<li><a href=#new>Toggle New</a></li>
|
|
|
|
</ul>
|
|
|
|
|
2011-12-29 01:17:32 +00:00
|
|
|
<ul id=doptmenu class=contextMenu style="width: 160px">
|
2011-12-28 21:36:35 +00:00
|
|
|
<li class=delete><a href=#delete>Delete</a></li>
|
|
|
|
<li class=cut><a href=#cut>Cut to clipboard</a></li>
|
|
|
|
<li class=pwcopy><a href=#copy>Copy to clipboard</a></li>
|
|
|
|
<li class=separator><a href=#rename>Rename</a></li>
|
|
|
|
}
|
|
|
|
|
|
|
|
if $flatten {
|
|
|
|
puts { <li class="separator"><a href=#flat>No-Flatten</a></li> }
|
|
|
|
}
|
|
|
|
|
|
|
|
puts {
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div id=renameform title="Rename media file" style="display: none">
|
|
|
|
<form id=renameform_form>
|
|
|
|
<input type=hidden name="renameorig" id="renameorig" value="">
|
|
|
|
<input type=hidden name="titleorig" id="titleorig" value="">
|
|
|
|
<table border=0>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
<label for="rename">
|
|
|
|
<b>New Filename</b>
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type=text name="rename" id="rename"
|
|
|
|
value="" size=70 maxlength=255
|
|
|
|
class="text ui-widget-content ui-corner-all">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr style="display: none" class=tstype>
|
|
|
|
<th>
|
|
|
|
<label for="renametitle" style="padding-top: 0.5em">
|
|
|
|
<b>New Medialist Title</b>
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type=text name="renametitle" id="renametitle"
|
|
|
|
value="" size=70 maxlength=48
|
|
|
|
class="text ui-widget-content ui-corner-all">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr style="display: none" class=tstype>
|
|
|
|
<td colspan=2 id=synopsis style="font-style: italic"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id=drenameform title="Rename directory" style="display: none">
|
|
|
|
<form id=drenameform_form>
|
|
|
|
<input type=hidden name="renameorig" id="drenameorig" value="">
|
|
|
|
<table border=0>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
<label for="drename">
|
|
|
|
<b>New Directory Name</b>
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type=text name="rename" id="drename"
|
|
|
|
value="" size=70 maxlength=255
|
|
|
|
class="text ui-widget-content ui-corner-all">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id=savestreamform title="Save streamed content"
|
|
|
|
style="display: none">
|
|
|
|
<div class=pre id=savestream_detail></div>
|
|
|
|
<form id=savestream_form>
|
|
|
|
}
|
|
|
|
puts "<input type=hidden name=dir value=\"$dir\">"
|
|
|
|
puts {
|
|
|
|
<table border=0>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
<label for="savestream_name">
|
|
|
|
<b>Filename</b>
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type=text name="savestream_name"
|
|
|
|
id="savestream_name"
|
|
|
|
value="" size=70 maxlength=255
|
|
|
|
class="text ui-widget-content ui-corner-all">
|
|
|
|
<img id=savestream_spin src=/img/loading.gif>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2011-12-29 00:57:18 +00:00
|
|
|
<div id=newdirform title="New Folder" style="display: none">
|
|
|
|
<form id=newdirform_form>
|
|
|
|
}
|
|
|
|
puts "<input type=hidden name=dir value=\"$dir\">"
|
|
|
|
puts {
|
|
|
|
<table border=0>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
<label for="newdirname">
|
|
|
|
<b>New Folder Name</b>
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type=text name="newdirname" id="newdirname"
|
|
|
|
value="" size=70 maxlength=255
|
|
|
|
class="text ui-widget-content ui-corner-all">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2011-12-28 21:36:35 +00:00
|
|
|
<div id=dialogue></div>
|
|
|
|
<div id=confirm title="Confirmation Required"></div>
|
2011-12-29 00:57:18 +00:00
|
|
|
<div id=pwdialogue style="display: none">
|
|
|
|
<center>
|
|
|
|
<img src=/img/loading.gif>
|
|
|
|
<br><br>
|
|
|
|
Please wait...
|
|
|
|
<div id=pwfeedback></div>
|
2011-12-29 01:17:32 +00:00
|
|
|
</center>
|
2011-12-29 00:57:18 +00:00
|
|
|
</div>
|
2011-12-28 21:36:35 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|