$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 AdminLabelsForm::Run('AdminLabelsForm', 'asset_import.tpl.php');
$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 AdminLabelsForm::Run('AdminLabelsForm', 'category_import.tpl.php');
$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 AdminLabelsForm::Run('AdminLabelsForm', 'manufacturer_import.tpl.php');
} // Close and save PDF document $pdf->Output(".." . __TRACMOR_TMP__ . "/" . $_SESSION['intUserAccountId'] . "_BarCodes.pdf", "F"); // Cleaning up $this->btnCancel_Click(); // Uncheck all items but SelectAll checkbox foreach ($this->GetAllControls() as $objControl) { if (substr($objControl->ControlId, 0, 11) == 'chkSelected') { $objControl->Checked = false; } } $arrDataGridObjectNameId = $this->ctlSearchMenu->GetDataGridObjectNameId(); // Uncheck SelectAll checkbox $this->ctlSearchMenu->{$arrDataGridObjectNameId}[0]->chkSelectAll->Checked = false; // Open generated PDF in new window QApplication::ExecuteJavaScript("window.open('.." . __TRACMOR_TMP__ . "/" . $_SESSION['intUserAccountId'] . "_BarCodes.pdf','Barcodes','resizeable,menubar=1,scrollbar=1,left=0,top=0,width=800,height=600');"); } } else { // Cleaning up $this->btnCancel_Click(); } } } else { $this->lstLabelStock->Warning = "Please select one"; $this->lstLabelStock->Enabled = true; } } } // Go ahead and run this form object to generate the page AdminLabelsForm::Run('AdminLabelsForm', 'labels.tpl.php');
$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 AdminLabelsForm::Run('AdminLabelsForm', 'location_import.tpl.php');