Skip to content

Commit

Permalink
Prepare for publication
Browse files Browse the repository at this point in the history
  • Loading branch information
DidierViret committed Dec 15, 2021
2 parents d21b9ce + 22a3b34 commit d657b39
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 69 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Exclude some files and directories from the project's releases
/.gitignore export-ignore
/.gitattributes export-ignore
/conventions.md export-ignore
/phpunit.xml.dist export-ignore
/documentation/ export-ignore
/spark export-ignore
66 changes: 21 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,32 @@
# CodeIgniter 4 Framework
# Plafor

## What is CodeIgniter?
Web application to manage course plans of students in computer science CFC.

CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure.
More information can be found at the [official site](http://codeigniter.com).
## Getting Started

This repository holds the distributable version of the framework,
including the user guide. It has been built from the
[development repository](https://github.com/codeigniter4/CodeIgniter4).
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

More information about the plans for version 4 can be found in [the announcement](http://forum.codeigniter.com/thread-62615.html) on the forums.
### Prerequisites

The user guide corresponding to this version of the framework can be found
[here](https://codeigniter4.github.io/userguide/).
This project is developed on a LAMP server with PHP 7.4 and MariaDB 10.4.
It is based on the CodeIgniter 4.x framework.

### Installing

## Important Change with index.php
1. Download [our latest release](https://github.com/OrifInformatique/plafor/tree/Release-4.0)
2. Unzip your download in your project's directory (in your local PHP server)
3. Rename env file to .env and adapt it for your server's parameters
4. To init the project navigate to your server address, like ``http://localhost/plafor/public``
and add migration at the end of url
``http://localhost/plafor/public/migration``
## Built With

`index.php` is no longer in the root of the project! It has been moved inside the *public* folder,
for better security and separation of components.
* [CodeIgniter 4.x](https://www.codeigniter.com/) - PHP framework
* [Bootstrap](https://getbootstrap.com/) - Design library with personalized css
* [ReactJS v17.0.2](https://fr.reactjs.org/) - Design Library to add simple interactivity

This means that you should configure your web server to "point" to your project's *public* folder, and
not to the project root. A better practice would be to configure a virtual host to point there. A poor practice would be to point your web server to the project root and expect to enter *public/...*, as the rest of your logic and the
framework are exposed.
## Authors

**Please** read the user guide for a better explanation of how CI4 works!
* **Orif, domaine informatique** - *Initiating and following the project* - [GitHub account](https://github.com/OrifInformatique)

## Repository Management

We use Github issues, in our main repository, to track **BUGS** and to track approved **DEVELOPMENT** work packages.
We use our [forum](http://forum.codeigniter.com) to provide SUPPORT and to discuss
FEATURE REQUESTS.

This repository is a "distribution" one, built by our release preparation script.
Problems with it can be raised on our forum, or as issues in the main repository.

## Contributing

We welcome contributions from the community.

Please read the [*Contributing to CodeIgniter*](https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing.md) section in the development repository.

## Server Requirements

PHP version 7.3 or higher is required, with the following extensions installed:

- [intl](http://php.net/manual/en/intl.requirements.php)
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library

Additionally, make sure that the following extensions are enabled in your PHP:

- json (enabled by default - don't turn it off)
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php)
- xml (enabled by default - don't turn it off)
See also the list of [contributors](https://github.com/OrifInformatique/plafor/contributors) who participated in this project.
19 changes: 13 additions & 6 deletions orif/plafor/Views/templates/navigator.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,20 @@
}
?>
<span id="navigator">
<?php
<?php
$navigatorLink=service('session')->get('navigator');
for($i=0;$i<count($navigatorLink);$i++){?>
<a href="<?=$navigatorLink[$i]['link']?>"><?=$navigatorLink[$i]['title']?></a> <?php echo count($navigatorLink)>1&&$i!=count($navigatorLink)-1?'<i class="bi bi-arrow-right-short" style="color: #ae9b70"></i>':''?>
<?php }?>
<?php if(count($navigatorLink)>1):?>
<a class="btn btn-primary bi bi-arrow-left-circle" style="margin-left: 0.5rem" href="<?=$navigatorLink[count($navigatorLink)-2]['link']?>"></a>
if(count($navigatorLink)>1):?>
<a id="navigator-back" class="btn btn-outline-primary mr-2 bi bi-arrow-left-circle" href="<?=$navigatorLink[count($navigatorLink)-2]['link']?>">
<?= lang("common_lang.btn_back") ?>
</a>
<?php for($i=0;$i<count($navigatorLink);$i++) {?>
<a href="<?=$navigatorLink[$i]['link']?>"><?=$navigatorLink[$i]['title']?></a>
<?php echo count($navigatorLink)>1 && $i!=count($navigatorLink)-1 ? '<span class="text-primary"><i class="bi bi-arrow-right-short" ></i></span>' : ''?>
<?php } ?>
<?php else : ?>
<a id="navigator-back" class="btn btn-outline-primary mr-2 bi bi-arrow-left-circle" href="<?= base_url("courseplan/list_course_plan") ?>">
<?= lang("common_lang.btn_back") ?>
</a>
<?php endif;?>
</span>
<?php } ?>
25 changes: 7 additions & 18 deletions public/css/MY_styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ p.bg-primary {
}
.objectiveCardHeader a{
color: white!important;
}
.objectiveCardContentContainer{

}
.objectiveCardDescription{
padding-left: .75rem;
Expand Down Expand Up @@ -91,17 +88,7 @@ p.bg-primary {
.acquisitionStatusSelect{
min-width: 130px;
}
#navigator{
margin-bottom: .5rem;
display: flex;
align-items: center;
flex-wrap: wrap;
}
#navigator > a{
}
#navigator > a:last-child{

}
@media screen and (max-width: 770px){
#objectiveListContent{
display: none;
Expand All @@ -114,12 +101,14 @@ p.bg-primary {
justify-content: center;
}
}
@media screen and (max-width: 750px) {
#navigator{
}
#navigator > a {
}

#navigator {
margin-bottom: .5rem;
display: flex;
align-items: center;
flex-wrap: wrap;
}

@media screen and (max-width: 520px){
.objectiveCardContainer{
min-width: 280px;
Expand Down

0 comments on commit d657b39

Please sign in to comment.