Location: PHPKode > scripts > Form_Element > form_element/test.php
<?php

include("../ttn_includes/html_classes.inc");
include("../ttn_includes/connect.inc");

//$opdr = 3;
//if (!empty($sb1)) print $sb1;

// Set object properties
/*
$lbKlant = new ListBox("lbklant");
$lbKlant->Connection = $connect;
$lbKlant->Item_Table = "ttn_klanten";
$lbKlant->Item_Table_ID_Column = "kln_id";
$lbKlant->Item_Table_Show_Column_1 = "kln_naam";
$lbKlant->Item_Table_Show_Column_2 = "kln_locatie";
$lbKlant->Item_Table_Order_Column = "kln_naam";
$lbKlant->Master_Table = "ttn_serviceopdrachten";
$lbKlant->Master_Table_ID_Column = "sod_id";
$lbKlant->Master_Table_ID_Selector = $opdr;
$lbKlant->Master_Table_Item_Link_Column = "sod_klant";
$lbKlant->Fill_ListBox_From_DB();
if (!empty($lbklant)) $lbKlant->Chosen_ID = $lbklant;
*/

/*
$sbKlant = new SelectBox("klant");
$sbKlant->Connection = $connect;
$sbKlant->Item_Table = "ttn_klanten";
$sbKlant->Item_Table_ID_Column = "kln_id";
$sbKlant->Item_Table_Show_Column_1 = "kln_naam";
$sbKlant->Item_Table_Show_Column_2 = "kln_locatie";
$sbKlant->Item_Table_Order_Column = "kln_naam";
$sbKlant->Master_Table = "ttn_serviceopdrachten";
$sbKlant->Master_Table_ID_Column = "sod_id";
$sbKlant->Master_Table_ID_Selector = $opdr;
$sbKlant->Master_Table_Item_Link_Column = "sod_klant";
$sbKlant->Fill_SelectBox_From_DB();
if (!empty($klant)) $sbKlant->Chosen_ID = $klant;
*/

// kenteken textbox
//$tbKenteken = new TextBox("tbKent");
//$tbKenteken->Connection = $connect;
//if (!empty($tbKent)) $tbKenteken->SQL_Update_Query = "update ttn_voertuigen set vrt_kenteken = '".$tbKent."' where vrt_kenteken = '".$wijzig_id."';";
//$tbKenteken->SQL_Show_Query = "select vrt_kenteken from ttn_voertuigen where vrt_kenteken = '".$wijzig_id."';";

/*$tbOpmerkingMs = new TextBox("opmerkms");
$tbOpmerkingMs->Connection = $connect;
$tbOpmerkingMs->SQL_Show_Query = "select sod_opmerkingms from ttn_serviceopdrachten where sod_id = 5;";
if (!empty($opmerkms)) $tbOpmerkingMs->SQL_Update_Query = "update ttn_serviceopdrachten set sod_opmerkingms = '".$opmerkms."' where sod_id = 5;";
*/

/*
$Hoi = new TextArea("taHoi");
$Hoi->Connection = $connect;
if (!empty($taHoi)) $Hoi->SQL_Update_Query = "update ttn_serviceopdrachten set sod_opmerkingms = '".$taHoi."' where sod_id = 5;";
$Hoi->SQL_Show_Query = "select sod_opmerkingms from ttn_serviceopdrachten where sod_id = 5;";
$Hoi->Show_Counter_Function();
$Hoi->Show_Textcolor_Function();
*/

/*
$cbKlaar = new CheckBox("cbkl");
$cbKlaar->Connection = $connect;
$cbKlaar->Table = "ttn_serviceakties";
$cbKlaar->Table_ID_Column = "sak_id";
$cbKlaar->Table_Show_Column = "sak_uitgevoerd";
$cbKlaar->Table_ID_Selector = 447;
if (!empty($cbkl)) $cbKlaar->Chosen_Value = 1;
*/
/*$winEen = new WindowLink();
$winEen->Image = "..//ttn_icons//edit.gif";
$winEen->Description = "";
*/

/*
$tblTable = new Table();
$tblTable->Connection = $connect;
$tblTable->Background_color = "FFFFF3";
$tblTable->SQLQuery = "select * from ttn_voertuigen";
$tblTable->Header_fields = array("Kenteken","Merk");
$tblTable->Deletes = 1;
$tblTable->Delete_from_table = "ttn_voertuigen";
$tblTable->Delete_where_column = "vrt_kenteken";
$tblTable->Current_page = "test.php";
$tblTable->Order_columns = array(0,1);
if (!empty($del_id)) $tblTable->Delete_id = $del_id;
if (!empty($orderby)) $tblTable->Order_by_col_nr = $orderby;
*/

// Graphical User Interface

print"\n<form method='post' action='test.php' name='c'>\n";

//$lbKlant->Show();
//print"<br>";

//$sbKlant->Show();
//print"<br>";

//$tbOpmerkingMs->Show();
/*print"<br>";
$Hoi->Show();
$Hoi->Show_Counter();
$Hoi->Show_Textcolor_Button();
*/
//print"<br>";
//$mmOpmerkingTd->Show();
//print"<br>";
//print"<br>";

//$cbKlaar->Show();
//print"<br>";

//$winEen->URL = "wijzig.php";
//$winEen->Show();

//$tblTable->Show();

//$sb = new SelectBox("sb1");
//$sb->Connection = $connect;
//$sb->SQLQuery_items = "select sod_id,sod_opmerkingms from ttn_serviceopdrachten;";
//$sb->Show();

print"<br>\n";
print"<input type=submit>\n";
print"</form>\n";

?>
Return current item: Form_Element