30ã40ã®è³ªåã«å¯ŸããäºçŽ°ãªWordã®ã¢ã³ã±ãŒã圢åŒã®TKã®æ¹ãç°¡åãªããã«æãããŸãã顧客ã¯ããã°ã©ã ããã圢åŒã§ãã©ãŠã¶ãŠã£ã³ããŠã«è¡šç€ºããããã«4æ¥éãã¹ãŠãæäŸããŸããïŒ ç§ã®å人ããã€ãŠèšã£ãããã«ã圌ãç§ãšåãå§ãããŸã§ïŒ
-ã¯ãã4æéãããŸãïŒ åœŒã¯ååäžã«åº§ã£ãŠãå€æ¹ãŸã§ã«ãã¹ãŠãæºåããããã¹ããããŸããã ãªãããªããå©ããŠããã®ãåãããŸãã...
ããããæ®å¿µãªããšã«ã圌ãæ瀺ããããã«ããã¹ãŠã¯åçŽãªãã®ã§ã¯ãªããç·æ¥æã«æåã®ã¢ã³ã±ãŒãã2æ¥éããã°ã©ã ãïŒãã®åŸ2ãã3æ¥ä»¥å ã«ãã¡ããã¡ãã«ãªããŸãïŒãé»è©±ãã¡ãŒã«ã§çµ¶ããå€ãã®ã³ã¡ã³ããåãåããŸããã ãããŠãããã§ã®ãã€ã³ãã¯ã圌ãã®èœåãè·æ¥äžã®å€±æãåè©äŸ¡ããããšã§ã¯ãªãïŒãããŠããµã€ããã«ããŒã®è±å¯ãªçµéšãæã€å人ã§ãªããã°ãªããŸããïŒããã£ãŒã«ãèªäœã¯éåžžã«å ·äœçã§ãèœãšãç©ŽãšåŸ®åŠãªãã€ã³ãããããŸãã ãããã®èœãšãç©ŽãšåŸ®åŠãªç¹ã®ããã€ãã«ã€ããŠãããã³ããããåé¿ããæ¹æ³ã«ã€ããŠãç§ã¯äŒããããšæããŸãã
ãèµ€ã欲ãããéããŸãã¯ã³ãŒãã®å€æŽå¯èœæ§
ãªãçºçããã®ãã¯ããããŸããããäœããã®çç±ã§ã顧客ã1æ¥ã«æ°åãããã¡ã€ã«èŠä»¶ãå€æŽãããã®ã¯ããŒã±ãã£ã³ã°ã§ãã ã©ããããããã¯å éšçµç¹ã«ãããã®ã§ãå·Šæã¯å³æãäœãããŠããã®ããåžžã«ææ¡ããŠããããã§ã¯ãªããæã«ã¯å®å šã«ç°ãªããã®ãæãã§ããŸãã ããããããã¯æ¬è³ªã§ã¯ãããŸãããããã€ã³ãã¯ãã¹ãŠããã°ã©ããŒã®é çã«ã€ãªããããšã§ãïŒãšããã§ãããæè¿ãŸã§ãCATIã®ã¢ã³ã±ãŒãã®æçµããŒãžã§ã³ããV.13.3_final_finalããšããŠãªã¹ããããŠããå Žåããããããã¯ãæçµãTKãã
äœæ¥ã容æã«ããéçºæéãççž®ããèµ·ãããããšã©ãŒã«å¯Ÿãããã¥ãŒãã³ãã¡ã¯ã¿ãŒã®åœ±é¿ãæå°éã«æãããšã³ãžã³ãäœæãããšããã¢ã€ãã¢ã¯ã4åç®ã®ã¢ã³ã±ãŒãã®åŸã«åºãŠããŸããã çŽ æŽãªã¢ã€ãã¢ã¯ããã®ããã°ã©ãã³ã°èªäœã®ç¥èãšæ¢åã®ãããžã§ã¯ããå€æŽããåçŽãã®ãªããããã°ã©ãã³ã°ãã¢ã³ã±ãŒãã®å¯èœæ§ã®åºç€ãšããŠæ¡çšãããŸããã
ã¢ã€ãã¢ã¯æ¬è³ªçã«ããã»ã©æªãã¯ãããŸããã§ããããéèŠãªåœ¹å²ã¯ãå®è£ ã®ããã®ãªãœãŒã¹ã®äžè¶³ïŒå·¥æ°ïŒãšééã£ãã¢ãããŒãã«ãã£ãŠè¡ãããŸããïŒã¢ã³ã±ãŒãã¯ãç¹å®ã®ã³ãã³ããæ åœããåãExcelãã¡ã€ã«ã§ãããšæ³å®ãããŸãããã¶ã€ããŒã¢ãžã¥ãŒã«ã®å ŽåïŒ
- 質åã®ã·ãŒã±ã³ã¹çªå·
- 質åã³ãŒã
- å¯èœãªçã
- åºæã®å¿çã³ãŒã
- åçãªãã·ã§ã³èªäœ
- 質åã®çš®é¡ïŒãã§ãã¯ããã¯ã¹ãã©ãžãªãããã¹ããæ··åïŒ
- 質åçšèª
- ããŒãªã³ã°åæ¢æ¡ä»¶
- è¿œå ã®åŒã³åºãããé¢æ°
解決æžã¿-å®äºã ããããæåã®ãã³ã±ãŒãã¯ããã€ãã®ããã«ããŽããŽãããŠããŸã...
æ éçè«
ãšã³ãžã³ã¯å°èŠæš¡ãªãããžã§ã¯ãã§å®è¡ãããŸãããã6åç®ãŸãã¯7åç®ä»¥éãæ©èœã®å€§å¹ ãªæ¡åŒµã«ãããéžæãããéçºãã¹ããããããã¯ãããŠããããšãæããã«ãªããŸããã ç§ã®ããŒãããŒãšç§ïŒéçºè ïŒèªèº«ããã©ã®æ©èœãèŠå®ãããŠãããã«ã€ããŠãã§ã«æ··ä¹±ãå§ããŠãããšããç¹ã«éããŸããã çç±ïŒ
- ããŒãžäžã§ã®è³ªåã®æ瀺ã®ã¿ã€ãïŒããã³ãã®çµã¿åããïŒã«ã¯å€ãã®å¯èœãªãªãã·ã§ã³ããããåãããžã§ã¯ãã¯ãããŠããŒã¯ã§ãïŒã€ãŸãã顧客ã®æ³ååãæ¿ãããªããŸãïŒ
- 調æ»ã®ããžãã¯ã¯ãéåžžã«æŽç·ŽãããŠããå ŽåããããExcelã»ã«ã§ã®ãã®èª¬æã¯ãã¯ã¬ã€ãžãŒãªé£æ¶ååŒã«æ³šãããŠããŸãã
ä»ã«ãäºæ¬¡çãªçç±ããããŸããã
解決çã¯ãŠã£ã¶ãŒããäœæããããšã§ããããã®ãŠã£ã¶ãŒãã¯ããã¢ã³ã±ãŒãåçãã®åœ¢åŒã§å°æ¥ã®ã¢ã³ã±ãŒãçšã®ãã³ãã¬ãŒãã圢æããçµã¿èŸŒã¿ã®ãšãã£ã¿ãŒã§ããã«é ã«æµ®ãã³ãŸãã ããããããã¯ãã¹ãŠæ°ããå·¥æ°ãç¡éã®ã³ãŒãä¿®æ£ã絶ãéãªãæŽæ°ã§ãããçµæãšããŠãäžçš®ã®ãã©ã³ã±ã³ã·ã¥ã¿ã€ã³ã®æªç©ã§ãã ãã®ããããã®ã¢ãããŒããæŸæ£ããããšã決å®ãããŸããã
å éšã¹ã¯ãªããèšèªã®èšè¿°ãC ++ã§ã®ããŒã¢ã³ã®ããã°ã©ãã³ã°ïŒããåºç¯ãªæ©èœã®ããïŒãWordææžã®ããŒãµãŒïŒç¹å®ã®åœ¢åŒã§èšè¿°ïŒãããã³ä»ã®å€ãã®ã¢ã€ãã¢ãæ€èšãããŸããã ãããããããã®ãã¹ãŠã¯ã圌ãã®äžæ¡çãŸãã¯å®è£ ã®é¢åãã®ããã«ããŒã¯ãããŸããã ã·ã³ãã«ã§ãããªããæè»ãªãœãªã¥ãŒã·ã§ã³ãèŠã€ããå¿ èŠããããŸãã...
åé¡ã®èª¬æãšè§£æ±ºç
åé¡ã®æèœãªå£°æã¯ãä¿èšŒã§ã¯ãªãã«ããŠããã¢ã€ãã¢ã®æåããå®è£ ãžã®éã®è¯ãå©ãã§ãã
ãªã³ã©ã€ã³èª¿æ»ã®ããã°ã©ãã³ã°ã§ãã§ã«ååãªçµéšãããããã®åé¡ã§å€ãã®èœãšãç©Žãšãã¥ã¢ã³ã¹ã«çŽé¢ããŠãããããã·ã¹ãã ãæºããã¹ãããã€ãã®äž»èŠãªïŒç§ã®æèŠã§ã¯ïŒãã€ã³ããæŠèª¬ããŸããã
- ããŸããŸãªãã¶ã€ã³ãæ¥ç¶ããããããããªã³ã¶ãã©ã€ãã§å€æŽããæ©èœ
- ããã°ã©ãã³ã°ããã»ã¹ã®æ倧å é
- ããžãã¯ã®èšè¿°ãšå€æŽãç°¡å
- é«éãªæ¡åŒµæ§
- é«è² è·ã§ã®å®å®æ§
- ãã¡ã€ã«ã·ã¹ãã ã䜿çšããŠããŒã¿ãä¿åãã
ãŸããèµ·ããããåé¡ãæå°éã«æããããã«ãããã€ãã®ç°¡åãªã«ãŒã«ã«åŸãããšã決å®ãããŸããã
- ããžãã¯ãå¥ã®ãã¡ã€ã«ã«ç§»åãã
- ãŸããå質åã¯åå¥ã®ãã¡ã€ã«ã«ãŸãšããããŠããŸãã
- ã¯ã©ã€ã¢ã³ãåŽã®å®äºãæ€èšŒãã
- ãã¹ãŠã®å¿ èŠãªãã£ãŒã«ãã®å ¥åã確èªããã«ã¯ãç¹å®ã®è³ªåã®æ§é ã«æå°éäŸåããjsé¢æ°ã䜿çšããŸã
- æ§é ããã°ã©ãã³ã°ã䜿çšãã
çµæãšããŠãåºåã¯ã¢ããªã·ãã¯ãšã³ãžã³ã§ã¯ãªãããŠãŒã¶ãŒã«è³ªåã衚瀺ããã¢ãžã¥ãŒã«ã®è€åäœã§ãããé¢æ°ã®jsã©ã€ãã©ãªãšphpã©ã€ãã©ãªãå«ãŸããŠããŸããã
ããã§ãããã«è©³ãã説æããããã€ãã®ãã€ã³ãããã€ã³ãããŸãã
ããŸããŸãªãã¶ã€ã³ãæ¥ç¶ããããããããªã³ã¶ãã©ã€ãã§å€æŽããæ©èœ
顧客ã¯ããµãŒãããŒãã£ã®äŒç€Ÿã§èª¿æ»ã泚æããå Žåã§ããããŒã±ãã£ã³ã°èª¿æ»ã§ç¬èªã®ãã¶ã€ã³ã䜿çšããå¿ èŠãããããšããããããŸãã ããã¯ç¹ã«ããã©ã³ãããã¢ã³ã±ãŒããžã®ãªã³ã¯ãã¯ã©ã€ã¢ã³ãã®ãŠã§ããµã€ãã«æçš¿ãããŠããå Žåã«åœãŠã¯ãŸããŸãïŒãŠãŒã¶ãŒããµã€ããé¢ããŠããªããšããå°è±¡ãäžããããïŒã
ãªããªã å§åçå€æ°ã®æ祚ã«ã¯å ±éç¹ã1ã€ãããŸã-æ å ±ã1ã€ã®é åã§ã®ã¿å€åããããã解決çã¯2ã€ã®phpé¢æ°ã䜿çšããããšã§ããã 次ã®ããã«ãªããŸãã
<?php session_start(); include('./php/funcs.php'); // if (!$_SESSION['user_ID']){ // $user_id = md5(date('ymd H:i:s').rand()); $_SESSION['user_ID'] = $user_id; $_SESSION['user_position'] = setUserPosition($user_id); // , ( "start") } else { $_SESSION['user_position'] = setUserPosition($_SESSION['user_ID']); // , , } ?> ... // html- <div id="workDiv" class="workDiv" > <?php showQuest($_SESSION['user_position']); // , div' ?> </div> ... // html- ("", "", "") <input type="button" style="width: 75px;" id="backBtn" onclick="request('back');" value=""> <input type="submit" style="width: 75px;" id="submitBtn" onclick="request('forvard');" value=""> <input type="submit" style="width: 75px; display: none;" id="endBtn" onclick="endOfSurvey();" value="">
<?php session_start(); include('./php/funcs.php'); // if (!$_SESSION['user_ID']){ // $user_id = md5(date('ymd H:i:s').rand()); $_SESSION['user_ID'] = $user_id; $_SESSION['user_position'] = setUserPosition($user_id); // , ( "start") } else { $_SESSION['user_position'] = setUserPosition($_SESSION['user_ID']); // , , } ?> ... // html- <div id="workDiv" class="workDiv" > <?php showQuest($_SESSION['user_position']); // , div' ?> </div> ... // html- ("", "", "") <input type="button" style="width: 75px;" id="backBtn" onclick="request('back');" value=""> <input type="submit" style="width: 75px;" id="submitBtn" onclick="request('forvard');" value=""> <input type="submit" style="width: 75px; display: none;" id="endBtn" onclick="endOfSurvey();" value="">
ããã¯ãæ祚ã®ãã¹ãŠã®å¯èœãªããªãšãŒã·ã§ã³ã®3/4ã®èŠä»¶ãæºããã®ã«ååã§ãã æ®ãã®1/4ã«ã€ããŠã¯ãããã€ãã®ã¿ã°/é¢æ°ã®è¿œå ã劚ãããã®ã¯ãããŸããã
èšèšå€æŽã®åé¡ã¯è§£æ±ºãããŸããã
ããã°ã©ãã³ã°ããã»ã¹ã®æ倧å é
ãã¹ãŠãé¢æ°ã®ã»ãããšããŠå®è£ ããããµãŒããŒãšããŒã¿ã亀æããäž»ãªã¿ã¹ã¯ãšãã®è§£éã解決ããããšã³ãžã³äžã«ãããšããäºå®ã«ãããã¢ã³ã±ãŒãèªäœã®ããã°ã©ãã³ã°ã¯ãã©ã®ãã§ãã¯ã«å¯Ÿå¿ããjsã¹ã¯ãªããã«ç»é²ããããžãã¯ä»ãã®ãã¡ã€ã«ãæžãããšã«ãªããŸã次ã®åœ¢åŒã®è³ªåãã³ãã¬ãŒãã®åèªåäœæïŒ
<form name="form" method="post"> <b> :</b> <br /><br /> <input type="radio" name="Z0" id="Z0" value="1" /> <div class="textAssociationDiv" > </div> <br /> <input type="radio" name="Z0" id="Z0" value="2" /> <div class="textAssociationDiv" > </div> <br /> </form>
<form name="form" method="post"> <b> :</b> <br /><br /> <input type="radio" name="Z0" id="Z0" value="1" /> <div class="textAssociationDiv" > </div> <br /> <input type="radio" name="Z0" id="Z0" value="2" /> <div class="textAssociationDiv" > </div> <br /> </form>
ã³ãŒãã«ã¯ãã¯ã©ã¹ãtextAssociationDivããæã€è€æ°ã®divãå«ãŸããŠããŸã-ããã¯ãç¹å®ã®ãã§ãã¯ããã¯ã¹ãã©ãžãªãã¿ã³ãªã©ãããã¹ãã®ã¯ãªãã¯ãé¢é£ä»ããããã«äœ¿çšãããŸãã 誰ããèå³ãæã£ãŠããå Žåããããè¡ãjsé¢æ°ã®ã³ãŒãã¯æ¬¡ã®ãšããã§ãã
function associateTextToElement(){ $(".textAssociationDiv").click(function(){document.forms['form'].elements[$(".textAssociationDiv").index($(this)[0])].click();}); }
function associateTextToElement(){ $(".textAssociationDiv").click(function(){document.forms['form'].elements[$(".textAssociationDiv").index($(this)[0])].click();}); }
ãŸããã³ãŒãã§åãIDã䜿çšãããŸãã ããã«ãããè€æ°ã®è³ªåã衚瀺ãããŠããå Žåã«ããŒãžèŠçŽ ã®åæãç°¡åã«ãªããŸãã è€æ°ã»ããïŒè€æ°éžæïŒãªã©ã®è³ªåãæšæž¬ããå¿ èŠãããå ŽåãååãšIDã¯æ¬¡ã®åœ¢åŒãåããŸãïŒS9.1ãS9.2ãS9.3ãS9.4ãS9.5ãS9.97ãããã§ãã€ã³ãã®åŸã®æ°å-å¿çã³ãŒãã
ãŠãŒã¶ãŒã[次ãž]ãŸãã¯[æ»ã]ãã¿ã³ãã¯ãªãã¯ãããšãjavascriptã¯å ¥åããããã¹ãŠã®ããŒã¿ãåéããAjaxã¯ããã次ã®åœ¢åŒã§phpã¹ã¯ãªããã«éä¿¡ããŸãïŒvariable_code = valueã å€æ°ã³ãŒãã¯èŠçŽ ã®idããååŸãããŸããåäžã®è³ªåã§ã¯åãã§ãããå°ããªã»ããã§ã¯ç°ãªããããéåžžã«äŸ¿å©ã§ãã ã¹ã¯ãªããã¯ãPOSTã¡ãœããã䜿çšããŠããããåä¿¡ããŸãïŒãŠãŒã¶ãŒãããã®ãããªæ å ±ãé衚瀺ã«ããããšãéèŠã§ãïŒã$ _SESSION ['user_ID']ã«ä¿åãããååã§ãã°ãã¡ã€ã«ã«æžã蟌ã¿ãŸãã
ãã¡ã€ã«ã·ã¹ãã ã䜿çšããŠããŒã¿ãä¿åãã
ããŒã¿ããŒã¹ã®äœ¿çšãæŸæ£ããçç±ã¯ããã€ããããŸãããããã®äž»ãªçç±ã¯ã調æ»äžã«å€æ°ããã°ããè¿œå /åé€ããå¿ èŠããã£ãããšã§ãã ãŸãããã®ã¢ãããŒãã¯ãMySQLã䜿çšããéã®ãŠãŒã¶ãŒå¿çããŒãã«ã®ãã£ãŒã«ãæ°ã®åé¡ã解決ããŸããïŒäžéšã®ç 究ã§ã¯ç°ãªãå€æ°ã®ç·æ°ã1.5ãã2000ã«éããããšããããŸããïŒã
ãã¡ã€ã«ã·ã¹ãã ã䜿çšãããšããã¹ãŠã®å°é£ããªããªããŸããã ãµãŒããŒã«éä¿¡ãããããŒã¿ã¯ãã¹ãŠã察å¿ãããã°ãã¡ã€ã«ã«èšé²ãããŸããã ãããŠãããã€ãã®æ°ããåçãè¿œå ããã«ã¯ãå¿ èŠãªå ¥åãå«ã2ã3è¡ã察å¿ãã質åãã¡ã€ã«ã«è¿œå ããã ãã§ååã§ãã...ãã¹ãŠ-ãã¹ãŠã®ããŒã¿ãä¿åãããããã«è²»ããããæéã¯ã»ãã®æ°ç§ã§ããã ãã°ã®è§£éãã³ã³ãã¥ãŒã¿ãŒãšäººã®äž¡æ¹ã§ç°¡åã«ããããã«ããã°ã®åœ¢åŒã¯æ¬¡ã®ãšããã§ãã
userID = 1cb3761177ec8846fe8ae35392017e36
userIP = 192.168.1.34
startTime = 04/19/10 12:50:21
S4 = 33
S5 = 3
S9_8 = 8 //ããã¯è€æ°ã»ããã®èšè¿°æ¹æ³ã§ãïŒS9.8ãS9.10ãªã©ïŒ
å¥ã®ãã¡ã€ã«ã«ããžãã¯ãå ¥ãã
ããžãã¯ã®èšé²ã«é¢ããåé¡ã¯ãããã°ã©ããŒãã¢ã³ã±ãŒããããã°ã©ãã³ã°ããŠãããšå€æããããããŒãžã£ãŒãTKã®ã¿ãäžãããšãã«ãããèªäœã§è§£æ±ºãããŸããã ããžã¥ã¢ã«ãšãã£ã¿/ãŠã£ã¶ãŒãã䜿çšããŠèª°ãã®ç掻ããåçŽåãããå¿ èŠã¯ãããŸããïŒããã°ã©ãã«ãšã£ãŠç掻ãå°é£ã«ãªããŸãïŒããjsãšphpãç解ããŠãã人ã¯ãšã³ãžã³ãšã©ã€ãã©ãªã䜿çšããŸãã è»èŒªãåçºæããå¿ èŠãããããŸããã§ãã-å®è£ ãããå€æ°ã®ãããžã§ã¯ããåæãããšãããçŽæ¥ãããžãã¯ã¯ã¯ã©ã€ã¢ã³ãã®ãã¹ãŠã®ããŒãºãæºããããããæ°åã®é¢æ°ã2ã€ã®å€æ°ãifã¹ããŒãã¡ã³ãã§ååãªãã©ã³ããå®è£ ã§ããããšãããããŸããïŒ
- $ _SESSION ['user_ID'] -ãŠãŒã¶ãŒã®èå¥åãå«ãŸããŸãã圌ã¯ãã°ãã¡ã€ã«ã®ååã§ã
- $ _SESSION ['user_position'] -ãŠãŒã¶ãŒãã¡ããã©çãã質åã®ã³ãŒããå«ãŸããŠããŸã
- checkAnswerïŒ$ qCodeãarrayïŒ1ã2ã3ïŒïŒ -ãšã³ããªqCode = array [0]ãqCode = array [1]ãŸãã¯qCode = array [n]ã§ãããã©ããã確èªããŸãã$ qCodeã¯è³ªåã³ãŒãïŒããšãã°ã S12 "ïŒãããã³é åã«ã¯ç®çã®å€ãå«ãŸããŠããã å°ããªã»ããã§ã¯ããã€ã³ãã®åŸã®è³ªåå€æ°ã®åçã®ã€ã³ããã¯ã¹ã¯åžžã«åçã³ãŒãã«å¯Ÿå¿ãã質åã³ãŒãã®ã_n = nãèªå眮æã®å©ããåããŠïŒnã¯åçãªãã·ã§ã³ã§ãïŒããã¡ã€ã«ã§æ¢ããŠããè¡ãååŸããŸã-ãã®åŸããã®çããäžããããŸãã
- checkQuotasïŒ$ qCodeïŒ -ãŠãŒã¶ãŒãã¡ããã©çãã質åã®ã³ãŒãã«ãã£ãŠã¯ã©ãŒã¿ã®å®å šæ§ããã§ãã¯ããŸãïŒã¯ã©ãŒã¿ã¯æ¥ç¶ããã³åæããããããæ©èœã«ã¯ç°ãªãå®è£ ããããã¯ã©ãŒã¿ã¯ãããžã§ã¯ãããšã«åå¥ã«ããã°ã©ã ãããŸãïŒ
ãªã³ã©ã€ã³ã¢ã³ã±ãŒãã§ã¯ã調æ»ãã¯ãã«ã¯åžžã«äžæ¹åã«é²ã¿ãã³ã³ãã¥ãŒã¿ãŒã®èŠ³ç¹ããå¯èœãªåå²ãªãã·ã§ã³ã¯2ã€ã®ã¿ã§ãããšããæ¡ä»¶ïŒæ¡ä»¶ãæºãããããã©ããïŒãèæ ®ãããšãããžãã¯å šäœãå¶éãŸã§ç°¡ç¥åããã次ã®åœ¢åŒïŒphp ïŒïŒ
if ($_SESSION['user_position'] == 'S9' && checkAnswer('S9',1)){ // S9 1- $question_contents = file_get_contents('../qst/Z6.php'); echo iconv("cp1251", "UTF-8", $question_contents); //include_once('../qst/Z6.php'); //echo iconv("cp1251", "UTF-8", showQuest()); $_SESSION['user_position'] = 'Z6'; exit; } // , php (, ) if ($_SESSION['user_position'] == 'A1'){ // A1 //$question_contents = file_get_contents('../qst/A3.php'); //echo iconv("cp1251", "UTF-8", $question_contents); include_once('../qst/A3.php'); echo iconv("cp1251", "UTF-8", showQuest()); $_SESSION['user_position'] = 'A3'; exit; }
if ($_SESSION['user_position'] == 'S9' && checkAnswer('S9',1)){ // S9 1- $question_contents = file_get_contents('../qst/Z6.php'); echo iconv("cp1251", "UTF-8", $question_contents); //include_once('../qst/Z6.php'); //echo iconv("cp1251", "UTF-8", showQuest()); $_SESSION['user_position'] = 'Z6'; exit; } // , php (, ) if ($_SESSION['user_position'] == 'A1'){ // A1 //$question_contents = file_get_contents('../qst/A3.php'); //echo iconv("cp1251", "UTF-8", $question_contents); include_once('../qst/A3.php'); echo iconv("cp1251", "UTF-8", showQuest()); $_SESSION['user_position'] = 'A3'; exit; }
äžèšã®ã³ãŒããããããããã«ãäž¡æ¹ã®ãªãã·ã§ã³ã¯ã»ãŒåãã§ãããä»ã®ãã¹ãŠã®ãã§ãã¯ã®æ¡ä»¶ã¯äŒŒãŠããŸãã ããã«åºã¥ããŠãé©åãªã¹ã¯ãªããã§è³ªåã®ãªã¹ããããããåŸãé åºã§åã«ããŒãããåºåã§çæãããããžãã¯ãååŸããŸããããã¯æåã§ãããã«ä¿®æ£ãããã ãã§ãïŒæ¡ä»¶å ã®å¯Ÿå¿ãããããã¯ã®ã³ã¡ã³ããå€ããå¿ èŠã«å¿ããŠè¿œå ã®æ©èœãè¿œå ããŸã/ãŸãã¯æ¡ä»¶ïŒã 質åã®ãããã¯å šäœã«æ¡ä»¶ãèšå®ããå¿ èŠãããå Žåããããifã«ãã£ãŠè§£æ±ºãããŸãïŒããšãã°ã質åã®ããã«A1ãéããA8ãéããŸãïŒã
ãã®ãããªãã¡ã€ã«ãããå Žåãjsãããã°ã«è»¢éãããããŒã¿ããã°ã«æžã蟌ãæ©èœãæåã«è¿œå ããã ãã§ãã ããžãã¯ã®æºåãæŽãã質åã¯1ã€ãã€çœ®ãæããããŸãã ãããŠãå šäœã®ãã€ã³ãã¯ãç°¡åã«ããããã«ãjsããã®ãªã¯ãšã¹ãããã®ã¹ã¯ãªããã«çŽæ¥éä¿¡ãããããŒã¿ãèšé²ããé©åãªæ¡ä»¶ãæºãããŸã§å®è¡ããç¶ããã ãã§ãããã¹ã¯ãªããã¯å¿ èŠãªã³ã³ãã³ããjsã«éä¿¡ããŠäœæ¥ãå®äºããããšã§ãã 次ã«ãjsã¯id = "workDiv"ã§åè¿°ã®divã«åä¿¡ããŒã¿ãæ¿å ¥ããã«ãŒããç¹°ãè¿ããŸãããŠãŒã¶ãŒãåçã«ããŒã¯ãä»ããjsãããããè«çãã¡ã€ã«ã«éä¿¡ããphpãããŒã¿ããã°ã«æžã蟌ã¿ã次ã®è³ªåã®å 容ãè¿ããŸããjsã¯äœæ¥divã®å 容ãåä¿¡ããŒã¿ã«çœ®ãæããŸãã ã
ãµãŒããŒããããŒã¿ãåä¿¡ããäœæ¥äžã®divã®å 容ã眮ãæããåŸãjsã¯ãã1ã€ã®æ©èœãå®è¡ããŸãããã€ã³ãæ©èœãåŒã³åºããŠã質åã«èšå ¥ããæå¹æ§ã確èªããŸãã
Js-checkèšå ¥è³ªå
ãªã³ã©ã€ã³èª¿æ»ã§äœ¿çšããã質åã®ã»ãšãã©ã¯ãããã€ãã®ã¿ã€ãã«åé¡ã§ããŸãã
- ã·ã³ã°ã«ãã§ã€ã¹ïŒç¡ç·ïŒ
- åäžéžæïŒéžæïŒ
- ããŒãã¯ããŒãºïŒã©ãžãª+ããã¹ãïŒ
- åéãïŒãã§ãã¯ããã¯ã¹+ããã¹ãïŒ
- ããŒãã¯ããŒãºïŒãã§ãã¯ããã¯ã¹+ããã¹ã+äžæã®ã³ãŒãïŒ
- ã¢ãŠããã¢
- è€æ°éžæïŒãã§ãã¯ããã¯ã¹ïŒ
- è€æ°éžæ
- äžæã®ã³ãŒãã䜿çšããè€æ°éžæïŒãã§ãã¯ããã¯ã¹ïŒ
- è€æ°éžæïŒãã§ãã¯ããã¯ã¹ããã®ã¹ããŒãã¡ã³ã/ç¹æ§ããŒãã«ïŒ
- ã¹ã±ãŒã«ïŒã©ãžãªããã®æœè±¡çãªè©äŸ¡è¡šïŒ
ããã«åºã¥ããŠã察å¿ãããã§ãã¯ãåå ¥åèŠçŽ ã«èªåçã«ãã€ã³ãããé¢æ°ã®ã©ã€ãã©ãªãäœæãããŸããã
質åè¡šã«åããŠã¢ã¯ã»ã¹ãããšããããã³è³ªåã§ãããã¯ãæŽæ°ãããšããquestsChecksïŒïŒjsé¢æ°ãåŒã³åºããããã®æ¬è³ªã¯ç°¡åã«èšãã°æ¬¡ã®ããã«ãªããŸãïŒã次ãžããã¿ã³ããããã¯ããŸãïŒçµå±ãããã¯æ°ãã質åã§ãããããŒã¿ã¯ãŸã å ¥åãããŠããŸããïŒ phpã¹ã¯ãªããããã$ _SESSION ['user_position']ã®å€ïŒã€ãŸããçŸåšã®è³ªåïŒãã¹ã€ãããå®è¡ããŸãã
switch(quest){ case 'S2': disableNext(); radioMultCheck(); progressBar(0); break; case 'S4': disableNext(); checkAgeText(10, 99); progressBar(7); break; case 'S12': disableNext(); radioTextCheck(); progressBar(14); break; // ... default: break; }
switch(quest){ case 'S2': disableNext(); radioMultCheck(); progressBar(0); break; case 'S4': disableNext(); checkAgeText(10, 99); progressBar(7); break; case 'S12': disableNext(); radioTextCheck(); progressBar(14); break; // ... default: break; }
質åã®ã³ãŒãã«å¿ããŠã察å¿ããã©ã€ãã©ãªé¢æ°ãåŒã³åºããŠããã§ãã¯ããã³ã°ãããŸãã 以äžã¯ããã®ãã¡ã®1ã€ïŒè€æ°éžæ+ããã¹ãïŒãšããã«é¢é£ä»ãããã2ã€ã®äŸã§ãã
// ----------------------------------------------------------------------------- function checkboxText(check,text){ disableNext(); if (!check){ $("div[id='workDiv'] input[type='checkbox']").click(function(){checkboxText('true');}); $("div[id='workDiv'] input[type='text']").keyup(function(){checkboxText('true',this);}); } if (check){ if (!text && $("div[id='workDiv'] input[type='text'][value!='']").length > 0) enableNext(); if (!text && $("div[id='workDiv'] input[type='text'][value!='']").length == 0) checkCheckbox(); if (text && !checkCheckbox()){ checkText(text); } } } // ----------------------------------------------------------------------------- function checkCheckbox(uniqCodes){ if (!uniqCodes){ uniqText = getUniqTextObj(); if ($("div[id='workDiv'] input[type='checkbox'][name!='toggleOther']:checked").length > 0){ enableNext(); return true; } if ($("div[id='workDiv'] input[type='checkbox']:checked").length == 0 && !uniqText) disableNext(); if ($("div[id='workDiv'] input[type='checkbox']:checked").length == 0 && uniqText) checkText(uniqText); } if (uniqCodes){ for (var key in uniqCodes){ $(document.getElementById(getQuest()+'.'+uniqCodes[key])).attr("checked", ""); } checkCheckbox(); } } // ----------------------------------------------------------------------------- function checkText(text,uniqCodes){ if (!uniqCodes){ if (text.value) enableNext(); else disableNext(); } if (uniqCodes){ for (var key in uniqCodes){ $(document.getElementById(getQuest()+'.'+uniqCodes[key])).attr("checked", ""); } if (!checkCheckbox()) checkText(text); } }
// ----------------------------------------------------------------------------- function checkboxText(check,text){ disableNext(); if (!check){ $("div[id='workDiv'] input[type='checkbox']").click(function(){checkboxText('true');}); $("div[id='workDiv'] input[type='text']").keyup(function(){checkboxText('true',this);}); } if (check){ if (!text && $("div[id='workDiv'] input[type='text'][value!='']").length > 0) enableNext(); if (!text && $("div[id='workDiv'] input[type='text'][value!='']").length == 0) checkCheckbox(); if (text && !checkCheckbox()){ checkText(text); } } } // ----------------------------------------------------------------------------- function checkCheckbox(uniqCodes){ if (!uniqCodes){ uniqText = getUniqTextObj(); if ($("div[id='workDiv'] input[type='checkbox'][name!='toggleOther']:checked").length > 0){ enableNext(); return true; } if ($("div[id='workDiv'] input[type='checkbox']:checked").length == 0 && !uniqText) disableNext(); if ($("div[id='workDiv'] input[type='checkbox']:checked").length == 0 && uniqText) checkText(uniqText); } if (uniqCodes){ for (var key in uniqCodes){ $(document.getElementById(getQuest()+'.'+uniqCodes[key])).attr("checked", ""); } checkCheckbox(); } } // ----------------------------------------------------------------------------- function checkText(text,uniqCodes){ if (!uniqCodes){ if (text.value) enableNext(); else disableNext(); } if (uniqCodes){ for (var key in uniqCodes){ $(document.getElementById(getQuest()+'.'+uniqCodes[key])).attr("checked", ""); } if (!checkCheckbox()) checkText(text); } }
åè¡ã«ã€ããŠã³ã¡ã³ãããŸããããªããªã ããã¯ããŸãã«ãå€ãã®ããã¹ãã«æ°ä»ãã§ãããããç§ã¯ç°¡åã«ã¢ã«ãŽãªãºã ã説æããŸãïŒã¯ãªãã¯ïŒïŒãŸãã¯ããŒã¢ããïŒïŒã€ãã³ãã«ãã£ãŠå ¥åã¿ã€ãã®åèŠçŽ ã«åãé¢æ°ã®åŒã³åºããã¢ã¿ããããŸããããcheckããã©ã¡ãŒã¿ãŒãšãªããžã§ã¯ãïŒããã¹ããã£ãŒã«ãïŒãæž¡ããŸãã ãã§ãã¯ãåŒã³åºããããšïŒã¯ãªãã¯ããããšïŒãé¢æ°ã¯å®çŸ©æžã¿ã®ã¢ã«ãŽãªãºã ïŒäœæ¥ã®çš®é¡ã«åºã¥ãïŒã«åŸã£ãŠäœæ¥divå ã®ãã¹ãŠã®èŠçŽ ãå®è¡ãããã£ãŒã«ãã®å€ãåéããåæããå¿ èŠã«å¿ããŠãããå°éçãªãã¹ãé¢æ°ãåŒã³åºããŸãã
ãã®äŸã§ã¯ãããã¹ãã䜿çšããè€æ°éžæãã§ãã¯æ©èœã¯ãåçŽãªè€æ°éžæãã§ãã¯æ©èœã®éå§ãéå§ã§ããŸãã åçŽãªè€æ°éžæã¯ãããã¹ãã䜿çšããè€æ°éžæã®ç°¡æããŒãžã§ã³ã§ãããããã«å«ãŸããŠããŸãã ããªããã£ãåããã§ãã¯ããããã®ãã¹ãŠã®æ©èœïŒè€æ°éžæãåäžéžæãèªç±åç圢åŒã®è³ªåãå«ãïŒã¯ãããªããã£ãã®ãã£ãŒã«ãã¿ã€ãã®ã¿ããã§ãã¯ãããããã«èšèšãããŠããŸãã ãããã£ãŠãè€éãªã¿ã€ãã®è³ªåãåçŽãªè³ªåã«èªåçã«åé¡ãããããã®ãã§ãã¯ãå®è¡ãããšããã¹ããæåãããã©ããã«ããããããç®çã®çµæïŒtrueãŸãã¯falseïŒãåŸãããŸãã ãããŠããããããªãã次ãžãã¿ã³ããããã¯ãåé€ããããã§ãªããã°äœãããªããããããå©çšå¯èœã§ããã°ããããããã¯ããŸãã
ãã§ãã¯ãæåãããšãéä¿¡ãåä¿¡ãèšå ¥ããã§ãã¯ãéä¿¡ãªã©ã®æ°ãããµã€ã¯ã«ãéå§ãããŸãã
æ§é ããã°ã©ãã³ã°ã䜿çšãã
ãã®å ŽåïŒç§ã®æèŠã§ã¯ïŒãã¯ã©ã¹ãšãªããžã§ã¯ãã®ä»£ããã«è£žã®é¢æ°ã䜿çšããæ¹ãããã©ãŒãã³ã¹ã®ç¹ã§ããæãŸããã§ãã 倧éã®ãŠãŒã¶ãŒãããå Žåã1ã€ã®ç¹å®ã®ã¡ãœããã䜿çšããããã ãã«å€æ°ã®ããããã£ãæã€ãªããžã§ã¯ããäœæããããšã¯ãå°ãªããšãåççã§ã¯ãããŸããã 5ã10åã®ãªããžã§ã¯ãã䜿çšããæäœã¯ãæ©èœã䜿çšããåæ§ã®ã¢ã¯ã·ã§ã³ããããªãœãŒã¹ã®ç¹ã§ã³ã¹ããé«ããªããŸãã
ããã«ããšã³ãžã³ã¢ãŒããã¯ãã£ãã·ã³ãã«ã§ãããããOOPã®ãã€ã³ããããããŸããã
ãŸãšãããš
ãã®ãšã³ãžã³ã¢ãŒããã¯ãã£ã¯ãåå ã®æåŸ ãåãããŠãŒã¶ãŒã®æ°ãçŽ12äžãã13äžäººã§ãããå¿ å®ãªãŠãŒã¶ãŒã¯é¡§å®¢ã®é¡§å®¢ã§ãããéµéèªäœã顧客ã«ä»£ãã£ãŠè¡ãããç 究ã®1ã€ã§æåããŸãã-åæã«ãåä¿¡ãããŸããçŽ22kã®çç£çãªã€ã³ã¿ãã¥ãŒãããã³ç·èšªåæ°ã¯çŽ45kã§ããã
å°æ°ã®ç 究ãå€æ°è¡ãããŠããŸãã
çµ±èšã«ãããšããã®ã¢ãŒããã¯ãã£ã¯ä¿¡é Œæ§ãé«ãé«æ§èœã§ãã ããã«ãïŒç§ã®æèŠã§ã¯ïŒäŸ¿å©ã§éåžžã«æè»ã§ãã
ååãªç©ºãæéãããå Žåã¯ããããããã®ãšã³ãžã³ã®ãã¡ã€ãã©ã€ãºã«æ»ããåã³ããã¹ãŠã®ãœãŒã¹ããããªãã¯ãã¡ã€ã³ã«é 眮ããæ©èœã®è©³çŽ°ãªèª¬æãšããããçš®é¡ã®å©ç¹ãè¿œå ããŸãã ããããããã¯ãã¹ãŠãå¯èœããªã ãã§ã...
ãã€ãŠç§ããã®åéã«çªå ¥ãå§ãããšãããã®ãããã¯ã«é¢ããæ å ±ã®äžè¶³ã¯å£æ» çã§ããããã¹ãŠã®ã¿ã¹ã¯ãè©Šè¡é¯èª€ã«ãã£ãŠè§£æ±ºããå¿ èŠããããŸããã
ãã®ããã¥ã¢ã«ãšããã«åæ ããç§ã®å人çãªçµéšããäœããã®åœ¢ã§ããªãã®å©ãã«ãªãããšãé¡ã£ãŠããŸãã
ãŸãããã®è³æããããŒã±ãã£ã³ã°èª¿æ»ã§ã®ãªã³ã©ã€ã³ãããã¡ã€ã«ã®ããã°ã©ãã³ã°ãªã©ã®ãããã¯ã«é¢ããæ å ±ã®ç©ºçœãäœããã®åœ¢ã§æºããããšãé¡ã£ãŠããŸãã
ãã ããæ®å¿µãªãããã¯ã©ãŒã¿ããã°ã©ãã³ã°ãã³ã³ãžã§ã€ã³ããŸãã¯ããã°ã©ãã³ã°ã®ã¢ã³ã±ãŒããããã³/ãŸãã¯CATIã®ãšã³ãžã³ïŒå®éã«ã¯ãCATIã¹ã¿ãžãªèªäœã®æè¡ããŒã¹ã®çµç¹ïŒãªã©ã®ãããã¯ã¯å¯Ÿè±¡å€ã§ãã ãã®ä»å€æ°...
ãããããããã¯ãã¹ãŠåã ã®FAQãšããã¥ã¢ã«ã®ãããã¯ã§ãã
ãæž èŽããããšãããããŸããã