Esempio n. 1
0
    // Select/deselect all View Column.
    protected function chkEntityView_Click($strFormId, $strControlId, $strParameter)
    {
        $chkEntityView = $this->GetControl($strControlId);
        // If we uncheck chkEntityView, we must uncheck all the View Column
        if (!$chkEntityView->Checked) {
            //$strParameter = Name of the current Panel
            $this->{$strParameter}->UnCheckViewColumn();
            //but we always have to leave the chkBuiltInView checked
            $this->{$strParameter}->chkBuiltInView->Checked = true;
        } else {
            $this->{$strParameter}->CheckViewColumn();
        }
    }
    // Select/deselect all Edit Column
    protected function chkEntityEdit_Click($strFormId, $strControlId, $strParameter)
    {
        $chkEntityEdit = $this->GetControl($strControlId);
        // If we uncheck $chkEntityEdit, we must uncheck all the Edit Column
        if (!$chkEntityEdit->Checked) {
            //$strParameter = Name of the current Panel
            $this->{$strParameter}->UnCheckEditColumn();
        } else {
            $this->{$strParameter}->CheckEditColumn();
        }
    }
}
// Go ahead and run this form object to render the page and its event handlers, using
// generated/role_edit.php.inc as the included HTML template file
RoleEditForm::Run('RoleEditForm', __DOCROOT__ . __SUBDIRECTORY__ . '/admin/role_edit.tpl.php');
Esempio n. 2
0
// Include prepend.inc to load Qcodo
require '../includes/prepend.inc.php';
/* if you DO NOT have "includes/" in your include_path */
// require('prepend.inc.php');				/* if you DO have "includes/" in your include_path */
// Include the classfile for RoleEditFormBase
require __FORMBASE_CLASSES__ . '/RoleEditFormBase.class.php';
// Security check for ALLOW_REMOTE_ADMIN
// To allow access REGARDLESS of ALLOW_REMOTE_ADMIN, simply remove the line below
QApplication::CheckRemoteAdmin();
/**
 * This is a quick-and-dirty draft form object to do Create, Edit, and Delete functionality
 * of the Role class.  It extends from the code-generated
 * abstract RoleEditFormBase class.
 *
 * Any display customizations and presentation-tier logic can be implemented
 * here by overriding existing or implementing new methods, properties and variables.
 *
 * Additional qform control objects can also be defined and used here, as well.
 * 
 * @package My Application
 * @subpackage FormDraftObjects
 * 
 */
class RoleEditForm extends RoleEditFormBase
{
}
// Go ahead and run this form object to render the page and its event handlers, using
// generated/role_edit.tpl.php as the included HTML template file
RoleEditForm::Run('RoleEditForm', 'generated/role_edit.tpl.php');