marcinlawnik / dzienniklogin Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED An app that notifies about new grades in EKOS register
License: The Unlicense
DEPRECATED An app that notifies about new grades in EKOS register
License: The Unlicense
Obecnie nasz widok zmiany hasła wygląda słabo:
Adres do edycji:
https://github.com/marcinlawnik/DziennikLoginWebNew/blob/master/app/views/edit/password.blade.php
Per description, models/Subject.php
public static function calculateAverage($subject_id)//Array of grades as input here
{
$grades = Grade::where('user_id', '=', Sentry::getUser()->id)->where('subject_id', '=', $subject_id)->get();
$sumaOcen=0;
$sumaWag=0;
foreach ($grades as $grade) {
$sumaOcen += $grade->value * $grade->weight;
$sumaWag += $grade->weight;
}
if ($sumaWag != 0) {
return round($sumaOcen/$sumaWag, 2);
} else {
return 'ERROR';
Log::error('Liczenie średniej nie powiodło się');
}
}
Sprawdzanie czy hasło do dziennika jest poprawne, notyfikacja mailem o zmienieinie hasła, wyłączenie joba.
4 przyciski po lewej stronie na stronie głównej w ocenach i w przedmiotach:
Walidacja to inaczej sprawdzanie popdawności podanych danych. Chodzi np. o to, aby nikt nie podawał nieprawidłowego adresu e-mail lub np. jednoznakowego hasła.
Obecnie nasza walidacja wygląda tak:
public static $rules = array(
'email'=>'required|email|unique:users',
'password'=>'required|alpha_num|between:8,32|confirmed',
'password_confirmation'=>'required|alpha_num|between:8,32',
'registerusername'=>'required|between:2,50|unique:users',
'registerpassword'=>'required|alpha_num|confirmed|different:password|between:2,50',
'registerpassword_confirmation' => 'required'
);
Dostępne zasady walidacji tutaj:
http://laravel.com/docs/validation#available-validation-rules
Zadania:
fix if some teacher puts plus in description
ExecuteGradeProcessJob/processGradeCell
//TODO: Add email activation
Options to get email whenever the user wants
This requires some database tinkering, basically new field in users table and the associated logic
Sortowanie takie jak dla wszystkich ocen, a komunikat dot. sortowania był razem z innymi (tymi na górze)
global.php
APP::missing
Zmodyfikuj funkcję generującą wykres ilości ocen od ich wartości:
Kod poprzedniej funkcji:
https://github.com/marcinlawnik/DziennikLoginWeb/blob/master/classes/graphReportGenerator.php
Kod źródłowy użytej biblioteki:
http://www.pchart.net/download
Jej dokumentacja:
http://wiki.pchart.net/
Podzadania
array(
'6' => '8',
'5.5' => '10',
'5' => '7',
'4.5' => '15',
'4' => '3',
'3.5' => '9',
'3' => '17',
'2.5' => '11',
'2' => '8',
'1.5' => '9',
'1' => '2',
);
Pozdrawiam,
Marcin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.