clean up file structure
|
After Width: | Height: | Size: 132 B |
|
After Width: | Height: | Size: 826 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 58 B |
|
After Width: | Height: | Size: 1006 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 210 B |
|
After Width: | Height: | Size: 961 B |
|
After Width: | Height: | Size: 211 B |
|
After Width: | Height: | Size: 1006 B |
|
After Width: | Height: | Size: 257 B |
|
After Width: | Height: | Size: 257 B |
|
After Width: | Height: | Size: 7.3 KiB |
|
After Width: | Height: | Size: 991 B |
138
zefie_wtvp_minisrv/includes/ServiceVault/wtv-favorite/add.js
Normal file
@@ -0,0 +1,138 @@
|
||||
var minisrv_service_file = true;
|
||||
var request_is_async = true;
|
||||
|
||||
var max_redirects = 3;
|
||||
var redirects = 0;
|
||||
|
||||
function hex_to_ascii(POST)
|
||||
{
|
||||
var hex = POST.toString();
|
||||
var str = '';
|
||||
for (var n = 0; n < hex.length; n += 2) {
|
||||
str += String.fromCharCode(parseInt(hex.substr(n, 2), 16));
|
||||
}
|
||||
return str;
|
||||
}
|
||||
if (request_headers.post_data) {
|
||||
var POST = request_headers.post_data;
|
||||
var image = hex_to_ascii(POST);
|
||||
}
|
||||
|
||||
function getTitle(url) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
var page_title = "Web Page";
|
||||
var request_type = (url.substring(0, 5) == "https") ? "https" : "http";
|
||||
var proxy_agent = null;
|
||||
switch (request_type) {
|
||||
case "https":
|
||||
var proxy_agent = require('https');
|
||||
break;
|
||||
case "http":
|
||||
var proxy_agent = require('http');;
|
||||
break;
|
||||
}
|
||||
if (proxy_agent) {
|
||||
var options = {
|
||||
method: 'GET'
|
||||
}
|
||||
const request = proxy_agent.get(url, options, (response) => {
|
||||
let req_data = '';
|
||||
if (response.statusCode == 301 || response.statusCode == 302) {
|
||||
redirects++;
|
||||
if (redirects < max_redirects) resolve(getTitle(response.headers.location));
|
||||
else reject(`Too many redirects. Max: ${max_redirects}, Current: ${redirects}`);
|
||||
}
|
||||
response.on('data', (chunk) => {
|
||||
req_data += chunk.toString();
|
||||
});
|
||||
|
||||
response.on('end', () => {
|
||||
let match = req_data.match(/<title>([^<]*)<\/title>/) // regular expression to parse contents of the <title> tag
|
||||
if (match && typeof match[1] === 'string') page_title = match[1];
|
||||
resolve(page_title);
|
||||
});
|
||||
});
|
||||
|
||||
request.on('error', (error) => {
|
||||
console.log(' *** Error getting title for wtv-favorite', error);
|
||||
reject();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
async function saveFavorite(favstore, title, folder, imagetype, favurl) {
|
||||
var headers, data = '';
|
||||
if (!favstore.favstoreExists()) {
|
||||
// create favstore if the user hasn't already navigated to favorites
|
||||
favstore.createFavstore();
|
||||
}
|
||||
if (favstore.favstoreExists()) {
|
||||
var default_folder = "Personal"; // default to "Personal"
|
||||
var favoritenum = 0;
|
||||
|
||||
if (!folder) folder = default_folder;
|
||||
if (!favstore.folderExists(folder)) {
|
||||
// user did not define a folder, and the default folder does not exist
|
||||
// so choose the user's first available folder
|
||||
var favfolders = favstore.getFolders();
|
||||
if (favfolders.length > 0) folder = favfolders[0];
|
||||
}
|
||||
if (!folder) {
|
||||
// user has no folders, forcefully recreate "Personal"
|
||||
folder = default_folder;
|
||||
favstore.createTemplateFolder(folder);
|
||||
}
|
||||
|
||||
var favarray = favstore.listFavorites(folder);
|
||||
favoritenum = Object.keys(favarray).length;
|
||||
|
||||
|
||||
if (!title) {
|
||||
try {
|
||||
await getTitle(favurl).then(function (res) {
|
||||
title = res;
|
||||
if (!minisrv_config.config.debug_flags.quiet) console.log(" * Client sent favorite-url without title, got title:", title);
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(" * Error: Client sent favorite-url without title, and we could not get the title from the server:", e);
|
||||
}
|
||||
}
|
||||
|
||||
if (!image) {
|
||||
imagetype = "url";
|
||||
image = "canned/favorite_default.gif"
|
||||
}
|
||||
|
||||
if (favoritenum == minisrv_config.services[service_name].max_favorites_per_folder) {
|
||||
headers = `400 You can only have ${minisrv_config.services[service_name].max_favorites_per_folder} favorites in a folder. Discard some favorites or choose a different folder, then try again.`
|
||||
} else {
|
||||
|
||||
var createresult = favstore.createFavorite(title, favurl, folder, image, imagetype);
|
||||
if (!createresult) { // true if fail
|
||||
headers = `200 OK
|
||||
wtv-expire: wtv-favorite:/serve-browser?favorite_folder_name=${folder}`
|
||||
} else {
|
||||
var err = wtvshared.doErrorPage(500);
|
||||
headers = err[0];
|
||||
data = err[1];
|
||||
}
|
||||
|
||||
sendToClient(socket, headers, data);
|
||||
}
|
||||
} else {
|
||||
var err = wtvshared.doErrorPage(500);
|
||||
headers = err[0];
|
||||
data = err[1];
|
||||
sendToClient(socket, headers, data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var title = request_headers.query['favorite-title'];
|
||||
var folder = request_headers.query['favorite-category'];
|
||||
if (folder) folder = folder.replaceAll("+", " ")
|
||||
var imagetype = request_headers.query['favorite-thumbnail-type']
|
||||
var favurl = request_headers.query['favorite-url'];
|
||||
|
||||
saveFavorite(session_data.favstore, title, folder, imagetype, favurl);
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 770 B |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 760 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 548 B |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 429 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 709 B |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,36 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var foldername = request_headers.query.new_folder_name;
|
||||
var favstore_exists = session_data.favstore.favstoreExists();
|
||||
var folder_exists = session_data.favstore.folderExists(foldername);
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
|
||||
if (foldername)
|
||||
{
|
||||
if (favstore_exists != true)
|
||||
session_data.favstore.createFavstore();
|
||||
|
||||
if (folder_exists != true)
|
||||
{
|
||||
if (folder_array.length < minisrv_config.services[service_name].max_folders)
|
||||
{
|
||||
if (session_data.favstore.checkFolderName(foldername) == true)
|
||||
{
|
||||
session_data.favstore.createFolder(foldername);
|
||||
headers = `300 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
Location: wtv-favorite:/favorite
|
||||
wtv-expire-all: wtv-favorite:`
|
||||
} else {
|
||||
headers = `400 That folder name is not valid. Choose a different name and try again.`
|
||||
}
|
||||
} else {
|
||||
headers = `400 You can only have ${minisrv_config.services[service_name].max_folders} folders at one time. Delete some folders and try again.`
|
||||
}
|
||||
} else {
|
||||
headers = `400 That folder already exists. Choose a different name and try again.`
|
||||
}
|
||||
} else {
|
||||
headers = `400 Please type a folder name.`
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var with_pictures = request_headers.query.with_pictures
|
||||
|
||||
if (with_pictures = "on")
|
||||
{
|
||||
session_data.setSessionData("subscriber_fav_images", true)
|
||||
} else {
|
||||
session_data.setSessionData("subscriber_fav_images", false)
|
||||
}
|
||||
session_data.saveSessionData();
|
||||
|
||||
headers = `300 OK
|
||||
Location: wtv-favorite:/favorite`
|
||||
@@ -0,0 +1,82 @@
|
||||
var minisrv_service_file = true;
|
||||
var errpage;
|
||||
|
||||
var query = request_headers.query
|
||||
|
||||
var discardAll = request_headers.query.DiscardAll
|
||||
|
||||
if (discardAll != "Discard All")
|
||||
{
|
||||
var strName, strValue ;
|
||||
|
||||
for(strName in query)
|
||||
{
|
||||
if (strName != "favorite_folder_name")
|
||||
break;
|
||||
}
|
||||
|
||||
strName = strName.replaceAll("+", " ");
|
||||
}
|
||||
var folder = request_headers.query.favorite_folder_name;
|
||||
if (request_headers.query.ForwardToBrowser)
|
||||
{
|
||||
headers = `300 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
Location: wtv-favorite:/serve-browser?favorite_folder_name=${folder}`
|
||||
} else if (strName != "getCaseInsensitiveKey") {
|
||||
var favorite = session_data.favstore.getFavorite(folder, strName);
|
||||
|
||||
if (errpage) {
|
||||
headers = errpage[0];
|
||||
data = errpage[1];
|
||||
} else {
|
||||
if (!request_headers.query.confirm_remove) {
|
||||
if (discardAll == "Discard All")
|
||||
{
|
||||
var message = `Are you sure you want to discard all favorites in this folder?`;
|
||||
var removeurl = request_headers.request_url;
|
||||
removeurl += "&confirm_remove=true&DiscardAll=Discard All";
|
||||
} else {
|
||||
var message = `Are you sure you want to discard <b>${favorite.title}</b>?`;
|
||||
var removeurl = request_headers.request_url;
|
||||
removeurl += "&confirm_remove=true";
|
||||
}
|
||||
|
||||
|
||||
var confirmAlert = new clientShowAlert({
|
||||
'message': message,
|
||||
'buttonlabel1': "Don't Remove",
|
||||
'buttonaction1': "client:donothing",
|
||||
'buttonlabel2': "Remove",
|
||||
'buttonaction2': removeurl,
|
||||
'noback': true,
|
||||
}).getURL();
|
||||
headers = `300 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:
|
||||
Location: ${confirmAlert}`
|
||||
} else {
|
||||
|
||||
var gourl = `wtv-favorite:/serve-discard-favorites?favorite_folder_name=${folder}`;
|
||||
if (discardAll == "Discard All")
|
||||
{
|
||||
session_data.favstore.clearFolder(folder);
|
||||
} else {
|
||||
session_data.favstore.deleteFavorite(strName, folder);
|
||||
}
|
||||
|
||||
headers = `300 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:
|
||||
Location: ${gourl}`
|
||||
}
|
||||
}
|
||||
} else {
|
||||
headers = `300 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
Location: wtv-favorite:/serve-browser?favorite_folder_name=${folder}`
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
var minisrv_service_file = true;
|
||||
var errpage;
|
||||
|
||||
var query = request_headers.query
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
var totalfavorites = folder_array.length;
|
||||
|
||||
var strName, strValue ;
|
||||
|
||||
for(strName in query)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
strName = strName.replaceAll("+", " ");
|
||||
|
||||
if (request_headers.query.ForwardToFolders)
|
||||
{
|
||||
headers = `300 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
Location: wtv-favorite:/favorite`
|
||||
} else if (strName != "getCaseInsensitiveKey") {
|
||||
var folder = session_data.favstore.getFolders();
|
||||
var folderdata = session_data.favstore.listFavorites(strName);
|
||||
var numoffavorites = Object.keys(folderdata).length;
|
||||
|
||||
if (totalfavorites == 1) {
|
||||
errpage = wtvshared.doErrorPage(400, "You cannot remove your last folder.");
|
||||
}
|
||||
|
||||
if (errpage) {
|
||||
headers = errpage[0];
|
||||
data = errpage[1];
|
||||
} else {
|
||||
if (!request_headers.query.confirm_remove) {
|
||||
var message = '';
|
||||
if (numoffavorites == 0) {
|
||||
message = `Are you sure you want to remove <b>${strName}</b>?`;
|
||||
} else {
|
||||
message = `Removing <b>${strName}</b> will also remove the ${numoffavorites} favorites it contains.`;
|
||||
}
|
||||
var removeurl = request_headers.request_url;
|
||||
removeurl += "&confirm_remove=true";
|
||||
|
||||
var confirmAlert = new clientShowAlert({
|
||||
'message': message,
|
||||
'buttonlabel1': "Don't Remove",
|
||||
'buttonaction1': "client:donothing",
|
||||
'buttonlabel2': "Remove",
|
||||
'buttonaction2': removeurl,
|
||||
'noback': true,
|
||||
}).getURL();
|
||||
headers = `300 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:
|
||||
Location: ${confirmAlert}`
|
||||
} else {
|
||||
|
||||
var gourl = "wtv-favorite:/serve-discard-folders";
|
||||
session_data.favstore.deleteFolder(strName);
|
||||
|
||||
headers = `300 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:
|
||||
Location: ${gourl}`
|
||||
}
|
||||
}
|
||||
} else {
|
||||
headers = `300 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
Location: wtv-favorite:/serve-discard-folders`
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var favoritenum = 0;
|
||||
var folder = request_headers.query.favorite_folder_name || null;
|
||||
var favarray = session_data.favstore.listFavorites(folder);
|
||||
var error_occured = false;
|
||||
if (!folder) error_occured = true;
|
||||
else {
|
||||
favoritenum = Object.keys(favarray).length;
|
||||
|
||||
if (typeof request_headers.query.favoriteid === 'string') {
|
||||
// one favorite
|
||||
var favid = request_headers.query.favoriteid;
|
||||
var favfolder = request_headers.query.favoritefolder;
|
||||
if (folder != favfolder) session_data.favstore.moveFavorite(folder, favfolder, favid);
|
||||
} else {
|
||||
if (request_headers.query.favoriteid.length == request_headers.query.favoritefolder.length) {
|
||||
// both queries should have the same number of entries
|
||||
Object.keys(request_headers.query.favoriteid).forEach(function (k) {
|
||||
var favid = request_headers.query.favoriteid[k];
|
||||
var favfolder = request_headers.query.favoritefolder[k];
|
||||
if (folder != favfolder) session_data.favstore.moveFavorite(folder, favfolder, favid);
|
||||
})
|
||||
} else {
|
||||
error_occured = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!error_occured) {
|
||||
var gourl = `wtv-favorite:/serve-browser?favorite_folder_name=${folder}`;
|
||||
|
||||
headers = `300 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:
|
||||
wtv-visit: ${gourl}
|
||||
Location: ${gourl}`
|
||||
} else {
|
||||
var err = doErrorPage(500);
|
||||
headers = err[0];
|
||||
data = err[1];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var favoritenum = 0;
|
||||
var folder = request_headers.query.favorite_folder_name;
|
||||
var favarray = session_data.favstore.listFavorites(folder);
|
||||
|
||||
favoritenum = Object.keys(favarray).length;
|
||||
|
||||
for (let i = 0; i < favoritenum; i++) {
|
||||
switch(i) {
|
||||
case 0:
|
||||
var favid = request_headers.query.favorite0id;
|
||||
var favname = request_headers.query.favorite0name;
|
||||
break;
|
||||
case 1:
|
||||
var favid = request_headers.query.favorite1id;
|
||||
var favname = request_headers.query.favorite1name;
|
||||
break;
|
||||
case 2:
|
||||
var favid = request_headers.query.favorite2id;
|
||||
var favname = request_headers.query.favorite2name;
|
||||
break;
|
||||
case 3:
|
||||
var favid = request_headers.query.favorite3id;
|
||||
var favname = request_headers.query.favorite3name;
|
||||
break;
|
||||
case 4:
|
||||
var favid = request_headers.query.favorite4id;
|
||||
var favname = request_headers.query.favorite4name;
|
||||
break;
|
||||
case 5:
|
||||
var favid = request_headers.query.favorite5id;
|
||||
var favname = request_headers.query.favorite5name;
|
||||
break;
|
||||
case 6:
|
||||
var favid = request_headers.query.favorite6id;
|
||||
var favname = request_headers.query.favorite6name;
|
||||
break;
|
||||
case 7:
|
||||
var favid = request_headers.query.favorite7id;
|
||||
var favname = request_headers.query.favorite7name;
|
||||
break;
|
||||
case 8:
|
||||
var favid = request_headers.query.favorite8id;
|
||||
var favname = request_headers.query.favorite8name;
|
||||
break;
|
||||
case 9:
|
||||
var favid = request_headers.query.favorite9id;
|
||||
var favname = request_headers.query.favorite9name;
|
||||
break;
|
||||
case 10:
|
||||
var favid = request_headers.query.favorite10id;
|
||||
var favname = request_headers.query.favorite10name;
|
||||
break;
|
||||
case 11:
|
||||
var favid = request_headers.query.favorite11id;
|
||||
var favname = request_headers.query.favorite11name;
|
||||
break;
|
||||
case 12:
|
||||
var favid = request_headers.query.favorite12id;
|
||||
var favname = request_headers.query.favorite12name;
|
||||
break;
|
||||
case 13:
|
||||
var favid = request_headers.query.favorite13id;
|
||||
var favname = request_headers.query.favorite13name;
|
||||
break;
|
||||
case 14:
|
||||
var favid = request_headers.query.favorite14id;
|
||||
var favname = request_headers.query.favorite14name;
|
||||
break;
|
||||
case 15:
|
||||
var favid = request_headers.query.favorite15id;
|
||||
var favname = request_headers.query.favorite15name;
|
||||
break;
|
||||
case 16:
|
||||
var favid = request_headers.query.favorite16id;
|
||||
var favname = request_headers.query.favorite16name;
|
||||
break;
|
||||
case 17:
|
||||
var favid = request_headers.query.favorite17id;
|
||||
var favname = request_headers.query.favorite17name;
|
||||
break;
|
||||
}
|
||||
session_data.favstore.changeFavoriteName(favid, folder, favname);
|
||||
}
|
||||
|
||||
var gourl = `wtv-favorite:/serve-browser?favorite_folder_name=${folder}`;
|
||||
|
||||
headers = `300 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:
|
||||
wtv-visit: ${gourl}
|
||||
Location: ${gourl}`
|
||||
@@ -0,0 +1,42 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var totalfavorites = 0;
|
||||
|
||||
var createFun = request_headers.query.Fun;
|
||||
var createMoney = request_headers.query.Money;
|
||||
var createMovies = request_headers.query.Movies;
|
||||
var createNews = request_headers.query.News;
|
||||
var createRecommended = request_headers.query.Recommended;
|
||||
var createReference = request_headers.query.Reference;
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
totalfavorites = folder_array.length;
|
||||
|
||||
if (totalfavorites < 14)
|
||||
{
|
||||
if (createFun == "true")
|
||||
session_data.favstore.createTemplateFolder("Fun");
|
||||
|
||||
if (createMoney == "true")
|
||||
session_data.favstore.createTemplateFolder("Money");
|
||||
|
||||
if (createMovies == "true")
|
||||
session_data.favstore.createTemplateFolder("Movies");
|
||||
|
||||
if (createNews == "true")
|
||||
session_data.favstore.createTemplateFolder("News");
|
||||
|
||||
if (createRecommended == "true")
|
||||
session_data.favstore.createTemplateFolder("Recommended");
|
||||
console.log("FUGHFVJSGHJFDGIJUFDSHGFJDSKHJKLGFHJKHDJKHJKLGF " + createRecommended)
|
||||
|
||||
if (createReference == "true")
|
||||
session_data.favstore.createTemplateFolder("Reference");
|
||||
|
||||
headers = `300 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
Location: wtv-favorite:/favorite
|
||||
wtv-expire-all: wtv-favorite:`
|
||||
} else {
|
||||
headers = `400 You can only have 14 folders at one time. Delete some folders and try again.`
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var folder = request_headers.query.favorite_folder_name;
|
||||
var key = request_headers.query.Choose;
|
||||
var id = request_headers.query.favoriteid;
|
||||
|
||||
session_data.favstore.createShortcutKey();
|
||||
session_data.favstore.updateShortcutKey("none", key, folder, id);
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var favstore_exists = session_data.favstore.favstoreExists();
|
||||
|
||||
if (favstore_exists != true)
|
||||
{
|
||||
session_data.favstore.createFavstore();
|
||||
headers = `300 OK
|
||||
Location: wtv-favorite:/favorite`
|
||||
} else {
|
||||
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
var url = request_headers.request;
|
||||
var key = url.split('?')[1]
|
||||
|
||||
headers = `400 You have not assigned a favorite to ${key}`
|
||||
|
||||
}
|
||||
@@ -0,0 +1,265 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var favstore_exists = session_data.favstore.favstoreExists();
|
||||
|
||||
if (favstore_exists != true)
|
||||
{
|
||||
session_data.favstore.createFavstore();
|
||||
headers = `300 OK
|
||||
Location: wtv-favorite:/favorite`
|
||||
} else {
|
||||
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
var totalfavorites = folder_array.length;
|
||||
var stopdrawing = false;
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:/serve-browser
|
||||
wtv-expire-all: wtv-favorite:/favorite
|
||||
`
|
||||
|
||||
|
||||
data = `<html><head>
|
||||
|
||||
<title>
|
||||
Favorite folders
|
||||
</title>
|
||||
<display ${(minisrv_config.services[service_name].max_folders <= 14) ? "noscroll" : ""}>
|
||||
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919">
|
||||
|
||||
|
||||
<sidebar width="109" height="384">
|
||||
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||
<tr><td absheight="196" valign="top">
|
||||
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="100%" valign="top" height="50%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr>
|
||||
<td abswidth="6">
|
||||
</td><td absheight="79" width="100%" align="center">
|
||||
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="100%" align="center">
|
||||
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||
</td></tr></table>
|
||||
</td><td abswidth="5">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr><td abswidth="5" absheight="26">
|
||||
</td><td width="100%">
|
||||
<table href="wtv-favorite:/serve-add-folder-page?favorite_folder_name=Personal" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Add folder
|
||||
</font></shadow></td></tr></table>
|
||||
</td></tr></table>
|
||||
</td><td abswidth="5">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></table>
|
||||
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr><td abswidth="5" absheight="26">
|
||||
</td><td width="100%">
|
||||
<table href="wtv-favorite:/serve-discard-folders?favorite_folder_name=Personal" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Remove
|
||||
</font></shadow></td></tr></table>
|
||||
</td></tr></table>
|
||||
</td><td abswidth="5">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></table>
|
||||
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr><td abswidth="5" absheight="26">
|
||||
</td><td width="100%">
|
||||
<table href="wtv-home:/throwerror" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Help
|
||||
</font></shadow></td></tr></table>
|
||||
</td></tr></table>
|
||||
</td><td abswidth="5">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="188" valign="top">
|
||||
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||
</td></tr></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></table>
|
||||
</sidebar>
|
||||
|
||||
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||
<tr>
|
||||
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr>
|
||||
<td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td><table cellspacing="0" cellpadding="0">
|
||||
<tr><td align="left">
|
||||
<shadow><blackface><font color="e7ce4a">
|
||||
Favorite folders
|
||||
for ${session_data.getSessionData("subscriber_username") || "You"}
|
||||
</font><blackface><shadow>
|
||||
</shadow></blackface></blackface></shadow></td></tr></table>
|
||||
</td></tr><tr>
|
||||
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></table>
|
||||
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr><td valign="top" align="left">
|
||||
<table width="225" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="225" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="center">
|
||||
<table width="50%" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="40" height="20">
|
||||
</td><td maxlines="1" width="140" height="20" align="center">
|
||||
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[0]}" selected="">
|
||||
<font size="-1">
|
||||
<limittext value="${folder_array[0]}" width="140"></limittext></font></a><font size="-1">
|
||||
</font>
|
||||
</td><td width="20">
|
||||
</td></tr></table>`
|
||||
var kval = 0;
|
||||
// process evens
|
||||
Object.keys(folder_array).forEach(function (k) {
|
||||
if (k == 0) return; // skip 0 since it was processed above
|
||||
if (parseInt(k) % 2 == 0) {
|
||||
// even
|
||||
// Left Middle
|
||||
data += `</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftMiddle.gif" align="center">
|
||||
<table width="50%" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="40" height="20">
|
||||
</td><td maxlines="1" width="140" height="20" align="center">
|
||||
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[k]}">
|
||||
<font size="-1">
|
||||
<limittext value="${folder_array[k]}" width="140"></limittext></font></a><font size="-1">
|
||||
</font>
|
||||
</td><td width="20">
|
||||
</td></tr></table>`;
|
||||
kval = k;
|
||||
}
|
||||
});
|
||||
|
||||
// process end if total is even
|
||||
if (folder_array.length > 1) {
|
||||
if (folder_array.length % 2 == 0) {
|
||||
data += `</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftBottom.gif" align="center">
|
||||
<table width="50%" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="40" height="20">
|
||||
</td><td maxlines="1" width="140" height="20" align="center">
|
||||
</td><td width="20">
|
||||
</td></tr></table>`;
|
||||
}
|
||||
}
|
||||
|
||||
// process middle (folder 2 (id 1))
|
||||
if (folder_array.length == 1) {
|
||||
// no folder 2
|
||||
data += `<tr><td><table cellspacing="0" cellpadding="0">
|
||||
<tr><td width="6" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="20">
|
||||
</td></tr></table>
|
||||
</tr><td></td></tr></table>
|
||||
</td><td valign="top" align="left">
|
||||
<table width="225" cellspacing="0" cellpadding="0">
|
||||
<tr><td absheight="20" bgcolor="2b2b2b">
|
||||
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightTopEdgeOnly.gif" align="center">
|
||||
<table width="50%" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="5" height="20">
|
||||
</td><td maxlines="1" width="140" height="20" align="center">
|
||||
</font>
|
||||
</td><td width="20">
|
||||
</td></tr></table>`
|
||||
} else {
|
||||
// process folder 2 (id 1)
|
||||
data += `<tr><td><table cellspacing="0" cellpadding="0">
|
||||
<tr><td width="6" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="20">
|
||||
</td></tr></table>
|
||||
</tr><td></td></tr></table>
|
||||
</td><td valign="top" align="left">
|
||||
<table width="225" cellspacing="0" cellpadding="0">
|
||||
<tr><td absheight="21" bgcolor="2b2b2b">
|
||||
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightTop.gif" align="center">
|
||||
<table width="50%" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="5" height="20">
|
||||
</td><td maxlines="1" width="140" height="20" align="center">
|
||||
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[1]}">
|
||||
<font size="-1">
|
||||
<limittext value="${folder_array[1]}" width="140"></limittext></font></a><font size="-1">
|
||||
</font>
|
||||
</td><td width="20">
|
||||
</td></tr></table>`;
|
||||
}
|
||||
|
||||
// process odds
|
||||
Object.keys(folder_array).forEach(function (k) {
|
||||
if (k == 1) return; // skip 1 since it was processed above
|
||||
if (parseInt(k) % 2 != 0) {
|
||||
// odd
|
||||
// Right Middle
|
||||
data += `</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightMiddle.gif" align="center">
|
||||
<table width="50%" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="5" height="20">
|
||||
</td><td maxlines="1" width="140" height="20" align="center">
|
||||
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[k]}">
|
||||
<font size="-1">
|
||||
<limittext value="${folder_array[k]}" width="140"></limittext></font></a><font size="-1">
|
||||
</font>
|
||||
</td><td width="20">
|
||||
</td></tr></table>`;
|
||||
}
|
||||
});
|
||||
|
||||
// process end if total is odd
|
||||
if (folder_array.length > 1) {
|
||||
if (folder_array.length % 2 != 0) {
|
||||
data += `</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightBottom.gif" align="center">
|
||||
<table width="50%" cellspacing="0" cellpadding="0">
|
||||
<tr><td width="5" height="20">
|
||||
</td><td maxlines="1" width="140" height="20" align="center">
|
||||
</td><td width="20">
|
||||
</td></tr></table>`;
|
||||
}
|
||||
}
|
||||
|
||||
data += `
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr><td width="451" height="2" background="ROMCache/FoldersCoverBorder.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></table>
|
||||
|
||||
|
||||
</display></body></html>
|
||||
`;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var errpage = null;
|
||||
|
||||
var id = request_headers.query.id;
|
||||
var folder = request_headers.query.folder;
|
||||
var favorite = session_data.favstore.getFavorite(folder, id);
|
||||
if (!favorite) errpage = wtvshared.doErrorPage(400, "Invalid favorite ID");
|
||||
|
||||
|
||||
headers = `200 OK
|
||||
Content-Type: ${favorite.imagetype}`;
|
||||
data = new Buffer.from(favorite.image, 'base64');
|
||||
|
After Width: | Height: | Size: 353 B |
|
After Width: | Height: | Size: 991 B |
@@ -0,0 +1,16 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var favstore_exists = session_data.favstore.favstoreExists();
|
||||
|
||||
if (favstore_exists != true)
|
||||
{
|
||||
session_data.favstore.createFavstore();
|
||||
}
|
||||
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
var data = "";
|
||||
|
||||
for (let i = 0; i < folder_array.length; i++) data += folder_array[i] + "\0";
|
||||
|
||||
headers = `200 OK
|
||||
Content-type: text/plain`
|
||||
@@ -0,0 +1,125 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:/serve-
|
||||
wtv-expire-all: wtv-favorite:/favorite`
|
||||
|
||||
|
||||
data = `<HTML>
|
||||
<HEAD>
|
||||
<TITLE>
|
||||
Add a folder
|
||||
</TITLE>
|
||||
<DISPLAY
|
||||
>
|
||||
</HEAD>
|
||||
<body bgcolor="#191919" text="#44cc55" link="#FFE99B" vlink="#FFE99B" fontsize="medium" vspace=0 hspace=0>
|
||||
<sidebar width="109" height="384">
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||
<tbody><tr><td absheight="196" valign="top">
|
||||
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" valign="top" height="50%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr>
|
||||
<td abswidth="6">
|
||||
</td><td absheight="79" width="100%" align="center">
|
||||
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" align="center">
|
||||
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="188" valign="top">
|
||||
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</sidebar>
|
||||
<table width="451" cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr>
|
||||
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr>
|
||||
<td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td align="left">
|
||||
<shadow><blackface><font size=4 color="e7ce4a">
|
||||
Add a folder
|
||||
</font><blackface><shadow>
|
||||
<td width=21>
|
||||
<td width=13>
|
||||
<spacer type=horizontal size=13>
|
||||
</table>
|
||||
</table>
|
||||
<tr>
|
||||
<td colspan=2 height=4 bgcolor=#544447>
|
||||
</table>
|
||||
</shadow></blackface>
|
||||
</table>
|
||||
<tr><table cellspacing=0 cellpadding=0 width=456 height=274 bgcolor=#191919>
|
||||
<td abswidth=19>
|
||||
<td><table cellspacing=0 cellpadding=0>
|
||||
<tr><td absheight=10>
|
||||
<tr><td>
|
||||
Type the name of the new folder you want<br>
|
||||
to add, and then choose <b>Add</b>.<br>
|
||||
<br>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=18>
|
||||
<tr><td align=right>
|
||||
<form action="wtv-favorite:/commit-add-folder">
|
||||
<input type=hidden name="favorite-folder-name" value="">
|
||||
Folder name
|
||||
<font color="#E6CD4A">
|
||||
<input bgcolor=#111111 AutoCaps text=#ffdd33 cursor=#cc9933
|
||||
type=text width=150
|
||||
usestyle
|
||||
MAXLENGTH=15
|
||||
name="new_folder_name"
|
||||
selected>
|
||||
</font>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=4 height=1>
|
||||
<font color="#E6CD4A"><shadow>
|
||||
<input
|
||||
type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif" value=Add name="Add" usestyle width=108>
|
||||
</shadow></font>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=2 height=1>
|
||||
</form>
|
||||
<tr><td absheight=25>
|
||||
<tr><td absheight=25>
|
||||
<tr><td>
|
||||
Or choose <b>Samples</b> to select one or<br>
|
||||
more sample folders.<br>
|
||||
<tr><td absheight=18>
|
||||
<tr><td align=right>
|
||||
<form action=wtv-favorite:/serve-samples-page>
|
||||
<input type=hidden name="favorite-folder-name" value="">
|
||||
<font color="#E6CD4A"><shadow>
|
||||
<input
|
||||
type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif" value=Samples name="Samples"
|
||||
nosubmit usestyle width=108>
|
||||
</shadow></font>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=14 height=1>
|
||||
</form>
|
||||
<tr><td absheight=12>
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
</table> </BODY>
|
||||
</HTML>
|
||||
`;
|
||||
@@ -0,0 +1,234 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var favoritenum = 0;
|
||||
|
||||
var foldername = request_headers.query.favorite_folder_name;
|
||||
|
||||
var favarray = session_data.favstore.listFavorites(foldername);
|
||||
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
|
||||
var folderid = folder_array.indexOf(foldername);
|
||||
|
||||
var numoffolders = folder_array.length;
|
||||
|
||||
favoritenum = Object.keys(favarray).length;
|
||||
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:/serve-`
|
||||
|
||||
|
||||
data = `<html><head>
|
||||
<title>
|
||||
Listing favorites
|
||||
</title>
|
||||
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||
<sidebar width="109" height="384">
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||
<tbody><tr><td absheight="196" valign="top">
|
||||
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" valign="top" height="50%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr>
|
||||
<td abswidth="6">
|
||||
</td><td absheight="79" width="100%" align="center">
|
||||
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" align="center">
|
||||
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="5" absheight="26">
|
||||
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/favorite" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Folders
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="5" absheight="26">
|
||||
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/serve-add-folder-page" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Add folder
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="5" absheight="26">
|
||||
</td><td abswidth="93">
|
||||
<table abswidth="93" href="wtv-guide:/quickhelp?title=Favorites" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Help
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="188" valign="top">
|
||||
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</sidebar>
|
||||
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||
<tbody><tr>
|
||||
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr>
|
||||
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td align="left">
|
||||
<shadow><blackface><font color="e7ce4a">Listing favorites in this folder:
|
||||
</font><shadow><blackface>
|
||||
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||
</td></tr><tr>
|
||||
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td valign="top" align="left">
|
||||
<table width="221" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td height="1">
|
||||
</td></tr><tr><td height="20">
|
||||
<table width="20" height="20" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10"> </td><td height="20" align="center">
|
||||
<font size="-1" color="#E6CD4A">
|
||||
<limittext value="${foldername}" width="140">
|
||||
</limittext></font>
|
||||
</td><td width="20">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td valign="top" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td><td>
|
||||
<table abswidth="52" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||
</td><td width="25" valign="middle" height="42" align="left">
|
||||
</td><td width="7" valign="middle" height="40" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><spacer type=block WIDTH=199 HEIGHT=0><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="199" height="1">
|
||||
</td></tr></tbody></table></table>
|
||||
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=14>
|
||||
<td colspan=3>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
</table>
|
||||
<td abswidth=20>
|
||||
<TR>
|
||||
<td>
|
||||
<td WIDTH=198 HEIGHT=216 VALIGN=top ALIGN=left>
|
||||
<p>Choose With pictures
|
||||
to display the favorite's
|
||||
pictures.
|
||||
<p>If With pictures is
|
||||
unchecked, the
|
||||
favorites will be listed
|
||||
by name only.
|
||||
<TD WIDTH=20>
|
||||
<TD WIDTH=198 VALIGN=top ALIGN=left>
|
||||
<form action="wtv-favorite:/commit-arrange-favorites">
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td valign=top>
|
||||
<input type=hidden name=autosubmit autosubmit=onleave>
|
||||
<INPUT TYPE="checkbox" NAME="with_pictures" `
|
||||
if (session_data.getSessionData("subscriber_fav_images") == "true")
|
||||
console.log("SELECTED")
|
||||
data += "checked"
|
||||
data += ` selected>
|
||||
<td abswidth=4>
|
||||
<td valign=top>
|
||||
<font size=-1>With pictures</font>
|
||||
<tr><td absheight=10>
|
||||
<tr>
|
||||
<td valign=top>
|
||||
</table>
|
||||
<TR>
|
||||
<TD>
|
||||
<TD COLSPAN=4 HEIGHT=14 VALIGN=top ALIGN=left>
|
||||
<tr>
|
||||
<TD>
|
||||
<td colspan=4 height=2 valign=middle align=center bgcolor="2B2B2B">
|
||||
<spacer type=block width=436 height=1>
|
||||
<tr>
|
||||
<TD>
|
||||
<td colspan=4 height=1 valign=top align=left>
|
||||
<tr>
|
||||
<TD>
|
||||
<td colspan=4 height=2 valign=top align=left bgcolor="0D0D0D">
|
||||
<spacer type=block width=436 height=1>
|
||||
<TR>
|
||||
<TD>
|
||||
<TD COLSPAN=4 HEIGHT=4 VALIGN=top ALIGN=left>
|
||||
<TR>
|
||||
<TD>
|
||||
<TD COLSPAN=3 VALIGN=top ALIGN=right>
|
||||
<FONT COLOR="#E7CE4A" SIZE=-1><SHADOW>
|
||||
<INPUT name="Done" value="Done" WIDTH=103
|
||||
TYPE=SUBMIT BORDERIMAGE="file://ROM/Borders/ButtonBorder2.bif" NAME="Button2" USESTYLE WIDTH=103>
|
||||
</SHADOW></FONT></FORM>
|
||||
<TD>
|
||||
</TABLE>
|
||||
</BODY>
|
||||
</HTML>
|
||||
`;
|
||||
@@ -0,0 +1,237 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var favoritenum = 0;
|
||||
|
||||
var foldername = request_headers.query.favorite_folder_name;
|
||||
|
||||
var favarray = session_data.favstore.listFavorites(foldername);
|
||||
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
|
||||
var folderid = folder_array.indexOf(foldername);
|
||||
|
||||
var numoffolders = folder_array.length;
|
||||
|
||||
favoritenum = Object.keys(favarray).length;
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:/serve-
|
||||
wtv-expire-all: wtv-favorite:/favorite
|
||||
`
|
||||
|
||||
|
||||
data = `<html><head>
|
||||
<title>
|
||||
Favorites
|
||||
</title>
|
||||
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||
<sidebar width="109" height="384">
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||
<tbody><tr><td absheight="196" valign="top">
|
||||
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" valign="top" height="50%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr>
|
||||
<td abswidth="6">
|
||||
</td><td absheight="79" width="100%" align="center">
|
||||
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" align="center">
|
||||
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="5" absheight="26">
|
||||
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/favorite" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Folders
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="5" absheight="26">
|
||||
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/serve-organize-favorites?favorite_folder_name=${foldername}" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Organize
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="5" absheight="26">
|
||||
</td><td abswidth="93">
|
||||
<table abswidth="93" href="wtv-guide:/quickhelp?title=Favorites" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Help
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="188" valign="top">
|
||||
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</sidebar>
|
||||
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||
<tbody><tr>
|
||||
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr>
|
||||
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td align="left">
|
||||
<shadow><blackface><font color="e7ce4a">Favorites for ${session_data.getSessionData("subscriber_username") || "You"}
|
||||
</font><shadow><blackface>
|
||||
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||
</td></tr><tr>
|
||||
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td valign="top" align="left">
|
||||
<table width="221" cellspacing="0" cellpadding="0">`
|
||||
if (folderid !== 0)
|
||||
{
|
||||
data += `
|
||||
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTopWithPreviousTab.gif" align="left">
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td height="1">
|
||||
</td></tr><tr><td height="20">
|
||||
<table href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[folderid - 1]}&backward=selected" width="20" height="20" cellspacing="0" cellpadding="0">`
|
||||
} else {
|
||||
data += `
|
||||
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td height="1">
|
||||
</td></tr><tr><td height="20">
|
||||
<table width="20" height="20" cellspacing="0" cellpadding="0">`
|
||||
}
|
||||
data += `
|
||||
<tbody><tr><td>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10"> </td><td height="20" align="center">
|
||||
<font size="-1" color="#E6CD4A">
|
||||
<limittext value="${foldername}" width="140">
|
||||
</limittext></font>
|
||||
</td><td width="20">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td valign="top" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td><td>
|
||||
<table abswidth="52" cellspacing="0" cellpadding="0">`
|
||||
if (folderid !== numoffolders - 1)
|
||||
{
|
||||
data += `<table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTopWithNextTab.gif">
|
||||
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||
</td><td width="25" valign="top" height="28" align="right">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td height="8">
|
||||
</td></tr><tr><td height="20">
|
||||
<table href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[folderid + 1]}&forward=selected" selected="" width="20" height="20" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="7" valign="middle" height="40" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>`
|
||||
} else {
|
||||
data += `<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||
</td><td width="25" valign="middle" height="42" align="left">
|
||||
</td><td width="7" valign="middle" height="40" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table></table>`
|
||||
} data += `
|
||||
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
</table><table cellspacing="0" cellpadding="0">
|
||||
</table><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="106" width="5"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="15">`;
|
||||
|
||||
// favorite loop
|
||||
Object.keys(favarray).forEach(function (k) {
|
||||
var url = decodeURIComponent(favarray[k].url);
|
||||
data += `</td><td abswidth="139" valign="top">
|
||||
<table href="${url}" bgcolor="191919">
|
||||
<tbody><tr><td abswidth="139" align="center">`;
|
||||
if (favarray[k].imagetype == "url")
|
||||
data += `<img src="${favarray[k].image}" width="70" vspace="5" height="52"><br>`;
|
||||
else
|
||||
data += `<img src="get-thumbnail?folder=${favarray[k].folder}&id=${favarray[k].id}" width="70" vspace="5" height="52"><br>`;
|
||||
data += `<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||
${favarray[k].title}
|
||||
<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>`;
|
||||
if ((parseInt(k) + 1) % 3 == 0) {
|
||||
// every 3 objects
|
||||
data += `</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="106" width="5"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="15">`;
|
||||
}
|
||||
});
|
||||
|
||||
data += `</display></body></html>`;
|
||||
@@ -0,0 +1,404 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var favoritenum = 0;
|
||||
|
||||
var foldername = request_headers.query.favorite_folder_name;
|
||||
|
||||
var favarray = session_data.favstore.listFavorites(foldername);
|
||||
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
|
||||
var folderid = folder_array.indexOf(foldername);
|
||||
|
||||
var favid = request_headers.query.favoriteid;
|
||||
|
||||
var numoffolders = folder_array.length;
|
||||
|
||||
favoritenum = Object.keys(favarray).length;
|
||||
|
||||
var favoritedata = session_data.favstore.getFavorite(foldername, favid);
|
||||
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html`
|
||||
|
||||
|
||||
data = `<html><head>
|
||||
<title>
|
||||
Choose shortcut label
|
||||
</title>
|
||||
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||
<sidebar width="109" height="384">
|
||||
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||
<tbody><tr><td absheight="196" valign="top">
|
||||
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" valign="top" height="50%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr>
|
||||
<td abswidth="6">
|
||||
</td><td absheight="79" width="100%" align="center">
|
||||
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" align="center">
|
||||
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="6" absheight="26">
|
||||
</td><td width="100%"><table href="wtv-favorite:/serve-browser?favorite-folder-name=Personal" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Favorites
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="188" valign="top">
|
||||
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</sidebar>
|
||||
<table width="451" cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr>
|
||||
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr>
|
||||
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td align="left">
|
||||
<shadow><blackface><font color="e7ce4a">Choose shortcut label</font><shadow><blackface>
|
||||
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||
</td></tr><tr>
|
||||
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td height="25"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td width="13">
|
||||
</td><td valign="middle" align="left">
|
||||
Choose a shortcut label for <b>${favoritedata.title}</b>, then choose <b>Done</b> below.
|
||||
</td></tr><tr></tr></tbody></table><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td height="4">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td width="5" height="1">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td height="4">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td width="13">
|
||||
</td><td>
|
||||
<form action="wtv-favorite:/commit-shortcuts-favorites">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||
<table bgcolor="000000">
|
||||
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10">
|
||||
</td><td width="279" valign="center" align="left">
|
||||
<font size="-1" color="#42BC52">
|
||||
Not assigned<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td><td>
|
||||
<font size="-2" color="#F1F1F1">
|
||||
<input type="radio" NAME="Choose" VALUE=F1 > F1
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td height="4">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td width="5" height="1">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td height="4">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td width="13">
|
||||
</td><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||
<table bgcolor="000000">
|
||||
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10">
|
||||
</td><td width="279" valign="center" align="left">
|
||||
<font size="-1" color="#42BC52">
|
||||
Not assigned<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td><td>
|
||||
<font size="-2" color="#F1F1F1">
|
||||
<input type="radio" NAME="Choose" VALUE=F2 > F2
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td height="4">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td width="5" height="1">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td height="4">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td width="13">
|
||||
</td><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||
<table bgcolor="000000">
|
||||
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10">
|
||||
</td><td width="279" valign="center" align="left">
|
||||
<font size="-1" color="#42BC52">
|
||||
Not assigned<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td><td>
|
||||
<font size="-2" color="#F1F1F1">
|
||||
<input type="radio" NAME="Choose" VALUE=F3 > F3
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td height="4">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td width="5" height="1">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td height="4">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td width="13">
|
||||
</td><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||
<table bgcolor="000000">
|
||||
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10">
|
||||
</td><td width="279" valign="center" align="left">
|
||||
<font size="-1" color="#42BC52">
|
||||
Not assigned<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td><td>
|
||||
<font size="-2" color="#F1F1F1">
|
||||
<input type="radio" NAME="Choose" VALUE=F4 > F4
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td height="4">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td width="5" height="1">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td height="4">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td width="13">
|
||||
</td><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||
<table bgcolor="000000">
|
||||
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10">
|
||||
</td><td width="279" valign="center" align="left">
|
||||
<font size="-1" color="#42BC52">
|
||||
Not assigned<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td><td>
|
||||
<font size="-2" color="#F1F1F1">
|
||||
<input type="radio" NAME="Choose" VALUE=F5 > F5
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td height="4">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td width="5" height="1">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td height="4">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td width="13">
|
||||
</td><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||
<table bgcolor="000000">
|
||||
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10">
|
||||
</td><td width="279" valign="center" align="left">
|
||||
<font size="-1" color="#42BC52">
|
||||
Not assigned<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td><td>
|
||||
<font size="-2" color="#F1F1F1">
|
||||
<input type="radio" NAME="Choose" VALUE=F6 > F6
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td height="4">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td width="5" height="1">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td height="4">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td width="13">
|
||||
</td><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||
<table bgcolor="000000">
|
||||
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10">
|
||||
</td><td width="279" valign="center" align="left">
|
||||
<font size="-1" color="#42BC52">
|
||||
Not assigned<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td><td>
|
||||
<font size="-2" color="#F1F1F1">
|
||||
<input type="radio" NAME="Choose" VALUE=F7 > F7
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td absheight="15"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td><td><table width="100%" cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td height="10">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="2B2B2B" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" height="1">
|
||||
</td></tr><tr><td width="5" height="1">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="0D0D0D" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<input type="hidden" name="favorite_folder_name" value="${foldername}">
|
||||
<input type="hidden" name="favoriteid" value="${favid}">
|
||||
<table absheight="52" cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td height="10"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td><td valign="center" align="right">
|
||||
<font size="-1" color="#E7CE4A"><shadow>
|
||||
<input type="submit" borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Done" name="GoBack" usestyle="" width="110">
|
||||
</shadow></font>
|
||||
</td><td abswidth="13">
|
||||
</td></tr></tbody></table>
|
||||
</form>
|
||||
</display></body></html>`
|
||||
@@ -0,0 +1,228 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var favoritenum = 0;
|
||||
|
||||
var foldername = request_headers.query.favorite_folder_name;
|
||||
|
||||
var favarray = session_data.favstore.listFavorites(foldername);
|
||||
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
|
||||
var folderid = folder_array.indexOf(foldername);
|
||||
|
||||
var numoffolders = folder_array.length;
|
||||
|
||||
favoritenum = Object.keys(favarray).length;
|
||||
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html`
|
||||
|
||||
|
||||
data = `<html><head>
|
||||
<title>
|
||||
Discard favorites
|
||||
</title>
|
||||
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||
<sidebar width=109 height=384>
|
||||
<tr><td absheight=384>
|
||||
<table cellspacing=0 cellpadding=0 bgcolor=284a52>
|
||||
<tr><td valign=top absheight=196>
|
||||
<table cellspacing=0 cellpadding=0 absheight=196>
|
||||
<tr>
|
||||
<td valign=top width=100% height=50%>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td colspan=3 width=100% absheight=1>
|
||||
<tr>
|
||||
<td abswidth=6>
|
||||
<td width=100% align=center absheight=79>
|
||||
<table href="wtv-home:/home" width=100% absheight=79 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td width=100% align=center>
|
||||
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width=87 height=67>
|
||||
</table>
|
||||
<td abswidth=5>
|
||||
<tr><td colspan=3 width=100% absheight=2 bgcolor=1f3136>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td colspan=3 width=100% absheight=1>
|
||||
<tr><td colspan=3 width=100% absheight=2 bgcolor=436f79>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1> <tr><td width=100% absheight=32 colspan=3>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td abswidth=6 absheight=26>
|
||||
<td width=100%><table width=100% cellspacing=0 cellpadding=0 href="wtv-favorite:/serve-organize-favorites?favorite_folder_name=${foldername}">
|
||||
<tr><td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td><shadow><font color=E7CE4A size=-1>
|
||||
Organize
|
||||
</table>
|
||||
</table>
|
||||
<td abswidth=5>
|
||||
<tr><td colspan=3 width=104 absheight=2 bgcolor=1f3136>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td absheight=1>
|
||||
<tr><td colspan=3 width=104 absheight=2 bgcolor=436f79>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td valign=top absheight=188>
|
||||
<table cellspacing=0 cellpadding=0 absheight=188>
|
||||
<tr><td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<td align=right valign=bottom><img src="ROMCache/FavoritesBanner.gif" width=50 height=188>
|
||||
</table>
|
||||
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</sidebar>
|
||||
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||
<tbody><tr>
|
||||
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr>
|
||||
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td align="left">
|
||||
<shadow><blackface><font color="e7ce4a">Discard favorites in this folder:
|
||||
</font><shadow><blackface>
|
||||
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||
</td></tr><tr>
|
||||
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td valign="top" align="left">
|
||||
<table width="221" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td height="1">
|
||||
</td></tr><tr><td height="20">
|
||||
<table width="20" height="20" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10"> </td><td height="20" align="center">
|
||||
<font size="-1" color="#E6CD4A">
|
||||
<limittext value="${foldername}" width="140">
|
||||
</limittext></font>
|
||||
</td><td width="20">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td valign="top" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td><td>
|
||||
<table abswidth="52" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||
</td><td width="25" valign="middle" height="42" align="left">
|
||||
</td><td width="7" valign="middle" height="40" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<form id="Discard" action="wtv-favorite:/commit-discard-favorites">
|
||||
<input type=hidden name=favorite_folder_name value="${foldername}">
|
||||
<tbody><tr><spacer type=block WIDTH=199 HEIGHT=0><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="199" height="1">
|
||||
</td></tr></tbody></table></table>`
|
||||
if (favoritenum == 0)
|
||||
{
|
||||
data += "<font size=2> <i>There are no favorites to discard in this folder.</i></font>";
|
||||
} else {
|
||||
for (let i = 0; i < favoritenum; i++) {
|
||||
data += `<tr><table cellspacing=0 cellpadding=0>
|
||||
<td abswidth=15><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<td abswidth=75 height=52 align=center valign=center>`
|
||||
if (favarray[i].imagetype == "url")
|
||||
data += `<img src="${favarray[i].image}" width="70" vspace="5" height="52"><br>`
|
||||
else
|
||||
data += `<img src="get-thumbnail?folder=${favarray[i].folder}&id=${favarray[i].id}" width="70" vspace="5" height="52"><br>`
|
||||
data += `
|
||||
<td abswidth=5 align=left valign=center>
|
||||
<td abswidth=245 align=left valign=center maxlines=2>
|
||||
${favarray[i].title}<br>
|
||||
</font>
|
||||
<td abswidth=8>
|
||||
<td abswidth=90>
|
||||
<font color="#E7CE4A" size=-1><shadow>
|
||||
<input
|
||||
type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif" value=Discard
|
||||
name="${favarray[i].id}" usestyle
|
||||
abswidth=90>
|
||||
</shadow></font>
|
||||
<td abswidth=13>
|
||||
</table>
|
||||
<tr><table cellspacing=0 cellpadding=0>
|
||||
<tr><td><table cellspacing=0 cellpadding=0>
|
||||
<tr><td height=4>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<tr><td width=5 height=1>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<tr><td height=4>
|
||||
</table>
|
||||
</table>
|
||||
<hr align=left width=100%><br>`
|
||||
}
|
||||
}
|
||||
data += `
|
||||
</form>
|
||||
<tr><td><table cellspacing=0 cellpadding=0>
|
||||
<tr><td><table cellspacing=0 cellpadding=0>
|
||||
<tr><td><table width=451 cellspacing=0 cellpadding=0>
|
||||
<tr><td height=4>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<tr><td width=5 height=1>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
<form action="wtv-favorite:/commit-discard-favorites">
|
||||
<input type=hidden name=favorite_folder_name value="${foldername}">
|
||||
<tr><td align=right valign=center>
|
||||
<table height=50 valign=center cellspacing=0 cellpadding=0>
|
||||
<tr><td abswidth=5 height=10 ><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td abswidth=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<td align=right valign=center>
|
||||
<td valign=center>
|
||||
<font color="#E7CE4A" size=-1><shadow>`
|
||||
if (favoritenum != 0)
|
||||
{
|
||||
data += `
|
||||
<input
|
||||
type=submit useform="Discard"
|
||||
borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Discard All"
|
||||
name="DiscardAll" usestyle
|
||||
width=119>`
|
||||
}
|
||||
data += `
|
||||
</shadow></font>
|
||||
<td abswidth=9 align=center valign=center>
|
||||
<td valign=center>
|
||||
<font color="#E7CE4A" size=-1><shadow>
|
||||
<input
|
||||
type=submit
|
||||
useform="Discard"
|
||||
borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Done"
|
||||
name="ForwardToBrowser"
|
||||
usestyle
|
||||
width=90>
|
||||
</shadow></font>
|
||||
<td abswidth=13>
|
||||
<tr><td width=5 height=8><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</form>
|
||||
</BODY>
|
||||
</HTML>
|
||||
`;
|
||||
@@ -0,0 +1,202 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
var totalfavorites = folder_array.length;
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html`
|
||||
|
||||
|
||||
data = `<HTML>
|
||||
<HEAD>
|
||||
<TITLE>
|
||||
Remove folders
|
||||
</TITLE>
|
||||
<DISPLAY>
|
||||
</HEAD>
|
||||
<body bgcolor="#191919" text="#44cc55" link="#FFE99B" vlink="#FFE99B" fontsize="medium" vspace=0 hspace=0>
|
||||
<sidebar width=109 height=384>
|
||||
<tr><td absheight=384>
|
||||
<table cellspacing=0 cellpadding=0 bgcolor=284a52>
|
||||
<tr><td valign=top absheight=196>
|
||||
<table cellspacing=0 cellpadding=0 absheight=196>
|
||||
<tr>
|
||||
<td valign=top width=100% height=50%>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td colspan=3 width=100% absheight=1>
|
||||
<tr>
|
||||
<td abswidth=6>
|
||||
<td width=100% align=center absheight=79>
|
||||
<table href="wtv-home:/home" width=100% absheight=79 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td width=100% align=center>
|
||||
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width=87 height=67>
|
||||
</table>
|
||||
<td abswidth=5>
|
||||
<tr><td colspan=3 width=100% absheight=2 bgcolor=1f3136>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td colspan=3 width=100% absheight=1>
|
||||
<tr><td colspan=3 width=100% absheight=2 bgcolor=436f79>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1> <tr><td width=100% absheight=32 colspan=3>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td abswidth=6 absheight=26>
|
||||
<td width=100%><table width=100% cellspacing=0 cellpadding=0 href="wtv-favorite:/favorite">
|
||||
<tr><td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td><shadow><font color=E7CE4A size=-1>
|
||||
Favorites
|
||||
</table>
|
||||
</table>
|
||||
<td abswidth=5>
|
||||
<tr><td colspan=3 width=104 absheight=2 bgcolor=1f3136>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td absheight=1>
|
||||
<tr><td colspan=3 width=104 absheight=2 bgcolor=436f79>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td valign=top absheight=188>
|
||||
<table cellspacing=0 cellpadding=0 absheight=188>
|
||||
<tr><td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<td align=right valign=bottom><img src="ROMCache/FavoritesBanner.gif" width=50 height=188>
|
||||
</table>
|
||||
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</sidebar>
|
||||
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||
<tbody><tr>
|
||||
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr>
|
||||
<td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td align="left">
|
||||
<shadow><blackface><font size=4 color="e7ce4a">
|
||||
Remove folders
|
||||
</font><blackface><shadow>
|
||||
</shadow></blackface></blackface></shadow></td></tr></tbody></table>
|
||||
</td></tr><tr>
|
||||
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
<form id="Discard" action="wtv-favorite:/commit-discard-folders">
|
||||
<input type=hidden autosubmit=onLeave>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td align=left valign=top>
|
||||
<table cellspacing=0 cellpadding=0 width=225>
|
||||
<tr><td width=225>
|
||||
<table width=100% cellspacing=0 cellpadding=0>
|
||||
<tr><td height=42 align=left valign=middle background="ROMCache/LeftTop.gif">
|
||||
<table width=100% cellspacing=0 cellpadding=0>
|
||||
<tr><td width=40>
|
||||
<td align=center height=20>
|
||||
<font size=-1>
|
||||
<limittext value="${folder_array[0]}" width=140>
|
||||
</font>
|
||||
<td width=20>
|
||||
</table>
|
||||
<tr><td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td height=20>
|
||||
</table>
|
||||
</table>`
|
||||
for (let i = 1; i < totalfavorites; i++) {
|
||||
data += `<tr><td width=225>
|
||||
<table width=100% cellspacing=0 cellpadding=0>
|
||||
<tr><td height=42 align=left valign=middle background="ROMCache/LeftMiddleTabOnly.gif">
|
||||
<table width=100% cellspacing=0 cellpadding=0>
|
||||
<tr><td width=40>
|
||||
<td align=center height=20>
|
||||
<font size=-1>
|
||||
<limittext value="${folder_array[i]}" width=140>
|
||||
</font>
|
||||
<td width=20>
|
||||
</table>
|
||||
<tr><td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td height=20>
|
||||
</table>
|
||||
</table>`
|
||||
}
|
||||
if (totalfavorites == 1)
|
||||
data += `<tr><td align=left valign=top> </table>
|
||||
<td valign=top align=left>
|
||||
<table cellspacing=0 cellpadding=0 width=115><tr><td width=227 height=20 bgcolor=#2b2b2b>
|
||||
<tr><td width=227>
|
||||
<tr><td height=15 align=center valign=middle background="ROMCache/RightTopEdgeOnly.gif">
|
||||
<tr><td height=0>
|
||||
`
|
||||
else
|
||||
data += `<tr><td align=left valign=top>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td height=20><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table> </table>
|
||||
<td valign=top align=left>
|
||||
<table cellspacing=0 cellpadding=0 width=115>
|
||||
<tr><td width=227 height=20 bgcolor=#2b2b2b><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td width=227>
|
||||
<table width=100% cellspacing=0 cellpadding=0>
|
||||
<tr><td height=22 align=center valign=middle background="ROMCache/RightTopEdgeOnly.gif">
|
||||
<tr><td height=40>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<td width=107>
|
||||
<td valign=top align=center>
|
||||
<font color="#E7CE4A" size=-1><shadow>
|
||||
<input
|
||||
type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif" value=Remove
|
||||
name="${folder_array[0]}" usestyle
|
||||
width=110>
|
||||
</shadow></font>
|
||||
</table>
|
||||
</table>`
|
||||
for (let i = 1; i < totalfavorites; i++) {
|
||||
data += `
|
||||
<tr><td width=227>
|
||||
<table width=100% cellspacing=0 cellpadding=0>
|
||||
<tr><td height=22 align=center valign=middle background="ROMCache/RightMiddleEdgeOnly.gif">
|
||||
<tr><td height=40>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<td width=107>
|
||||
<td valign=top align=center>
|
||||
<font color="#E7CE4A" size=-1><shadow>
|
||||
<input
|
||||
type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif" value=Remove
|
||||
name="${folder_array[i]}" usestyle
|
||||
width=110>
|
||||
</shadow></font>
|
||||
</table>
|
||||
</table>`
|
||||
}
|
||||
data += `
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
</form>`
|
||||
if (totalfavorites == 1)
|
||||
data += "<i> You cannot delete your last folder.</i>"
|
||||
data += `
|
||||
<hr width=420>
|
||||
<form action="wtv-favorite:/commit-discard-folders">
|
||||
<input type=hidden name=favorite-folder-name value="Personal">
|
||||
<tr><td><table absheight=50 cellspacing=0 cellpadding=0>
|
||||
<tr><td height=10><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td width=330 align=center valign=center>
|
||||
<td align=center valign=center>
|
||||
<font color="#E7CE4A" size=-1><shadow>
|
||||
<input
|
||||
type=submit
|
||||
useform="Discard"
|
||||
borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Done"
|
||||
name="ForwardToFolders"
|
||||
usestyle
|
||||
width=110>
|
||||
</shadow></font>
|
||||
<tr><td height=8><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</form>
|
||||
</BODY>
|
||||
</HTML>
|
||||
`;
|
||||
@@ -0,0 +1,240 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var favoritenum = 0;
|
||||
var foldernum = 0;
|
||||
|
||||
var foldername = request_headers.query.favorite_folder_name;
|
||||
|
||||
var favarray = session_data.favstore.listFavorites(foldername);
|
||||
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
|
||||
var folderid = folder_array.indexOf(foldername);
|
||||
|
||||
var numoffolders = folder_array.length;
|
||||
|
||||
favoritenum = Object.keys(favarray).length;
|
||||
foldernum = folder_array.length;
|
||||
|
||||
var folderlist = `<select name="newfolder" width=140>
|
||||
<option value="${foldername}" selected="">${foldername}</option>
|
||||
`
|
||||
for (let i = 0; i < foldernum; i++) {
|
||||
if (folder_array[i] == foldername)
|
||||
{
|
||||
} else {
|
||||
folderlist += `<option value="${folder_array[i]}">${folder_array[i]}</option>
|
||||
`
|
||||
}
|
||||
}
|
||||
folderlist += "</select>"
|
||||
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:/serve-`
|
||||
|
||||
|
||||
data = `<html><head>
|
||||
<title>
|
||||
Move favorites
|
||||
</title>
|
||||
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||
<sidebar width=109 height=384>
|
||||
<tr><td absheight=384>
|
||||
<table cellspacing=0 cellpadding=0 bgcolor=284a52>
|
||||
<tr><td valign=top absheight=196>
|
||||
<table cellspacing=0 cellpadding=0 absheight=196>
|
||||
<tr>
|
||||
<td valign=top width=100% height=50%>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td colspan=3 width=100% absheight=1>
|
||||
<tr>
|
||||
<td abswidth=6>
|
||||
<td width=100% align=center absheight=79>
|
||||
<table href="wtv-home:/home" width=100% absheight=79 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td width=100% align=center>
|
||||
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width=87 height=67>
|
||||
</table>
|
||||
<td abswidth=5>
|
||||
<tr><td colspan=3 width=100% absheight=2 bgcolor=1f3136>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td colspan=3 width=100% absheight=1>
|
||||
<tr><td colspan=3 width=100% absheight=2 bgcolor=436f79>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1> <tr><td width=100% absheight=32 colspan=3>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td abswidth=6 absheight=26>
|
||||
<td width=100%><table width=100% cellspacing=0 cellpadding=0 href="wtv-favorite:/serve-organize-favorites?favorite_folder_name=${foldername}">
|
||||
<tr><td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td><shadow><font color=E7CE4A size=-1>
|
||||
Organize
|
||||
</table>
|
||||
</table>
|
||||
<td abswidth=5>
|
||||
<tr><td colspan=3 width=104 absheight=2 bgcolor=1f3136>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td absheight=1>
|
||||
<tr><td colspan=3 width=104 absheight=2 bgcolor=436f79>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td valign=top absheight=188>
|
||||
<table cellspacing=0 cellpadding=0 absheight=188>
|
||||
<tr><td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<td align=right valign=bottom><img src="ROMCache/FavoritesBanner.gif" width=50 height=188>
|
||||
</table>
|
||||
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</sidebar>
|
||||
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||
<tbody><tr>
|
||||
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr>
|
||||
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td align="left">
|
||||
<shadow><blackface><font color="e7ce4a">Move favorites in this folder:
|
||||
</font><shadow><blackface>
|
||||
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||
</td></tr><tr>
|
||||
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td valign="top" align="left">
|
||||
<table width="221" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td height="1">
|
||||
</td></tr><tr><td height="20">
|
||||
<table width="20" height="20" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10"> </td><td height="20" align="center">
|
||||
<font size="-1" color="#E6CD4A">
|
||||
<limittext value="${foldername}" width="140">
|
||||
</limittext></font>
|
||||
</td><td width="20">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td valign="top" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td><td>
|
||||
<table abswidth="52" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||
</td><td width="25" valign="middle" height="42" align="left">
|
||||
</td><td width="7" valign="middle" height="40" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<form id="Move" action="wtv-favorite:/commit-move-favorites">
|
||||
<input type=hidden name=favorite_folder_name value="${foldername}">
|
||||
<tbody><tr><spacer type=block WIDTH=199 HEIGHT=0><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="199" height="1">
|
||||
</td></tr></tbody></table></table>`
|
||||
if (favoritenum == 0)
|
||||
{
|
||||
data += "<font size=2> <i>There are no favorites to move in this folder.</i></font>";
|
||||
} else {
|
||||
for (let i = 0; i < favoritenum; i++) {
|
||||
data += `<tr><table cellspacing=0 cellpadding=0>
|
||||
<td abswidth=15><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<td abswidth=75 height=52 align=center valign=center>`
|
||||
if (favarray[i].imagetype == "url")
|
||||
data += `<img src="${favarray[i].image}" width="70" vspace="5" height="52"><br>`
|
||||
else
|
||||
data += `<img src="get-thumbnail?folder=${favarray[i].folder}&id=${favarray[i].id}" width="70" vspace="5" height="52"><br>`
|
||||
data += `
|
||||
<td abswidth=5 align=left valign=center>
|
||||
<td abswidth=195 align=left valign=center maxlines=2>
|
||||
${favarray[i].title}<br>
|
||||
</font>
|
||||
<td abswidth=8>
|
||||
<td abswidth=140>
|
||||
<font color="#E7CE4A" size=-1><shadow>
|
||||
<input type=hidden name=favoriteid value="${favarray[i].id}">`
|
||||
data += `<select name="favoritefolder" width=140>
|
||||
<option value="${foldername}" selected="">${foldername}</option>
|
||||
`
|
||||
for (let i = 0; i < foldernum; i++) {
|
||||
if (folder_array[i] == foldername)
|
||||
{
|
||||
} else {
|
||||
data += `<option value="${folder_array[i]}">${folder_array[i]}</option>
|
||||
`
|
||||
}
|
||||
}
|
||||
data += `</select>
|
||||
</shadow></font>
|
||||
<td abswidth=13>
|
||||
</table>
|
||||
<tr><table cellspacing=0 cellpadding=0>
|
||||
<tr><td><table cellspacing=0 cellpadding=0>
|
||||
<tr><td height=4>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<tr><td width=5 height=1>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<tr><td height=4>
|
||||
</table>
|
||||
</table>
|
||||
<hr align=left width=100%><br>`
|
||||
}
|
||||
}
|
||||
data += `
|
||||
<tr><td><table cellspacing=0 cellpadding=0>
|
||||
<tr><td><table cellspacing=0 cellpadding=0>
|
||||
<tr><td><table width=451 cellspacing=0 cellpadding=0>
|
||||
<tr><td height=4>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<tr><td width=5 height=1>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
<tr><td align=right valign=center>
|
||||
<table height=50 valign=center cellspacing=0 cellpadding=0>
|
||||
<tr><td abswidth=5 height=10 ><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td abswidth=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<td align=right valign=center>
|
||||
<td valign=center>
|
||||
<font color="#E7CE4A" size=-1><shadow>
|
||||
</shadow></font>
|
||||
<td abswidth=9 align=center valign=center>
|
||||
<td valign=center>
|
||||
<font color="#E7CE4A" size=-1><shadow>
|
||||
<input
|
||||
type=submit
|
||||
useform="Move"
|
||||
borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Done"
|
||||
name="ForwardToBrowser"
|
||||
usestyle
|
||||
width=90>
|
||||
</shadow></font>
|
||||
<td abswidth=13>
|
||||
<tr><td width=5 height=8><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</form>
|
||||
</BODY>
|
||||
</HTML>
|
||||
`;
|
||||
@@ -0,0 +1,221 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var favoritenum = 0;
|
||||
|
||||
var foldername = request_headers.query.favorite_folder_name;
|
||||
|
||||
var favarray = session_data.favstore.listFavorites(foldername);
|
||||
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
|
||||
var folderid = folder_array.indexOf(foldername);
|
||||
|
||||
var numoffolders = folder_array.length;
|
||||
|
||||
favoritenum = Object.keys(favarray).length;
|
||||
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:/serve-`
|
||||
|
||||
|
||||
data = `<html><head>
|
||||
<title>
|
||||
Organize favorites
|
||||
</title>
|
||||
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||
<sidebar width="109" height="384">
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||
<tbody><tr><td absheight="196" valign="top">
|
||||
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" valign="top" height="50%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr>
|
||||
<td abswidth="6">
|
||||
</td><td absheight="79" width="100%" align="center">
|
||||
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" align="center">
|
||||
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="5" absheight="26">
|
||||
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/favorite" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Folders
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="5" absheight="26">
|
||||
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/serve-add-folder-page" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Add folder
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="5" absheight="26">
|
||||
</td><td abswidth="93">
|
||||
<table abswidth="93" href="wtv-guide:/quickhelp?title=Favorites" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Help
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="188" valign="top">
|
||||
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</sidebar>
|
||||
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||
<tbody><tr>
|
||||
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr>
|
||||
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td align="left">
|
||||
<shadow><blackface><font color="e7ce4a">Organize favorites in this folder:
|
||||
</font><shadow><blackface>
|
||||
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||
</td></tr><tr>
|
||||
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td valign="top" align="left">
|
||||
<table width="221" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td height="1">
|
||||
</td></tr><tr><td height="20">
|
||||
<table width="20" height="20" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10"> </td><td height="20" align="center">
|
||||
<font size="-1" color="#E6CD4A">
|
||||
<limittext value="${foldername}" width="140">
|
||||
</limittext></font>
|
||||
</td><td width="20">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td valign="top" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td><td>
|
||||
<table abswidth="52" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||
</td><td width="25" valign="middle" height="42" align="left">
|
||||
</td><td width="7" valign="middle" height="40" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><spacer type=block WIDTH=199 HEIGHT=0><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="199" height="1">
|
||||
</td></tr></tbody></table></table>
|
||||
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
</table><table cellspacing="0" cellpadding="0">
|
||||
</table><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="106" width="18"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td WIDTH=198 HEIGHT=206 VALIGN=top ALIGN=left>
|
||||
<A HREF="wtv-favorite:/serve-discard-favorites?favorite_folder_name=${foldername}" selected><BLACKFACE>Discard</BLACKFACE></A><BR>
|
||||
<FONT SIZE="-1">Remove unwanted favorites from this folder</FONT><BR>
|
||||
<spacer type=block WIDTH=1 HEIGHT=7><BR>
|
||||
<!--<A HREF="wtv-favorite:/serve-arrange-favorites?favorite_folder_name=${foldername}"><BLACKFACE>Listing</BLACKFACE></A><BR>
|
||||
<FONT SIZE="-1">Change how favorites are listed</FONT><BR>
|
||||
<spacer type=block WIDTH=1 HEIGHT=7><BR>-->
|
||||
<A HREF="wtv-favorite:/serve-move-favorites?favorite_folder_name=${foldername}"><BLACKFACE>Move to folder</BLACKFACE></A><BR>
|
||||
<FONT SIZE="-1">Move favorites from this folder to another</FONT><BR>
|
||||
|
||||
<TD WIDTH=20>
|
||||
|
||||
<TD WIDTH=198 VALIGN=top ALIGN=left>
|
||||
<A HREF="wtv-favorite:/serve-rename-favorites?favorite_folder_name=${foldername}"><BLACKFACE>Rename</BLACKFACE></A><BR>
|
||||
<FONT SIZE="-1">Rename favorites in this folder</FONT><BR>
|
||||
<!--<spacer type=block WIDTH=1 HEIGHT=7><BR>
|
||||
<A HREF="wtv-favorite:/serve-shortcuts-favorites?favorite_folder_name=${foldername}"><BLACKFACE>Shortcuts</BLACKFACE></A><BR>
|
||||
<FONT SIZE="-1">Assign a keyboard shortcut to a favorite, or <a href="client:showalert?message=fuck">view a list</a> of all shortcuts</FONT><BR>-->
|
||||
|
||||
<TR>
|
||||
<TD>
|
||||
<TD COLSPAN=4 HEIGHT=9 VALIGN=top ALIGN=left>
|
||||
<tr>
|
||||
<TD>
|
||||
<td colspan=4 height=2 valign=middle align=center bgcolor="2B2B2B">
|
||||
<spacer type=block width=436 height=1>
|
||||
<tr>
|
||||
<TD>
|
||||
<td colspan=4 height=1 valign=top align=left>
|
||||
<tr>
|
||||
<TD>
|
||||
<td colspan=4 height=2 valign=top align=left bgcolor="0D0D0D">
|
||||
<spacer type=block width=436 height=1>
|
||||
<TR>
|
||||
<TD>
|
||||
<TD COLSPAN=4 HEIGHT=4 VALIGN=top ALIGN=left>
|
||||
<TR>
|
||||
<TD>
|
||||
<TD COLSPAN=2 VALIGN=top ALIGN=left>
|
||||
<TD VALIGN=top ALIGN=right>
|
||||
<FORM action="wtv-favorite:/serve-browser?favorite_folder_name=${foldername}">
|
||||
<FONT COLOR="#E7CE4A" SIZE=-1><SHADOW>
|
||||
<INPUT TYPE=SUBMIT BORDERIMAGE="file://ROM/Borders/ButtonBorder2.bif" Value=Done NAME="Done" USESTYLE WIDTH=103>
|
||||
</SHADOW></FONT></FORM>
|
||||
<TD>
|
||||
</TABLE>
|
||||
</BODY>
|
||||
</HTML>
|
||||
`;
|
||||
@@ -0,0 +1,219 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var favoritenum = 0;
|
||||
|
||||
var foldername = request_headers.query.favorite_folder_name;
|
||||
|
||||
var favarray = session_data.favstore.listFavorites(foldername);
|
||||
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
|
||||
var folderid = folder_array.indexOf(foldername);
|
||||
|
||||
var numoffolders = folder_array.length;
|
||||
|
||||
favoritenum = Object.keys(favarray).length;
|
||||
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:/serve-`
|
||||
|
||||
|
||||
data = `<html><head>
|
||||
<title>
|
||||
Rename favorites
|
||||
</title>
|
||||
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||
<sidebar width=109 height=384>
|
||||
<tr><td absheight=384>
|
||||
<table cellspacing=0 cellpadding=0 bgcolor=284a52>
|
||||
<tr><td valign=top absheight=196>
|
||||
<table cellspacing=0 cellpadding=0 absheight=196>
|
||||
<tr>
|
||||
<td valign=top width=100% height=50%>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td colspan=3 width=100% absheight=1>
|
||||
<tr>
|
||||
<td abswidth=6>
|
||||
<td width=100% align=center absheight=79>
|
||||
<table href="wtv-home:/home" width=100% absheight=79 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td width=100% align=center>
|
||||
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width=87 height=67>
|
||||
</table>
|
||||
<td abswidth=5>
|
||||
<tr><td colspan=3 width=100% absheight=2 bgcolor=1f3136>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td colspan=3 width=100% absheight=1>
|
||||
<tr><td colspan=3 width=100% absheight=2 bgcolor=436f79>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1> <tr><td width=100% absheight=32 colspan=3>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td abswidth=6 absheight=26>
|
||||
<td width=100%><table width=100% cellspacing=0 cellpadding=0 href="wtv-favorite:/serve-organize-favorites?favorite_folder_name=${foldername}">
|
||||
<tr><td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td><shadow><font color=E7CE4A size=-1>
|
||||
Organize
|
||||
</table>
|
||||
</table>
|
||||
<td abswidth=5>
|
||||
<tr><td colspan=3 width=104 absheight=2 bgcolor=1f3136>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td absheight=1>
|
||||
<tr><td colspan=3 width=104 absheight=2 bgcolor=436f79>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td valign=top absheight=188>
|
||||
<table cellspacing=0 cellpadding=0 absheight=188>
|
||||
<tr><td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<td align=right valign=bottom><img src="ROMCache/FavoritesBanner.gif" width=50 height=188>
|
||||
</table>
|
||||
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</sidebar>
|
||||
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||
<tbody><tr>
|
||||
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr>
|
||||
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td align="left">
|
||||
<shadow><blackface><font color="e7ce4a">Rename favorites in this folder:
|
||||
</font><shadow><blackface>
|
||||
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||
</td></tr><tr>
|
||||
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td valign="top" align="left">
|
||||
<table width="221" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td height="1">
|
||||
</td></tr><tr><td height="20">
|
||||
<table width="20" height="20" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10"> </td><td height="20" align="center">
|
||||
<font size="-1" color="#E6CD4A">
|
||||
<limittext value="${foldername}" width="140">
|
||||
</limittext></font>
|
||||
</td><td width="20">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td valign="top" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td><td>
|
||||
<table abswidth="52" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||
</td><td width="25" valign="middle" height="42" align="left">
|
||||
</td><td width="7" valign="middle" height="40" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<form id="Rename" action="wtv-favorite:/commit-rename-favorites">
|
||||
<input type=hidden name=favorite_folder_name value="${foldername}">
|
||||
<tbody><tr><spacer type=block WIDTH=199 HEIGHT=0><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="199" height="1">
|
||||
</td></tr></tbody></table></table>`
|
||||
if (favoritenum == 0)
|
||||
{
|
||||
data += "<font size=2> <i>There are no favorites to rename in this folder.</i></font>";
|
||||
} else {
|
||||
for (let i = 0; i < favoritenum; i++) {
|
||||
data += `<tr><table cellspacing=0 cellpadding=0>
|
||||
<td abswidth=15><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<td abswidth=75 height=52 align=center valign=center>`
|
||||
if (favarray[i].imagetype == "url")
|
||||
data += `<img src="${favarray[i].image}" width="70" vspace="5" height="52"><br>`
|
||||
else
|
||||
data += `<img src="get-thumbnail?folder=${favarray[i].folder}&id=${favarray[i].id}" width="70" vspace="5" height="52"><br>`
|
||||
data += `
|
||||
<td abswidth=5 align=left valign=center>
|
||||
<td abswidth=320 align=left valign=center maxlines=2>
|
||||
<font color="44cc55" size=-1><shadow>
|
||||
<input
|
||||
bgcolor=#191919
|
||||
type=text value="${favarray[i].title}"
|
||||
name="favorite${[i]}name" usestyle
|
||||
width=320>
|
||||
<input type=hidden name=favorite${[i]}id value="${favarray[i].id}">
|
||||
</font>
|
||||
<td abswidth=8>
|
||||
</shadow></font>
|
||||
<td abswidth=13>
|
||||
</table>
|
||||
<tr><table cellspacing=0 cellpadding=0>
|
||||
<tr><td><table cellspacing=0 cellpadding=0>
|
||||
<tr><td height=4>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<tr><td width=5 height=1>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<tr><td height=4>
|
||||
</table>
|
||||
</table>
|
||||
<hr align=left width=100%><br>`
|
||||
}
|
||||
}
|
||||
data += `
|
||||
</form>
|
||||
<tr><td><table cellspacing=0 cellpadding=0>
|
||||
<tr><td><table cellspacing=0 cellpadding=0>
|
||||
<tr><td><table width=451 cellspacing=0 cellpadding=0>
|
||||
<tr><td height=4>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<tr><td width=5 height=1>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
<form action="wtv-favorite:/commit-rename-favorites">
|
||||
<input type=hidden name=favorite_folder_name value="${foldername}">
|
||||
<tr><td align=right valign=center>
|
||||
<table height=50 valign=center cellspacing=0 cellpadding=0>
|
||||
<tr><td abswidth=5 height=10 ><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td abswidth=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<td align=right valign=center>
|
||||
<td valign=center>
|
||||
<font color="#E7CE4A" size=-1><shadow>
|
||||
</shadow></font>
|
||||
<td abswidth=9 align=center valign=center>
|
||||
<td valign=center>
|
||||
<font color="#E7CE4A" size=-1><shadow>
|
||||
<input
|
||||
type=submit
|
||||
useform="Rename"
|
||||
borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Done"
|
||||
name="ForwardToBrowser"
|
||||
usestyle
|
||||
width=90>
|
||||
</shadow></font>
|
||||
<td abswidth=13>
|
||||
<tr><td width=5 height=8><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</form>
|
||||
</BODY>
|
||||
</HTML>
|
||||
`;
|
||||
@@ -0,0 +1,272 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:/serve-`
|
||||
|
||||
|
||||
data = `<HTML>
|
||||
<HEAD>
|
||||
<TITLE>
|
||||
Add sample folders
|
||||
</TITLE>
|
||||
<DISPLAY>
|
||||
</HEAD>
|
||||
<BODY BGCOLOR=191919 TEXT=44cc55 LINK=189cd6 VLINK=189cd6 HSPACE=0 VSPACE=0 FONTSIZE=large>
|
||||
<sidebar width=109 height=384>
|
||||
<tr><td absheight=384>
|
||||
<table cellspacing=0 cellpadding=0 bgcolor=284a52>
|
||||
<tr><td valign=top absheight=196>
|
||||
<table cellspacing=0 cellpadding=0 absheight=196>
|
||||
<tr>
|
||||
<td valign=top width=100% height=50%>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td colspan=3 width=100% absheight=1>
|
||||
<tr>
|
||||
<td abswidth=6>
|
||||
<td width=100% align=center absheight=79>
|
||||
<table href="wtv-home:/home" width=100% absheight=79 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td width=100% align=center>
|
||||
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width=87 height=67>
|
||||
</table>
|
||||
<td abswidth=5>
|
||||
<tr><td colspan=3 width=100% absheight=2 bgcolor=1f3136>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td colspan=3 width=100% absheight=1>
|
||||
<tr><td colspan=3 width=100% absheight=2 bgcolor=436f79>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1> <tr><td width=100% absheight=32 colspan=3>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td abswidth=6 absheight=26>
|
||||
<td width=100%><table width=100% cellspacing=0 cellpadding=0 href="wtv-favorite:/favorite">
|
||||
<tr><td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td><shadow><font color=E7CE4A size=-1>
|
||||
Favorites
|
||||
</table>
|
||||
</table>
|
||||
<td abswidth=5>
|
||||
<tr><td colspan=3 width=104 absheight=2 bgcolor=1f3136>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td absheight=1>
|
||||
<tr><td colspan=3 width=104 absheight=2 bgcolor=436f79>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td valign=top absheight=188>
|
||||
<table cellspacing=0 cellpadding=0 absheight=188>
|
||||
<tr><td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<td align=right valign=bottom><img src="ROMCache/FavoritesBanner.gif" width=50 height=188>
|
||||
</table>
|
||||
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</sidebar>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td abswidth=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<td><table cellspacing=0 cellpadding=0>
|
||||
<tr><table cellspacing=0 cellpadding=0 bgcolor=191919>
|
||||
<tr><td width=14 absheight=16><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td width=14 absheight=12><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<td><table cellspacing=0 cellpadding=0>
|
||||
<tr><td align=left>
|
||||
<shadow><blackface><font color=e7ce4a>
|
||||
Add sample folders
|
||||
</font><blackface><shadow>
|
||||
</table>
|
||||
<tr><td height=18><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
</shadow></blackface>
|
||||
</table>
|
||||
<tr><table cellspacing=0 cellpadding=0 bgcolor=191919> <tr><td width=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<td width=14><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<td><font size=-1>
|
||||
Mark the sample folders you want<br>
|
||||
to add, and then choose <b>Add</b>.<br>
|
||||
<br>
|
||||
You can remove an existing sample folder<br>
|
||||
by going to the folder and choosing <b>Organize</b>.<br>
|
||||
<br>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=18>
|
||||
</font>
|
||||
</table>
|
||||
</table>
|
||||
</table> <form name="SampleFolders" action="wtv-favorite:/commit-samples-page">
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td width=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<td width=100% valign=top>
|
||||
<table valign=top cellspacing=0 cellpadding=0>
|
||||
<tr><td width=100%>
|
||||
<table valign=top cellspacing=0 cellpadding=0>
|
||||
<td width=25>
|
||||
<tr>
|
||||
<td width=25>`
|
||||
if (session_data.favstore.folderExists("Fun") == true)
|
||||
{
|
||||
data += `
|
||||
<td width=50% absheight=30 align=left valign=middle>
|
||||
<table valign=top cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=30 align=center valign=middle>
|
||||
<img src="/images/checkmark.gif" width=20 height=20>
|
||||
<td abswidth=4>
|
||||
<td absheight=30 align=left valign=middle>
|
||||
<font color=E7CE4A size=-1> <i>Fun</i>
|
||||
</font>
|
||||
</table>`
|
||||
} else {
|
||||
data += `
|
||||
<td width=50% absheight=30 align=left valign=middle>
|
||||
<font color=E7CE4A size=-1>
|
||||
<input type="checkbox" name="Fun" value="true"> Fun
|
||||
</font>`
|
||||
}
|
||||
if (session_data.favstore.folderExists("Money") == true)
|
||||
{
|
||||
data += `
|
||||
<td width=50% absheight=30 align=left valign=middle>
|
||||
<table valign=top cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=30 align=center valign=middle>
|
||||
<img src="/images/checkmark.gif" width=20 height=20>
|
||||
<td abswidth=4>
|
||||
<td absheight=30 align=left valign=middle>
|
||||
<font color=E7CE4A size=-1> <i>Money</i>
|
||||
</font>
|
||||
</table>`
|
||||
} else {
|
||||
data += `
|
||||
<td width=50% absheight=30 align=left valign=middle>
|
||||
<font color=E7CE4A size=-1>
|
||||
<input type="checkbox" name="Money" value="true"> Money
|
||||
</font>`
|
||||
} data += `
|
||||
<td width=25>
|
||||
<tr>
|
||||
<td width=25>`
|
||||
if (session_data.favstore.folderExists("Movies") == true)
|
||||
{
|
||||
data += `
|
||||
<td width=50% absheight=30 align=left valign=middle>
|
||||
<table valign=top cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=30 align=center valign=middle>
|
||||
<img src="/images/checkmark.gif" width=20 height=20>
|
||||
<td abswidth=4>
|
||||
<td absheight=30 align=left valign=middle>
|
||||
<font color=E7CE4A size=-1> <i>Movies</i>
|
||||
</font>
|
||||
</table>`
|
||||
} else {
|
||||
data += `
|
||||
<td width=50% absheight=30 align=left valign=middle>
|
||||
<font color=E7CE4A size=-1>
|
||||
<input type="checkbox" name="Movies" value="true"> Movies
|
||||
</font>`
|
||||
}
|
||||
if (session_data.favstore.folderExists("News") == true)
|
||||
{
|
||||
data += `
|
||||
<td width=50% absheight=30 align=left valign=middle>
|
||||
<table valign=top cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=30 align=center valign=middle>
|
||||
<img src="/images/checkmark.gif" width=20 height=20>
|
||||
<td abswidth=4>
|
||||
<td absheight=30 align=left valign=middle>
|
||||
<font color=E7CE4A size=-1> <i>News</i>
|
||||
</font>
|
||||
</table>`
|
||||
} else {
|
||||
data += `
|
||||
<td width=50% absheight=30 align=left valign=middle>
|
||||
<font color=E7CE4A size=-1>
|
||||
<input type="checkbox" name="News" value="true"> News
|
||||
</font>`
|
||||
}
|
||||
data += `
|
||||
<td width=25>
|
||||
<tr>
|
||||
<td width=25>`
|
||||
if (session_data.favstore.folderExists("Recommended") == true)
|
||||
{
|
||||
data += `
|
||||
<td width=50% absheight=30 align=left valign=middle>
|
||||
<table valign=top cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=30 align=center valign=middle>
|
||||
<img src="/images/checkmark.gif" width=20 height=20>
|
||||
<td abswidth=4>
|
||||
<td absheight=30 align=left valign=middle>
|
||||
<font color=E7CE4A size=-1> <i>Recommended</i>
|
||||
</font>
|
||||
</table>`
|
||||
} else {
|
||||
data += `
|
||||
<td width=50% absheight=30 align=left valign=middle>
|
||||
<font color=E7CE4A size=-1>
|
||||
<input type="checkbox" name="Recommended" value="true"> Recommended
|
||||
</font>`
|
||||
}
|
||||
if (session_data.favstore.folderExists("Reference") == true)
|
||||
{
|
||||
data += `
|
||||
<td width=50% absheight=30 align=left valign=middle>
|
||||
<table valign=top cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=30 align=center valign=middle>
|
||||
<img src="/images/checkmark.gif" width=20 height=20>
|
||||
<td abswidth=4>
|
||||
<td absheight=30 align=left valign=middle>
|
||||
<font color=E7CE4A size=-1> <i>Reference</i>
|
||||
</font>
|
||||
</table>`
|
||||
} else {
|
||||
data += `
|
||||
<td width=50% absheight=30 align=left valign=middle>
|
||||
<font color=E7CE4A size=-1>
|
||||
<input type="checkbox" name="Reference" value="true"> Reference
|
||||
</font>`
|
||||
}
|
||||
data += `
|
||||
</table>
|
||||
<tr><td><table cellspacing=0 cellpadding=0>
|
||||
<tr><td><table cellspacing=0 cellpadding=0 bgcolor=191919>
|
||||
<tr><td><table width=5 cellspacing=0 cellpadding=0 bgcolor=191919>
|
||||
<tr><td width=5 absheight=15><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
<td><table width=442 cellspacing=0 cellpadding=0 bgcolor=191919>
|
||||
<tr><td height=10>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center bgcolor="2B2B2B"><img src="wtv-home:/ROMCache/Spacer.gif" height=1>
|
||||
<tr><td width=5 height=1>
|
||||
<tr><td width=15>
|
||||
<td absheight=2 valign=middle align=center bgcolor="0D0D0D"><img src="wtv-home:/ROMCache/Spacer.gif" height=1>
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
<tr><td><table cellspacing=0 cellpadding=0 bgcolor=191919>
|
||||
<tr><td width=5 height=10><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td width=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||
<td align=right valign=center>
|
||||
<font color="#E7CE4A" size=-1><shadow>
|
||||
<input
|
||||
type=submit
|
||||
borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Add"
|
||||
name="ForwardToBrowser"
|
||||
usestyle
|
||||
width=110>
|
||||
</shadow></font>
|
||||
<td width=13>
|
||||
</table>
|
||||
</form>
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
</table>
|
||||
</HTML>
|
||||
`;
|
||||
@@ -0,0 +1,205 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var favoritenum = 0;
|
||||
|
||||
var foldername = request_headers.query.favorite_folder_name;
|
||||
|
||||
var favarray = session_data.favstore.listFavorites(foldername);
|
||||
|
||||
var folder_array = session_data.favstore.getFolders();
|
||||
|
||||
var folderid = folder_array.indexOf(foldername);
|
||||
|
||||
var numoffolders = folder_array.length;
|
||||
|
||||
favoritenum = Object.keys(favarray).length;
|
||||
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html
|
||||
wtv-expire-all: wtv-favorite:/serve-`
|
||||
|
||||
|
||||
data = `<html>
|
||||
<head>
|
||||
</head>
|
||||
<body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919">
|
||||
<title>
|
||||
Assign shortcut to favorite
|
||||
</title>
|
||||
<display>
|
||||
<sidebar width="109" height="384">
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||
<tbody><tr><td absheight="196" valign="top">
|
||||
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" valign="top" height="50%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr>
|
||||
<td abswidth="6">
|
||||
</td><td absheight="79" width="100%" align="center">
|
||||
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" align="center">
|
||||
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="6" absheight="26">
|
||||
</td><td width="100%"><table href="wtv-favorite:/serve-organize-favorites?favorite_folder_name=${foldername}" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Organize
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="188" valign="top">
|
||||
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</sidebar>
|
||||
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||
<tbody><tr>
|
||||
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr>
|
||||
<td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td align="left">
|
||||
<shadow><blackface><font color="e7ce4a">Assign shortcut to favorite</font><shadow><blackface>
|
||||
<shadow><blackface>
|
||||
</blackface></shadow></blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||
</td></tr><tr>
|
||||
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td valign="top" align="left">
|
||||
<table width="227" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="227" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="40">
|
||||
</td><td height="20" align="center">
|
||||
<font size="-1" color="#E6CD4A">
|
||||
<limittext value="Personal" width="140">
|
||||
</limittext></font>
|
||||
</td><td width="20">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td valign="top" align="left">
|
||||
<table width="224" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||
</td></tr><tr><td width="224" valign="middle" height="22" background="ROMCache/RightTopEdgeOnly.gif" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr><tr></tr></tbody></table><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="5" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="5" height="4"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td valign="middle" align="left">
|
||||
<font size="-1" color="#42BC52">`
|
||||
if (favoritenum == 0)
|
||||
{
|
||||
data += "<font size=2> <i>There are no favorites to move in this folder.</i></font>";
|
||||
} else {
|
||||
data += `To assign a keyboard shortcut to a favorite, <br>
|
||||
choose the button to the right of the favorite. <br>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="4"><br>
|
||||
</font>
|
||||
</td></tr><tr></tr></tbody></table>`
|
||||
for (let i = 0; i < favoritenum; i++) {
|
||||
data += `<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr>
|
||||
<td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td height="4">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td width="5" height="1">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td></tr><tr><td height="4">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="25">
|
||||
</td><td width="354">
|
||||
<table bgcolor="191919">
|
||||
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||
`
|
||||
if (favarray[i].imagetype == "url")
|
||||
data += `<img src="${favarray[i].image}" width="70" vspace="5" height="52"><br>`
|
||||
else
|
||||
data += `<img src="get-thumbnail?folder=${favarray[i].folder}&id=${favarray[i].id}" width="70" vspace="5" height="52"><br>`
|
||||
data += `
|
||||
</td><td width="7">
|
||||
</td><td width="100%" valign="center" align="left">
|
||||
<font size="-1" color="#42BC52">
|
||||
${favarray[i].title}<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td><td> <table bgcolor="191919">
|
||||
<tbody><tr><td abswidth="62" valign="center" align="center">
|
||||
<table absheight="38" href="wtv-favorite:/serve-choose-shortcut-favorites?favorite_folder_name=${foldername}&favoriteid=${favarray[i].id}" width="53" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td valign="middle" background="images/FKey.gif" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="8">
|
||||
</td><td absheight="38" width="44" valign="center" align="center">
|
||||
<font size="-2" color="#F1F1F1">
|
||||
<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="3">
|
||||
</td></tr></tbody></table>`
|
||||
}
|
||||
}
|
||||
data += `<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td><table width="451" cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td height="4">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="2B2B2B" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" height="1">
|
||||
</td></tr><tr><td width="5" height="1">
|
||||
</td></tr><tr><td width="15">
|
||||
</td><td absheight="2" valign="middle" bgcolor="0D0D0D" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<form action="wtv-favorite:/commit-shortcuts-favorites">
|
||||
<input type="hidden" name="favorite_folder_name" value="${foldername}">
|
||||
<table height="50" cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
<tbody><tr><td height="10"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td><td valign="center" align="right">
|
||||
<font size="-1" color="#E7CE4A"><shadow>
|
||||
<input type="submit" useform="Shortcuts" borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Done" name="ForwardToBrowser" usestyle="" width="110">
|
||||
</shadow></font>
|
||||
</td><td abswidth="13">
|
||||
</td></tr><tr><td height="8"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</form>
|
||||
</display></body></html>
|
||||
`;
|
||||
247
zefie_wtvp_minisrv/includes/ServiceVault/wtv-favorite/sony.html
Normal file
@@ -0,0 +1,247 @@
|
||||
<html><head>
|
||||
<title>
|
||||
Favorites
|
||||
</title>
|
||||
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||
|
||||
|
||||
|
||||
|
||||
<sidebar width="109" height="384">
|
||||
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||
<tbody><tr><td absheight="196" valign="top">
|
||||
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" valign="top" height="50%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr>
|
||||
<td abswidth="6">
|
||||
</td><td absheight="79" width="100%" align="center">
|
||||
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td width="100%" align="center">
|
||||
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="5" absheight="26">
|
||||
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/serve-folders?favorite-folder-name=Sony" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Folders
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="5" absheight="26">
|
||||
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/serve-organize-favorites?favorite-folder-name=Sony" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Organize
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td abswidth="5" absheight="26">
|
||||
</td><td abswidth="93">
|
||||
<table abswidth="93" href="wtv-guide:/quickhelp?title=Favorites" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||
Help
|
||||
</font></shadow></td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="6">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="1">
|
||||
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr><td absheight="188" valign="top">
|
||||
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
</sidebar>
|
||||
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||
<tbody><tr>
|
||||
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr><tr>
|
||||
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr>
|
||||
<td align="left">
|
||||
<shadow><blackface><font color="e7ce4a">Favorites for ${session_data.getSessionData("subscriber_username") || "You"}
|
||||
</font><shadow><blackface>
|
||||
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||
</td></tr><tr>
|
||||
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td valign="top" align="left">
|
||||
<table width="221" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTopWithPreviousTab.gif" align="left">
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td height="1">
|
||||
</td></tr><tr><td height="20">
|
||||
<table href="wtv-favorite:/serve-browser?favorite-folder-name=Recommended&backward=selected" width="20" height="20" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td width="10"> </td><td height="20" align="center">
|
||||
<font size="-1" color="#E6CD4A">
|
||||
<limittext value="Sony" width="140">
|
||||
</limittext></font>
|
||||
</td><td width="20">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td valign="top" align="left">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td>
|
||||
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td><td>
|
||||
<table abswidth="52" cellspacing="0" cellpadding="0">
|
||||
<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||
</td><td width="25" valign="middle" height="42" align="left">
|
||||
</td><td width="7" valign="middle" height="40" align="left">
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td></tr></tbody></table>
|
||||
|
||||
|
||||
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||
</table><table cellspacing="0" cellpadding="0">
|
||||
</table><table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="106" width="5"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="15">
|
||||
</td><td abswidth="139" valign="top">
|
||||
<table href="http://www.spe.sony.com/tv/index.html" bgcolor="191919">
|
||||
<tbody><tr><td abswidth="139" align="center">
|
||||
<img src="canned/images/ctt-wtv.gif" width="70" vspace="5" height="52"><br>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||
Columbia TriStar Television
|
||||
<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="139" valign="top">
|
||||
<table href="http://www.jumpcity.com/webtv/" bgcolor="191919">
|
||||
<tbody><tr><td abswidth="139" align="center">
|
||||
<img src="canned/jumpcity.gif" width="70" vspace="5" height="52"><br>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||
JumpCity
|
||||
<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="139" valign="top">
|
||||
<table href="http://www.soapcity.com" bgcolor="191919">
|
||||
<tbody><tr><td abswidth="139" align="center">
|
||||
<img src="canned/images/soap-wtv.gif" width="70" vspace="5" height="52"><br>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||
SoapCity
|
||||
<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="106" width="5"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="15">
|
||||
</td><td abswidth="139" valign="top">
|
||||
<table href="http://www.sel.sony.com" bgcolor="191919">
|
||||
<tbody><tr><td abswidth="139" align="center">
|
||||
<img src="canned/sony.gif" width="70" vspace="5" height="52"><br>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||
Sony Electronics
|
||||
<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="139" valign="top">
|
||||
<table href="http://www.spe.sony.com/movies/index.html" bgcolor="191919">
|
||||
<tbody><tr><td abswidth="139" align="center">
|
||||
<img src="canned/images/film-wtv.gif" width="70" vspace="5" height="52"><br>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||
Sony Pictures Movie Site
|
||||
<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td><td abswidth="139" valign="top">
|
||||
<table href="http://www.spe.sony.com/store/index.html" bgcolor="191919">
|
||||
<tbody><tr><td abswidth="139" align="center">
|
||||
<img src="canned/images/spestore-wtv.gif" width="70" vspace="5" height="52"><br>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||
Sony Studio Store
|
||||
<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td absheight="106" width="5"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||
</td><td width="15">
|
||||
</td><td abswidth="139" valign="top">
|
||||
<table href="http://www.sony.inergy.com" bgcolor="191919">
|
||||
<tbody><tr><td abswidth="139" align="center">
|
||||
<img src="canned/websitefortv.gif" width="70" vspace="5" height="52"><br>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||
WebSite for TV
|
||||
<br>
|
||||
</font>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
|
||||
|
||||
|
||||
</display></body></html>
|
||||