Ожидается"; break; case "1": $status = "Принято"; break; case "2": $status = "Отклонено"; break; case "3": $status = "Выполнено"; break; } return $status; } $toporders = $cache->open( "toporders", $config['skin'] ); if( ! $toporders ) { $db->query( "SELECT id, runame, enname, status FROM " . PREFIX . "_table ORDER BY date DESC LIMIT 0,10"); while ( $row = $db->get_row() ) { if ( $row['runame'] ){ $name = $row['runame']; } elseif ( $row['enname'] ){ $name = $row['enname']; } if( strlen( $name ) > 15 ) $name = stripslashes( substr( $name, 0, 15 ) ) . "..."; else $name = stripslashes( $name ); $tblid = intval($row['id']); $status = showStatus( $row['status'] ); $id = ++$i-3; $toporders .= "" . $name . "