Login   Register  
PHP Classes
elePHPant
Icontem

File: Security/Admin/Notes/trgrs_FormData.js.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Michael J. Fuhrman  >  Security  >  Security/Admin/Notes/trgrs_FormData.js.php  >  Download  
File: Security/Admin/Notes/trgrs_FormData.js.php
Role: Example script
Content type: text/plain
Description: Javascript functions for the Form Data
Class: Security
Manage user accounts and access controls
Author: By
Last change:
Date: 2010-08-27 16:36
Size: 1,232 bytes
 

Contents

Class file image Download
/*    =======================================
    Copyright 1998 - 2010 - E Net Arch
    This program is distributed under the terms of the GNU
    General Public License (or the Lesser GPL).
    www.ENetArch.net
    ======================================= */

<?
    $szNameSpace 
"ENetArch_Panel_Content";
    if (isset (
$_REQUEST["szNameSpace"]))
        
$szNameSpace $_REQUEST["szNameSpace"];

    
$aryNameSpace explode ("."$szNameSpace);
    
$szParent $szNameSpace;
    
$szApp implode ("."array_slice ($aryNameSpace0count ($aryNameSpace) -1));
?>

<?= $szNameSpace ?>.cmdAdd = function (thsForm)
{
    szParams =
        "nID=" + <?= $szParent ?>.nCurrentID + "&" +
        "szNameSpace=" + <?= $szParent ?>.szNameSpace + "&" +
        <?= $szApp ?>.getFormData (thsForm) ;

    <?= $szApp ?>.postPanel ("Notes/add.php", this.divTarget, szParams);
    <?= $szApp ?>.selected (this.nCurrentID);
};

<?= $szNameSpace ?>.cmdUpdate = function (thsForm)
{
    szParams =
        "nID=" + <?= $szParent ?>.nCurrentID + "&" +
        "szNameSpace=" + <?= $szParent ?>.szNameSpace + "&" +
        <?= $szApp ?>.getFormData (thsForm) ;

    <?= $szApp ?>.postPanel ("Notes/update.php", this.divTarget, szParams);
    <?= $szApp ?>.selected (<?= $szParent ?>.nCurrentID);
};