From 5582d242d03692a7e1b2c631e1b4ff3f52e8b72c Mon Sep 17 00:00:00 2001 From: Debulois Date: Mon, 4 Apr 2022 22:58:43 +0200 Subject: Révision complète du css et modification du js principalement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Template/Include/en/message.php | 229 ++++++++++++++++++++++++++++++++++++++++ Template/Include/en/table.php | 86 +++++++++++++++ Template/Include/en/text.php | 106 +++++++++++++++++++ Template/Include/en/title.php | 20 ++++ 4 files changed, 441 insertions(+) create mode 100644 Template/Include/en/message.php create mode 100644 Template/Include/en/table.php create mode 100644 Template/Include/en/text.php create mode 100644 Template/Include/en/title.php (limited to 'Template/Include/en') diff --git a/Template/Include/en/message.php b/Template/Include/en/message.php new file mode 100644 index 0000000..503fd98 --- /dev/null +++ b/Template/Include/en/message.php @@ -0,0 +1,229 @@ + [ + "success" => [ + "success" => true, + "title" => "Update user information.", + "info" => "User informations updated !", + "timer" => true, + "toSrc" => true + ] + ], + // Login sans cookie + "login" => [ + "success" => [ + "success" => true, + "title" => "Login.", + "info" => "Successfully logged in!", + "timer" => true, + "toSrc" => false + ], + "fail" => [ + "success" => false, + "title" => "Login.", + "info" => "Error bad credentials.", + "timer" => true, + "toSrc" => true + ] + ], + // Login avec cookie + "loginCookie" => [ + "success" => [ + "success" => true, + "title" => "", + "info" => "", + "timer" => false, + "toSrc" => false + ], + "fail" => [ + "success" => false, + "title" => "Login cookie.", + "info" => "Error with the cookie auto-login.", + "timer" => true, + "toSrc" => false + ] + ], + // Log out + "logout" => [ + "success" => [ + "success" => true, + "title" => "Log out.", + "info" => "Successefuly logged out!", + "timer" => true, + "toSrc" => false + ] + ], + // Ajout mission + "missionRegister" => [ + "success" => [ + "success" => true, + "title" => "Register a mission.", + "info" => "Mission registered !", + "timer" => true, + "toSrc" => true + ], + "fail" => [ + "success" => false, + "title" => "Mandate a mission.", + "info" => "Error, please sign-in before.", + "timer" => true, + "toSrc" => true + ], + "notConnected" => [ + "success" => false, + "title" => "Mandate infos.", + "info" => "Error, you must be connected, and connected as client.", + "timer" => true, + "toSrc" => false + ] + ], + // Acceptation d'une mission + "missionAccepted" => [ + "success" => [ + "success" => true, + "title" => "Mission info.", + "info" => "Mission accepted !", + "timer" => true, + "toSrc" => true + ], + "fail" => [ + "success" => false, + "title" => "Mandate infos.", + "info" => "Error, mission not accepted.", + "timer" => true, + "toSrc" => true + ] + ], + // Validation d'une mission + "missionValidated" => [ + "success" => [ + "success" => true, + "title" => "Mission info.", + "info" => "Mission completed!", + "timer" => true, + "toSrc" => true + ], + "fail" => [ + "success" => false, + "title" => "Mandate info.", + "info" => "Error, mission not marked as completed.", + "timer" => true, + "toSrc" => true + ] + ], + // Ajout d'un commentaire & note + "missionReview" => [ + "success" => [ + "success" => true, + "title" => "Mission review.", + "info" => "Your review has been registered!", + "timer" => true, + "toSrc" => true + ], + "fail" => [ + "success" => false, + "title" => "Mission review.", + "info" => "Error, your review has not been resgistered.", + "timer" => true, + "toSrc" => true + ] + ], + // Ajout utilisateur + "userAdd" => [ + "success" => [ + "success" => true, + "title" => "Register an user.", + "info" => "User successfully registered !", + "timer" => true, + "toSrc" => false + ], + "fail" => [ + "success" => false, + "title" => "Register an user.", + "info" => "Error, user not registered.", + "timer" => true, + "toSrc" => true + ] + ], + // Delete utilisateur + "adminDelUser" => [ + "success" => [ + "success" => true, + "title" => "Delete an user.", + "info" => "User deleted !", + "timer" => true, + "toSrc" => true + ], + "fail" => [ + "success" => false, + "title" => "Delete an user.", + "info" => "No user was deleted.", + "timer" => true, + "toSrc" => true + ] + ], + // Ajout categorie + "adminAddJob" => [ + "success" => [ + "success" => true, + "title" => "Add a job category.", + "info" => "Category added !", + "timer" => true, + "toSrc" => true + ], + "fail" => [ + "success" => false, + "title" => "Add a job category.", + "info" => "Category not added.", + "timer" => true, + "toSrc" => true + ] + ], + // Suppression categorie + "adminDelJob" => [ + "success" => [ + "success" => true, + "title" => "Deletion of a job category.", + "info" => "Category deleted !", + "timer" => true, + "toSrc" => true + ], + "delete" => [ + "success" => false, + "title" => "Deletion of a job category.", + "info" => "Category not deleted !", + "timer" => true, + "toSrc" => true + ] + ], + // Suppression mission + "adminDelMission" => [ + "success" => [ + "success" => true, + "title" => "Deletion of a mission.", + "info" => "Mission deleted !", + "timer" => true, + "toSrc" => true + ], + "delete" => [ + "success" => false, + "title" => "Deletion of a mission.", + "info" => "Mission not deleted !", + "timer" => true, + "toSrc" => true + ] + ] +]; + +?> \ No newline at end of file diff --git a/Template/Include/en/table.php b/Template/Include/en/table.php new file mode 100644 index 0000000..8aef67f --- /dev/null +++ b/Template/Include/en/table.php @@ -0,0 +1,86 @@ + [ + "User ID", + "Email", + "Crypted Password", + "Token for auto-login", + "Inscription date", + "User status" + ], + // En-tête des colonnes du tableau des missions de l'admin. + "adminMissions" => [ + "Mission ID", + "Request Date", + "Subject", + "Note", + "Review", + "Accepted by pro date", + "Validated by client date", + "Validated by pro date", + "Client lastname", + "Pro lastname", + "Job" + ], + // En-tête des colonnes du tableau Search de l'index. + "search" => [ + "Last name", + "First name", + "Job", + "Capabilities", + "Number of missions", + "Note", + "Stars" + ], + // En-tête des colonnes du tableau More infos de l'index. + "moreInfos" => [ + "Last name", + "First name", + "Job", + "Degree", + "Capabilities", + "Description", + "Phone number", + "Adress", + "Zip code", + "City" + ], + // En-tête des colonnes du tableau mes missions. + "pendingMissions" => [ + "Request date", + "Pro name", + "Job", + "Subject" + ], + // En-tête des colonnes du tableau mes missions. + "ongoingMissions" => [ + "Accpeted by pro date", + "Pro name", + "Job", + "Subject", + "Validated by client date", + "Validated by pro date" + ], + // En-tête des colonnes du tableau mes missions. + "completedMissions" => [ + "Request date", + "Started date", + "Validation by client date", + "Validation by pro date", + "Pro name", + "job", + "Subject", + "Review", + "Note" + ] +]; + +?> \ No newline at end of file diff --git a/Template/Include/en/text.php b/Template/Include/en/text.php new file mode 100644 index 0000000..7b8cfd1 --- /dev/null +++ b/Template/Include/en/text.php @@ -0,0 +1,106 @@ + [ + "btManageJob" => "Manage jobs categories", + "btManageUser" => "Manage users", + "btManageMission" => "Manage missions", + "formJobAddEn" => "Name in English", + "formJobAddFr" => "Name in French", + "submitJobAdd" => "Add", + "selJobDel" => "Choose a job to delete", + "submitJobDel" => "Delete", + "formDel" => "ID to delete", + "submitDel" => "Delete", + ], + "incl_global_footer" => [ + "main" => "Made by Debulois Quentin for my professional folder.
December 2021, all rights reserved.", + ], + "incl_form_userInfo" => [ + "h2" => "Informations about the user.", + "lastname" => "Last name", + "firstname" => "First name", + "phoneNumber" => "Phone number", + "adress" => "Adress", + "zipCode" => "Zip code", + "city" => "City", + "myJobs" => "My jobs", + "jobsSel" => "Jobs", + "jobsAdd" => "Add", + "degree" => "Degree", + "capability" => "Capacities", + "description" => "Descriptions", + "submit" => "Modify" + ], + "incl_form_login" => [ + "h2" => "Login", + "email" => "Email", + "password" => "Password", + "rememberMe" => "Remember me", + "submit" => "Sign-in" + ], + "incl_form_mission" => [ + "h2" => "Form to register a mission", + "subject" => "Subject", + "review" => "Review", + "proId" => "Pro ID", + "submit" => "Register", + "jobsSel" => "Jobs" + ], + "incl_table_myMission" => [ + "pendingMission" => "Pending missions", + "ongoingMission" => "Ongoing missions", + "completedMission" => "Completed missions", + "noPending" => "There is actually no pending missions.", + "noOngoing" => "There is actually no ongoing missions.", + "noCompleted" => "There is actually no completed missions.", + "accept" => "Accept", + "validate" => "Validate" + ], + "incl_global_navbar" => [ + "h2" => "AlphaJob", + "btnSearch" => "Search", + "btnInfos" => "Modif. infos", + "btnMission" => "Register mission", + "btnMyMission" => "My missions", + "btnAdmin" => "Administration", + "btnLogin" => "Sign-in", + "btnLogout" => "Loggout", + "btnRegister" => "Sign-up", + "lang" => "Language", + "btnLang" => "Select" + ], + "incl_form_register" => [ + "h2" => "Form to sign-in", + "email" => "Email", + "password" => "Password", + "notice" => "Admin is here for the purpose of the exam only:", + "isAdmin" => "Is admin?", + "isPro" => "Is pro?", + "isClient" => "Is client?", + "submit" => "Sign-up" + ], + "incl_index_search" => [ + "h2" => "Search a professional", + "searchBarName" => "Search by name", + "searchBarJob" => "Search by job", + "or" => "or", + "submit" => "Search", + "noResult" => "No result.", + "moreInfo" => "Infos", + "mandate" => "Mandate" + ], + "incl_index_slideshow" => [ + "slide1" => "Find the right proffessional for you.

For all your needs.

AlphaJob", + "slide2" => "Only the bests proffessionals can register!

Quality of work guarantee!

AlphaJob", + "slide3" => "Find the bests offers for your website today.

Discover our ready to use solutions.

AlphaJob" + ] +]; + +?> \ No newline at end of file diff --git a/Template/Include/en/title.php b/Template/Include/en/title.php new file mode 100644 index 0000000..c4fbeca --- /dev/null +++ b/Template/Include/en/title.php @@ -0,0 +1,20 @@ + "AlphaJob - Index", + "login" => "AlphaJob - Login", + "message" => "AlphaJob - Message", + "mission" => "AlphaJob - Manage a mission", + "myMission" => "AlphaJob - My missions", + "register" => "AlphaJob - Register", + "userInfo" => "AlphaJob - My user informations", + "admin" => "AlphaJob - Administration" +]; + +?> \ No newline at end of file -- cgit v1.2.3