In lot of applications we need multi-level category management. In this example I have created an interface to manage multi-level categories. In this interface you can manage, up to which level you would allow an user to add sub-categories. You have to supply the “maxLevel” in the getCategory() function. If you don’t supply this value then it will go up to 10th level.
Another feature of this interface is the select box. The options in this select box maintain a left-padding for each level down. By this way they are grouped under their parent. This is visually appealing and easy to use.
The fields of the form will be needed in case of making the application SEO compatible. The slug is needed as the URL Key. You have to make this slug unique. So placing some AJAX in the form would validate if it is available or not.
Website file browser is a handy tool to browse files from a public directory. User can see file size, permissions and also delete unnecessary files from the server directly by this tool. The main features of this tool are -
- AJAX controlled ( No page reload )
- Easy navigation with Tree view file structure
- Quick view of Server Permissions
- Easy recognition through file type icons
- File & Directory size preview
I shall directly dive into the code structure. In the following code there are two classes named “outer” and “inner”. We have to assign the class “outer” on the div which should be working like a table. And the class “inner” will be assigned to the inner div acting like a table row. Inside that div ( class = “inner” ) place multiple DIVs acting like table cells. In this example there are two DIVs with classes “header-left” and “header-right”. Go through the structure carefully.
We can break a large task into pieces and work them out easily. This way you can divide a large server side task into small multiple tasks. For example if you need to send 1000 emails at a time, there may be inconveniences to perform this large task like time out or cpu overload etc. For this reason you may break the mailing list in chunks 50 emails per list or whatever you prefer. Then you can run the script 2o times to finish your job. This can be done using AJAX. I have created an example to demonstrate this.
We need the knowledge of the following basic programming techniques to be a website developer. First of all the HTML (Hypertext Markup Language) which helps to build the structure of the website. Secondly CSS (Cascading Style Sheet), to manage the look and fill of the website. Third one is JS (Java Script) which enables the interactivity and helps to create an interface for that website. These three together are front end ( Client Side ) development techniques. In the back end ( Server Side ) resides the fourth one, the PHP. PHP creates a webpage depending on the criteria imposed by the development team.