-
Notifications
You must be signed in to change notification settings - Fork 1
/
kui_list_test.php
32 lines (28 loc) · 826 Bytes
/
kui_list_test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
//include kui_list
require("kui_list.php");
//add your custom CSS to override kui_list default CSS
?>
<style>
.list1css {
width: 120px;
font-size: 14px;
font-family: "Segoe UI", Arial,sans-serif;
}
.list2css {
width: 200px;
font-size: 14px;
font-family: "Segoe UI", Arial,sans-serif;
}
</style>
<?php
//use kuiList
$list1 = new kuiList("World", "Country");
$list1->setList(array("Philippines", "Canada", "China", "India", "United States", "France", "Germany", "Russia", "Spain", "United Kingdom"));
$list1->setCSS("list1css");
echo "Country: "; $list1->render();
echo "<br/><br/>";
$list2 = new kuiList("Color", "Color", "list2css");
$list2->setList(array("Red", "White", "Black", "Blue", "Gray", "Green", "Orange", "Purple", "Yellow"));
echo "Color: "; $list2->render();
?>