I dont know whether these all three modes are in one single template
or they have different files
It is in one template though the devil is in details and that you use incompatible terms interchangeable or in impossible/senseless context.
I have opened Template in InfoPath directly from Sharepoint Server now
its default mode is EDIT but i now also need the DESIGN mode of this
Template and the NEW Form Entry mode too
There is no point to open Infopath template directly on Sharepoint server. In order to make changes and make the changed template available on Sharepoint server, you have to save it on local machine (it can be still the same machine as server but also client remote one), make changes and publish to Sharepoint in Infopath Designer.
It is template that is opened in design mode and in Infopath Designer.
The XML file data Infopath form file is created on the basis of the published XSN Infopath form template and it is linked to that template. It is that form that is opened (and using the XSN template, it is linked to) in edit, new or display mode. It is opened either in client Infopath filler or web browser (depending on the type of Infopath form and configuration, as well as availability of of the PFS - Infopath Form Services. The latter is available only on enterprise Sharepoint server).
I dont know whether these all three modes are in one single template
or they have different files
It is on the same template. If the published to Sharepoint server Infopath form template is used as Infopath form Web Part in a custom Web part ASPX web page, then theoretically its mode should be configured through web part properties. Though, webpart propertis avail only edit mode, see my question and discussion in msdn forum:
If you created Sharepoint List Form type of Infopath form template from a sharepoint list then the same published XSN Infopath form template is used in the form of Infopath web part for different ASPX pages :
- editifs.aspx in place of default Sharepoint EditForm.aspx (for editing)
- newifs.aspx in place of default Sharepoint NewForm.aspx (for creating/new)
- DisplayIFS.aspx in place of default Sharepoint DispForm.aspx (for displaying or viewing)
Here is my answer how to use combinations from all six webpages in parallel:
Though, I wrote above sharepoint lists in order to illustrate that the same XSN template (and corresponding web part from it) is sued in different webpages.
But, the problem is that I do not see how "conent type" can be used with sharepoint lists. Only with form or document libraries. But what you describe does not fit with library forms either....