Ejemplo n.º 1
0
        $this->strDateModified = $this->ctlAdvanced->DateModified;
        $this->strDateModifiedFirst = $this->ctlAdvanced->DateModifiedFirst;
        $this->strDateModifiedLast = $this->ctlAdvanced->DateModifiedLast;
        $this->blnAttachment = $this->ctlAdvanced->Attachment;
        $this->arrCustomFields = $this->ctlAdvanced->CustomFieldArray;
        if ($this->arrCustomFields) {
            foreach ($this->arrCustomFields as &$field) {
                if ($field['input'] instanceof QListBox) {
                    $field['value'] = $field['input']->SelectedValue;
                } else {
                    if ($field['input'] instanceof QTextBox) {
                        $field['value'] = $field['input']->Text;
                    }
                }
            }
        }
    }
    public function btnMassEditCancel_Click()
    {
        $this->dlgMassEdit->HideDialogBox();
    }
    // Save Button Click Actions
    public function btnMassEditApply_Click($strFormId, $strControlId, $strParameter)
    {
        $this->pnlContactEdit->btnMassEditApply_Click($strFormId, $strControlId, $strParameter);
        //	$this->dlgMassEdit->HideDialogBox();
        //	QApplication::Redirect('');
    }
}
ContactListForm::Run('ContactListForm', __DOCROOT__ . __SUBDIRECTORY__ . '/contacts/contact_list.tpl.php');
Ejemplo n.º 2
0
        $intTotalCount = count($this->lstMapHeaderArray) - 1;
        if ($intId < count($this->lstMapHeaderArray) - 2) {
            for ($i = $intId; $i < count($this->lstMapHeaderArray) - 1; $i++) {
                $this->lstMapHeaderArray[$i] = $this->lstMapHeaderArray[$i + 1];
                if (isset($this->txtMapDefaultValueArray[$i + 1])) {
                    $this->txtMapDefaultValueArray[$i] = $this->txtMapDefaultValueArray[$i + 1];
                    $this->lstMapDefaultValueArray[$i] = $this->lstMapDefaultValueArray[$i + 1];
                    $this->dtpDateArray[$i] = $this->dtpDateArray[$i + 1];
                    $this->btnRemoveArray[$i] = $this->btnRemoveArray[$i + 1];
                    $this->btnRemoveArray[$i]->ActionParameter = $i;
                } else {
                    unset($this->txtMapDefaultValueArray[$i]);
                    unset($this->lstMapDefaultValueArray[$i]);
                    unset($this->dtpDateArray[$i]);
                    unset($this->btnRemoveArray[$i]);
                }
            }
            unset($this->lstMapHeaderArray[$intTotalCount]);
        } else {
            $this->lstMapHeaderArray[$intId] = $this->lstMapHeaderArray[$intId + 1];
            unset($this->lstMapHeaderArray[$intId + 1]);
            unset($this->txtMapDefaultValueArray[$intId]);
            unset($this->lstMapDefaultValueArray[$intId]);
            unset($this->dtpDateArray[$intId]);
            unset($this->btnRemoveArray[$intId]);
        }
    }
}
// Go ahead and run this form object to generate the page
ContactListForm::Run('ContactListForm', 'contact_import.tpl.php');
Ejemplo n.º 3
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 ContactListFormBase
require __FORMBASE_CLASSES__ . '/ContactListFormBase.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 the List All functionality
 * of the Contact class.  It extends from the code-generated
 * abstract ContactListFormBase 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 ContactListForm extends ContactListFormBase
{
}
// Go ahead and run this form object to generate the page and event handlers, using
// generated/contact_list.tpl.php as the included HTML template file
ContactListForm::Run('ContactListForm', 'generated/contact_list.tpl.php');