KoolListBox support text with icon.
<?php
/*
* This file is ready to run as standalone example. However, please do:
* 1. Add tags <html><head><body> to make a complete page
* 2. Change relative path in $KoolControlFolder variable to correctly point to KoolControls folder
*/
$KoolControlsFolder = "../../../../KoolControls";//Relative path to "KoolPHPSuite/KoolControls" folder
require $KoolControlsFolder."/KoolListBox/koollistbox.php";
$listbox = new KoolListBox("listbox");
$listbox->styleFolder = "default";
$item = $listbox->AddItem(new ListBoxItem("Argentina"));
$item->ImageUrl = "../../images/flags/16/flag_argentina.png";
$item = $listbox->AddItem(new ListBoxItem("Australia"));
$item->ImageUrl = "../../images/flags/16/flag_australia.png";
$item = $listbox->AddItem(new ListBoxItem("Brazil"));
$item->ImageUrl = "../../images/flags/16/flag_brazil.png";
$item = $listbox->AddItem(new ListBoxItem("Canada"));
$item->ImageUrl = "../../images/flags/16/flag_canada.png";
$item = $listbox->AddItem(new ListBoxItem("Chile"));
$item->ImageUrl = "../../images/flags/16/flag_chile.png";
$item = $listbox->AddItem(new ListBoxItem("China"));
$item->ImageUrl = "../../images/flags/16/flag_china.png";
$item = $listbox->AddItem(new ListBoxItem("Egypt"));
$item->ImageUrl = "../../images/flags/16/flag_egypt.png";
$item = $listbox->AddItem(new ListBoxItem("England"));
$item->ImageUrl = "../../images/flags/16/flag_england.png";
$item = $listbox->AddItem(new ListBoxItem("France"));
$item->ImageUrl = "../../images/flags/16/flag_france.png";
$item = $listbox->AddItem(new ListBoxItem("Germany"));
$item->ImageUrl = "../../images/flags/16/flag_germany.png";
$item = $listbox->AddItem(new ListBoxItem("India"));
$item->ImageUrl = "../../images/flags/16/flag_india.png";
$item = $listbox->AddItem(new ListBoxItem("Indonesia"));
$item->ImageUrl = "../../images/flags/16/flag_indonesia.png";
$item = $listbox->AddItem(new ListBoxItem("Kenya"));
$item->ImageUrl = "../../images/flags/16/flag_kenya.png";
$item = $listbox->AddItem(new ListBoxItem("Mexico"));
$item->ImageUrl = "../../images/flags/16/flag_mexico.png";
$item = $item = $listbox->AddItem(new ListBoxItem("New Zealand"));
$item->ImageUrl = "../../images/flags/16/flag_new_zealand.png";
$item = $listbox->AddItem(new ListBoxItem("South Africa"));
$item->ImageUrl = "../../images/flags/16/flag_south_africa.png";
$item = $listbox->AddItem(new ListBoxItem("USA"));
$item->ImageUrl = "../../images/flags/16/flag_usa.png";
$listbox->Init();
$second_listbox = new KoolListBox("second_listbox");
$second_listbox->styleFolder = "default";
$item = $second_listbox->AddItem(new ListBoxItem("Argentina"));
$item->ImageUrl = "../../images/flags/24/flag_argentina.png";
$item = $second_listbox->AddItem(new ListBoxItem("Australia"));
$item->ImageUrl = "../../images/flags/24/flag_australia.png";
$item = $second_listbox->AddItem(new ListBoxItem("Brazil"));
$item->ImageUrl = "../../images/flags/24/flag_brazil.png";
$item = $second_listbox->AddItem(new ListBoxItem("Canada"));
$item->ImageUrl = "../../images/flags/24/flag_canada.png";
$item = $second_listbox->AddItem(new ListBoxItem("Chile"));
$item->ImageUrl = "../../images/flags/24/flag_chile.png";
$item = $second_listbox->AddItem(new ListBoxItem("China"));
$item->ImageUrl = "../../images/flags/24/flag_china.png";
$item = $second_listbox->AddItem(new ListBoxItem("Egypt"));
$item->ImageUrl = "../../images/flags/24/flag_egypt.png";
$item = $second_listbox->AddItem(new ListBoxItem("England"));
$item->ImageUrl = "../../images/flags/24/flag_england.png";
$item = $second_listbox->AddItem(new ListBoxItem("France"));
$item->ImageUrl = "../../images/flags/24/flag_france.png";
$item = $second_listbox->AddItem(new ListBoxItem("Germany"));
$item->ImageUrl = "../../images/flags/24/flag_germany.png";
$item = $second_listbox->AddItem(new ListBoxItem("India"));
$item->ImageUrl = "../../images/flags/24/flag_india.png";
$item = $second_listbox->AddItem(new ListBoxItem("Indonesia"));
$item->ImageUrl = "../../images/flags/24/flag_indonesia.png";
$item = $second_listbox->AddItem(new ListBoxItem("Kenya"));
$item->ImageUrl = "../../images/flags/24/flag_kenya.png";
$item = $second_listbox->AddItem(new ListBoxItem("Mexico"));
$item->ImageUrl = "../../images/flags/32/flag_mexico.png";
$item = $item = $second_listbox->AddItem(new ListBoxItem("New Zealand"));
$item->ImageUrl = "../../images/flags/16/flag_new_zealand.png";
$item = $second_listbox->AddItem(new ListBoxItem("South Africa"));
$item->ImageUrl = "../../images/flags/16/flag_south_africa.png";
$item = $second_listbox->AddItem(new ListBoxItem("USA"));
$item->ImageUrl = "../../images/flags/16/flag_usa.png";
$second_listbox->Init();
?>
<form id="form1" method="post">
<div style="padding-top:10px;padding-bottom:30px;float:left">
16x16 icon <br/>
<?php echo $listbox->Render();?>
</div>
<div style="padding-left:50px;padding-top:10px;padding-bottom:30px;float:left">
24x24 icon <br/>
<?php echo $second_listbox->Render();?>
</div>
<div style="clear:both;"></div>
</form>