Esempio n. 1
0
 function get_categories_assigned_to_client($cid)
 {
     $db_function_obj = new DbFunctions();
     $categories = $db_function_obj->get_categories_assigned_to_client($cid);
     $output = "Categories 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='removeCategoryToClient(this);' type='checkbox' value='" . $cat['id'] . "' style='margin: -2px 0 0'>&nbsp;&nbsp;" . $cat['name'] . "</div>";
     }
     return $output;
 }