Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

ochin-space/ochin_web-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

status

ochin_web-Template

⚠️ This project is obsolete and no longer maintained.

This repository is archived and kept online for reference and historical purposes only.
No further development, bug fixes, or support will be provided.


🛑 Project Status

  • Last update: May 30, 2022
  • Current state: Obsolete / Unmaintained
  • Reason: Project discontinued and not in use anymore.

🔍 About

ochin_web-Template was a plugin for the web interface developed for the Ochin ecosystem.
It provided a frontend layer to interact with data or services related to the Ochin project, potentially for monitoring or configuration purposes.

The project was built using HTML/JS, PHP, and was designed to run on Raspberry Pi CM4.


🚫 No Support

Please note:

  • Issues and pull requests will be closed automatically.
  • This code is provided as-is, without warranty of any kind.
  • Feel free to fork it if you wish to build upon it.

🔗 Related Projects

If you're looking for related or more active projects, check out:


📄 License

This project remains under its original license. See LICENSE for details. Alt text

ochin_web - Template

The "Template" software addon is designed to be a part of the ochin_web project.

This template was made to help develop new applications. It also has the purpose of defining a base line for the development of addons, in order to maintain the coherence between the pages as much as possible..
Each Addon is embedded in ochin_web but is self-contained. Except for the topbar and some general libraries (jquery and bootstrap) which are part of the main framework, the addon contains everything it needs (specific libraries, databases, images etc ..)

Alt text

What does this addon do

This addon shows an example table. By means of the "+" button located at the top right of the same, it is possible to add a new empty row to the table.
On the right side of each row there are two buttons: "Edit" and "Delete".

Alt text With the first button it is possible to insert and modify the data of the row, while with the second button it is possible to delete the entire row.
All the data inserted in the table are written inside a sqlite3 database. It is created the first time the addon is started in the "db" subfolder. The table is updated at each page refresh requesting all the data from the database.

The file structure of the Addon

  install.xml
  info.html
  index.php
  icons
  helper
    SQLiteConstructor.php
    init.php
    Config.php
  db
    emptyTemplate.db
  css
    loader.css

info.html

Is the file in which this guide is contained.

install.xml

It is the file by which the Addon manager is able to correctly load the Addon within the Framework. It is an XML file and it contains the following fields:
<install>   <addon name = 'Template'>     (the name of the addon)
    <en> true </en>     (enable addon by default)
    <topbarpos> Application </topbarpos>    (the position in the topbar)
    <foldername> template </foldername>     (the name of the folder, should be the same as the .zip)
    <description> addon template <description>     (a short description)
  </addon>
</install>

index.php

It is the file that contains the main page of the addon. It is a .php file but it contains the HTML of the page, the Javascript to manage the client-side automation and the call to some PHP functions for database management.

icons

It is the folder that contains the icons used by the Addon.

helper

It is the folder that contains the helper files.

SQLiteConstructor.php

It is the file that contains all the PHP code to manage the database. It contains the functions to create a new db, insert new tuples, edit their content, delete them etc ...

init.php

It contains the initialization of the SQLiteConstructor class and includes the files necessary for the functioning of the Addon.

config.php

Contains the paths to the folders used by the Addon.

css

Contains style sheets. In this example, only the loader.css file is contained, which is used to display the "loader" when waiting for the page.

About

This template is to help the development of new applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published