Page_Init(); // Page main $tassigment_grid->Page_Main(); // Global Page Rendering event (in userfn*.php) Page_Rendering(); // Page Rendering event $tassigment_grid->Page_Render(); ?> Export == "") { ?> CurrentAction == "gridadd") { if ($tassigment->CurrentMode == "copy") { $bSelectLimit = $tassigment_grid->UseSelectLimit; if ($bSelectLimit) { $tassigment_grid->TotalRecs = $tassigment->SelectRecordCount(); $tassigment_grid->Recordset = $tassigment_grid->LoadRecordset($tassigment_grid->StartRec-1, $tassigment_grid->DisplayRecs); } else { if ($tassigment_grid->Recordset = $tassigment_grid->LoadRecordset()) $tassigment_grid->TotalRecs = $tassigment_grid->Recordset->RecordCount(); } $tassigment_grid->StartRec = 1; $tassigment_grid->DisplayRecs = $tassigment_grid->TotalRecs; } else { $tassigment->CurrentFilter = "0=1"; $tassigment_grid->StartRec = 1; $tassigment_grid->DisplayRecs = $tassigment->GridAddRowCount; } $tassigment_grid->TotalRecs = $tassigment_grid->DisplayRecs; $tassigment_grid->StopRec = $tassigment_grid->DisplayRecs; } else { $bSelectLimit = $tassigment_grid->UseSelectLimit; if ($bSelectLimit) { if ($tassigment_grid->TotalRecs <= 0) $tassigment_grid->TotalRecs = $tassigment->SelectRecordCount(); } else { if (!$tassigment_grid->Recordset && ($tassigment_grid->Recordset = $tassigment_grid->LoadRecordset())) $tassigment_grid->TotalRecs = $tassigment_grid->Recordset->RecordCount(); } $tassigment_grid->StartRec = 1; $tassigment_grid->DisplayRecs = $tassigment_grid->TotalRecs; // Display all records if ($bSelectLimit) $tassigment_grid->Recordset = $tassigment_grid->LoadRecordset($tassigment_grid->StartRec-1, $tassigment_grid->DisplayRecs); // Set no record found message if ($tassigment->CurrentAction == "" && $tassigment_grid->TotalRecs == 0) { if (!$Security->CanList()) $tassigment_grid->setWarningMessage(ew_DeniedMsg()); if ($tassigment_grid->SearchWhere == "0=101") $tassigment_grid->setWarningMessage($Language->Phrase("EnterSearchCriteria")); else $tassigment_grid->setWarningMessage($Language->Phrase("NoRecord")); } } $tassigment_grid->RenderOtherOptions(); ?> ShowPageHeader(); ?> ShowMessage(); ?> TotalRecs > 0 || $tassigment->CurrentAction <> "") { ?>
ShowOtherOptions) { ?>
OtherOptions as &$option) $option->Render("body"); ?>
ewGridMiddlePanel"> TableCustomInnerHtml ?> RowType = EW_ROWTYPE_HEADER; // Render list options $tassigment_grid->RenderListOptions(); // Render list options (header, left) $tassigment_grid->ListOptions->Render("header", "left"); ?> idkAccomodation->Visible) { // idkAccomodation ?> SortUrl($tassigment->idkAccomodation) == "") { ?> idkSeeker->Visible) { // idkSeeker ?> SortUrl($tassigment->idkSeeker) == "") { ?> Date_ass->Visible) { // Date_ass ?> SortUrl($tassigment->Date_ass) == "") { ?> Date_end->Visible) { // Date_end ?> SortUrl($tassigment->Date_end) == "") { ?> ListOptions->Render("header", "right"); ?> StartRec = 1; $tassigment_grid->StopRec = $tassigment_grid->TotalRecs; // Show all records // Restore number of post back records if ($objForm) { $objForm->Index = -1; if ($objForm->HasValue($tassigment_grid->FormKeyCountName) && ($tassigment->CurrentAction == "gridadd" || $tassigment->CurrentAction == "gridedit" || $tassigment->CurrentAction == "F")) { $tassigment_grid->KeyCount = $objForm->GetValue($tassigment_grid->FormKeyCountName); $tassigment_grid->StopRec = $tassigment_grid->StartRec + $tassigment_grid->KeyCount - 1; } } $tassigment_grid->RecCnt = $tassigment_grid->StartRec - 1; if ($tassigment_grid->Recordset && !$tassigment_grid->Recordset->EOF) { $tassigment_grid->Recordset->MoveFirst(); $bSelectLimit = $tassigment_grid->UseSelectLimit; if (!$bSelectLimit && $tassigment_grid->StartRec > 1) $tassigment_grid->Recordset->Move($tassigment_grid->StartRec - 1); } elseif (!$tassigment->AllowAddDeleteRow && $tassigment_grid->StopRec == 0) { $tassigment_grid->StopRec = $tassigment->GridAddRowCount; } // Initialize aggregate $tassigment->RowType = EW_ROWTYPE_AGGREGATEINIT; $tassigment->ResetAttrs(); $tassigment_grid->RenderRow(); if ($tassigment->CurrentAction == "gridadd") $tassigment_grid->RowIndex = 0; if ($tassigment->CurrentAction == "gridedit") $tassigment_grid->RowIndex = 0; while ($tassigment_grid->RecCnt < $tassigment_grid->StopRec) { $tassigment_grid->RecCnt++; if (intval($tassigment_grid->RecCnt) >= intval($tassigment_grid->StartRec)) { $tassigment_grid->RowCnt++; if ($tassigment->CurrentAction == "gridadd" || $tassigment->CurrentAction == "gridedit" || $tassigment->CurrentAction == "F") { $tassigment_grid->RowIndex++; $objForm->Index = $tassigment_grid->RowIndex; if ($objForm->HasValue($tassigment_grid->FormActionName)) $tassigment_grid->RowAction = strval($objForm->GetValue($tassigment_grid->FormActionName)); elseif ($tassigment->CurrentAction == "gridadd") $tassigment_grid->RowAction = "insert"; else $tassigment_grid->RowAction = ""; } // Set up key count $tassigment_grid->KeyCount = $tassigment_grid->RowIndex; // Init row class and style $tassigment->ResetAttrs(); $tassigment->CssClass = ""; if ($tassigment->CurrentAction == "gridadd") { if ($tassigment->CurrentMode == "copy") { $tassigment_grid->LoadRowValues($tassigment_grid->Recordset); // Load row values $tassigment_grid->SetRecordKey($tassigment_grid->RowOldKey, $tassigment_grid->Recordset); // Set old record key } else { $tassigment_grid->LoadDefaultValues(); // Load default values $tassigment_grid->RowOldKey = ""; // Clear old key value } } else { $tassigment_grid->LoadRowValues($tassigment_grid->Recordset); // Load row values } $tassigment->RowType = EW_ROWTYPE_VIEW; // Render view if ($tassigment->CurrentAction == "gridadd") // Grid add $tassigment->RowType = EW_ROWTYPE_ADD; // Render add if ($tassigment->CurrentAction == "gridadd" && $tassigment->EventCancelled && !$objForm->HasValue("k_blankrow")) // Insert failed $tassigment_grid->RestoreCurrentRowFormValues($tassigment_grid->RowIndex); // Restore form values if ($tassigment->CurrentAction == "gridedit") { // Grid edit if ($tassigment->EventCancelled) { $tassigment_grid->RestoreCurrentRowFormValues($tassigment_grid->RowIndex); // Restore form values } if ($tassigment_grid->RowAction == "insert") $tassigment->RowType = EW_ROWTYPE_ADD; // Render add else $tassigment->RowType = EW_ROWTYPE_EDIT; // Render edit } if ($tassigment->CurrentAction == "gridedit" && ($tassigment->RowType == EW_ROWTYPE_EDIT || $tassigment->RowType == EW_ROWTYPE_ADD) && $tassigment->EventCancelled) // Update failed $tassigment_grid->RestoreCurrentRowFormValues($tassigment_grid->RowIndex); // Restore form values if ($tassigment->RowType == EW_ROWTYPE_EDIT) // Edit row $tassigment_grid->EditRowCnt++; if ($tassigment->CurrentAction == "F") // Confirm row $tassigment_grid->RestoreCurrentRowFormValues($tassigment_grid->RowIndex); // Restore form values // Set up row id / data-rowindex $tassigment->RowAttrs = array_merge($tassigment->RowAttrs, array('data-rowindex'=>$tassigment_grid->RowCnt, 'id'=>'r' . $tassigment_grid->RowCnt . '_tassigment', 'data-rowtype'=>$tassigment->RowType)); // Render row $tassigment_grid->RenderRow(); // Render list options $tassigment_grid->RenderListOptions(); // Skip delete row / empty row for confirm page if ($tassigment_grid->RowAction <> "delete" && $tassigment_grid->RowAction <> "insertdelete" && !($tassigment_grid->RowAction == "insert" && $tassigment->CurrentAction == "F" && $tassigment_grid->EmptyRow())) { ?> RowAttributes() ?>> ListOptions->Render("body", "left", $tassigment_grid->RowCnt); ?> idkAccomodation->Visible) { // idkAccomodation ?> RowType == EW_ROWTYPE_ADD) { // Add record ?> RowType == EW_ROWTYPE_EDIT || $tassigment->CurrentMode == "edit") { ?> idkSeeker->Visible) { // idkSeeker ?> Date_ass->Visible) { // Date_ass ?> Date_end->Visible) { // Date_end ?> ListOptions->Render("body", "right", $tassigment_grid->RowCnt); ?> RowType == EW_ROWTYPE_ADD || $tassigment->RowType == EW_ROWTYPE_EDIT) { ?> CurrentAction <> "gridadd" || $tassigment->CurrentMode == "copy") if (!$tassigment_grid->Recordset->EOF) $tassigment_grid->Recordset->MoveNext(); } ?> CurrentMode == "add" || $tassigment->CurrentMode == "copy" || $tassigment->CurrentMode == "edit") { $tassigment_grid->RowIndex = '$rowindex$'; $tassigment_grid->LoadDefaultValues(); // Set row properties $tassigment->ResetAttrs(); $tassigment->RowAttrs = array_merge($tassigment->RowAttrs, array('data-rowindex'=>$tassigment_grid->RowIndex, 'id'=>'r0_tassigment', 'data-rowtype'=>EW_ROWTYPE_ADD)); ew_AppendClass($tassigment->RowAttrs["class"], "ewTemplate"); $tassigment->RowType = EW_ROWTYPE_ADD; // Render row $tassigment_grid->RenderRow(); // Render list options $tassigment_grid->RenderListOptions(); $tassigment_grid->StartRowCnt = 0; ?> RowAttributes() ?>> ListOptions->Render("body", "left", $tassigment_grid->RowIndex); ?> idkAccomodation->Visible) { // idkAccomodation ?> idkSeeker->Visible) { // idkSeeker ?> Date_ass->Visible) { // Date_ass ?> Date_end->Visible) { // Date_end ?> ListOptions->Render("body", "right", $tassigment_grid->RowCnt); ?>
idkAccomodation->FldCaption() ?>
idkAccomodation->FldCaption() ?>idkAccomodation->getSort() == "ASC") { ?>idkAccomodation->getSort() == "DESC") { ?>
idkSeeker->FldCaption() ?>
idkSeeker->FldCaption() ?>idkSeeker->getSort() == "ASC") { ?>idkSeeker->getSort() == "DESC") { ?>
Date_ass->FldCaption() ?>
Date_ass->FldCaption() ?>Date_ass->getSort() == "ASC") { ?>Date_ass->getSort() == "DESC") { ?>
Date_end->FldCaption() ?>
Date_end->FldCaption() ?>Date_end->getSort() == "ASC") { ?>Date_end->getSort() == "DESC") { ?>
idkAccomodation->CellAttributes() ?>> RowType == EW_ROWTYPE_ADD) { // Add record ?> idkAccomodation->getSessionValue() <> "") { ?> idkAccomodation->ViewAttributes() ?>> idkAccomodation->ViewValue)) && $tassigment->idkAccomodation->LinkAttributes() <> "") { ?> idkAccomodation->LinkAttributes() ?>>

idkAccomodation->ViewValue ?>

idkAccomodation->ViewValue ?>

idkAccomodation->EditAttrs["onchange"]); if ($wrkonchange <> "") $wrkonchange = " onchange=\"" . ew_JsEncode2($wrkonchange) . "\""; $tassigment->idkAccomodation->EditAttrs["onchange"] = ""; ?> idkAccomodation->EditAttributes() ?>> > RowType == EW_ROWTYPE_EDIT) { // Edit record ?> idkAccomodation->getSessionValue() <> "") { ?> idkAccomodation->ViewAttributes() ?>> idkAccomodation->ViewValue)) && $tassigment->idkAccomodation->LinkAttributes() <> "") { ?> idkAccomodation->LinkAttributes() ?>>

idkAccomodation->ViewValue ?>

idkAccomodation->ViewValue ?>

idkAccomodation->EditAttrs["onchange"]); if ($wrkonchange <> "") $wrkonchange = " onchange=\"" . ew_JsEncode2($wrkonchange) . "\""; $tassigment->idkAccomodation->EditAttrs["onchange"] = ""; ?> idkAccomodation->EditAttributes() ?>> > RowType == EW_ROWTYPE_VIEW) { // View record ?> idkAccomodation->ViewAttributes() ?>> idkAccomodation->ListViewValue())) && $tassigment->idkAccomodation->LinkAttributes() <> "") { ?> idkAccomodation->LinkAttributes() ?>>idkAccomodation->ListViewValue() ?> idkAccomodation->ListViewValue() ?> CurrentAction <> "F") { ?> RowCnt ?>">
idkSeeker->CellAttributes() ?>> RowType == EW_ROWTYPE_ADD) { // Add record ?> idkSeeker->getSessionValue() <> "") { ?> idkSeeker->ViewAttributes() ?>> idkSeeker->ViewValue)) && $tassigment->idkSeeker->LinkAttributes() <> "") { ?> idkSeeker->LinkAttributes() ?>>

idkSeeker->ViewValue ?>

idkSeeker->ViewValue ?>

idkSeeker->EditAttrs["onchange"]); if ($wrkonchange <> "") $wrkonchange = " onchange=\"" . ew_JsEncode2($wrkonchange) . "\""; $tassigment->idkSeeker->EditAttrs["onchange"] = ""; ?> idkSeeker->EditAttributes() ?>> > RowType == EW_ROWTYPE_EDIT) { // Edit record ?> idkSeeker->getSessionValue() <> "") { ?> idkSeeker->ViewAttributes() ?>> idkSeeker->ViewValue)) && $tassigment->idkSeeker->LinkAttributes() <> "") { ?> idkSeeker->LinkAttributes() ?>>

idkSeeker->ViewValue ?>

idkSeeker->ViewValue ?>

idkSeeker->EditAttrs["onchange"]); if ($wrkonchange <> "") $wrkonchange = " onchange=\"" . ew_JsEncode2($wrkonchange) . "\""; $tassigment->idkSeeker->EditAttrs["onchange"] = ""; ?> idkSeeker->EditAttributes() ?>> > RowType == EW_ROWTYPE_VIEW) { // View record ?> idkSeeker->ViewAttributes() ?>> idkSeeker->ListViewValue())) && $tassigment->idkSeeker->LinkAttributes() <> "") { ?> idkSeeker->LinkAttributes() ?>>idkSeeker->ListViewValue() ?> idkSeeker->ListViewValue() ?> CurrentAction <> "F") { ?>
Date_ass->CellAttributes() ?>> RowType == EW_ROWTYPE_ADD) { // Add record ?> Date_ass->EditAttributes() ?>> Date_ass->ReadOnly && !$tassigment->Date_ass->Disabled && !isset($tassigment->Date_ass->EditAttrs["readonly"]) && !isset($tassigment->Date_ass->EditAttrs["disabled"])) { ?> RowType == EW_ROWTYPE_EDIT) { // Edit record ?> Date_ass->EditAttributes() ?>> Date_ass->ReadOnly && !$tassigment->Date_ass->Disabled && !isset($tassigment->Date_ass->EditAttrs["readonly"]) && !isset($tassigment->Date_ass->EditAttrs["disabled"])) { ?> RowType == EW_ROWTYPE_VIEW) { // View record ?> Date_ass->ViewAttributes() ?>> Date_ass->ListViewValue() ?> CurrentAction <> "F") { ?> Date_end->CellAttributes() ?>> RowType == EW_ROWTYPE_ADD) { // Add record ?> Date_end->EditAttributes() ?>> Date_end->ReadOnly && !$tassigment->Date_end->Disabled && !isset($tassigment->Date_end->EditAttrs["readonly"]) && !isset($tassigment->Date_end->EditAttrs["disabled"])) { ?> RowType == EW_ROWTYPE_EDIT) { // Edit record ?> Date_end->EditAttributes() ?>> Date_end->ReadOnly && !$tassigment->Date_end->Disabled && !isset($tassigment->Date_end->EditAttrs["readonly"]) && !isset($tassigment->Date_end->EditAttrs["disabled"])) { ?> RowType == EW_ROWTYPE_VIEW) { // View record ?> Date_end->ViewAttributes() ?>> Date_end->ListViewValue() ?> CurrentAction <> "F") { ?>
CurrentAction <> "F") { ?> idkAccomodation->getSessionValue() <> "") { ?> idkAccomodation->ViewAttributes() ?>> idkAccomodation->ViewValue)) && $tassigment->idkAccomodation->LinkAttributes() <> "") { ?> idkAccomodation->LinkAttributes() ?>>

idkAccomodation->ViewValue ?>

idkAccomodation->ViewValue ?>

idkAccomodation->EditAttrs["onchange"]); if ($wrkonchange <> "") $wrkonchange = " onchange=\"" . ew_JsEncode2($wrkonchange) . "\""; $tassigment->idkAccomodation->EditAttrs["onchange"] = ""; ?> idkAccomodation->EditAttributes() ?>> > idkAccomodation->ViewAttributes() ?>> idkAccomodation->ViewValue)) && $tassigment->idkAccomodation->LinkAttributes() <> "") { ?> idkAccomodation->LinkAttributes() ?>>

idkAccomodation->ViewValue ?>

idkAccomodation->ViewValue ?>

CurrentAction <> "F") { ?> idkSeeker->getSessionValue() <> "") { ?> idkSeeker->ViewAttributes() ?>> idkSeeker->ViewValue)) && $tassigment->idkSeeker->LinkAttributes() <> "") { ?> idkSeeker->LinkAttributes() ?>>

idkSeeker->ViewValue ?>

idkSeeker->ViewValue ?>

idkSeeker->EditAttrs["onchange"]); if ($wrkonchange <> "") $wrkonchange = " onchange=\"" . ew_JsEncode2($wrkonchange) . "\""; $tassigment->idkSeeker->EditAttrs["onchange"] = ""; ?> idkSeeker->EditAttributes() ?>> > idkSeeker->ViewAttributes() ?>> idkSeeker->ViewValue)) && $tassigment->idkSeeker->LinkAttributes() <> "") { ?> idkSeeker->LinkAttributes() ?>>

idkSeeker->ViewValue ?>

idkSeeker->ViewValue ?>

CurrentAction <> "F") { ?> Date_ass->EditAttributes() ?>> Date_ass->ReadOnly && !$tassigment->Date_ass->Disabled && !isset($tassigment->Date_ass->EditAttrs["readonly"]) && !isset($tassigment->Date_ass->EditAttrs["disabled"])) { ?> Date_ass->ViewAttributes() ?>>

Date_ass->ViewValue ?>

CurrentAction <> "F") { ?> Date_end->EditAttributes() ?>> Date_end->ReadOnly && !$tassigment->Date_end->Disabled && !isset($tassigment->Date_end->EditAttrs["readonly"]) && !isset($tassigment->Date_end->EditAttrs["disabled"])) { ?> Date_end->ViewAttributes() ?>>

Date_end->ViewValue ?>

CurrentMode == "add" || $tassigment->CurrentMode == "copy") { ?> MultiSelectKey ?> CurrentMode == "edit") { ?> MultiSelectKey ?> CurrentMode == "") { ?>
Recordset) $tassigment_grid->Recordset->Close(); ?> ShowOtherOptions) { ?>
TotalRecs == 0 && $tassigment->CurrentAction == "") { // Show other options ?>
OtherOptions as &$option) { $option->ButtonClass = ""; $option->Render("body", ""); } ?>
Export == "") { ?> ShowPageFooter(); if (EW_DEBUG_ENABLED) echo ew_DebugMsg(); ?> Page_Terminate(); ?>