Backoffice Class

Posted by Lachhekumar Nadar on 2009-07-03 23:57:41

Backoffice normally refered as the admin panel, creating admin panel is simple and easy job with the help of the koolphp, it has prediefend login screen / User Management System / CMS you can use the same.

The SQL table and all the initialized as soon you try to access the backoffice, you can access the backoffice from

http://yousite.com/backoffice/

While working with the backoffice class you need some configuration for the table, you have to set it in the configure folder of the backfffice

Table specific configuration, the configuration is done in the format of ini file and saved under the backoffice/configure/[tablename].inc.php
 [_table]  Statrting of the table specific setting
 heading  Heading to the page
 description  Small description for the module
 list  Descroiption at the list page
 success_add  Message when a record is added successfully
 success_update  Message after the successfull update
 moveto  URL  to which script will move once the update / addition is completed
 Now the configuration at the field level, the form and listing will be displayed with the help of this configuration
 [-fieldname-]  -fieldname-  replace this with your filename
 title  heading to field
 validate  Validate scheme applied to this field ( string / email \ number )
 error  The error message appear when then text do not validate
 noupdate  Do not display when the record is displayed for update
 size  The size of the field
 type  text|password|combo|textarea|editor|radio|checkbox - any of the field
 options  If you have type combo then you can provide the option with the help of comma sperated format
 table  for combo box from which table the details will be displayed( for combo box / checkbox /radio  )
 name  Display field name ( for combo box / checkbox /radio  )
 value  The value field  ( for combo box / checkbox /radio  )
 condition  Where condition if you want to apply any
 varaible  If you want to fill combo directly from your variable, just provide your varaiable name
 search  if you want to include in the top search
 width  Width of the column in listing page
   
Content File HTML
[_table]
heading=DOCUMENTATION MANAGER
description=You can manage the document from this section
list=List of all avaliable documents

success_add=Your documentation has been added successfully
success_update=Records has been update successfully
id=documentation_id
moveto = document.html


[name]
title = Title
validate = string
error = Please provide title for page
search = 1

[headingdoc]
title = Description
validate = string
type = editor
editor = advance
error = Please provide description

[functiondetails]
title = Function details
type = editor
editor = advance

[functionextra]
title = Function Extra
type = editor
editor = advance