%@page import="java.util.*,java.lang.*,java.sql.*,bur.objects.*" %>
<%
String thisURL="/musicvideos/musicvideos.jsp";
bur.DBInfo dbt = new bur.DBInfo();
String letter=new String("");
int max=10;
int pageno=0;
if(request.getParameter("pageno")!=null)
pageno=new Integer(request.getParameter("pageno")).intValue();
if(request.getParameter("max")!=null){
try{
max=new Integer(request.getParameter("max")).intValue();
}catch(Exception e){
max=10;
}
}
if (max <1)
max=1;
if (max >100 )
max=100;
if(request.getParameter("letter")!=null)
letter = request.getParameter("letter");
int total=0;
if (max < 1)
max=1;
if (pageno <0)
pageno=0;
String whatletter =
new String("Music Videos by artists starting with "+letter);
Map results = dbt.getMusicVideoList(letter,max,pageno*max);
List videos = (ArrayList) results.get("Videos");
total=((Integer) results.get("MaxResults")).intValue();
String tag= (String) results.get("RSSIZE");
%>
<%@ include file="/topnav.jsp" %>
<%=whatletter%>
Click the links to watch the music videos. Enjoy!
|
| |
<% if (videos != null){ %>
<%
Iterator vids=videos.iterator();
while (vids.hasNext()){
MusicVideo vid=(MusicVideo)vids.next();
%>
|
<%
if (vid.getHighURL() != null && ! vid.getHighURL().equals("")) {
%> %>) <%
}else{
%> %>) <%
} %> |
<% if (vid.getAlbumId() >0) {
%>
Buy Album
%>)
<% }else if (vid.getArtistId() > 0){ %>
Artist
%>)
<% } else{ %>
No Info available
<% } %>
|
Cable/DSL <%
if (vid.getHighURL() != null && ! vid.getHighURL().equals("")) {
%>WMP<%
}
if (vid.getFlashURL() != null && ! vid.getFlashURL().equals("")) {
%> :: Flash<%
} %>
|
|
| |
<% }
}else{
%>
| None found |
<%
}
%>
| |
| |
| <%
if (pageno > 0){
%>< < Prev<%
}else{
%> <%
}
%> | | <% pageno++;
if (total > (pageno*max)){ %>Next >><%
}else{
%> <% } %> |
|
| |
|
<%@ include file="/main/modules/24-7ad160x600blk.jsp" %> |
<%@ include file="/bottomnav.jsp" %>