📄 menu_cdda.jsp
字号:
<%@page contentType="text/html;charset=ISO-8859-15" pageEncoding="ISO-8859-1"%>
<%@page import="org.homeplayer.util.*"%>
<%@page import="java.util.*"%>
<jsp:useBean id="hppc" class="org.homeplayer.web.HPPageContext" scope="request" />
<%
Vector drives = (Vector) request.getAttribute("drives");
%>
<form action="playcdda.jsp">
<table>
<tr>
<td colspan=2 align=center>
<%
if(IOUtil.isWin())
{
if( drives.size()==0)
{ %>
Inserer un CD et appuyer sur 'CD-AUDIO'
<% } else {
hppc.setFocusSetOnPage(true);
%>
<input type=submit value="Lecture" focused>
<% }
} else { // not win
if(HPConf.getString(HPConf.CDDA_DRIVE)==null ||
HPConf.getString(HPConf.CDDA_DRIVE).equals(""))
{ %>
Veuillez indiquer un lecteur.
<% } else {
hppc.setFocusSetOnPage(true);
%>
<input type=submit value="Lecture" focused>
<% }
} %>
</td>
</tr>
<tr>
<td colspan=2 align=center><HR size=2 /></td>
</tr>
<tr>
<td valign=top width=200><H3>Lecteur</H3></td>
<td>
<% if (IOUtil.isWin()) {
for(int i=0 ; i<drives.size() ; i++ ) {
String drive=drives.elementAt(i).toString() ;
drive = StringUtil.gsub(drive,":\\", "" ) ;
if( HPConf.getString(HPConf.CDDA_DRIVE).equals("") && i==0 ) {
HPConf.set(HPConf.CDDA_DRIVE, drive) ;
}
%>
<input type="radio" name="Drive" value="<%=drive%>" <%if( HPConf.getString(HPConf.CDDA_DRIVE).equals(drive) ) {%>checked<%}%> /> <%=drive%>
<% }
} else { // not win
String drive= HPConf.getString(HPConf.CDDA_DRIVE);
if(drive.equals("") || drive == null) {
%>
Veuillez indiquer le lecteur CD-ROM dans le panneau de configuration.
<% } else { %>
<input type="radio" name="Drive" value="<%=drive%>" checked /> <%=drive%>
<% }
} %>
</td>
</tr>
<tr>
<td colspan=2 align=center><HR size=2 /></td>
</tr>
<tr>
<td valign=top width=200><H3>Sortie audio</H3></td>
<td>
<table>
<tr>
<td colspan=2><small>Activation sortie num閞ique</td>
</tr>
<tr>
<td><input type="radio" name="audioMode" value="ac3" <% if( !HPConf.getBool(HPConf.SERVICES_STEREO_MODE) ) {%>checked<%}%>> oui</td>
<td><input type="radio" name="audioMode" value="mp2" <% if( HPConf.getBool(HPConf.SERVICES_STEREO_MODE) ) {%>checked<%}%>> non</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -