/* =======================================
Copyright 1998 - 2010 - E Net Arch
This program is distributed under the terms of the GNU
General Public License (or the Lesser GPL).
======================================= */
var ENetArch =
{
People :
{
nFolderID : 0,
nPos : 0,
onCheckID : function (me) { this.nPos = me.value; },
List : function () { location="List.php?nFolderID=" + this.nFolderID + "&"; } ,
New : function () { location="New.php?nFolderID=" + this.nFolderID + "&"; } ,
View : function () { location="View.php?nFolderID=" + this.nFolderID + "&nPos=" + this.nPos + "&"; } ,
Edit : function () { location="Edit.php?nFolderID=" + this.nFolderID + "&nPos=" + this.nPos + "&"; } ,
Delete : function ()
{
me = $("ENetArch_People_Form");
me.action="Delete.php?nFolderID=" + this.nFolderID + "&";
me.method="post";
me.submit();
} ,
AddNew : function (me)
{
me.action="add.php?nFolderID=" + this.nFolderID + "&";
me.method="post";
me.submit();
} ,
Update : function (me)
{
me.action="update.php?nFolderID=" + this.nFolderID + "&nPos=" + this.nPos + "&";
me.method="post";
me.submit();
} ,
gotoPage : function (n)
{
$("ENetArch_People_nPage").value = n;
me = $("ENetArch_People_Form");
me.action="list.php?nFolderID=" + this.nFolderID + "&";
me.method="post";
me.submit();
},
pageSize : function ()
{
me = $("ENetArch_People_Form");
me.action="list.php?nFolderID=" + this.nFolderID + "&";
me.method="post";
me.submit();
},
},
}
/* =======================================
Note: if your form won't submit when me.submit is called,
you must add a submit button to your form. It's an HTML
quirk =(...
======================================= */
|