Programming

Folders and Files

Class & Controller

View

Form

Image

PDF

Chart

Database (Single table)

Database (Relational table)

Sort (Drag and Drop)

Image Upload/Display

File Upload/Download

CSV Upload/Download

Database ( How to retrieve data from database) - Filter

Database ( How to retrieve data from database) - Select

Folders and Files

Screenshot

app

You can place all the application folders and files here.

Class folder (helloworld)

You can place your class file, script file, styles file, Templates folder, database folder(fmt), and images folder here.

Templates

Inside the Templates folder you can place all the template files related to the module. Sample template file message.tpl content is shown below...

<p>{$message}</p>

fmt

You can place your database file here. customer.fmt sample file content is shown below...

id,24,N
name,255,T
address,255,T
tel,255,T

images

Here you can place your all the images related to this module

script.js

Here, you can place the script code related to this module

PHP (helloworld.php)

This file contains the code related to application logic. This file is the class file. Mainly contains __construct function and other class related functions. Sample helloworld.php file content is shown below...

class helloworld {

function __construct(Controller $ctl){
}

function page(Controller $ctl){
$ctl->assign("message","Hello world!!!");
$ctl->show_multi_dialog("helloworld", "message.tpl", "Hello world!!!",1000,true,true);
}

// All other functions you can add here....
}

style.css

The styles related to this module, you can place here. Example :

.textbox{
width: 80px;
}

.button{
cursor:pointer;
color:blue;
}

FOCUS Business Platform