Some very old PHP code originally intended to become an image management tool.
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.
 
 
 
 
 
 

70 lines
1.8 KiB

function c_person (personId, photographerId, ownerId, firstname, surname,
company, email, url, cameraId, wmWidth, wmHeight, wmXPos, wmYPos)
{
this.personId = personId;
this.photographerId = photographerId;
this.ownerId = ownerId;
this.firstname = firstname;
this.surname = surname;
this.company = company;
this.email = email;
this.url = url;
this.cameraId = cameraId;
this.wmWidth = wmWidth;
this.wmHeight = wmHeight;
this.wmXPos = wmXPos;
this.wmYPos = wmYPos;
this.personForm = null;
this.connect = function (personForm)
{
this.personForm = personForm;
}
this.reset = function ()
{
if (this.personId != -1)
{
this.personId = -1;
this.photographerId = -1;
this.ownerId = -1;
this.firstname = '';
this.surname = '';
this.company = '';
this.email = '';
this.url = '';
this.cameraId = -1;
this.wmWidth = '';
this.wmHeight = '';
this.wmXPos = '';
this.wmYPos = '';
if (this.personForm != null)
this.personForm.updateForm ();
}
}
this.update = function (p)
{
if (this.personId != p.personId)
{
this.personId = p.personId;
this.photographerId = p.photographerId;
this.ownerId = p.ownerId;
this.firstname = p.firstname;
this.surname = p.surname;
this.company = p.company;
this.email = p.email;
this.url = p.url;
this.cameraId = p.cameraId;
this.wmWidth = p.wmWidth;
this.wmHeight = p.wmHeight;
this.wmXPos = p.wmXPos;
this.wmYPos = p.wmYPos;
if (this.personForm != null)
this.personForm.updateForm ();
}
}
}