You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
2.2 KiB
111 lines
2.2 KiB
if (typeof (nBildertool) === 'undefined')
|
|
nBildertool = {};
|
|
|
|
if (typeof (FRONT_URL) === 'undefined')
|
|
FRONT_URL = 'http://foto.westfaelische-nachrichten.de/';
|
|
|
|
// strecke wird ausschliesslich ueber einen entsprechenden xml Datensatz
|
|
// gefuellt.
|
|
nBildertool.strecke = function (data)
|
|
{
|
|
this.streckeId = null;
|
|
this.date = null;
|
|
this.showDate = null;
|
|
this.titel = null;
|
|
this.prio = null;
|
|
this.sektionen = null;
|
|
this.template = null;
|
|
this.ordnerId = null;
|
|
this.connectionId = null;
|
|
this.flags = null;
|
|
this.l0Id = null;
|
|
this.l1Id = null;
|
|
this.l2Id = null;
|
|
this.l3Id = null;
|
|
this.ordnerName = null;
|
|
this.viewFoto = null;
|
|
this.viewIndex = null;
|
|
this.downloads = null;
|
|
this.ffId = null;
|
|
this.ffBildzeile = null;
|
|
this.ffCopy = null;
|
|
this.ffSId = null;
|
|
this.ffSBildzeile = null;
|
|
this.ffSCopy = null;
|
|
this.fotoCount = null;
|
|
this.path = null;
|
|
|
|
function getOrdnerInfo (value, idx)
|
|
{
|
|
var val = value.split ('|%|');
|
|
if (typeof (idx) === 'undefined') return val;
|
|
return val[idx];
|
|
}
|
|
|
|
function getOrdnerId (idx)
|
|
{
|
|
return getOrdnerInfo (this.ordnerId, idx);
|
|
}
|
|
function getConnectionId (idx)
|
|
{
|
|
return getOrdnerInfo (this.connectionId, idx);
|
|
}
|
|
function getFlags (idx)
|
|
{
|
|
return getOrdnerInfo (this.flags, idx);
|
|
}
|
|
function getL0Id (idx)
|
|
{
|
|
return getOrdnerInfo (this.l0Id, idx);
|
|
}
|
|
function getL1Id (idx)
|
|
{
|
|
return getOrdnerInfo (this.l1Id, idx);
|
|
}
|
|
function getL2Id (idx)
|
|
{
|
|
return getOrdnerInfo (this.l2Id, idx);
|
|
}
|
|
function getL3Id (idx)
|
|
{
|
|
return getOrdnerInfo (this.l3Id, idx);
|
|
}
|
|
function getOrdnerName (idx)
|
|
{
|
|
return getOrdnerInfo (this.ordnerName, idx);
|
|
}
|
|
|
|
this.getTeaserUrl = function ()
|
|
{
|
|
var teaserPath =
|
|
escape (this.titel) + '/' +
|
|
this.streckeId.substr (this.streckeId.length-2) + '/' +
|
|
this.streckeId;
|
|
|
|
return FRONT_URL + teaserPath + '.jpeg';
|
|
}
|
|
|
|
this.getThumbUrl = function ()
|
|
{
|
|
return FRONT_URL + this.path + 'T.jpeg';
|
|
}
|
|
|
|
this.getScreenUrl = function ()
|
|
{
|
|
return FRONT_URL + this.path + 'S.jpeg';
|
|
}
|
|
|
|
this.getDownlUrl = function ()
|
|
{
|
|
return FRONT_URL + this.path + '.jpeg';
|
|
}
|
|
|
|
this.getShowUrl = function ()
|
|
{
|
|
return FRONT_URL + this.path + '.html';
|
|
}
|
|
|
|
nBildertool.strecke.baseConstructor.call (this, data);
|
|
}
|
|
|
|
nBildertool.extend (nBildertool.strecke, nBildertool.c_xmlify);
|