$srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("jalan_id");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "jalan_id";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
     $xt->assign_section("jalan_id_label", "<label for=\"" . GetInputElementId("jalan_id", $id, PAGE_SEARCH) . "\">", "</label>");
 } else {
     $xt->assign("jalan_id_label", true);
 }
 $xt->assign("jalan_id_fieldblock", true);
 $xt->assignbyref("jalan_id_editcontrol", $ctrlBlockArr['searchcontrol']);
 $xt->assign("jalan_id_notbox", $ctrlBlockArr['notbox']);
 // create second control, if need it
 $xt->assignbyref("jalan_id_editcontrol1", $ctrlBlockArr['searchcontrol1']);
 // create search type select
 $xt->assign("searchtype_jalan_id", $ctrlBlockArr['searchtype']);
 $isFieldNeedSecCtrl = $searchControlBuilder->isNeedSecondCtrl("jalan_id");
 $ctrlInd = 0;
 if ($isFieldNeedSecCtrl) {
     $pageObject->controlsMap["search"]["searchBlocks"][] = array('fName' => "jalan_id", 'recId' => $id, 'ctrlsMap' => array(0 => $ctrlInd, 1 => $ctrlInd + 1));
     $ctrlInd += 2;
Example #2
0
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("bulan_telat");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "bulan_telat";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
     $xt->assign_section("bulan_telat_label", "<label for=\"" . GetInputElementId("bulan_telat", $id, PAGE_SEARCH) . "\">", "</label>");
 } else {
     $xt->assign("bulan_telat_label", true);
 }
 $xt->assign("bulan_telat_fieldblock", true);
 $xt->assignbyref("bulan_telat_editcontrol", $ctrlBlockArr['searchcontrol']);
 $xt->assign("bulan_telat_notbox", $ctrlBlockArr['notbox']);
 // create second control, if need it
 $xt->assignbyref("bulan_telat_editcontrol1", $ctrlBlockArr['searchcontrol1']);
 // create search type select
 $xt->assign("searchtype_bulan_telat", $ctrlBlockArr['searchtype']);
 $isFieldNeedSecCtrl = $searchControlBuilder->isNeedSecondCtrl("bulan_telat");
 $ctrlInd = 0;
 if ($isFieldNeedSecCtrl) {
     $pageObject->controlsMap["search"]["searchBlocks"][] = array('fName' => "bulan_telat", 'recId' => $id, 'ctrlsMap' => array(0 => $ctrlInd, 1 => $ctrlInd + 1));
     $ctrlInd += 2;
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("PerUnit Price");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "PerUnit Price";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
     $xt->assign_section("PerUnit_Price_label", "<label for=\"" . GetInputElementId("PerUnit Price", $id) . "\">", "</label>");
 } else {
     $xt->assign("PerUnit_Price_label", true);
 }
 $xt->assign("PerUnit_Price_fieldblock", true);
 $xt->assignbyref("PerUnit_Price_editcontrol", $ctrlBlockArr['searchcontrol']);
 $xt->assign("PerUnit_Price_notbox", $ctrlBlockArr['notbox']);
 // create second control, if need it
 $xt->assignbyref("PerUnit_Price_editcontrol1", $ctrlBlockArr['searchcontrol1']);
 // create search type select
 $xt->assign("searchtype_PerUnit_Price", $ctrlBlockArr['searchtype']);
 $isFieldNeedSecCtrl = $searchControlBuilder->isNeedSecondCtrl("PerUnit Price");
 $ctrlInd = 0;
 if ($isFieldNeedSecCtrl) {
     $pageObject->controlsMap["search"]["searchBlocks"][] = array('fName' => "PerUnit Price", 'recId' => $id, 'ctrlsMap' => array(0 => $ctrlInd, 1 => $ctrlInd + 1));
     $ctrlInd += 2;
     $xt->assign("Location_fieldblock", true);
 } else {
     $xt->assign("Location_tabfieldblock", true);
 }
 $xt->assign("Location_label", true);
 if (isEnableSection508()) {
     $xt->assign_section("Location_label", "<label for=\"" . GetInputElementId("Location", $id) . "\">", "</label>");
 }
 if (!$pageObject->isAppearOnTabs("Customer Type")) {
     $xt->assign("Customer_Type_fieldblock", true);
 } else {
     $xt->assign("Customer_Type_tabfieldblock", true);
 }
 $xt->assign("Customer_Type_label", true);
 if (isEnableSection508()) {
     $xt->assign_section("Customer_Type_label", "<label for=\"" . GetInputElementId("Customer Type", $id) . "\">", "</label>");
 }
 $xt->assign("show_key1", htmlspecialchars(GetData($data, "ID", "")));
 //$xt->assign('editForm',true);
 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 //Begin Next Prev button
 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 if (!@$_SESSION[$strTableName . "_noNextPrev"] && $inlineedit == EDIT_SIMPLE) {
     $next = array();
     $prev = array();
     $pageObject->getNextPrevRecordKeys($data, "Edit", $next, $prev);
 }
 $nextlink = $prevlink = "";
 if (count($next)) {
     $xt->assign("next_button", true);
     $nextlink .= "editid1=" . htmlspecialchars(rawurlencode($next[1]));
        $xt->assign("create_uid_fieldblock", true);
    } else {
        $xt->assign("create_uid_tabfieldblock", true);
    }
    $xt->assign("create_uid_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("create_uid_label", "<label for=\"" . GetInputElementId("create_uid", $id, PAGE_ADD) . "\">", "</label>");
    }
    if (!$pageObject->isAppearOnTabs("keterangan")) {
        $xt->assign("keterangan_fieldblock", true);
    } else {
        $xt->assign("keterangan_tabfieldblock", true);
    }
    $xt->assign("keterangan_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("keterangan_label", "<label for=\"" . GetInputElementId("keterangan", $id, PAGE_ADD) . "\">", "</label>");
    }
    if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
        $pageObject->body["begin"] .= $includes;
        $xt->assign("backbutton_attrs", "id=\"backButton" . $id . "\"");
        $xt->assign("back_button", true);
    } else {
        $xt->assign("cancelbutton_attrs", "id=\"cancelButton" . $id . "\"");
        $xt->assign("cancel_button", true);
        $xt->assign("header", "");
    }
    $xt->assign("save_button", true);
}
$xt->assign("savebutton_attrs", "id=\"saveButton" . $id . "\"");
$xt->assign("message_block", true);
$xt->assign("message", $message);
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("tanggal");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "tanggal";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
     $xt->assign_section("tanggal_label", "<label for=\"" . GetInputElementId("tanggal", $id, PAGE_SEARCH) . "\">", "</label>");
 } else {
     $xt->assign("tanggal_label", true);
 }
 $xt->assign("tanggal_fieldblock", true);
 $xt->assignbyref("tanggal_editcontrol", $ctrlBlockArr['searchcontrol']);
 $xt->assign("tanggal_notbox", $ctrlBlockArr['notbox']);
 // create second control, if need it
 $xt->assignbyref("tanggal_editcontrol1", $ctrlBlockArr['searchcontrol1']);
 // create search type select
 $xt->assign("searchtype_tanggal", $ctrlBlockArr['searchtype']);
 $isFieldNeedSecCtrl = $searchControlBuilder->isNeedSecondCtrl("tanggal");
 $ctrlInd = 0;
 if ($isFieldNeedSecCtrl) {
     $pageObject->controlsMap["search"]["searchBlocks"][] = array('fName' => "tanggal", 'recId' => $id, 'ctrlsMap' => array(0 => $ctrlInd, 1 => $ctrlInd + 1));
     $ctrlInd += 2;
Example #7
0
        $xt->assign("review_fieldblock", true);
    } else {
        $xt->assign("review_tabfieldblock", true);
    }
    $xt->assign("review_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("review_label", "<label for=\"" . GetInputElementId("review", $id, PAGE_ADD) . "\">", "</label>");
    }
    if (!$pageObject->isAppearOnTabs("manager")) {
        $xt->assign("manager_fieldblock", true);
    } else {
        $xt->assign("manager_tabfieldblock", true);
    }
    $xt->assign("manager_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("manager_label", "<label for=\"" . GetInputElementId("manager", $id, PAGE_ADD) . "\">", "</label>");
    }
    if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
        $pageObject->body["begin"] .= $includes;
        $xt->assign("backbutton_attrs", "id=\"backButton" . $id . "\"");
        $xt->assign("back_button", true);
    } else {
        $xt->assign("cancelbutton_attrs", "id=\"cancelButton" . $id . "\"");
        $xt->assign("cancel_button", true);
        $xt->assign("header", "");
    }
    $xt->assign("save_button", true);
}
$xt->assign("savebutton_attrs", "id=\"saveButton" . $id . "\"");
$xt->assign("message_block", true);
$xt->assign("message", $message);
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("kartudtnm");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "kartudtnm";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
     $xt->assign_section("kartudtnm_label", "<label for=\"" . GetInputElementId("kartudtnm", $id, PAGE_SEARCH) . "\">", "</label>");
 } else {
     $xt->assign("kartudtnm_label", true);
 }
 $xt->assign("kartudtnm_fieldblock", true);
 $xt->assignbyref("kartudtnm_editcontrol", $ctrlBlockArr['searchcontrol']);
 $xt->assign("kartudtnm_notbox", $ctrlBlockArr['notbox']);
 // create second control, if need it
 $xt->assignbyref("kartudtnm_editcontrol1", $ctrlBlockArr['searchcontrol1']);
 // create search type select
 $xt->assign("searchtype_kartudtnm", $ctrlBlockArr['searchtype']);
 $isFieldNeedSecCtrl = $searchControlBuilder->isNeedSecondCtrl("kartudtnm");
 $ctrlInd = 0;
 if ($isFieldNeedSecCtrl) {
     $pageObject->controlsMap["search"]["searchBlocks"][] = array('fName' => "kartudtnm", 'recId' => $id, 'ctrlsMap' => array(0 => $ctrlInd, 1 => $ctrlInd + 1));
     $ctrlInd += 2;
Example #9
0
        $xt->assign("reklame_kd_fieldblock", true);
    } else {
        $xt->assign("reklame_kd_tabfieldblock", true);
    }
    $xt->assign("reklame_kd_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("reklame_kd_label", "<label for=\"" . GetInputElementId("reklame_kd", $id, PAGE_ADD) . "\">", "</label>");
    }
    if (!$pageObject->isAppearOnTabs("restauran_kd")) {
        $xt->assign("restauran_kd_fieldblock", true);
    } else {
        $xt->assign("restauran_kd_tabfieldblock", true);
    }
    $xt->assign("restauran_kd_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("restauran_kd_label", "<label for=\"" . GetInputElementId("restauran_kd", $id, PAGE_ADD) . "\">", "</label>");
    }
    if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
        $pageObject->body["begin"] .= $includes;
        $xt->assign("backbutton_attrs", "id=\"backButton" . $id . "\"");
        $xt->assign("back_button", true);
    } else {
        $xt->assign("cancelbutton_attrs", "id=\"cancelButton" . $id . "\"");
        $xt->assign("cancel_button", true);
        $xt->assign("header", "");
    }
    $xt->assign("save_button", true);
}
$xt->assign("savebutton_attrs", "id=\"saveButton" . $id . "\"");
$xt->assign("message_block", true);
$xt->assign("message", $message);
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("Currunt Readings");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "Currunt Readings";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
     $xt->assign_section("Currunt_Readings_label", "<label for=\"" . GetInputElementId("Currunt Readings", $id) . "\">", "</label>");
 } else {
     $xt->assign("Currunt_Readings_label", true);
 }
 $xt->assign("Currunt_Readings_fieldblock", true);
 $xt->assignbyref("Currunt_Readings_editcontrol", $ctrlBlockArr['searchcontrol']);
 $xt->assign("Currunt_Readings_notbox", $ctrlBlockArr['notbox']);
 // create second control, if need it
 $xt->assignbyref("Currunt_Readings_editcontrol1", $ctrlBlockArr['searchcontrol1']);
 // create search type select
 $xt->assign("searchtype_Currunt_Readings", $ctrlBlockArr['searchtype']);
 $isFieldNeedSecCtrl = $searchControlBuilder->isNeedSecondCtrl("Currunt Readings");
 $ctrlInd = 0;
 if ($isFieldNeedSecCtrl) {
     $pageObject->controlsMap["search"]["searchBlocks"][] = array('fName' => "Currunt Readings", 'recId' => $id, 'ctrlsMap' => array(0 => $ctrlInd, 1 => $ctrlInd + 1));
     $ctrlInd += 2;
Example #11
0
     $xt->assign("create_uid_fieldblock", true);
 } else {
     $xt->assign("create_uid_tabfieldblock", true);
 }
 $xt->assign("create_uid_label", true);
 if (isEnableSection508()) {
     $xt->assign_section("create_uid_label", "<label for=\"" . GetInputElementId("create_uid", $id, PAGE_EDIT) . "\">", "</label>");
 }
 if (!$pageObject->isAppearOnTabs("update_uid")) {
     $xt->assign("update_uid_fieldblock", true);
 } else {
     $xt->assign("update_uid_tabfieldblock", true);
 }
 $xt->assign("update_uid_label", true);
 if (isEnableSection508()) {
     $xt->assign_section("update_uid_label", "<label for=\"" . GetInputElementId("update_uid", $id, PAGE_EDIT) . "\">", "</label>");
 }
 $xt->assign("show_key1", htmlspecialchars($pageObject->showDBValue("id", $data)));
 //$xt->assign('editForm',true);
 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 //Begin Next Prev button
 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 if (!@$_SESSION[$strTableName . "_noNextPrev"] && $inlineedit == EDIT_SIMPLE) {
     $next = array();
     $prev = array();
     $pageObject->getNextPrevRecordKeys($data, "Edit", $next, $prev);
 }
 $nextlink = $prevlink = "";
 if (count($next)) {
     $xt->assign("next_button", true);
     $nextlink .= "editid1=" . htmlspecialchars(rawurlencode($next[1 - 1]));
        $xt->assign("channel_id_fieldblock", true);
    } else {
        $xt->assign("channel_id_tabfieldblock", true);
    }
    $xt->assign("channel_id_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("channel_id_label", "<label for=\"" . GetInputElementId("channel_id", $id, PAGE_ADD) . "\">", "</label>");
    }
    if (!$pageObject->isAppearOnTabs("bank_ip")) {
        $xt->assign("bank_ip_fieldblock", true);
    } else {
        $xt->assign("bank_ip_tabfieldblock", true);
    }
    $xt->assign("bank_ip_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("bank_ip_label", "<label for=\"" . GetInputElementId("bank_ip", $id, PAGE_ADD) . "\">", "</label>");
    }
    if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
        $pageObject->body["begin"] .= $includes;
        $xt->assign("backbutton_attrs", "id=\"backButton" . $id . "\"");
        $xt->assign("back_button", true);
    } else {
        $xt->assign("cancelbutton_attrs", "id=\"cancelButton" . $id . "\"");
        $xt->assign("cancel_button", true);
        $xt->assign("header", "");
    }
    $xt->assign("save_button", true);
}
$xt->assign("savebutton_attrs", "id=\"saveButton" . $id . "\"");
$xt->assign("message_block", true);
$xt->assign("message", $message);
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("Module ID");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "Module ID";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
     $xt->assign_section("Module_ID_label", "<label for=\"" . GetInputElementId("Module ID", $id) . "\">", "</label>");
 } else {
     $xt->assign("Module_ID_label", true);
 }
 $xt->assign("Module_ID_fieldblock", true);
 $xt->assignbyref("Module_ID_editcontrol", $ctrlBlockArr['searchcontrol']);
 $xt->assign("Module_ID_notbox", $ctrlBlockArr['notbox']);
 // create second control, if need it
 $xt->assignbyref("Module_ID_editcontrol1", $ctrlBlockArr['searchcontrol1']);
 // create search type select
 $xt->assign("searchtype_Module_ID", $ctrlBlockArr['searchtype']);
 $isFieldNeedSecCtrl = $searchControlBuilder->isNeedSecondCtrl("Module ID");
 $ctrlInd = 0;
 if ($isFieldNeedSecCtrl) {
     $pageObject->controlsMap["search"]["searchBlocks"][] = array('fName' => "Module ID", 'recId' => $id, 'ctrlsMap' => array(0 => $ctrlInd, 1 => $ctrlInd + 1));
     $ctrlInd += 2;
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("Status");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "Status";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
     $xt->assign_section("Status_label", "<label for=\"" . GetInputElementId("Status", $id) . "\">", "</label>");
 } else {
     $xt->assign("Status_label", true);
 }
 $xt->assign("Status_fieldblock", true);
 $xt->assignbyref("Status_editcontrol", $ctrlBlockArr['searchcontrol']);
 $xt->assign("Status_notbox", $ctrlBlockArr['notbox']);
 // create second control, if need it
 $xt->assignbyref("Status_editcontrol1", $ctrlBlockArr['searchcontrol1']);
 // create search type select
 $xt->assign("searchtype_Status", $ctrlBlockArr['searchtype']);
 $isFieldNeedSecCtrl = $searchControlBuilder->isNeedSecondCtrl("Status");
 $ctrlInd = 0;
 if ($isFieldNeedSecCtrl) {
     $pageObject->controlsMap["search"]["searchBlocks"][] = array('fName' => "Status", 'recId' => $id, 'ctrlsMap' => array(0 => $ctrlInd, 1 => $ctrlInd + 1));
     $ctrlInd += 2;
        $xt->assign("tgl_fieldblock", true);
    } else {
        $xt->assign("tgl_tabfieldblock", true);
    }
    $xt->assign("tgl_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("tgl_label", "<label for=\"" . GetInputElementId("tgl", $id, PAGE_ADD) . "\">", "</label>");
    }
    if (!$pageObject->isAppearOnTabs("iso_request")) {
        $xt->assign("iso_request_fieldblock", true);
    } else {
        $xt->assign("iso_request_tabfieldblock", true);
    }
    $xt->assign("iso_request_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("iso_request_label", "<label for=\"" . GetInputElementId("iso_request", $id, PAGE_ADD) . "\">", "</label>");
    }
    if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
        $pageObject->body["begin"] .= $includes;
        $xt->assign("backbutton_attrs", "id=\"backButton" . $id . "\"");
        $xt->assign("back_button", true);
    } else {
        $xt->assign("cancelbutton_attrs", "id=\"cancelButton" . $id . "\"");
        $xt->assign("cancel_button", true);
        $xt->assign("header", "");
    }
    $xt->assign("save_button", true);
}
$xt->assign("savebutton_attrs", "id=\"saveButton" . $id . "\"");
$xt->assign("message_block", true);
$xt->assign("message", $message);
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("Location");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "Location";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
     $xt->assign_section("Location_label", "<label for=\"" . GetInputElementId("Location", $id) . "\">", "</label>");
 } else {
     $xt->assign("Location_label", true);
 }
 $xt->assign("Location_fieldblock", true);
 $xt->assignbyref("Location_editcontrol", $ctrlBlockArr['searchcontrol']);
 $xt->assign("Location_notbox", $ctrlBlockArr['notbox']);
 // create second control, if need it
 $xt->assignbyref("Location_editcontrol1", $ctrlBlockArr['searchcontrol1']);
 // create search type select
 $xt->assign("searchtype_Location", $ctrlBlockArr['searchtype']);
 $isFieldNeedSecCtrl = $searchControlBuilder->isNeedSecondCtrl("Location");
 $ctrlInd = 0;
 if ($isFieldNeedSecCtrl) {
     $pageObject->controlsMap["search"]["searchBlocks"][] = array('fName' => "Location", 'recId' => $id, 'ctrlsMap' => array(0 => $ctrlInd, 1 => $ctrlInd + 1));
     $ctrlInd += 2;
Example #17
0
     $xt->assign("app_id_fieldblock", true);
 } else {
     $xt->assign("app_id_tabfieldblock", true);
 }
 $xt->assign("app_id_label", true);
 if (isEnableSection508()) {
     $xt->assign_section("app_id_label", "<label for=\"" . GetInputElementId("app_id", $id, PAGE_EDIT) . "\">", "</label>");
 }
 if (!$pageObject->isAppearOnTabs("kode")) {
     $xt->assign("kode_fieldblock", true);
 } else {
     $xt->assign("kode_tabfieldblock", true);
 }
 $xt->assign("kode_label", true);
 if (isEnableSection508()) {
     $xt->assign_section("kode_label", "<label for=\"" . GetInputElementId("kode", $id, PAGE_EDIT) . "\">", "</label>");
 }
 $xt->assign("show_key1", htmlspecialchars($pageObject->showDBValue("id", $data)));
 //$xt->assign('editForm',true);
 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 //Begin Next Prev button
 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 if (!@$_SESSION[$strTableName . "_noNextPrev"] && $inlineedit == EDIT_SIMPLE) {
     $next = array();
     $prev = array();
     $pageObject->getNextPrevRecordKeys($data, "Edit", $next, $prev);
 }
 $nextlink = $prevlink = "";
 if (count($next)) {
     $xt->assign("next_button", true);
     $nextlink .= "editid1=" . htmlspecialchars(rawurlencode($next[1 - 1]));
        $xt->assign("Bill_Amount_fieldblock", true);
    } else {
        $xt->assign("Bill_Amount_tabfieldblock", true);
    }
    $xt->assign("Bill_Amount_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("Bill_Amount_label", "<label for=\"" . GetInputElementId("Bill Amount", $id) . "\">", "</label>");
    }
    if (!$pageObject->isAppearOnTabs("Due Date")) {
        $xt->assign("Due_Date_fieldblock", true);
    } else {
        $xt->assign("Due_Date_tabfieldblock", true);
    }
    $xt->assign("Due_Date_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("Due_Date_label", "<label for=\"" . GetInputElementId("Due Date", $id) . "\">", "</label>");
    }
    if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
        $pageObject->body["begin"] .= $includes;
        $xt->assign("backbutton_attrs", "id=\"backButton" . $id . "\"");
        $xt->assign("back_button", true);
    } else {
        $xt->assign("cancelbutton_attrs", "id=\"cancelButton" . $id . "\"");
        $xt->assign("cancel_button", true);
        $xt->assign("header", "");
    }
    $xt->assign("save_button", true);
}
$xt->assign("savebutton_attrs", "id=\"saveButton" . $id . "\"");
if ($message) {
    $xt->assign("message_block", true);
Example #19
0
        $xt->assign("npwpd_old_fieldblock", true);
    } else {
        $xt->assign("npwpd_old_tabfieldblock", true);
    }
    $xt->assign("npwpd_old_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("npwpd_old_label", "<label for=\"" . GetInputElementId("npwpd_old", $id, PAGE_ADD) . "\">", "</label>");
    }
    if (!$pageObject->isAppearOnTabs("id_old")) {
        $xt->assign("id_old_fieldblock", true);
    } else {
        $xt->assign("id_old_tabfieldblock", true);
    }
    $xt->assign("id_old_label", true);
    if (isEnableSection508()) {
        $xt->assign_section("id_old_label", "<label for=\"" . GetInputElementId("id_old", $id, PAGE_ADD) . "\">", "</label>");
    }
    if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
        $pageObject->body["begin"] .= $includes;
        $xt->assign("backbutton_attrs", "id=\"backButton" . $id . "\"");
        $xt->assign("back_button", true);
    } else {
        $xt->assign("cancelbutton_attrs", "id=\"cancelButton" . $id . "\"");
        $xt->assign("cancel_button", true);
        $xt->assign("header", "");
    }
    $xt->assign("save_button", true);
}
$xt->assign("savebutton_attrs", "id=\"saveButton" . $id . "\"");
$xt->assign("message_block", true);
$xt->assign("message", $message);
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("enabled2");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "enabled2";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
 $ctrlBlockArr = $searchControlBuilder->buildSearchCtrlBlockArr($id, $firstFieldParams['fName'], 0, $firstFieldParams['opt'], $firstFieldParams['not'], false, $firstFieldParams['value1'], $firstFieldParams['value2']);
 if (isEnableSection508()) {
     $xt->assign_section("enabled2_label", "<label for=\"" . GetInputElementId("enabled2", $id, PAGE_SEARCH) . "\">", "</label>");
 } else {
     $xt->assign("enabled2_label", true);
 }
 $xt->assign("enabled2_fieldblock", true);
 $xt->assignbyref("enabled2_editcontrol", $ctrlBlockArr['searchcontrol']);
 $xt->assign("enabled2_notbox", $ctrlBlockArr['notbox']);
 // create second control, if need it
 $xt->assignbyref("enabled2_editcontrol1", $ctrlBlockArr['searchcontrol1']);
 // create search type select
 $xt->assign("searchtype_enabled2", $ctrlBlockArr['searchtype']);
 $isFieldNeedSecCtrl = $searchControlBuilder->isNeedSecondCtrl("enabled2");
 $ctrlInd = 0;
 if ($isFieldNeedSecCtrl) {
     $pageObject->controlsMap["search"]["searchBlocks"][] = array('fName' => "enabled2", 'recId' => $id, 'ctrlsMap' => array(0 => $ctrlInd, 1 => $ctrlInd + 1));
     $ctrlInd += 2;