Summary of the invention
For above-mentioned technical matters, the invention provides a kind of website creation method and device, solve the technical difficulty of above-mentioned website constructive process, thereby simplified website constructive process.
On the one hand, the invention provides a kind of website creation method, comprising:
Step 1, according to the requirement of website design, Page template management devices creates all kinds of basic web page template of the website needing, and all kinds of basic web page template of the website of establishment is stored in database;
Step 2, Web page editor calls the basic web page template of above-mentioned establishment, creates each webpage in website, and the webpage of establishment and corresponding banner are stored in database;
Step 3, according to banner, from database, reads the configuration information of webpage, if comprised linked database content in this webpage configuration information, access linked database obtains corresponding data, thereby forms webpage.
Further, above-mentioned web page template comprises following at least one template: Framework Net Page template, figure flow process navigation template, list web page template, submission of sheet template, TreeView Menu template, information indicating template, query statistic template and database manipulation template.
Further, above-mentionedsteps 2, be specially Web page editor and call certain basic web page template, on this basic web page template, editor's webpage attribute, determine the title of this webpage, the attribute of web page element used, data filtering mode, linked database content, data are filled in verification mode, at least one information in the whereabouts of data computing mode and submission of sheet redirect, form the configuration information of this webpage, create the mark of this webpage, and the mark of the configuration information of this webpage and corresponding webpage is stored in database, wherein, the mark of webpage and the configuration information of this webpage are one-to-one relationships.
On the other hand, the present invention also provides a kind of website creation apparatus, comprise: database, Page template management devices and Web page editor, wherein, database is for preserving all kinds of web page templates of web page template management devices establishment, Web page editor editor's the configuration information of each webpage and the mark of this webpage; Page template management devices, for according to the requirement of website design, creates all kinds of basic web page template of the website needing, and all kinds of basic web page template of the website of establishment is stored in database; The basic web page template that Web page editor creates for invoking web page masterplate management devices, creates each webpage in website, and by the web storage creating in database.
Beneficial effect of the present invention: user, according to the service needed of oneself, in the service layer of oneself, without complicated programming technique, just can edit and create self-defined operation flow, realizes information system management website.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described, is to be noted that described embodiment is only intended to be convenient to the understanding of the present invention, and it is not played to any restriction effect.
Below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
As shown in Figure 1, the invention provides a kind of website creation apparatus, comprisedatabase 11, Pagetemplate management devices 12 andWeb page editor 13, wherein,database 11 has been preserved all kinds of web page templates that web pagetemplate management devices 12 creates and Webpage editor editor 13 the configuration information of each webpage and the mark of this webpage, and some data that link in webpage.Pagetemplate management devices 12, for according to the requirement of website design, creates all kinds of basic web page template of the website needing, and all kinds of basic web page template of the website of establishment is stored in database 11.The basic web page template that Web page editor creates for invoking web pagemasterplate management devices 12, creates each webpage in website, and by the web storage creating indatabase 13.
As shown in Figure 2, the invention provides a kind of method that website creates, its process comprises:
Step 1: according to the requirement of website design, Page template management devices creates all kinds of basic web page template of the website needing, and all kinds of basic web page template of the website of establishment is stored in database.All kinds of web page templates here comprise: Framework Net Page template (comprising upper and lower, left and right surrounding framework), figure flow process navigation template, list web page template, submission of sheet template, TreeView Menu template, information indicating template, query statistic template and database manipulation template.
Concrete, can, by creating a universal template, general web page element be included in template.General web page element, as public JavaScript, all html elements etc.For improving website operational efficiency, in practical operation, can create self-defined web page template, be used for setting up website.For example: while creating Framework Net Page template, this template is all made up of frame framework in html, so just in this Framework Net Page template, comprises frame framework; Tree-shaped navigation template, can only have a general JavaScript TreeView model composition, in the time creating this template, just only comprises JavaScript TreeView model so.
Step 2: Web page editor calls the basic web page template of above-mentioned establishment, creates each webpage in website, and by the web storage creating in database.
Concrete: Web page editor calls certain basic web page template, on this basic web page template, editor's webpage attribute, determine the title of this webpage, attribute (as: the position of web page element used, the attributes such as size and form), data filtering mode, linked database content, data are filled in verification mode, at least one information such as the whereabouts of data computing mode and submission of sheet redirect, so just form the configuration information of this webpage, this configuration information can be the form of allocation list or the form of configuration file, create the mark ID of this webpage, and the mark ID of the configuration information of this webpage and corresponding webpage is stored in configuration file or configuration database table, this configuration file or configuration database table can be stored in database, the mark ID of webpage and the configuration information of this webpage are one-to-one relationships, follow-up so just can be according to the mark ID of webpage, call the configuration information of this webpage, thereby be shown as webpage.In addition, if comprise list in this webpage, also configure corresponding submission and process webpage mode, as: the webpage that may not show, only carries out data processing or submits webpage etc. to.
Step 3: according to No. ID, webpage, from configuration file or configuration database, read the configuration information of this webpage, if comprised linked database content in this webpage configuration information, access linked database obtains corresponding data, thereby forms webpage.
Form after webpage, user just can operate webpage by client, as submission of sheet or webpage redirect.For example: if when this webpage redirect, will jump to another one webpage, now according to No. ID, this webpage, from configuration file or configuration database, read the configuration information of this webpage, if comprised linked database content in this webpage configuration information, access linked database obtains corresponding data, thereby forms webpage.
The present invention is application website creation apparatus, creates general or self-defining web page template.Distinguish with No. ID different marks, define each element and service data database data, linked database corresponding data and data computing in corresponding webpage with configuration file or configuration database.Change the construction mode of conventional systems website.Make application side newly-increased or change without entrusting software developer to carry out Website development, operation flow.The business personnel of oneself just can complete Web Hosting and operation flow and increase newly and change.
Describing is above only a specific embodiment of the present invention, and obviously anyone modification of doing of this area or local replacement under technical scheme of the present invention instructs, all belong to the scope that the claims in the present invention book limits.