Giter Site home page Giter Site logo

speciesdatabase-alpha-deprecated's People

Contributors

felipeabranches avatar giarola98 avatar peixespnsc avatar sinvalvjunior avatar tndmedeiros avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

speciesdatabase-alpha-deprecated's Issues

Correct db table "camp_campaigns"

Correct db table "camp_campaigns" thats'is mispeeling (camp_campaings).
After, correct in PHP files the SQLs

  • campaign.php
  • campaigns_card.php
  • tomb.php
  • tombs_card.php
  • tombs_table.php
  • admin/camp_campaing.php
  • admin/camp_campaings.php
  • libraries/campaigns/campaigns.php

Start OOP on tombs

Both in site and admin.
Also, delete the functions "getTombs()" in spicies, campaigns and waypoints class. We should have only one function in tomb's class to deal with these pages.

Start OOP on species

Several pages have the need to show the specie's Nomenclature and the Authoring of his first description.
We need create a Class to deal with this on libraries/species/species.php.
Use the mudules/taxa_tree.php file as reference, and then apply the OOP to it.

Please, commnent bellow the files' names that we can apply this OOP.

Create a treatment for Querry Errors

We need to create a general treatment for Querry Errors in database. If a requested querry in the database doesn't return a result, the error must be shown in a friendly way to the user, not in the PHP Syntax Error format.

Enhacements on Waypoints

  • Delete from "db_install.sql" the "camp_waypoints", and from "db_update.sql" the lines that you already copy to "wpt_install"
  • Delete from "wpt_install" all "DROP TABLE IF EXISTS ..." commands
  • Change "camp_units" and "camp_units_types" respectilly to "wpt_units" and "wpt_units_types"
  • Do not change the table "camp_waypoints" to "wpt_waypoints" in the creation of the table. Keep the table with "camp_waypoints" name, and then create a SQL command "ALTER TABLE ..."
  • Also, all "ALTER TABLE ..." are with "wpt_waypoint" name. So, the command to alter table's name have to come first
  • Change files' names on admin: "camp_waypoints", "camp_units", "camp_units_types", respectilly to "wpt_waypoints", "wpt_units", "wpt_units_types"
  • Change PHP file "libriries/campaigns/waypoints.php" to a proper folder
  • Change all PHP files that uses those tables that we have change their names. A complete list must be provide. Let's contribute on this

Apply OOP on admin/sp_taxonomists.php

Use the existing Class in libraries/species/taxonomists.php.
Feel free to add any table field to the SQL in libraries/species/taxonomists.php, and the necessary HTML tags on the table on admin/sp_taxonomists.php.
Check taxonomists_card.php (on the root) for help.

Make field_selectDB() function return saved DB values

The field_selectDB() function, in the "libraries/fields/fields.php" file, is an HTML select list with options from DB consult.
In it's current state, when creating a new insert, it came with the right values. But when editing, it's do not returns what was already recorded.
Please, fix this so the recorded values come selected.

Make map_values() function work and reusable

The map_values() function, in the "admin/sp_specie.php" file, store two IDs from diferent tables in another table, storing the pairs of a single value with multiples values.
This funcion did not work in this code, and it must be reusable. So, it's need to be created in the "libraries" folder (maybe in another folder called "database").

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.