Skip to content

Sistem Pengurusan Penilaian Kuiz, Ilmu Di Hujung Jari, Matematik Tingkatan 4 (DLP)

Notifications You must be signed in to change notification settings

szeyu/sppk-math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sppk-math

Sistem Pengurusan Penilaian Kuiz, Ilmu Di Hujung Jari, Matematik Tingkatan 4 (DLP)

pls refer to szeyu branch


for the removal step of soalan pls follow these steps

  1. delete pilihan
  2. delete soalan
  3. delete topik

in the updateTopik":

first store idTopik
then store tajuk > these are constant then store subTopik /

i suppose do a for loop first check how many soalan are there total S / 4 is the total number of soalan because S got 4 same data just different Id

--> add loop here but the S id is important to get the id of P

so store four of the soalan id in the first loop then store the soalan once because 4 same then find the id pilihan

then store this four id pilihan then store four jawapan (0, 1) then find which one [position] got jawapan = 1 then determine the A,B,C,D then store four pilihan

then output then loop again

[0,0,0,1] then answer is D [102,34,23,105] for the each pilihan then output from array no need to make variable

ok for output part leh a bit hard need to know got any question added or deleted and need to get the lateszt id to add if got deleted then need to remove the id

first thing to do is we must output the subtopik and tajuk first

then we must add echo in loop

after output when user press ubah then need to identify wheter soalan got increase or decrease.


/////////////////////////////////////// ///////// SOLVED ///////////////////////////////////////

there is a BIG issue, i cannot remove the existed soalan 2,3... so i need to do an if statement to add DIV element so that i can remove it

updateTopik.php?IdTopik=T6:229 Uncaught TypeError: Cannot read property 'parentNode' of null at deleteSoalan (updateTopik.php?IdTopik=T6:229) at HTMLAnchorElement.onclick (updateTopik.php?IdTopik=T6:197)


////////////////////////////////////////////// /////// SOLVED /////////////////////////////////////////////

why the hell it remove question 1. [ SOLVED ]

and why there is a line that interupt the structure of the interface [ SOLVED ]


//////////////////////////////////////////////// //// SOLVED ////////////////////////////////////////////////

i want to transfer the Id Topik to ubahSoalanDB.php there is a few solution one is it is use session global variable. and i dun want to use session


ubah soalan DB

for the ubahSoalanDB.php hor is combination of many function 0) delete Perekodan

  1. delete
  2. change
  3. add

need to check if there is any extra question added or not, if yes then use the register quiz method to do

need to check if there is any deleted question, if yes then use the delete topik method to do

do the check extra and check deleted first then execute them then only do the update just replace whatever user type with that only

i can use echo output at that place because after header(...) then my all echo will gone plus echo can let me see the process

    OR

i can just delete old one then add the ubah soalan as new soalan and this need to MANTAIN IdTopik kunci primer

then id soalan dan id pilihan just create a new one using the same method in registerQuiz.php


the add data to data base php will renew my IdTopik so not good cause the IdTopik must still the same

so need to create seperate file then include them

remove the get latest id in addDataToDB.php then the get id function only be included if need it

cheh just now forgot to use sql code


Student part

algorithm

koleksi murid

check if there is any IdTopik that have been done in perekodan if no than display the IdTopik table in haven't done table there is button beside the table, "buat dan hantar" then if click the display all the data and the objective in radio button

after done can click button to submit then it will back to the page
then display result in perekodan 

if yes than display perekodan in done table [ I think put in prestasi murid better ]

prestasi murid

display graph first [ can put standard deviation or statistics ]

put search bar then display the latest perekodan at top [HINT : can use date time to elavuate]


IMPORTANT NOTICE

I can replace the delete function with showing how many student haven't done then display some perekodan table

after done do quiz page only can continue the check murid page bacause perekodan haven't got sample


addPerekodan and semakJawapan

addPerekodan get data from buat Kuiz then link to semak jawapan

semak jawapan get input from URL so that it is more universal

add perekodan only get called by buatKuiz and semak jawapan get called by add perekodan and prestasi sendiri button

semak jawapan will display in green when correct and red when wrong then the answer is written below

add perekodan [done]

  1. get IdTopik from url

  2. get data from radio form in buatKuiz

  3. get date time from system (1/1/21)

  4. get the IC of the murid from session variable (GLOBAL variable)

  5. then need to use the ultimate method to get the latest IdRekod then make sure it is not duplicate

  6. then check with IdPilihan see correct or not

  7. then get calculate the score total correct / total question x 100% = score

then store the murid jawapan in the form of "ADCDB"

semakJawapan

it is just a simple page with one button and display error only when click ok it will back to checkMurid.php get IdRekod in URL

--betul---------

--salah--------- correct answer = 60

        ok

can use check peranan before go to another so here can put onclick then js determine which way to go [IMPORTANT]


formula converter

convert and return the position of jawapanMurid in 00100001 use formula: i = 1 1 x 4 = 4 lets say if jawapan murid is C then we convert them to 3 4 - 3 = 1 4 - 1 = 3 3-1 = 2

i = 2 2 x 4 = 8 lets say if jawapan murid is D then we convert them to 4 4 - 4 = 0 8 - 0 = 8 8-1 = 7

general formula = 4i - (4 - jawapanMurid) - 1 = 4i - 4 + jawapanMurid - 1 = 4i + jawapanMurid - 5


need control in collectionmurid


Okiee cannot in library import another library [ solved ]

so in order to solve that i need to do a seperate file for index Murid or Guru and check Murid or Guru

so to link them together need href or header() and not using Jquery library


perekodan table problem [solved]

the perekodan table in murid will show other student perekodan so need to solved and then other student can help other to do one test so need seperate

About

Sistem Pengurusan Penilaian Kuiz, Ilmu Di Hujung Jari, Matematik Tingkatan 4 (DLP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published