-// is the user on several sites ?
-if (plc_is_admin () || count (plc_my_site_ids()) > 1) {
- // site selector - not implemented yet
-//// // displays a site select list for admins and multi-site users
-//// if( count( $_person['site_ids'] ) > 1 || in_array( 10, $_roles ) ) {
-//// // get sites depending on role and sites associated.
-//// if( in_array( 10, $_roles ) )
-//// $site_info= $api->GetSites( NULL, array( "name", "site_id", "login_base" ) );
-//// elseif( count( $_person['site_ids'] ) > 1 )
-//// $site_info= $api->GetSites( $_person['site_ids'], array( "name", "site_id", "login_base" ) );
-////
-//// echo "<tr><th>Site: </th><td><select onchange='update(this[selectedIndex].text)' name='site_id'>\n";
-////
-//// foreach( $site_info as $site ) {
-//// echo "<option value=". $site['site_id'];
-//// if( $site['site_id'] == $_person['site_ids'][0] )
-//// echo " selected";
-//// echo ">". $site['name'] ."->". $site['login_base'] ."</option>\n";
-//// }
-////
-//// echo "</select></td><td></td></tr>\n";
-
-}
-
+$running=count($site['slice_ids']);
+$max=$site['max_slices'];
+$allocated = " $running running / $max max";
+if ($running >= $max) $allocated = plc_warning_html($allocated);
+$details->th_td("Allocated slices",$allocated);