$guisByOwner = $admin->getGuisByOwner($logged_user_id, false);
for ($i = 0; $i < count($guisByOwner); $i++) {
    $gui_id[$cnt_gui] = $guisByOwner[$i];
    $gui_name[$cnt_gui] = $guisByOwner[$i];
    $cnt_gui++;
}
/*get categories **********************************************************************************/
$sql_category = "SELECT * FROM gui_category order by category_id;";
$res_category = db_query($sql_category);
while ($row = db_fetch_array($res_category)) {
    $category_id[$cnt_category] = $row["category_id"];
    $category_name[$cnt_category] = $row["category_name"];
    $category_description[$cnt_category] = $row["category_description"];
    $cnt_category++;
}
$guiCategories = $admin->getGuiCategories();
/*
*	
* get owner gui for selected category
*
*/
if (count($category_id) == 0 and count($gui_id) == 0) {
    die("There is no gui or category available for this user");
}
if (!$selected_category) {
    $selectedCategory = $category_id[0];
}
if ($selected_category) {
    $selectedCategory = $selected_category;
}
$getGuisByOwnerBySelectedGuiCategory = $admin->getGuisByOwnerByGuiCategory($logged_user_id, $selectedCategory);