function get_categories_not_assigned_to_client($cid) { $db_function_obj = new DbFunctions(); $categories = $db_function_obj->get_categories_not_assigned_to_client($cid); $output = "Categories not assinged to this client:<br />"; foreach ($categories as $cat) { $output .= "<div style='margin: 8px; padding:5px; float: left; height: 25px; border: 1px solid'> \n <input onclick='addCategoryToClient(this);' type='checkbox' value='" . $cat['id'] . "' style='margin: -2px 0 0'> " . $cat['name'] . "</div>"; } return $output; }