is there any command to get the device type (work stations,printers,laptop) and count of them using nmap commands?
as a example
3 work stations 5 Laptops 1 Printer 2 Servers
then once i click on work station display all workstation connected to LAN.
all results should display in a HTML Page.(im running on windows apache/PHP)
Check this out: http://nmap.org/book/toc.html
Specifically this section: http://nmap.org/book/output-formats-output-to-html.html
That should at least get you started. You may also want to investigate using Zenmap, which is the official GUI frontend for nmap: http://nmap.org/book/zenmap.html (http://nmap.org/zenmap/)