Geia kai pali,
auti ti fora thelw to exis:
Na mporei apo mia selida enas mathitis na dinei enan kodiko kai na tou erxetai o vathmos tou sto 'tade' mathima.
pws mporei na ginei kati tetoio? (genika)
eidika:
idi uparxoun ola auta ta dedomena se ena excel kai tha ektimousa mia lusi pou na min xreiazetai na allaxw tipota sto excel kathws na mporw sto mellon na ananewnw to arxeio excel kai na douleuoun ola sto web.
Thanks
kai kales giortes.
auto ginete me access sto pedio erwthmata, de xerw an mporeis na baleis sthn access ta steixeia apo to excel
loipon mesa apo mia basi dedomenon mporeis na to kaneis auto pou thes kata protimisi access pou sou ipe kai o filos mia kai ine eukoli....den nomizo omos oti tha breis pollous server gia na ipostirizoun access....thelei omos mia diadikasia gia na mporesei o kathe mathitis na pernei ta apotelesmata meso kodikou....einai omos arketa eukolo..... tora apo to excel mporeis na katebazeis stin access i kai se opoiadipote basi ....
Ok, euxaristw.
an exete ligo xrono tha ithela na mou peite liga pragmata parapanw giato pws tha gineoun auta.
kai pali euxaristw,
kales giortes.
2 parts to this script
===========================================================
part 1 - place inside your head tags
===========================================================
<SCRIPT>
<!--
/**************************************************
Script by Howard Chen
Get more JavaScripts at http://start.at/javascripts/
Bugs report to jdeveloper@telebot.net
This script is free as long as its credits is kept
**************************************************/
//===================Changable Data==================
var radioNum = 5 //Total number of questions
var CorrectAnswer = "DBDAC" //The correct answers in order
var maxPt = 100 //Total possible points
//==============DO NOT EDIT BELOW THIS LINE EXCEPT THE COMMENTS PART=============
var CompareAnswer = "ABCD"
var radioTax = maxPt / radioNum
var log = ""
var CheckPoint = new Array(radioNum)
var timeStart = new Date()
for (i=0; i<radioNum; i++)
CheckPoint[i] = i*4 + CompareAnswer.indexOf(CorrectAnswer.charAt(i))
function CheckSum ()
{
log = ""
var ansLog = ""
for (var i = 0; i<radioNum*4; i+=4) {
for (var j = 0; j < 4; j++) {
if (document.ANSWER.elements[i+j].checked == true) ansLog += CompareAnswer.charAt(j)
}
if (ansLog.length <= i/4) {ansLog += "-"}
}
var YourScore = 0
for (i=0; i<radioNum; i++)
{
if (document.ANSWER.elements[CheckPoint[i]].checked == true)
{
YourScore += radioTax
}
}
var scoreSheet = window.open("","","width=350,height=400,toolbars=no,status=no,scrollbars=yes,resizable=yes")
MyPress = "<H1 align=center>Test Results</H1>"
MyPress += "<B>Time Started:</B> " + timeStart.getHours() + ":" + timeStart.getMinutes() + ":" + timeStart.getSeconds() + "<BR>"
var timeTurnIn = new Date()
MyPress += "<B>Time Turned In:</B> " + timeTurnIn.getHours() + ":" + timeTurnIn.getMinutes() + ":" + timeTurnIn.getSeconds() + "<BR>"
MyPress += "<B>Summary:</B><BR><CENTER><TABLE WIDTH=100%>"
MyPress += "<TR><TD><CENTER><TT>Question<TD><CENTER><TT>Answer<TD><CENTER><TT>Your Answer<TD><CENTER><TT>Status</TR>"
for (var i=0; i<radioNum; i++) {
MyPress += "<TR><TD><CENTER><TT>" + (i+1) + "<TD><CENTER><TT>" + CorrectAnswer.charAt(i) + "<TD><CENTER><TT>" + ansLog.charAt(i)
if (CorrectAnswer.charAt(i) == ansLog.charAt(i)) MyPress += "<TD><CENTER><TT>Correct"
else MyPress += "<TD><CENTER><TT>Incorrect"
MyPress += "</TR>"
}
MyPress += "</TABLE></CENTER><BR>"
MyPress += "<B>Score:</B> " + YourScore + " out of " + maxPt + " possible points.<BR>"
MyPress += "<B>Comments:</B> "
if (YourScore == 100) { MyPress += "Way to go!!<BR>" }
else if (YourScore >= 80) { MyPress += "Pretty good!<BR>" }
else if (YourScore >= 60) { MyPress += "Come on, you can do better than that!<BR>" }
else { MyPress += "You need to study harder.<BR>" }
scoreSheet.document.write(MyPress)
scoreSheet.document.close()
scoreSheet.focus()
}
//-->
</SCRIPT>
================================================================
part 2 - place in the body where you want the script to show
================================================================
<FORM NAME="ANSWER" onSubmit="return CheckSum()">
1. If I have 3 apples, and I ate 2 of them, how many apples do I have left?
<BR>
<INPUT NAME="Q1" TYPE=RADIO>A Four apples
<BR>
<INPUT NAME="Q1" TYPE=RADIO>B Three apples
<BR>
<INPUT NAME="Q1" TYPE=RADIO>C Two apples
<BR>
<INPUT NAME="Q1" TYPE=RADIO>D One apple
<HR>
2. Ice will turn into water if the temperature is higher than __<sup>o</sup>C?
<BR>
<INPUT NAME="Q2" TYPE=RADIO>A 50
<BR>
<INPUT NAME="Q2" TYPE=RADIO>B 0
<BR>
<INPUT NAME="Q2" TYPE=RADIO>C 100
<BR>
<INPUT NAME="Q2" TYPE=RADIO>D 32
<HR>
3. Which of the following is correct?
<BR>
<INPUT NAME="Q3" TYPE=RADIO>A The Sun is surrounding the Earth
<BR>
<INPUT NAME="Q3" TYPE=RADIO>B The Earth is the center of the Solar System
<BR>
<INPUT NAME="Q3" TYPE=RADIO>C The Earth is surrounding the Moon
<BR>
<INPUT NAME="Q3" TYPE=RADIO>D The Earth is surrounding the Sun
<HR>
4. Which of the following is NOT a part of speech?<
BR>
<INPUT NAME="Q4" TYPE=RADIO>A Bold
<BR>
<INPUT NAME="Q4" TYPE=RADIO>B Verb
<BR>
<INPUT NAME="Q4" TYPE=RADIO>C Preposition
<BR>
<INPUT NAME="Q4" TYPE=RADIO>D Noun
<HR>
5. Who is the first president of United States?
<BR>
<INPUT NAME="Q5" TYPE=RADIO>A Bill Clinton
<BR>
<INPUT NAME="Q5" TYPE=RADIO>B Abraham Lincoln
<BR>
<INPUT NAME="Q5" TYPE=RADIO>C George Washington
<BR>
<INPUT NAME="Q5" TYPE=RADIO>D Thomas Jefferson
<HR>
<CENTER>
<INPUT TYPE=SUBMIT VALUE="Turn It In">
<INPUT TYPE=RESET VALUE="Erase All Answers">
</CENTER>
</FORM>
euxaristw gia ton kodika,alla den thelw auto. Auto pou esteiles einai gia multiple choice questions.
egw thelw to exis:
Erxontai oi mathites sto frontistirio,grafoun ta test(grafta, edw) kai otan egw diorthwnw ta test na pernaw to vathmno tous sto diktuo gia na ton vlepoun. alla oxi olous alla o kathenas ton diko tou.
Diladi, mallon thelw kapoio script pou na elexgei me password poios mpike kai na tou deixnei antistoixiselida me mono to vathmo tou. (nomizw oti auta pou proteinan alloi gia databases kanoun alla den xerw pws na ta ftiaxw).
Δες εδώ: http://tip.gr/dev/samples/login1.asp
Αν καταφέρεις αυτό τότε θα σου δώσω 2 γραμμές κώδικα να προσθέσεις και θα έχει ο κάθε μαθητής το βαθμό του στην σελίδα που θα δει αν πρώτα δώσει σωστά το user name και password.
tip: Web hosting Unix με Bandwith + Disk space Απεριόριστο μόνο 2.30 € * F5 για νέο tip