RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð ....................................../////.===Shadow-Here===./////................................................ > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < ------------------------------------------------------------------------------------------------------------------- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð enü¹%½_F‘åè¿2ºQú³íªú`N¿­3ÿƒügµJžaÿ¯ÿ°~¼ÎùnúîÞÖô•òíôÁÉß®Sm¥Ü/ ‡ó˜f£Ùà<˜„xëJ¢Ù€SO3x<ªÔ©4¿+ç¶A`q@Ì“Úñè™ÍÿJÌ´ª-˜ÆtÊÛL]Ïq*‘Ý”ì#ŸÌÏãY]@ê`¿ /ªfkØB4·®£ó z—Üw¥Pxù–ÞLШKÇN¾AkÙTf½è'‰g gÆv›Øuh~ a˜Z— ïj*á¥t d£“uÒ ¨`K˜¹ßþ]b>˜]_ÏÔ6W—è2r4x•íÖ…"ƒÖNîä!¦å Ú}ýxGøÌ —@ ;ÆÚŠ=ɾ1ý8lªË¥ô ^yf®Œ¢u&2©nÙÇ›ñÂñŒ³ aPo['½»øFùà­+4ê“$!lövlüÞ=;N®3ð‚õ›DÉKòÞ>ÄÍ ¥ˆuߤ#ˆ$6ù™¥îЇy’ÍB¼ çxÛ;X"WL£R÷͝*ó-¶Zu}º.s¸sšXqù–DþÿvªhüïwyŸ ¯é³lÀ:KCûÄ£Ëá\…­ ~—ýóî ¼ûûÜTÓüÇy…ŽÆvc»¾×U ñ¸žþоP÷¦ó:Ò¨¨5;Ð#&#ÖúñläÿÁœ GxÉ­/ñ‡áQðìYÉtÒw޼GÔ´zàÒò ð*ëzƒ•4~H]Ø‹f ñÓÈñ`NåWçs'ÆÏW^ø¹!XžµmQ5ÃËoLœÎ: ÞËÍ¥J ù…î èo£ßPÎñ¶ž8.Œ]ʵ~5›ÙË-ù*8ÙÖß±~ ©¹rÓê‚j¶d¸{^Q'˜±Crß ÚH—#¥¥QlÀ×ëã‡DÜ«èî þ&Çæžî;ŽÏºò6ÒLÃXy&ZŒ'j‚¢Ù€IßÚù+–MGi‰*jE€‘JcÜ ÓÌ EÏÚj]o˜ Þr <¾U ûŪæÍ/šÝH¥˜b”¼ ÁñßX GP›ï2›4WŠÏà×£…íÓk†¦H·ÅíMh–*nó÷à]ÁjCº€b7<ب‹¨5車bp2:Á[UªM„QŒçiNMa#<5›áËó¸HýÊ"…×Éw¹¦ì2º–x<›»a±¸3Weü®FÝ⑱ö–î–³|LPÈ~çð~Çå‡|º kD¢µÏàÆAI %1À% ¹Ò – ”ϝS¦‰4&¶£°à Öý”û_Ò Áw°A«Å€?mÇÛgHÉ/8)á¾ÛìáöŽP í¨PŸNÙµº¦‡§Ùš"ÿ«>+ªÕ`Ê÷‡‚ß Õû˜þãÇ-PÍ.¾XV‘€ dÜ"þ4¹ ±Oú‘©t¥¦FªÄÃÄ•b‚znýu½—#cDs˜ÃiÑOˆñ×QO=*IAÊ,¶ŽZƒ;‡wøXè%EÐk:F±Ú” .Ѽ+Áu&Ç`."pÈÉw o&¿dE6‘’EqTuK@Ì¥ã™À(Êk(h‰,H}RÀIXÛš3µ1©_OqÚÒJAñ$ÊÙÜ;D3çŒ[þùœh¬Ã³™ö6ç†NY".Ú‰ï[ªŸŒ '²Ð öø_¨ÂÉ9ué¶³ÒŠõTàîMØ#û¯gN‡bÙ놚X„ö …ÉeüÌ^J ‹€.œ$Æ)βÄeæW#óüßĺŸ€ ÀzwV 9oä»f4V*uB «Ë†¹ì¯žR霓æHXa=&“I4K;¯ç‹h×·"UŠ~<•╪Vêª&ÍSÃÆÅ?ÔqÎ*mTM ˜›µwêd#[C¡©§‘D<©àb†–ÁœøvH/,í:¯( ²£|4-„Æövv„Yͼ™^Á$ˆ„¢Û[6yB.åH*V¨æ?$=˜Ñ€•ñ·­(VlŸ‘ nÀt8W÷´Bûba?q9ú¶Xƒl«ÿ\ù¶’þòUÐj/õ¢Ìµ³g$ƒÎR!¸»|Oߍë’BhîÚÑ¢ñåŒJ„®„£2Ð3•ô02Nt…!£Í]Ïc½Qÿ?ˆ<&ÃA¾Ú,JˆijÌ#5yz„‰Î|ÊŽ5QÏ:‹ÐaóVÔxW—CpeÏzÐïíçôÿÅ_[hãsÐ_/ŽTÝ?BîˆííV$<¿i>²F¬_Eß¿ †bÊŒº­ÿ®Z H“C}”¬,Mp ý/Bá£w>˜YV°aƒúh+cŠ- r/[%|üUMHäQ°X»|û/@|°¥Ð !BÔ Ç¢Ä©š+Õì D«7ìN¶ŽðÔ " ƶ’ÖçtA‰Û×}{tþz­¾GÍ›k¹OEJR$ Â׃ «ëÁ"oÉôž$oUK(Ä)Ãz³Ê-‹êN[Ò3Œñbï8P 4ƒ×q¢bo|?<ÛX¬òÄͰL–±›(™ûG?ýË©ÚÄ–ÂDØÐ_Ç¡ô ¾–ÄÏø ×e8Ë©$ÄF¹Å‹ì[©óìl:F¾f´‹‹Xì²ï®\¬ôùƒ ÿat¥óèÒùHß0äe‚;ü×h:ÆWðHž=Ã8骣"kœ'Y?³}Tûè€>?0l›e1Lòñ„aæKÆw…hÖŠùW…ÈÆÄ0ši·›[pcwËþñiêíY/~-Á5˜!¿†A›™Mÿþ(±“t@â“ö2­´TG5yé]çå僳 .·ÍïçÝ7UÚ±Ð/Nè»,_Ï ùdj7\ï Wì4›„»c¸àešg#ÒÊ⥭áØo5‘?ÌdÝô¯ ¹kzsƒ=´#ëÉK›Ø´±-¥eW?‡çßtòTã…$Ý+qÿ±ƒ÷_3Ô¥í÷:æ–ž<·Ö‡‰Å¢ š‡%Ô—utÌÈìðžgÖÀz²À—ï÷Óîäõ{K'´È÷³yaÏÁjƒô}ž§®æÊydÕÈë5¯èˆõvÕ©ã*çD„ “z„Ó‡^^xÂ3M§A´JG‚öï 3W'ˆ.OvXè¡ÊÕª?5º7†˜(˜Ç¶#çê’¶!ÌdZK§æ 0fãaN]òY³RV ™î$®K2R¨`W!1Ôó\;Ý ýB%qæK•&ÓÈe9È0êI±žeŸß -ú@žQr¦ ö4»M¼Áè¹µmw 9 EÆE_°2ó„ŸXKWÁ×Hóì^´²GѝF©óäR†¦‰ç"V»eØ<3ùd3ÿÚ¤Žú“Gi" —‘_ÙËÎ~Üö¯¥½Î»üŸEÚŽåmÞþí ;ÞólËΦMzA"Âf(´òá;Éï(/7½ûñÌ­cïÕçлþÝz¾-ÍvÑ“pH­–ðÓj$¸Äû¤‚‘ãUBË-n“2åPkS5&‹Â|+g^œ®Ì͆d!OïäîU«c;{Û!ÅŽ«ëZ9Ókóˆ]¯ƒ›né `ÇÒ+tÆš (ØKá¾—=3œ®•vuMñg²\ï Ec€ 05±d™‡×iÇ×›UúvÌ¢£Èþ¡ÕØô¶ßÎA"ß±#Ö²ˆÊŸ¦*Ä~ij|àø.-¼'»Ú¥£h ofº¦‡VsR=N½„Î v˜Z*SÌ{=jÑB‹tê…;’HžH¯8–îDù8ñ¢|Q•bÛçš–‹m³“ê¨ åÏ^m¬Žãþ©ïêO‡½6] µÆ„Ooòü ²x}N¦Ë3ïé¿»€›HA˜m%çÞ/¿í7Fø“‹léUk)É°Œµ8Q8›:ÀŠeT*šõ~ôڝG6 ¢}`ùH­–”¡k ‰P1>š†®9z11!X wKfmÁ¦xÑ,N1Q”–æB¶M…ÒÃv6SMˆhU¬ÊPŽï‘öj=·CŒ¯u¹ƒVIЃsx4’ömÛýcå¡¶7ßŠß 57^\wÒÐÆ k§h,Œý î«q^R½3]J¸ÇðN ‚çU¬ôº^Áì} ³f©Õœ§ˆã:FÄÈ‚é(€™?àýÓüè1Gô£¼éj‚OÅñ  #>×—ßtà 0G¥Åa뀐kßhc™À_ÉñÞ#±)GD" YîäË-ÿÙ̪ ¹™a¯´¢E\ÝÒö‚;™„ë]_ p8‰o¡ñ+^÷ 3‘'dT4œŽ ðVë½° :¬víÑ«£tßÚS-3¶“þ2 †üüʨòrš¹M{É_¤`Û¨0ìjœøJ‡:÷ÃáZ˜†@GP&œÑDGÏs¡þ¦þDGú‘1Yá9Ôþ¼ ûø…§÷8&–ÜÑnÄ_m®^üÆ`;ÉVÁJ£?â€-ßê}suÍ2sõA NÌúA磸‘îÿÚ»ƒìö·á¿±tÑÐ"Tÿü˜[@/äj¬€uüªìù¥Ý˜á8Ý´sõj 8@rˆð äþZÇD®ÿUÏ2ùôõrBzÆÏÞž>Ì™xœ“ wiÎ×7_… ¸ \#€MɁV¶¥üÕÿPÔ9Z‡ø§É8#H:ƒ5ÀÝå9ÍIŒ5åKÙŠ÷qÄ>1AÈøžj"µÂд/ªnÀ qªã}"iŸBå˜ÓÛŽ¦…&ݧ;G@—³b¯“•"´4í¨ôM¨åñC‹ïùÉó¯ÓsSH2Ý@ßáM‡ˆKÀªÛUeø/4\gnm¥‹ŸŒ qÄ b9ÞwÒNÏ_4Ég³ú=܆‚´ •â¥õeíþkjz>éÚyU«Íӝ݃6"8/ø{=Ô¢»G¥ äUw°W«,ô—¿ãㆅү¢³xŠUû™yŒ (øSópÐ 9\åTâ»—*oG$/×ÍT†Y¿1¤Þ¢_‡ ¼ „±ÍçèSaÓ 3ÛMÁBkxs‰’R/¡¤ˆÙçª(*õ„üXÌ´ƒ E§´¬EF"Ù”R/ÐNyÆÂ^°?™6¡œïJ·±$§?º>ÖüœcNÌù¯G ‹ñ2ЁBB„^·úìaz¨k:#¨Æ¨8LÎõލ£^§S&cŒÐU€ü(‡F±Š¼&P>8ÙÁ ‰ p5?0ÊÆƒZl¸aô š¼¡}gÿ¶zÆC²¹¬ÎÖG*HB¡O<º2#ñŒAƒ–¡B˜´É$¥›É:FÀÔx¾u?XÜÏÓvN©RS{2ʈãk9rmP¼Qq̳ è¼ÐFׄ^¡Öì fE“F4A…!ì/…¦Lƒ… … $%´¾yã@CI¬ á—3PþBÏNÿ<ý°4Ü ËÃ#ØÍ~âW«rEñw‹eùMMHß²`¬Öó½íf³:‹k˜¯÷}Z!ã¿<¥,\#öµÀ¯aÒNÆIé,Ћ–lŽ#Àæ9ÀÒS·I’½-Ïp Äz¤Š Â* ­íÄ9­< h>׍3ZkËU¹§˜ŒŠ±f­’¤º³Q ÏB?‹#µíÃ¥®@(Gs«†vI¥Mµ‹Á©e~2ú³ÁP4ìÕi‚²Ê^ö@-DþÓàlÜOÍ]n"µã:žpsŽ¢:! Aõ.ç~ÓBûH÷JCÌ]õVƒd «ú´QÙEA–¯¯Œ!.ˆˆëQ±ù œ·Ì!Õâ )ùL„ÅÀlÚè5@B…o´Æ¸XÓ&Û…O«˜”_#‡ƒ„ûÈt!¤ÁÏ›ÎÝŠ?c9 â\>lÓÁVÄÑ™£eØY]:fÝ–—ù+p{™ðè û³”g±OƒÚSù£áÁÊ„ä,ï7š²G ÕÌBk)~ÑiCµ|h#u¤¶îK¨² #²vݯGãeÖ϶ú…¾múÀ¶þÔñ‚Š9'^($¤§ò “š½{éúp÷J›ušS¹áªCÂubÃH9™D™/ZöØÁ‡¦ÝÙŸ·kð*_”.C‹{áXó€‡c¡c€§/šò/&éš÷,àéJþ‰X›fµ“C¨œ®r¬"kL‰Â_q…Z–.ÉL~O µ›zn‚¹À¦Öª7\àHµšÖ %»ÇníV[¥*Õ;ƒ#½¾HK-ÖIÊdÏEÚ#=o÷Óò³´Š: Ç?{¾+9›–‘OEáU·S€˜j"ÄaÜ ŒÛWt› á–c#a»pÔZÞdŽtWê=9éöÊ¢µ~ ë ;Öe‡Œ®:bî3±ýê¢wà¼îpêñ¹¾4 zc¾ðÖÿzdêŒÑÒŝÀ‰s6¤í³ÎÙB¿OZ”+F¤á‡3@Ñëäg©·Ž ˆèª<ù@É{&S„œÕúÀA)‰h:YÀ5^ÂÓŒ°õäU\ ùËÍû#²?Xe¬tu‰^zÒÔãë¼ÛWtEtû …‚g¶Úüâî*moGè¨7%u!]PhÏd™Ý%Îx: VÒ¦ôÊD3ÀŽKÛËãvÆî…N¯ä>Eró–ð`5 Œ%u5XkñÌ*NU%¶áœÊ:Qÿú»“úzyÏ6å-၇¾ ´ ÒÊ]y žO‘w2Äøæ…H’²f±ÎÇ.ª|¥'gîV•Ü .̘¯€šòü¤U~Ù†*¢!?ò wý,}´°ÔÞnïoKq5µb!áÓ3"vAßH¡³¡·G(ÐÎ0Îò¼MG!/ài®@—¬04*`…«é8ªøøló“ˆÊ”èù¤…ßÊoÿé'ËuÌÖ5×È¡§ˆˆfŽë9}hìâ_!!¯  B&Ëö¶‰ÀAÙNVŸ Wh›¸®XÑJì¨ú“¿÷3uj²˜¨ÍÎìë±aúŠÝå¯ð*Ó¨ôJ“yºØ)m°WýOè68†ŸÏ2—‰Ïüꪫٚ¥‹l1 ø ÏÄFjêµvÌbü¦èÝx:X±¢H=MÐß—,ˆÉÇ´(9ú¾^ÅÚ4¿m‡$âX‘å%(AlZo@½¨UOÌÕ”1ø¸jÎÀÃÃ_ µ‘Ü.œº¦Ut: Æï’!=¯uwû#,“pþÇúŒø(é@?³ü¥‘Mo §—s@Œ#)§ŒùkL}NOÆêA›¸~r½¼ÙA—HJ«eˆÖ´*¡ÓpÌŸö.m<-"³ûÈ$¬_6­åf£ïÚâj1y§ÕJ½@dÞÁr&Í\Z%D£Íñ·AZ Û³øüd/ªAi†/Й~  ‡âĮҮÏh§°b—›Û«mJžòG'[ÈYýŒ¦9psl ýÁ ®±f¦x,‰½tN ‚Xª9 ÙÖH.«Lo0×?͹m¡å†Ѽ+›2ƒF ±Ê8 7Hցϓ²Æ–m9…òŸï]Â1äN†VLâCˆU .ÿ‰Ts +ÅÎx(%¦u]6AF Š ØF鈄‘ |¢¶c±soŒ/t[a¾–û:s·`i햍ê›ËchÈ…8ßÀUÜewŒðNOƒõD%q#éû\9¤x¹&UE×G¥ Í—™$ð E6-‡¼!ýpãÔM˜ Âsìe¯ñµK¢Ç¡ùôléœ4Ö£”À Š®Ðc ^¨À}ÙËŸ§›ºê{ÊuÉC ×Sr€¤’fÉ*j!úÓ’Gsùìoîßîn%ò· àc Wp÷$¨˜)û»H ×8ŽÒ€Zj¤3ÀÙºY'Ql¦py{-6íÔCeiØp‘‡XÊîÆUߢ܂ž£Xé¼Y8þ©ëgñß}é.ÎógÒ„ÃØËø¯»™§Xýy M%@NŠ À(~áÐvu7&•,Ù˜ó€uP‡^^®=_E„jt’ 403WebShell
403Webshell
Server IP : 104.225.223.251  /  Your IP : 216.73.216.41
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux agtdemo03 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/web/dev.agtindia.co.in/rubber-finder/website/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/web/dev.agtindia.co.in/rubber-finder/website/ajax.php
<?php
$response = array();
include ('include/helper_function.php');
/*NOTES

	21-tyre

	926-enve

	1276-raspblade

*/
$empty = "";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $producttype = $_POST['producttype'];
    switch ($producttype) {

        case "tyrerepair":
            if (($_POST['tyrecon'] != "") && (isset($_POST['tyrecon']))) {
                $tyrecon = $_POST['tyrecon'];
            } else {
                $tyrecon = "";
            }
            if (($_POST['applicationtyp'] != "") && (isset($_POST['applicationtyp']))) {
                $applicationtyp = $_POST['applicationtyp'];
            } else {
                $applicationtyp = "";
            }
            if (($_POST['tubetyp'] != "") && (isset($_POST['tubetyp']))) {
                $tubetyp = $_POST['tubetyp'];
            } else {
                $tubetyp = "";
            }
            if (($_POST['tyresize'] != "") && (isset($_POST['tyresize']))) {
                $tyresize = $_POST['tyresize'];
            } else {
                $tyresize = "";
            }
            if (($_POST['injarea'] != "") && (isset($_POST['injarea']))) {
                $injarea = $_POST['injarea'];
            } else {
                $injarea = "";
            }
            if (($_POST['plyload'] != "") && (isset($_POST['plyload']))) {
                $plyload = $_POST['plyload'];
            } else {
                $plyload = "";
            }
            if (($_POST['injtyp'] != "") && (isset($_POST['injtyp']))) {
                $injtyp = $_POST['injtyp'];
            } else {
                $injtyp = "";
            }
            if (($_POST['injsize'] != "") && (isset($_POST['injsize']))) {
                $injsize = $_POST['injsize'];
            } else {
                $injsize = "";
            }
            if (($_POST['steppos'] != "") && (isset($_POST['steppos']))) {
                $steppos = $_POST['steppos'];
            } else {
                $steppos = "0";
            }
            if (($_POST['navtype'] != "") && (isset($_POST['navtype']))) {
                $navtype = $_POST['navtype'];
            } else {
                $navtype = "";
            }
            if (($_POST['appstep'] != "") && (isset($_POST['appstep']))) {
                $appstep = $_POST['appstep'];
            } else {
                $appstep = "0";
            }
            $response['keywordtitle'] = "";
            $response['desnotescontent'] = "";
            $response['navtype'] = $navtype;
            if ($steppos == 0) {
                $reqst = $steppos;
                $steppos = $steppos + 1;
            } elseif ($steppos == 1) {
                $reqst = $steppos;
                $steppos = $steppos + 1;
            } else {
                $jsoncode = "";
                $resulta = $Queryclass->get("stepformatiom", "stepformatiom_id", $appstep);
                $resstep = array();
                foreach ($resulta as $row) {
                    $jsoncode = $row['formation'];
                    //return;
                    $resstep = $row['formation'];
                }
                $jsondcode = json_decode($jsoncode);
                $jsondscode = $jsondcode->steps;
                //echo count($jsondscode);
                if (count($jsondscode) > $steppos) {
                    $reqst = $jsondscode[$steppos]->stp;
                } else {
                    $reqst = "9";
                }
                $steppos = $steppos + 1;
            }
            if ($navtype == - 1) {
                $navtype = 1;
                $singlelinavtype = - 1;
            } else {
                $singlelinavtype = 1;
            }
            $response['keycontent'] = "";
            switch ($reqst) {
                    //tyre type
                    
                case "0":
                    $tyrecon = "";
                    $resulta = $Queryclass->get("rep_tyretype", "", "");
                    $response["tyretype"] = array();
                    $response["nextstep"] = "1";
                    $rowsa = array();
                    $response['keycontent'] = "";
                    $response['keywordtitle'] = "Tyre Construction";
                    $rowcount = count($resulta);
                    if ($rowcount > 0) {
                        foreach ($resulta as $row) {
                            $rowsa["tyretypestr"] = $row['reptyreypename'];
                            $rowsa["tyretypeidser"] = $row['reptyreypeid'];
                            $rowsa["tyretypeimgurl"] = $imagedomain . "Tyretype/" . $row['reptyreypeImg'];
                            $curidtyrecon = $row['reptyreypeid'];
                            $tyreconstr = $row['reptyreypename'];
                            $tyreimg = $imagedomain . "Tyretype/" . $row['reptyreypeImg'];
                            if ($tyrecon == $curidtyrecon) {
                                //$sel="product-item-details-selected";
                                $tyrecon = $curidtyrecon;
                            } else {
                                //$sel="";
                                $tyrecon = $curidtyrecon;
                            }
                            if ($rowcount == 1) {
                                $response['keycontent'] = $response['keycontent'] . "readykeyword(\"" . $tyrecon . "\",\"" . $applicationtyp . "\",\"" . $tubetyp . "\",\"" . $tyresize . "\",\"" . $injarea . "\",\"" . $plyload . "\",\"" . $injtyp . "\",\"" . $injsize . "\",\"" . $steppos . "\",\"" . $singlelinavtype . "\",\"" . $appstep . "\",\"" . $tyreconstr . "\",\"Tyre Construction\",this,\"card\")";
                            } else {
                                $response['keycontent'] = $response['keycontent'] . "<div class='col-6 col-sm-6 col-md-6 col-lg-6 grid-product '><div class='product-item-details ' onclick='readykeyword(\"" . $tyrecon . "\",\"" . $applicationtyp . "\",\"" . $tubetyp . "\",\"" . $tyresize . "\",\"" . $injarea . "\",\"" . $plyload . "\",\"" . $injtyp . "\",\"" . $injsize . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $appstep . "\",\"" . $tyreconstr . "\",\"Tyre Construction\",this,\"card\")'><div class='product-item-img img-eq'><img src='" . $tyreimg . "' alt='Radial' /></div><div class='product-item-title title-eq'><h3>" . $tyreconstr . "</h3></div></div></div>";
                            }
                        }
                    } else {
                    }
                break;
                    //application
                    
                case "1":
                    $applicationtyp = "";
                    $resulta = $Queryclass->getApplication($tyrecon, "");
                    $response['keywordtitle'] = "Vehicle Type";
                    $rowcount = count($resulta);
                    if ($rowcount > 0) {
                        foreach ($resulta as $row) {
                            $appimg = $imagedomain . "Application/" . $row['repappvehicleImg'];
                            $curidappcon = $row['repappid'];
                            $appconstr = $row['repappname'];
                            $appstep = $row['appsteps'];
                            if ($applicationtyp == $curidappcon) {
                                //$sel="product-item-details-selected";
                                $applicationtyp = $curidappcon;
                            } else {
                                //$sel="";
                                $applicationtyp = $curidappcon;
                            }
                            if ($rowcount == 1) {
                                $response['keycontent'] = $response['keycontent'] . "readykeyword(\"" . $tyrecon . "\",\"" . $applicationtyp . "\",\"" . $tubetyp . "\",\"" . $tyresize . "\",\"" . $injarea . "\",\"" . $plyload . "\",\"" . $injtyp . "\",\"" . $injsize . "\",\"" . $steppos . "\",\"" . $singlelinavtype . "\",\"" . $appstep . "\",\"" . $appconstr . "\",\"Vehicle Type\",this,\"card\")";
                            } else {
                                $response['keycontent'] = $response['keycontent'] . "<div class='col-6 col-sm-6 col-md-6 col-lg-6 grid-product '><div class='product-item-details ' onclick='readykeyword(\"" . $tyrecon . "\",\"" . $applicationtyp . "\",\"" . $tubetyp . "\",\"" . $tyresize . "\",\"" . $injarea . "\",\"" . $plyload . "\",\"" . $injtyp . "\",\"" . $injsize . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $appstep . "\",\"" . $appconstr . "\",\"Vehicle Type\",this,\"card\")'><div class='product-item-img img-eq'><img src='" . $appimg . "' alt='Radial' /></div><div class='product-item-title title-eq'><h3>" . $appconstr . "</h3></div></div></div>";
                            }
                        }
                    } else {
                        $response['keycontent'] = "<h2>NOT FOUND</h2>";
                    }
                    $response['deslistview'] = "<li class='restyrecon'><div class='result-title' >Tyre Construction</div><div class='result-get restyrecontxt' ></div></li>";
                    $response['moblistview'] = "<li><div class='row' ><div class='col-6 result-title-mb' align='right'>Tyre Construction</div><div class='col-6 result-get-mb text-align:left restyrecontxt' id='' align='left'></div></div></li>";
                break;
                case "2":
                    $tubetyp = "";
                    $resulta = $Queryclass->get("rep_tube_type", "", "");
                    $rowsa = array();
                    $response['keywordtitle'] = "Tube / Tubeless";
                    $rowcount = count($resulta);
                    if ($rowcount > 0) {
                        foreach ($resulta as $row) {
                            $rowsa["tubetypestr"] = $row['reptubetypename'];
                            $rowsa["tubetypeidser"] = $row['reptubetypeid'];
                            $rowsa["tubetypeimgurl"] = $imagedomain . "Tubetype/" . $row['reptubetypeImg'];
                            $curidtubetype = $row['reptubetypeid'];
                            $tubetypconstr = $row['reptubetypename'];
                            $tubetypimg = $imagedomain . "Tubetype/" . $row['reptubetypeImg'];
                            if ($tubetyp == $curidtubetype) {
                                //$sel="product-item-details-selected";
                                $tubetyp = $curidtubetype;
                            } else {
                                //$sel="";
                                $tubetyp = $curidtubetype;
                            }
                            if ($rowcount == 1) {
                                $response['keycontent'] = $response['keycontent'] . "readykeyword(\"" . $tyrecon . "\",\"" . $applicationtyp . "\",\"" . $tubetyp . "\",\"" . $tyresize . "\",\"" . $injarea . "\",\"" . $plyload . "\",\"" . $injtyp . "\",\"" . $injsize . "\",\"" . $steppos . "\",\"" . $singlelinavtype . "\",\"" . $appstep . "\",\"" . $appconstr . "\",\"Vehicle Type\",this,\"card\")";
                            } else {
                                $response['keycontent'] = $response['keycontent'] . "<div class='col-6 col-sm-6 col-md-6 col-lg-4 grid-product '><div class='product-item-details ' onclick='readykeyword(\"" . $tyrecon . "\",\"" . $applicationtyp . "\",\"" . $tubetyp . "\",\"" . $tyresize . "\",\"" . $injarea . "\",\"" . $plyload . "\",\"" . $injtyp . "\",\"" . $injsize . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $appstep . "\",\"" . $tubetypconstr . "\",\"Tube / Tubeless\",this,\"card\")'><div class='product-item-img img-eq'><img src='" . $tubetypimg . "' alt='Radial' /></div><div class='product-item-title title-eq'><h3>" . $tubetypconstr . "</h3></div></div></div>";
                            }
                        }
                    } else {
                        $response['keycontent'] = "<h2>NOT FOUND</h2>";
                    }
                break;
                case "3":
                    $tyresize = "0";
                    $response['keywordtitle'] = "Tyre Size";
                    $resulta = $Queryclass->getSearchWord($tyrecon, $applicationtyp, $tubetyp, "", "", "", "", "", "", "");
                    $response["tyresize"] = array();
                    $os = array();
                    $rowcount = count($resulta);
                    if ($rowcount > 0) {
                        foreach ($resulta as $row2) {
                            $repTyreSizeid = $row2['reptyresizeid'];
                            array_push($os, $repTyreSizeid);
                        }
                        $os = array_values(array_unique($os, SORT_REGULAR));
                        $response['keycontent'] = "<div class='col-12 col-sm-12 col-md-12 col-lg-7 size-custom-select'><div class='size-select' id='selectsize' ><select id='stpspn3' ><option value=''>Select *</option>";
                        $empty = "";
                        foreach ($os as $value) {
                            $res = $Queryclass->get('rep_tyresize', 'reptyresizeid', $value);
                            $rowsa = array();
                            foreach ($res as $row1) {
                                $rowsa["tyresizestr"] = $row1['reptyresizenam'];
                                $rowsa["tyresizeidser"] = $row1['reptyresizeid'];
                                $tyresizeid = $row1['reptyresizeid'];
                                $tyresizestr = $row1['reptyresizenam'];
                                if (count($os) == 1) {
                                    $response['keycontent'] = $response['keycontent'] . "readykeyword(\"" . $tyrecon . "\",\"" . $applicationtyp . "\",\"" . $tubetyp . "\",\"" . $tyresizeid . "\",\"" . $injarea . "\",\"" . $plyload . "\",\"" . $injtyp . "\",\"" . $injsize . "\",\"" . $steppos . "\",\"" . $singlelinavtype . "\",\"" . $appstep . "\",\"" . $tyresizestr . "\",\"Tyre Size\",this,\"card\")";
                                } else {
                                    $response['keycontent'] = $response['keycontent'] . "<option value='" . $tyresizeid . "'>" . $tyresizestr . "</option>";
                                }
                            }
                        }
                        $response['keycontent'] = $response['keycontent'] . '</select></div></div>

																					<div class="col-6 ccol-sm-6 col-md-6 col-lg-4 text-center" >

																					<img class="tyreimg" src="../atm/images/tyresizepic.png">

																					</div><script>var x, i, j, selElmnt, a, b, c;/*look for any elements with the class "custom-select":*/x = document.getElementsByClassName("size-select");for (i = 0; i < x.length; i++) {selElmnt = x[i].getElementsByTagName("select")[0];/*for each element, create a new DIV that will act as the selected item:*/a = document.createElement("DIV");a.setAttribute("class", "size-select-selected");a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';x[i].appendChild(a);/*for each element, create a new DIV that will contain the option list:*/b = document.createElement("DIV"); b.setAttribute("class", "size-select-items size-select-hide");for (j = 1; j < selElmnt.length; j++) {/*for each option in the original select element,create a new DIV that will act as an option item:*/c = document.createElement("DIV");c.innerHTML = selElmnt.options[j].innerHTML;c.addEventListener("click", function(e) {/*when an item is clicked, update the original select box,

																		and the selected item:*/

																		

																		var y, i, k, s, h;

																		s = this.parentNode.parentNode.getElementsByTagName("select")[0];

																		h = this.parentNode.previousSibling;

																		for (i = 0; i < s.length; i++) {

																		  if (s.options[i].innerHTML == this.innerHTML) {

																			s.selectedIndex = i;

																			h.innerHTML = this.innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';

																			y = this.parentNode.getElementsByClassName("size-same-as-selected");

																			for (k = 0; k < y.length; k++) {

																			  y[k].removeAttribute("class");

																			}

																			this.setAttribute("class", "size-same-as-selected");

																			break;

																		  }

																		}

																		h.click();

																		selectsize("' . $tyrecon . '","' . $applicationtyp . '","' . $tubetyp . '","' . $tyresize . '","' . $injarea . '","' . $plyload . '","' . $injtyp . '","' . $injsize . '","' . $steppos . '","' . $navtype . '","' . $appstep . '","' . $empty . '","Tyre Size",this,"list");

																	});

																	b.appendChild(c);

																  }

																  x[i].appendChild(b);

																  a.addEventListener("click", function(e) {

																	  /*when the select box is clicked, close any other select boxes,

																	  and open/close the current select box:*/

																	  e.stopPropagation();

																	

																	  closeAllSelect(this);

																	  this.nextSibling.classList.toggle("size-select-hide");

																	  this.classList.toggle("size-select-arrow-active");

																	});

																}

																function closeAllSelect(elmnt) {

																  /*a function that will close all select boxes in the document,

																  except the current select box:*/

																  var x, y, i, arrNo = [];

																  x = document.getElementsByClassName("size-select-items");

																  y = document.getElementsByClassName("size-select-selected");

																  for (i = 0; i < y.length; i++) {

																	if (elmnt == y[i]) {

																	  arrNo.push(i)

																	} else {

																	  y[i].classList.remove("size-select-arrow-active");

																	}

																  }

																  for (i = 0; i < x.length; i++) {

																	if (arrNo.indexOf(i)) {

																	  x[i].classList.add("size-select-hide");

																	}

																  }

																}

																/*if the user clicks anywhere outside the select box,

																then close all select boxes:*/

																document.addEventListener("click", closeAllSelect);

																</script>';
                    } else {
                        $response['keycontent'] = "<script>alert('NO DATA')</script>";
                    }
                break;
                case "4":
                    $injarea = "";
                    $response['keywordtitle'] = "Injury Area";
                    $resulta = $Queryclass->get('rep_injuarea', "", "");
                    $response["injuryarea"] = array();
                    $rowsa = array();
                    $rowcount = count($resulta);
                    if ($rowcount > 0) {
                        foreach ($resulta as $row) {
                            $curidinjarea = $row['repinjuareaid'];
                            $injareaconstr = $row['repinjuareanam'];
                            $injareaimg = $imagedomain . "Injuryarea/" . $row['repinjuareaImg'];
                            if ($injarea == $curidinjarea) {
                                //$sel="product-item-details-selected";
                                $injarea = $curidinjarea;
                            } else {
                                //$sel="";
                                $injarea = $curidinjarea;
                            }
                            if ($rowcount == 1) {
                                $response['keycontent'] = "readykeyword(\"" . $tyrecon . "\",\"" . $applicationtyp . "\",\"" . $tubetyp . "\",\"" . $tyresize . "\",\"" . $injarea . "\",\"" . $plyload . "\",\"" . $injtyp . "\",\"" . $injsize . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $appstep . "\",\"" . $injareaconstr . "\",\"Injury Area\",this,\"card\")";
                            } else {
                                $response['keycontent'] = $response['keycontent'] . "<div class='col-6 col-sm-6 col-md-6 col-lg-6 grid-product '><div class='product-item-details ' onclick='readykeyword(\"" . $tyrecon . "\",\"" . $applicationtyp . "\",\"" . $tubetyp . "\",\"" . $tyresize . "\",\"" . $injarea . "\",\"" . $plyload . "\",\"" . $injtyp . "\",\"" . $injsize . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $appstep . "\",\"" . $injareaconstr . "\",\"Injury Area\",this,\"card\")'><div class='product-item-img img-eq'><img src='" . $injareaimg . "' alt='Radial' /></div><div class='product-item-title title-eq'><h3>" . $injareaconstr . "</h3></div></div></div>";
                            }
                        }
                    } else {
                        $response['keycontent'] = "<script>alert('NO DATA');</script>";
                    }
                break;
                case "5":
                    $injtyp = "";
                    $response['keywordtitle'] = "Injury Type";
                    $sql = "SELECT * FROM `search_keyword`  WHERE `repAppid` ='" . $applicationtyp . "' ORDER BY `search_keyword`.`repinjutype` ASC";
                    $resulta = $Queryclass->getSearchWord($tyrecon, $applicationtyp, "", "", "", "", "", "", "", "");
                    $response["injurytype"] = array();
                    $rowcount = count($resulta);
                    if ($rowcount > 0) {
                        $os = array();
                        foreach ($resulta as $row) {
                            $repinjutype = $row['repinjutypeid'];
                            array_push($os, $repinjutype);
                        }
                        $os = array_values(array_unique($os, SORT_REGULAR));
                        $empty = "";
                        foreach ($os as $value) {
                            $resulta1 = $Queryclass->get("rep_injutype", "repinjutypeid", $value);
                            $rowsa1 = array();
                            foreach ($resulta1 as $row) {
                                $rowsa1["injurytypestr"] = $row['repinjutypename'];
                                $rowsa1["injurytypeidser"] = $row['repinjutypeid'];
                                $injtypstr = $row['repinjutypename'];
                                $injtyp = $row['repinjutypeid'];
                                if (count($os) == 1) {
                                    $response['keycontent'] = $response['keycontent'] . "<script>readykeyword(\"" . $tyrecon . "\",\"" . $applicationtyp . "\",\"" . $tubetyp . "\",\"" . $tyresize . "\",\"" . $injarea . "\",\"" . $plyload . "\",\"" . $injtyp . "\",\"" . $injsize . "\",\"" . $steppos . "\",\"" . $singlelinavtype . "\",\"" . $appstep . "\",\"" . $injtypstr . "\",\"Injury Type\",this,\"card\");</script>";
                                } else {
                                    $response['keycontent'] = $response['keycontent'] . "<div class='col-6 col-sm-6 col-md-6 col-lg-6 grid-product '><div class='product-item-details ' onclick='readykeyword(\"" . $tyrecon . "\",\"" . $applicationtyp . "\",\"" . $tubetyp . "\",\"" . $tyresize . "\",\"" . $injarea . "\",\"" . $plyload . "\",\"" . $injtyp . "\",\"" . $injsize . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $appstep . "\",\"" . $injtypstr . "\",\"Injury Type\",this,\"card\")'><div class='product-item-title title-eq float-center'><h3>" . $injtypstr . "</h3></div></div></div>";
                                }
                            }
                        }
                    } else {
                        $response['keycontent'] = "<script>alert('NO DATA');</script>";
                    }
                break;
                case "6":
                    $plyload = "";
                    $response['keywordtitle'] = "Ply Rating And Load Range";
                    //$sql = "SELECT * FROM `search_keyword`  WHERE `repAppid` ='$applicationtyp' AND `repinjutype` = '$injtyp' ORDER BY `search_keyword`.`repplyratLoadid` ASC";
                    $resulta = $Queryclass->getSearchWord($tyrecon, $applicationtyp, "", "", "", $injtyp, "", "", "", "");
                    $response["plyratingrange"] = array();
                    $os = array();
                    $rowcount = count($resulta);
                    if ($rowcount > 0) {
                        foreach ($resulta as $row) {
                            $repplyratLoadid = $row['repplyratloadid'];
                            array_push($os, $repplyratLoadid);
                        }
                        $response['keycontent'] = "<div class='col-12 col-sm-12 col-md-12 col-lg-7 size-custom-select'><div class='size-select' id='selectsize' ><select id='stpspn3' ><option value=''>Select *</option>";
                        $empty = "";
                        $os = array_values(array_unique($os, SORT_NUMERIC));
                        foreach ($os as $value) {
                            //$sql1 = "SELECT * FROM `rep_ply_rating_load`   WHERE `repplyratloadid`='$value' ORDER BY `rep_ply_rating_load`.`repplyratloadname` ASC";
                            $res = $Queryclass->get("rep_ply_rating_load", "repplyratloadid", $value, "repplyratloadname");
                            $rowsa = array();
                            foreach ($res as $row1) {
                                $rowsa["plyratingrangestr"] = $row1['repplyratloadname'];
                                $rowsa["plyratingrangeidser"] = $row1['repplyratloadid'];
                                $plyloadstr = $row1['repplyratloadname'];
                                $plyload = $row1['repplyratloadid'];
                                array_push($response["plyratingrange"], $rowsa);
                            }
                        }
                        usort($response["plyratingrange"], function ($a, $b) {
                            return strnatcasecmp($a['plyratingrangestr'], $b['plyratingrangestr']);
                        });
                        foreach ($response["plyratingrange"] as $value) {
                            if (count($os) == 1) {
                                $response['keycontent'] = $response['keycontent'] . "<script>readykeyword(\"" . $tyrecon . "\",\"" . $applicationtyp . "\",\"" . $tubetyp . "\",\"" . $tyresize . "\",\"" . $injarea . "\",\"" . $value["plyratingrangeidser"] . "\",\"" . $injtyp . "\",\"" . $injsize . "\",\"" . $steppos . "\",\"" . $singlelinavtype . "\",\"" . $appstep . "\",\"" . $value["plyratingrangestr"] . "\",\"Ply Rating And Load Range\",this,\"card\");</script>";
                            } else {
                                $response['keycontent'] = $response['keycontent'] . "<option value='" . $value["plyratingrangeidser"] . "'>" . $value["plyratingrangestr"] . "</option>";
                            }
                        }
                        $response['keycontent'] = $response['keycontent'] . '</select></div></div>

																											<div class="col-6 ccol-sm-6 col-md-6 col-lg-4 text-center" >

																											</div><script>var x, i, j, selElmnt, a, b, c;/*look for any elements with the class "custom-select":*/x = document.getElementsByClassName("size-select");for (i = 0; i < x.length; i++) {selElmnt = x[i].getElementsByTagName("select")[0];/*for each element, create a new DIV that will act as the selected item:*/a = document.createElement("DIV");a.setAttribute("class", "size-select-selected");a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';x[i].appendChild(a);/*for each element, create a new DIV that will contain the option list:*/b = document.createElement("DIV"); b.setAttribute("class", "size-select-items size-select-hide");for (j = 1; j < selElmnt.length; j++) {/*for each option in the original select element,create a new DIV that will act as an option item:*/c = document.createElement("DIV");c.innerHTML = selElmnt.options[j].innerHTML;c.addEventListener("click", function(e) {/*when an item is clicked, update the original select box,

																								and the selected item:*/

																								

																								var y, i, k, s, h;

																								s = this.parentNode.parentNode.getElementsByTagName("select")[0];

																								h = this.parentNode.previousSibling;

																								for (i = 0; i < s.length; i++) {

																								  if (s.options[i].innerHTML == this.innerHTML) {

																									s.selectedIndex = i;

																									h.innerHTML = this.innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';

																									y = this.parentNode.getElementsByClassName("size-same-as-selected");

																									for (k = 0; k < y.length; k++) {

																									  y[k].removeAttribute("class");

																									}

																									this.setAttribute("class", "size-same-as-selected");

																									break;

																								  }

																								}

																								h.click();

																								selectinjsize("' . $tyrecon . '","' . $applicationtyp . '","' . $tubetyp . '","' . $tyresize . '","' . $injarea . '","' . $plyload . '","' . $injtyp . '","' . $injsize . '","' . $steppos . '","' . $navtype . '","' . $appstep . '","' . $empty . '","Ply Rating And Load Range",this,"list");

																							});

																							b.appendChild(c);

																						  }

																						  x[i].appendChild(b);

																						  a.addEventListener("click", function(e) {

																							  /*when the select box is clicked, close any other select boxes,

																							  and open/close the current select box:*/

																							  e.stopPropagation();

																							

																							  closeAllSelect(this);

																							  this.nextSibling.classList.toggle("size-select-hide");

																							  this.classList.toggle("size-select-arrow-active");

																							});

																						}

																						function closeAllSelect(elmnt) {

																						  /*a function that will close all select boxes in the document,

																						  except the current select box:*/

																						  var x, y, i, arrNo = [];

																						  x = document.getElementsByClassName("size-select-items");

																						  y = document.getElementsByClassName("size-select-selected");

																						  for (i = 0; i < y.length; i++) {

																							if (elmnt == y[i]) {

																							  arrNo.push(i)

																							} else {

																							  y[i].classList.remove("size-select-arrow-active");

																							}

																						  }

																						  for (i = 0; i < x.length; i++) {

																							if (arrNo.indexOf(i)) {

																							  x[i].classList.add("size-select-hide");

																							}

																						  }

																						}

																						/*if the user clicks anywhere outside the select box,

																						then close all select boxes:*/

																						document.addEventListener("click", closeAllSelect);

																						</script>';
                    } else {
                    }
                break;
                case "7":
                    $injsize = "";
                    $response['keywordtitle'] = "Injury Size";
                    $sql = "SELECT * FROM `search_keyword`  WHERE `repAppid` ='$applicationtyp' AND `repTubeTypeid` ='$tubetyp' AND `repTyreSizeid` = '$tyresize' AND `repinjuarea` ='$injarea' AND `repinjutype` ='$injtyp' AND `repplyratLoadid` ='$plyload' ORDER BY `search_keyword`.`repinjusize` ASC";
                    $resulta = $Queryclass->getSearchWord($tyrecon, $applicationtyp, $tubetyp, $tyresize, $injarea, $injtyp, $plyload, "", "", "");
                    $response["injurysize"] = array();
                    $rowcount = count($resulta);
                    if ($rowcount > 0) {
                        $os = array();
                        foreach ($resulta as $row) {
                            $repinjusize = $row['repinjusizeid'];
                            array_push($os, $repinjusize);
                        }
                        $os = array_values(array_unique($os, SORT_REGULAR));
                        $response['keycontent'] = "<div class='col-12 col-sm-12 col-md-12 col-lg-7 size-custom-select'><div class='size-select' id='selectsize' ><select id='stpspn3' ><option value=''>Select *</option>";
                        $empty = "";
                        foreach ($os as $value) {
                            $res = $Queryclass->get("rep_injusize", "repinjusizeid", $value);
                            $rowsa = array();
                            foreach ($res as $row1) {
                                if ($injarea == "3") {
                                    $rowsa["injurysizestr"] = $row1['repinjusizeheight'] . " x " . $row1['repinjusizewidth'];
                                    $rowsa["injsiz"] = getStringBetween($row1['repinjusizeheight'], '(', ')');
                                } else {
                                    $rowsa["injurysizestr"] = $row1['repinjusizename'];
                                    $rowsa["injsiz"] = getStringBetween($row1['repinjusizename'], '(', ')');
                                }
                                $rowsa["injurysizeidser"] = $row1['repinjusizeid'];
                                array_push($response["injurysize"], $rowsa);
                            }
                        }
                        usort($response["injurysize"], function ($a, $b) {
                            return strnatcasecmp($a['injsiz'], $b['injsiz']);
                        });
                        foreach ($response["injurysize"] as $value) {
                            if (count($os) == 1) {
                                $response['keycontent'] = $response['keycontent'] . "<script>readykeyword(\"" . $tyrecon . "\",\"" . $applicationtyp . "\",\"" . $tubetyp . "\",\"" . $tyresize . "\",\"" . $injarea . "\",\"" . $plyload . "\",\"" . $injtyp . "\",\"" . $value["injurysizeidser"] . "\",\"" . $steppos . "\",\"" . $singlelinavtype . "\",\"" . $appstep . "\",\"" . $value["injurysizestr"] . "\",\"Injury Size\",this,\"card\");</script>";
                            } else {
                                $response['keycontent'] = $response['keycontent'] . "<option value='" . $value["injurysizeidser"] . "'>" . $value["injurysizestr"] . "</option>";
                            }
                        }
                        $response['keycontent'] = $response['keycontent'] . '</select></div></div>

																					<div class="col-6 ccol-sm-6 col-md-6 col-lg-4 text-center" >

																					</div><script>var x, i, j, selElmnt, a, b, c;/*look for any elements with the class "custom-select":*/x = document.getElementsByClassName("size-select");for (i = 0; i < x.length; i++) {selElmnt = x[i].getElementsByTagName("select")[0];/*for each element, create a new DIV that will act as the selected item:*/a = document.createElement("DIV");a.setAttribute("class", "size-select-selected");a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';x[i].appendChild(a);

																					

																					b = document.createElement("DIV"); b.setAttribute("class", "size-select-items size-select-hide");for (j = 1; j < selElmnt.length; j++) {/*for each option in the original select element,create a new DIV that will act as an option item:*/c = document.createElement("DIV");c.innerHTML = selElmnt.options[j].innerHTML;c.addEventListener("click", function(e) {/*when an item is clicked, update the original select box,

																		and the selected item:*/

																		

																		var y, i, k, s, h;

																		s = this.parentNode.parentNode.getElementsByTagName("select")[0];

																		h = this.parentNode.previousSibling;

																		for (i = 0; i < s.length; i++) {

																		  if (s.options[i].innerHTML == this.innerHTML) {

																			s.selectedIndex = i;

																			h.innerHTML = this.innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';

																			y = this.parentNode.getElementsByClassName("size-same-as-selected");

																			for (k = 0; k < y.length; k++) {

																			  y[k].removeAttribute("class");

																			}

																			this.setAttribute("class", "size-same-as-selected");

																			break;

																		  }

																		}

																		h.click();

																		selectinjsize("' . $tyrecon . '","' . $applicationtyp . '","' . $tubetyp . '","' . $tyresize . '","' . $injarea . '","' . $plyload . '","' . $injtyp . '","' . $injsize . '","' . $steppos . '","' . $navtype . '","' . $appstep . '","' . $empty . '","Injury Size",this,"list");

																	});

																	b.appendChild(c);

																  }

																  x[i].appendChild(b);

																  a.addEventListener("click", function(e) {

																	 

																	  e.stopPropagation();

																	

																	  closeAllSelect(this);

																	  this.nextSibling.classList.toggle("size-select-hide");

																	  this.classList.toggle("size-select-arrow-active");

																	});

																}

																function closeAllSelect(elmnt) {

																

																  var x, y, i, arrNo = [];

																  x = document.getElementsByClassName("size-select-items");

																  y = document.getElementsByClassName("size-select-selected");

																  for (i = 0; i < y.length; i++) {

																	if (elmnt == y[i]) {

																	  arrNo.push(i)

																	} else {

																	  y[i].classList.remove("size-select-arrow-active");

																	}

																  }

																  for (i = 0; i < x.length; i++) {

																	if (arrNo.indexOf(i)) {

																	  x[i].classList.add("size-select-hide");

																	}

																  }

																}

																

																document.addEventListener("click", closeAllSelect);

																</script>';
                        $resulta = $Queryclass->get("rep_application", "repappid", $applicationtyp);
                        //$rowsa["steps"]=array();
                        foreach ($resulta as $row) {
                            $notesimgurl = $imagedomain . "restr/" . $row['reprstruimg'];
                            $notestbimgurl = $imagedomain . "restable/" . $row['reptable'];
                            $response['desnotescontent'] = '<div class="col-6 col-sm-6 col-md-6 col-lg-4 grid-product "><img class="notes"   src="' . $notesimgurl . '" alt="Retread & Repair Systems" /></div><div class="col-6 col-sm-6 col-md-6 col-lg-4 grid-product"><Label>Repair Restriction</Label><img  class="notes" src="' . $notestbimgurl . '" alt="Retread & Repair Systems" /></div>';
                        }
                    } else {
                        $response['desnotescontent'] = "<script>alert('NO DATA');</script>";
                    }
                break;
                case "9":
                    $resulta = $Queryclass->getSearchWord($tyrecon, $applicationtyp, $tubetyp, $tyresize, $injarea, $injtyp, $plyload, $injsize, "", "");
                    $os = array();
                    foreach ($resulta as $row) {
                        $unitid = $row['repUnitid'];
                        array_push($os, $unitid);
                    }
                    $os = array_unique($os);
                    $response['keycontent'] = "";
                    foreach ($os as $value) {
                        $res = $Queryclass->get("rep_unit", "repUnitid", $value);
                        $rowsa = array();
                        foreach ($res as $row1) {
                            $unitsid = $row1['repUnitid'];
                            $unitsname = $row1['repUnitName'];
                            $repunitcatno = $row1['repUnitCatNo'];
                            $repunitquantity = $row1['repUnitQuantity'];
                            $repunitsizemm = $row1['repUnitSizemm'];
                            $repunitsizeinches = $row1['repUnitSizeInches'];
                            $repunitplyrating = $row1['repUnitPlyrating'];
                            $repscseries = $row1['repscseries'];
                            $repcbseries = $row1['repcbseries'];
                            $rephcseries = $row1['rephcseries'];
                            $reptyrepop = "";
                            $repUdecpop = "";
                            if ($row1["repdecrption"] != 0) {
                                $pop = $row1['repdecrption'];
                                $ressub1 = $Queryclass->get("resultdecrp_pop", "resultdecrp", $value);
                                foreach ($rowsub1 as $rowsub) {
                                    $rowsa["repUdecpop"] = $rowsub['resultdecrpname'];
                                }
                            } else {
                                $rowsa["repUdecpop"] = "";
                            }
                            if ($tyresize != "") {
                                $ressub = $Queryclass->get("rep_tyresize", "reptyresizeid", $tyresize);
                                foreach ($ressub as $rowsub2) {
                                    if ($rowsub2["tyre_decssts"] != 0) {
                                        $pop = $rowsub2['tyre_decssts'];
                                        $poplist = $Queryclass->get("resultdecrp_pop", "resultdecrp", $pop);
                                        foreach ($poplist as $ressub3) {
                                            $rowsa["reptyrepop"] = $rowsub3['resultdecrpname'];
                                        }
                                    } else {
                                        $rowsa["reptyrepop"] = "";
                                    }
                                }
                            }
                            $resulta = $Queryclass->get("rep_tyretype", "reptyreypeid", $tyrecon);
                            $rowcount = count($resulta);
                            if ($rowcount > 0) {
                                foreach ($resulta as $row) {
                                    $tyretypestr = $row['reptyreypename'];
                                }
                            } else {
                            }
                            if ($tyresize != "") {
                                $resulta = $Queryclass->get_join("rep_tyresize", "reptyresizeid", "tyre_decssts", "resultdecrp_pop", "resultdecrp", $tyresize);
                                $rowcount = count($resulta);
                                if ($rowcount > 0) {
                                    foreach ($resulta as $row) {
                                        $decrption = $row['resultdecrpname'];
                                    }
                                } else {
                                }
                            } else {
                            }
                            if ($tyretypestr == "Radial") {
                                $tyretypenotes = "Note : Repair unit mentioned for crown are limited only to the crown area (T-T). All other repair units mentioned for section repair can be used for crown or sidewall injuries. Repair on performance tyre should not exceed or supersede limitation of the new tyre manufacturer’s recommendations. For tyres used in severe applications such as haulage trucks and scrapers select repair units by one incremental size than suggested. All injuries should be filled and supported with the appropriate repair unit. Load, speed and highway application condition may affect section repairs. This repair selection chart is to be used only as a guide.";
                            } else {
                                $tyretypenotes = "Note : Load, speed and highway application condition may affect section repairs. This repair selection chart is to be used only as a guide.";
                            }
                            if ($tyrecon != "") {
                                $selectionchart = $Queryclass->get("rep_tyretype", "reptyreypeid", $tyrecon);
                                foreach ($selectionchart as $selectionchart2) {
                                    $selecChart = $selpdfpath . $selectionchart2["selection_chart"];
                                    $response["selecChart"] = $selpdfpath . $selectionchart2["selection_chart"];
                                }
                            } else {
                                $response["selecChart"] = "Not Avilable";
                            }
                            $productli = $Queryclass->get("elgi_products", "elgiProductsId", "1");
                            foreach ($productli as $catelog) {
                                $repCatloge = $catpdfpath . $catelog["catlog_pdf"];
                                $response["repCatloge"] = $catpdfpath . $catelog["catlog_pdf"];
                            }
                            $response['keycontent'] = $response['keycontent'] . '<div class="col-12 col-sm-12 col-md-12 col-lg-10 ">

													 <div class="center-div ">

														<div class="row">

															<div class="col-2"></div>

															<img class=" col-2 result-header-img "  src="img/logos/jet.png" alt="Retread & Repair Systems" /><Label class="col-6 result-header-cont " >' . $tyretypestr . ' Repair Unit</Label>

															<div class="col-2"></div>

														</div>

													</div>

													<div class="result ">

															<div class="row" ><div class="col-5 result-field"  align="right">Radial Repair Unit</div><div class="col-2"  align="center">:</div>

															<div class="col-5  text-align:left resultcontent"  align="left">' . $unitsname . '</div>

														

															</div>

															

															<div class="row" ><div class="col-5 result-field"  align="right">Size (mm)</div><div class="col-2"  align="center">:</div>

															<div class="col-5  text-align:left resultcontent"  align="left">' . $repunitsizemm . '</div></div>

															

															<div class="row" ><div class="col-5 result-field"  align="right">Size (inch)</div><div class="col-2"  align="center">:</div>

															<div class="col-5  text-align:left resultcontent"  align="left">' . $repunitsizeinches . '</div></div>

															

															<div class="row" ><div class="col-5 result-field" align="right">Ply</div><div class="col-2"  align="center">:</div>

															<div class="col-5  text-align:left resultcontent"  align="left">' . $repunitplyrating . '</div></div>

													</div>

													

													  

													

													<div class="result1">

											

															<div class="row " >

																<div class="col-2"></div>

																<div class="col-4  result-field no-padding" align="left">Soft Cushion - SC Series</div>

																<div class="col-1 no-padding">:</div>

																<div class="col-4  resultcontent">' . $repscseries . '</div>

																<div class="col-1"></div>

															</div>

															

															<div class="row " >

																<div class="col-2"></div>

																<div class="col-4 result-field no-padding" align="left">Hard Cushion - HC Series</div>

																<div class="col-1 no-padding">:</div>

																<div class="col-4 resultcontent"  >' . $rephcseries . '</div>

																<div class="col-1"></div>

															</div>

															

															<div class="row " >

																<div class="col-2"></div>

																<div class="col-4 result-field no-padding"  align="left">Cloth Back - CB Series</div>

																<div class="col-1 no-padding">:</div>

																<div class="col-4 resultcontent" >' . $repcbseries . '</div>

																<div class="col-1"></div>

															</div>

															

													</div>

													<div class="mob-tab-view">

													<div class="catlog ">

														<div class="row" >

																<div class="col-8 cattitle"  >Product Catalogue</div>

																<div class="col-2 caticon " >

																	<a class="productcataloge"target="_blank">

													<img src="img/view.png"/>

												</a>

																</div>

																<div class="col-2 caticon  "  >

																	<img src="img/mail.png"/>

																</div>

														</div>

													</div>

													<div class="catlog">

														<div class="row" >

																<div class="col-8 cattitle"  >Selection Chart</div>

																<div class="col-2 caticon text-align:left" align="center">

																	<a class="selectionchart" target="_blank">

													<img src="img/view.png"/>

												</a>

																</div>

																<div class="col-2 caticon text-align:left"  align="center">

																	<img src="img/mail.png"/>

																</div>

														</div>

													</div>

												

													<div class="catlog">

														<div class="row" >

															<div class="col-8 cattitle" >Search Result</div>

															<div class="col-2 caticon text-align:left" align="center">

																	<img src="img/text.png"/>

															</div>

															<div class="col-2 caticon text-align:left"  align="center">

																	<img src="img/mail.png"/>

															</div>

														</div>

													</div>

												</div>

												

													

													<div class="margin-five-lr"><p class="resultnottes font-16 font-md-14 font-sm-12" align="justify" >' . $tyretypenotes . '

													</p>

													</div>

								

								

										</div>

									 

										<div class="col-12 col-sm-12 col-md-12 col-lg-2 d-none d-lg-block">

										<h3 class="float-right" style="color:#eeeeeb">RESULT</h3>

										</div>';
                        }
                    }
                break;
            }
        break;

        case "envelope":
            if (($_POST['tyresize'] != "") && (isset($_POST['tyresize']))) {
                $tyresize = $_POST['tyresize'];
            } else {
                $tyresize = "";
            }
            if (($_POST['sealsystem'] != "") && (isset($_POST['sealsystem']))) {
                $sealsystem = $_POST['sealsystem'];
            } else {
                $sealsystem = "";
            }
            if (($_POST['steppos'] != "") && (isset($_POST['steppos']))) {
                $steppos = $_POST['steppos'];
            } else {
                $steppos = "0";
            }
            if (($_POST['navtype'] != "") && (isset($_POST['navtype']))) {
                $navtype = $_POST['navtype'];
            } else {
                $navtype = "";
            }
            $response['keywordtitle'] = "";
            $response['desnotescontent'] = "";
            $response['navtype'] = $navtype;
            $reqst = $steppos;
            $steppos = $steppos + 1;
            if ($navtype == - 1) {
                $navtype = 1;
                $singlelinavtype = - 1;
            } else {
                $singlelinavtype = 1;
            }
            $response['keycontent'] = "";
            switch ($reqst) {

                case "0":
                    $tyresize = "";
                    $res = $Queryclass->get("rep_tyresize", "product_type", "2");
                    $response["tyresize"] = array();
                    $rowsa = array();
                    $tyresizerow = count($res);
                    $response['keywordtitle'] = "Tyre Size";
                    if ($tyresizerow > 0) {
                        $response['keycontent'] = "<div class='col-12 col-sm-12 col-md-12 col-lg-12

														size-custom-select'><div class='size-select' id='selectsize' ><select id='stpspn3'><option value=''>Select *</option>";
                        $rowsa = array();
                        foreach ($res as $row1) {
                            $rowsa["tyresizestr"] = $row1['reptyresizenam'];
                            $rowsa["tyresizeidser"] = $row1['reptyresizeid'];
                            $tyresizeid = $row1['reptyresizeid'];
                            $tyresizestr = $row1['reptyresizenam'];
                            if ($tyresizerow == 1) {
                                $response['keycontent'] = "<script>readykeyword(\"" . $tyresizeid . "\",\"" . $sealsysidser . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $tyresizestr . "\",\"Tyre Size\",this,\"list\")</script>";
                            } else {
                                $response['keycontent'] = $response['keycontent'] . "<option value='" . $tyresizeid . "'>" . $tyresizestr . "</option>";
                            }
                        }
                        $response['keycontent'] = $response['keycontent'] . '</select></div></div>

																						<script>var x, i, j, selElmnt, a, b, c;/*look for any elements with the class "custom-select":*/x = document.getElementsByClassName("size-select");for (i = 0; i < x.length; i++) {selElmnt = x[i].getElementsByTagName("select")[0];/*for each element, create a new DIV that will act as the selected item:*/a = document.createElement("DIV");a.setAttribute("class", "size-select-selected");a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';x[i].appendChild(a);/*for each element, create a new DIV that will contain the option list:*/b = document.createElement("DIV"); b.setAttribute("class", "size-select-items size-select-hide");for (j = 1; j < selElmnt.length; j++) {/*for each option in the original select element,create a new DIV that will act as an option item:*/c = document.createElement("DIV");c.innerHTML = selElmnt.options[j].innerHTML;c.addEventListener("click", function(e) {/*when an item is clicked, update the original select box,

																			and the selected item:*/

																			

																			var y, i, k, s, h;

																			s = this.parentNode.parentNode.getElementsByTagName("select")[0];

																			h = this.parentNode.previousSibling;

																			for (i = 0; i < s.length; i++) {

																			if (s.options[i].innerHTML == this.innerHTML) {

																				s.selectedIndex = i;

																				h.innerHTML = this.innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';

																				y = this.parentNode.getElementsByClassName("size-same-as-selected");

																				for (k = 0; k < y.length; k++) {

																				y[k].removeAttribute("class");

																				}

																				this.setAttribute("class", "size-same-as-selected");

																				break;

																			}

																			}

																			h.click();

																			

																			selectsize("' . $tyresize . '","' . $sealsystem . '","' . $steppos . '","' . $navtype . '","' . $empty . '","Tyre Size",this,"list");

																		});

																		b.appendChild(c);

																	}

																	x[i].appendChild(b);

																	a.addEventListener("click", function(e) {

																		/*when the select box is clicked, close any other select boxes,

																		and open/close the current select box:*/

																		e.stopPropagation();

																		

																		closeAllSelect(this);

																		this.nextSibling.classList.toggle("size-select-hide");

																		this.classList.toggle("size-select-arrow-active");

																		});

																	}

																	function closeAllSelect(elmnt) {

																	/*a function that will close all select boxes in the document,

																	except the current select box:*/

																	var x, y, i, arrNo = [];

																	x = document.getElementsByClassName("size-select-items");

																	y = document.getElementsByClassName("size-select-selected");

																	for (i = 0; i < y.length; i++) {

																		if (elmnt == y[i]) {

																		arrNo.push(i)

																		} else {

																		y[i].classList.remove("size-select-arrow-active");

																		}

																	}

																	for (i = 0; i < x.length; i++) {

																		if (arrNo.indexOf(i)) {

																		x[i].classList.add("size-select-hide");

																		}

																	}

																	}

																	/*if the user clicks anywhere outside the select box,

																	then close all select boxes:*/

																	document.addEventListener("click", closeAllSelect);

																	</script>';
                    } else {
                        $response['sts'] = "204";
                        $response['msg'] = "Empty";
                        $response['keycontent'] = "<script>alert('NO DATA');</script>";
                    }
                break;

                case "1":
                    $sealsystem = "";
                    $res2 = $Queryclass->get("envelope_sealsys", "", "");
                    $response["sealsys"] = array();
                    $response['keywordtitle'] = "Sealing System";
                    $rowsa2 = array();
                    $sealrow = count($res2);
                    if ($sealrow > 0) {
                        foreach ($res2 as $row2) {
                            $sealsysstr = $row2['env_sealsystem'];
                            $sealsysidser = $row2['env_sealsysid'];
                            /* 	"'.$tyresize.'","'.$sealsystem.'","'.$steppos.'","'.$navtype.'","'.$empty.'","Tyre Size",this,"list" */
                            if ($sealrow == 1) {
                                $response['keycontent'] = "<script>readykeyword(\"" . $tyresize . "\",\"" . $sealsysidser . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $sealsysstr . "\",\"Sealing System\",this,\"card\");</script>";
                            } else {
                                $response['keycontent'] = $response['keycontent'] . "<div class='col-6 col-sm-6 col-md-6 col-lg-6 grid-product '><div class='product-item-details ' onclick='readykeyword(\"" . $tyresize . "\",\"" . $sealsysidser . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $sealsysstr . "\",\"Sealing System\",this,\"card\")'><div class='product-item-img img-eq'><img src='img/" . $sealsysidser . ".png' alt='Sealing image' /></div><div class='product-item-title title-eq float-center'><h3>" . $sealsysstr . "</h3></div></div></div>";
                            }
                        }
                        $response['sts'] = "200";
                        $response['msg'] = "Done";
                        $resulta12 = $Queryclass->get("settiingimg", "settiingimgid", "2");
                        $intirowc7 = count($resulta12);
                        if ($intirowc7 > 0) {
                            foreach ($resulta12 as $row12) {
                                $notestbimgurl = $imagedomain . "settings/" . $row12['settiingimgloc'];
                            }
                        }
                        $response['desnotescontent'] = '<div class="col-6 col-sm-6 col-md-6 col-lg-4 grid-product"><Label>Repair Restriction</Label><img  class="notes" src="' . $notestbimgurl . '" alt="Retread & Repair Systems" /></div>';
                    } else {
                        $response['sts'] = "204";
                        $response['msg'] = "Empty";
                        $response['keycontent'] = "<script>alert('NO DATA');</script>";
                    }
                break;

                case "2":
                    $res = $Queryclass->getEnvelopeGuide($tyresize, $sealsystem);
                    $response["envelope"] = array();
                    $enveloperesrow = count($res);
                    if ($enveloperesrow > 0) {
                        foreach ($res as $row1) {
                            $response['keycontent'] = $response['keycontent'] . '<div class="col-12 col-sm-12 col-md-12 col-lg-10 ">

													 <div class="center-div ">

														<div class="row">

															<div class="col-2"></div>

															<img class=" col-2 result-header-img "  src="img/logos/jet.png" alt="Retread & Repair Systems" /><Label class="col-8 result-header-cont " > ULTRA Series</Label>

														

														</div>

													</div>';
                            if ($row1['outside_env'] != "") {
                                $outenvid = $row1['outside_env'];
                            } else {
                                $outenvid = "0";
                            }
                            if ($row1['inside_env'] != "") {
                                $inenvid = $row1['inside_env'];
                            } else {
                                $inenvid = "0";
                            }
                            $res1 = $Queryclass->get("envelope_products", "envelope_pid", $outenvid);
                            $rowsa = array();
                            $outsideenveloperesrow = count($res1);
                            if ($outsideenveloperesrow > 0) {
                                foreach ($res1 as $row1) {
                                    $envelopepname = $row1['envelope_pname'];
                                    $envelopepcategory = $row1['envelope_pcategory'];
                                    $envelopeod = $row1['envelope_od'];
                                    $envelopesecwidth = $row1['envelope_secwidth'];
                                    $envelopebtb = $row1['envelope_BTB'];
                                    $response['keycontent'] = $response['keycontent'] . '<div class="result  font-24 font-md-20 font-sm-18">

															<div class="row" ><div class="col-5 result-field"  align="right">Outside Envelope</div><div class="col-2"  align="center">:</div>

															<div class="col-5  text-align:left resultcontent"  align="left">' . $envelopepname . '</div>

														

															</div>

															

															<div class="row" ><div class="col-5 result-field"  align="right">OD (inch)</div><div class="col-2"  align="center">:</div>

															<div class="col-5  text-align:left resultcontent"  align="left">' . $envelopeod . '</div></div>

															

															<div class="row" ><div class="col-5 result-field"  align="right">Section width (inch)</div><div class="col-2"  align="center">:</div>

															<div class="col-5  text-align:left resultcontent"  align="left">' . $envelopesecwidth . '</div></div>

															

															<div class="row" ><div class="col-5 result-field" align="right">Bead to Bead (inch)</div><div class="col-2"  align="center">:</div>

															<div class="col-5  text-align:left resultcontent"  align="left">' . $envelopebtb . '</div></div>

															

									

													</div>

												';
                                }
                            }
                            $res3 = $res1 = $Queryclass->get("envelope_products", "envelope_pid", $inenvid);
                            $insideenveloperesrow = count($res1);
                            if ($insideenveloperesrow > 0) {
                                foreach ($res3 as $row1) {
                                    $envelopepname = $row1['envelope_pname'];
                                    $envelopepcategory = $row1['envelope_pcategory'];
                                    $envelopeod = $row1['envelope_od'];
                                    $envelopesecwidth = $row1['envelope_secwidth'];
                                    $envelopeidinch = $row1['envelope_idinch'];
                                    $response['keycontent'] = $response['keycontent'] . '<div class="result  font-24 font-md-20 font-sm-18">

															<div class="row" ><div class="col-5 result-field"  align="right">Inside Envelope</div><div class="col-2"  align="center">:</div>

															<div class="col-5  text-align:left resultcontent"  align="left">' . $envelopepname . '</div>

														

															</div>

															

															<div class="row" ><div class="col-5 result-field"  align="right">OD (inch)</div><div class="col-2"  align="center">:</div>

															<div class="col-5  text-align:left resultcontent"  align="left">' . $envelopeod . '</div></div>

															

															<div class="row" ><div class="col-5 result-field"  align="right">Section width (inch)</div><div class="col-2"  align="center">:</div>

															<div class="col-5  text-align:left resultcontent"  align="left">' . $envelopesecwidth . '</div></div>

															

															<div class="row" ><div class="col-5 result-field" align="right">ID (inch)</div><div class="col-2"  align="center">:</div>

															<div class="col-5  text-align:left resultcontent"  align="left">' . $envelopeidinch . '</div></div>

															

									

													</div>';
                                }
                            } else {
                            }
                        }
                        $response['keycontent'] = $response['keycontent'] . '<div class="mob-tab-view ">

													<div class="catlog font-16 font-md-14 font-sm-12">

														<div class="row" >

																<div class="col-8 cattitle"  >Product Catalogue</div>

																<div class="col-2 caticon text-align:left"  align="center">

																	<a class="productcataloge" target="_blank">

																		<img src="img/view.png"/>

																	</a>

																</div>

																<div class="col-2 caticon text-align:left "  align="center">

																	<img src="img/mail.png"/>

																</div>

														</div>

													</div>

													<div class="catlog">

														<div class="row" >

																<div class="col-8 cattitle"  >Selection Chart</div>

																<div class="col-2 caticon text-align:left" align="center">

																	<a class="selectionchart"  target="_blank">

																		<img src="img/view.png"/>

																	</a>

																</div>

																<div class="col-2 caticon text-align:left"  align="center">

																	<img src="img/mail.png"/>

																</div>

														</div>

													</div>

												

													<div class="catlog">

														<div class="row" >

															<div class="col-8 cattitle" >Search Result</div>

															<div class="col-2 caticon text-align:left" align="center">

																	<img src="img/text.png"/>

															</div>

															<div class="col-2 caticon text-align:left"  align="center">

																	<img src="img/mail.png"/>

															</div>

														</div>

													</div>

												</div>

													<span><p class="resultnottes font-16 font-md-14 font-sm-12"align="justify">Note : Envelope sizes suggested are to be used only as a guide. Variation in tyre sizes and dimensions, precured tread designs and precure tread thickness may require a smaller or larger size envelope. It may be necessary to measure the built tyre to determine the correct envelope size in some instances.</p></span>

												</div>

											 

												<div class="col-12 col-sm-12 col-md-12 col-lg-2 d-none d-lg-block">

												<h3 style="color:#eeeeeb">RESULT</h3>

												</div>';
                        $response["selecChart"] = $catpdfpath . "Outside_Envelope_Selection_Chart_ULTRA_Series.pdf";
                        $productli = $Queryclass->get("elgi_products", "elgiProductsId", "2");
                        foreach ($productli as $catelog) {
                            $response["repCatloge"] = $catpdfpath . $catelog["catlog_pdf"];
                            $response["selecChart"] = $selpdfpath . $catelog["select_chart"];
                        }
                        $response['sts'] = "200";
                        $response['msg'] = "Done";
                    } else {
                        $response['sts'] = "204";
                        $response['msg'] = "Empty";
                        $response['keycontent'] = "<script>alert('NO DATA');</script>";
                    }
                break;

                default:
                    $response['sts'] = "400";
                    $response['msg'] = "Request Is Wrong";
                break;
            }
        break;

        case "raspblade":
            if (($_POST['bapp'] != "") && isset($_POST['bapp'])) {
                $bapp = $_POST['bapp'];
            } else {
                $bapp = "";
            }
            if (($_POST['hubdiam'] != "") && isset($_POST['hubdiam'])) {
                $hubdiam = $_POST['hubdiam'];
            } else {
                $hubdiam = "";
            }
            if (($_POST['numsegm'] != "") && isset($_POST['numsegm'])) {
                $numsegm = $_POST['numsegm'];
            } else {
                $numsegm = "";
            }
            if (($_POST['pinhole'] != "") && isset($_POST['pinhole'])) {
                $pinhole = $_POST['pinhole'];
            } else {
                $pinhole = "";
            }
            if (($_POST['tooth'] != "") && isset($_POST['tooth'])) {
                $tooth = $_POST['tooth'];
            } else {
                $tooth = "";
            }
            if (($_POST['teeth'] != "") && isset($_POST['teeth'])) {
                $teeth = $_POST['teeth'];
            } else {
                $teeth = "";
            }
            if (($_POST['bproductid'] != "") && isset($_POST['bproductid'])) {
                $bproductid = $_POST['bproductid'];
            } else {
                $bproductid = "";
            }
            if (($_POST['steppos'] != "") && isset($_POST['steppos'])) {
                $steppos = $_POST['steppos'];
            } else {
                $steppos = "0";
            }
            if (($_POST['navtype'] != "") && isset($_POST['navtype'])) {
                $navtype = $_POST['navtype'];
            } else {
                $navtype = "1";
            }
            $response["keycontent"] = "";
            $reqst = $steppos;
            $steppos = $steppos + 1;
            if ($navtype == - 1) {
                $navtype = 1;
                $singlelinavtype = - 1;
            } else {
                $singlelinavtype = 1;
            }
            switch ($reqst) {
                case "0":
                    $bapp = "";
                    $result_bapp = $Queryclass->get("blade_app", "", "");
                    $response["bapp"] = array();
                    $response['keywordtitle'] = "Application";
                    $rowsa = array();
                    $bladeapprow = count($result_bapp);
                    if ($bladeapprow > 0) {
                        foreach ($result_bapp as $row) {
                            $bappstr = $row['bapp_name'];
                            $bappidser = $row['bapp_id'];
                            $bappimgurl = $imagedomain . "Bladeapp/" . $row['bapp_img'];
                            $resultapp = $Queryclass->getRaspbladeGuide($row['bapp_id'], "0", "", "", "", "", "", "", "");
                            $rowd = count($resultapp);
                            if ($rowd != 0) {
                                $steppos = "7";
                            }
                            $response['keycontent'] = $response['keycontent'] . "<div class='col-6 col-sm-6 col-md-6 col-lg-6 grid-product '><div class='product-item-details ' onclick='readykeyword(this,\"" . $bappidser . "\",\"" . $hubdiam . "\",\"" . $numsegm . "\",\"" . $pinhole . "\",\"" . $tooth . "\",\"" . $teeth . "\",\"" . $bproductid . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $bappstr . "\",\"Application\",\"card\")'><div class='product-item-img img-eq'><img src='" . $bappimgurl . "' alt='Radial' /></div><div class='product-item-title title-eq'><h3>" . $bappstr . "</h3></div></div></div>";
                        }
                        $response['sts'] = "200";
                        $response['msg'] = "Done";
                    } else {
                        $response['sts'] = "204";
                        $response['msg'] = "Empty";
                    }
                break;
                case "1":
                    $hubdiam = "";
                    $result_sel = $Queryclass->getRaspbladeGuide($bapp, "", "", "", "", "", "", "", "");
                    //for($j=0; $row1= mysqli_fetch_assoc($resultapp);$j++ ) {
                    $response["hubdiam"] = array();
                    $response['keywordtitle'] = "Hub Diameter";
                    $os = array();
                    $rowc = count($result_sel);
                    if ($rowc > 0) {
                        foreach ($result_sel as $row2) {
                            $hubdiamid = $row2['hubdiam_id'];
                            array_push($os, $hubdiamid);
                        }
                        $os = array_unique($os);
                        foreach ($os as $value) {
                            $resulta = $Queryclass->get('blade_hubdiam', 'hubdiam_id', $value);
                            $row1 = count($resulta);
                            if ($row1 > 0) {
                                $rowsa = array();
                                foreach ($resulta as $row) {
                                    $hubdiamstr = $row['hubdiam_name'];
                                    $hubdiamidser = $row['hubdiam_id'];
                                    $hubdiamimgurl = $imagedomain . "Hubdiam/" . $row['hubdiam_img'];
                                    $response['keycontent'] = $response['keycontent'] . "<div class='col-6 col-sm-6 col-md-6 col-lg-6 grid-product '><div class='product-item-details ' onclick='readykeyword(this,\"" . $bapp . "\",\"" . $hubdiamidser . "\",\"" . $numsegm . "\",\"" . $pinhole . "\",\"" . $tooth . "\",\"" . $teeth . "\",\"" . $bproductid . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $hubdiamstr . "\",\"Hub Diameter\",\"card\")'><div class='product-item-img img-eq'><img src='" . $hubdiamimgurl . "' alt='Radial' /></div><div class='product-item-title title-eq'><h3>" . $hubdiamstr . "</h3></div></div></div>";
                                }
                                $response['sts'] = "200";
                                $response['msg'] = "Done";
                            } else {
                                $response['sts'] = "204";
                                $response['msg'] = "Empty";
                            }
                        }
                    } else {
                    }
                break;
                case "2":
                    $numseg = "";
                    $result_sel = $Queryclass->getRaspbladeGuide($bapp, $hubdiam, "", "", "", "", "", "", "");
                    $response['keywordtitle'] = "Number of Segments";
                    //for($j=0; $row1= mysqli_fetch_assoc($resultapp);$j++ ) {
                    $row = count($result_sel);
                    if ($row > 0) {
                        $response["numsegm"] = array();
                        $os = array();
                        foreach ($result_sel as $row2) {
                            $numsegid = $row2['numseg_id'];
                            array_push($os, $numsegid);
                        }
                        $os = array_unique($os);
                        if (count($os) == 0) {
                            $steppos = $steppos + 1;
                            $response['keycontent'] = $response['keycontent'] . "<script>readykeyword(this,\"" . $bapp . "\",\"" . $hubdiam . "\",\"" . $numsegm . "\",\"" . $pinhole . "\",\"" . $tooth . "\",\"" . $teeth . "\",\"" . $bproductid . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $numsegmstr . "\",\"\",\"card\");keywordguide(\"" . $navtype . "\");</script>";
                        } else {
                            foreach ($os as $value) {
                                $result_numseg = $Queryclass->get("blade_numsegment", "numseg_id", $value);
                                $rowcount = count($result_numseg);
                                if ($rowcount > 0) {
                                    $rowsa = array();
                                    foreach ($result_numseg as $row) {
                                        $numsegmstr = $row['numseg_name'];
                                        $numsegmidser = $row['numseg_id'];
                                        $numsegmimgurl = $imagedomain . "Numsegment/" . $row['numseg_img'];
                                        if (count($os) == 1) {
                                            $response['keycontent'] = $response['keycontent'] . "<script>readykeyword(this,\"" . $bapp . "\",\"" . $hubdiam . "\",\"" . $numsegmidser . "\",\"" . $pinhole . "\",\"" . $tooth . "\",\"" . $teeth . "\",\"" . $bproductid . "\",\"" . $steppos . "\",\"" . $singlelinavtype . "\",\"" . $numsegmstr . "\",\"Number of Segments\",\"card\");</script>";
                                        } else {
                                            $response['keycontent'] = $response['keycontent'] . "<div class='col-6 col-sm-6 col-md-6 col-lg-6 grid-product '><div class='product-item-details ' onclick='readykeyword(this,\"" . $bapp . "\",\"" . $hubdiam . "\",\"" . $numsegmidser . "\",\"" . $pinhole . "\",\"" . $tooth . "\",\"" . $teeth . "\",\"" . $bproductid . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $numsegmstr . "\",\"Number of Segments\",\"card\")'><div class='product-item-img img-eq'><img src='" . $numsegmimgurl . "' alt='Radial' /></div><div class='product-item-title title-eq'><h3>" . $numsegmstr . "</h3></div></div></div>";
                                        }
                                    }
                                } else {
                                }
                            }
                        }
                    } else {
                        $response['sts'] = "204";
                        $response['msg'] = "Empty";
                    }
                break;
                case "3":
                    $pinhole = "";
                    $resultapp = $Queryclass->getRaspbladeGuide($bapp, $hubdiam, $numsegm, "", "", "", "", "", "");
                    //for($j=0; $row1= mysqli_fetch_assoc($resultapp);$j++ ) {
                    $row = count($resultapp);
                    $response['keywordtitle'] = "Pin Hole Configuration";
                    if ($row > 0) {
                        $os = array();
                        foreach ($resultapp as $row2) {
                            $numsegid = $row2['pinhole_id'];
                            if ($numsegid != "") {
                                array_push($os, $numsegid);
                            }
                        }
                        $os = array_unique($os);
                        if (count($os) > 0) {
                            foreach ($os as $value) {
                                $result_pinhole = $Queryclass->get("blade_pinhole", "pinhole_id", $value);
                                $rowcount = count($result_pinhole);
                                if ($rowcount > 0) {
                                    $rowsa = array();
                                    // foreach ($resulta as $row) {
									foreach ($result_pinhole as $row) {
                                        $pinholestr = $row['pinhole_name'];
                                        $pinholeidser = $row['pinhole_id'];
                                        $pinholeimgurl = $imagedomain . "Pinhole/" . $row['pinhole_img'];
                                        if (count($os) == 1) {
                                            $response['keycontent'] = $response['keycontent'] . "<script>readykeyword(this,'" . $bapp . "','" . $hubdiam . "','" . $numsegm . "','" . $pinholeidser . "','" . $tooth . "','" . $teeth . "','" . $bproductid . "','" . $steppos . "','" . $singlelinavtype . "','" . $pinholestr . "','Pin Hole Configuration','card');</script>";
                                        } else {
                                            $response['keycontent'] = $response['keycontent'] . "<div class='col-6 col-sm-6 col-md-6 col-lg-6 grid-product '><div class='product-item-details ' onclick='readykeyword(this,\"" . $bapp . "\",\"" . $hubdiam . "\",\"" . $numsegm . "\",\"" . $pinholeidser . "\",\"" . $tooth . "\",\"" . $teeth . "\",\"" . $bproductid . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $pinholestr . "\",\"Pin Hole Configuration\",\"card\")'><div class='product-item-img img-eq'><img src='" . $pinholeimgurl . "' alt='Radial' /></div><div class='product-item-title title-eq'><h3>" . $pinholestr . "</h3></div></div></div>";
                                        }
                                    }
                                    $response['sts'] = "200";
                                    $response['msg'] = "Done";
                                } else {
                                }
                            }
                        } else {
                            $steppos = $steppos + 1;
                            $response['keycontent'] = $response['keycontent'] . "<script>readykeyword(this,\"" . $bapp . "\",\"" . $hubdiam . "\",\"" . $numsegm . "\",\"" . $pinhole . "\",\"" . $tooth . "\",\"" . $teeth . "\",\"" . $bproductid . "\",\"" . $steppos . "\",\"" . $singlelinavtype . "\",\"\",\"\",\"card\");</script>";
                        }
                    } else {
                        $response['sts'] = "204";
                        $response['msg'] = "Empty";
                    }
                break;
                case "4":
                    $tooth = "";
                    $result_sel = $Queryclass->getRaspbladeGuide($bapp, $hubdiam, $numsegm, $pinhole, "", "", "", "", "");
                    //for($j=0; $row1= mysqli_fetch_assoc($resultapp);$j++ ) {
                    $row = count($result_sel);
                    $response['keywordtitle'] = "Tooth Type";
                    if ($row > 0) {
                        $response["tooth"] = array();
                        $os = array();
                        foreach ($result_sel as $row2) {
                            $toothid = $row2['tooth_id'];
                            if ($toothid != "") {
                                array_push($os, $toothid);
                            }
                        }
                        $os = array_unique($os);
                        if (count($os) > 0) {
                            foreach ($os as $value) {
                                $result_tooth = $Queryclass->get('blade_tooth', "tooth_id", $value);
                                $rowsa = array();
                                $row1 = count($result_tooth);
                                if ($row1 > 0) {
                                    foreach ($result_tooth as $row) {
                                        $toothstr = $row['tooth_name'];
                                        $toothidser = $row['tooth_id'];
                                        $toothimgurl = $imagedomain . "Tooth/" . $row['tooth_img'];
                                        if (count($os) == 1) {
                                            $response['keycontent'] = $response['keycontent'] . "<script>readykeyword(this,\"" . $bapp . "\",\"" . $hubdiam . "\",\"" . $numsegm . "\",\"" . $pinhole . "\",\"" . $toothidser . "\",\"" . $teeth . "\",\"" . $bproductid . "\",\"" . $steppos . "\",\"" . $singlelinavtype . "\",\"" . $toothstr . "\",\"Tooth Type\",\"card\");</script>";
                                        } else {
                                            $response['keycontent'] = $response['keycontent'] . "<div class='col-6 col-sm-6 col-md-6 col-lg-6 grid-product '><div class='product-item-details ' onclick='readykeyword(this,\"" . $bapp . "\",\"" . $hubdiam . "\",\"" . $numsegm . "\",\"" . $pinhole . "\",\"" . $toothidser . "\",\"" . $teeth . "\",\"" . $bproductid . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $toothstr . "\",\"Tooth Type\",\"card\")'><div class='product-item-img img-eq'><img src='" . $toothimgurl . "' alt='Radial' /></div><div class='product-item-title title-eq'><h3>" . $toothstr . "</h3></div></div></div>";
                                        }
                                    }
                                    $response['sts'] = "200";
                                    $response['msg'] = "Done";
                                } else {
                                    $response['sts'] = "204";
                                    $response['msg'] = "Empty";
                                }
                            }
                        } else {
                            $response['keycontent'] = $response['keycontent'] . "<script>readykeyword(this,\"" . $bapp . "\",\"" . $hubdiam . "\",\"" . $numsegm . "\",\"" . $pinhole . "\",\"" . $tooth . "\",\"" . $teeth . "\",\"" . $bproductid . "\",\"" . $steppos . "\",\"" . $singlelinavtype . "\",\"\",\"\",\"card\");</script>";
                        }
                    } else {
                        $response['sts'] = "204";
                        $response['msg'] = "Empty";
                    }
                break;
                case "5":
                    $teeth = "";
                    $resultapp = $Queryclass->getRaspbladeGuide($bapp, $hubdiam, $numsegm, $pinhole, $tooth, "", "", "", "");
                    //for($j=0; $row1= mysqli_fetch_assoc($resultapp);$j++ ) {
                    $response["keywordtitle"] = "Number of Teeth";
                    $os = array();
                    $row4 = count($resultapp);
                    if ($row4 > 0) {
                        foreach ($resultapp as $row2) {
                            $teethid = $row2['teeth_id'];
                            if ($teethid != "") {
                                array_push($os, $teethid);
                            }
                        }
                        $os = array_unique($os);
                        if (count($os) > 0) {
                            $response['keycontent'] = "<div class='col-12 col-sm-12 col-md-12 col-lg-7 size-custom-select'><div class='size-select' id='selectsize' ><select id='stpspn3' ><option value=''>Select *</option>";
                            foreach ($os as $value) {
                                $resulta = $Queryclass->get("blade_teeth", "teeth_id", $value);
                                $rowsa = array();
                                $row1 = count($resulta);
                                if ($row1 > 0) {
                                    foreach ($resulta as $row) {
                                        $teethstr = $row['teeth_name'];
                                        $teethidser = $row['teeth_id'];
                                        if (count($os) == 1) {
                                            $response['keycontent'] = $response['keycontent'] . "<script>readykeyword(this,\"" . $bapp . "\",\"" . $hubdiam . "\",\"" . $numsegm . "\",\"" . $pinhole . "\",\"" . $toothidser . "\",\"" . $teeth . "\",\"" . $bproductid . "\",\"" . $steppos . "\",\"" . $singlelinavtype . "\",\"" . $teethidser . "\",\"Number of Teeth\",\"list\");</script>";
                                        } else {
                                            $response['keycontent'] = $response['keycontent'] . "<option value='" . $teethidser . "'>" . $teethstr . "</option>";
                                        }
                                    }
                                    $response['sts'] = "200";
                                    $response['msg'] = "Done";
                                } else {
                                    $response['sts'] = "204";
                                    $response['msg'] = "Empty";
                                }
                            }
                            $response['keycontent'] = $response['keycontent'] . '</select></div></div>

																					<script>var x, i, j, selElmnt, a, b, c;/*look for any elements with the class "custom-select":*/x = document.getElementsByClassName("size-select");for (i = 0; i < x.length; i++) {selElmnt = x[i].getElementsByTagName("select")[0];/*for each element, create a new DIV that will act as the selected item:*/a = document.createElement("DIV");a.setAttribute("class", "size-select-selected");a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';x[i].appendChild(a);/*for each element, create a new DIV that will contain the option list:*/b = document.createElement("DIV"); b.setAttribute("class", "size-select-items size-select-hide");for (j = 1; j < selElmnt.length; j++) {/*for each option in the original select element,create a new DIV that will act as an option item:*/c = document.createElement("DIV");c.innerHTML = selElmnt.options[j].innerHTML;c.addEventListener("click", function(e) {/*when an item is clicked, update the original select box,

																		and the selected item:*/

																		

																		var y, i, k, s, h;

																		s = this.parentNode.parentNode.getElementsByTagName("select")[0];

																		h = this.parentNode.previousSibling;

																		for (i = 0; i < s.length; i++) {

																		  if (s.options[i].innerHTML == this.innerHTML) {

																			s.selectedIndex = i;

																			h.innerHTML = this.innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';

																			y = this.parentNode.getElementsByClassName("size-same-as-selected");

																			for (k = 0; k < y.length; k++) {

																			  y[k].removeAttribute("class");

																			}

																			this.setAttribute("class", "size-same-as-selected");

																			break;

																		  }

																		}

																		h.click();

																		

																		selectteeth(this,"' . $bapp . '","' . $hubdiam . '","' . $numsegm . '","' . $pinhole . '","' . $tooth . '","' . $teeth . '","' . $bproductid . '","' . $steppos . '","' . $navtype . '","' . $empty . '","Number of Teeth","list");

																		

																	});

																	b.appendChild(c);

																  }

																  x[i].appendChild(b);

																  a.addEventListener("click", function(e) {

																	  /*when the select box is clicked, close any other select boxes,

																	  and open/close the current select box:*/

																	  e.stopPropagation();

																	

																	  closeAllSelect(this);

																	  this.nextSibling.classList.toggle("size-select-hide");

																	  this.classList.toggle("size-select-arrow-active");

																	});

																}

																function closeAllSelect(elmnt) {

																  /*a function that will close all select boxes in the document,

																  except the current select box:*/

																  var x, y, i, arrNo = [];

																  x = document.getElementsByClassName("size-select-items");

																  y = document.getElementsByClassName("size-select-selected");

																  for (i = 0; i < y.length; i++) {

																	if (elmnt == y[i]) {

																	  arrNo.push(i)

																	} else {

																	  y[i].classList.remove("size-select-arrow-active");

																	}

																  }

																  for (i = 0; i < x.length; i++) {

																	if (arrNo.indexOf(i)) {

																	  x[i].classList.add("size-select-hide");

																	}

																  }

																}

																/*if the user clicks anywhere outside the select box,

																then close all select boxes:*/

																document.addEventListener("click", closeAllSelect);

																</script>';
                        } else {
                            $response['keycontent'] = $response['keycontent'] . "<script>readykeyword(this,\"" . $bapp . "\",\"" . $hubdiam . "\",\"" . $numsegm . "\",\"" . $pinhole . "\",\"" . $tooth . "\",\"" . $teeth . "\",\"" . $bproductid . "\",\"" . $steppos . "\",\"" . $singlelinavtype . "\",\"" . $teeth . "\",\"\",\"list\");</script>";
                        }
                    } else {
                        $response['sts'] = "204";
                        $response['msg'] = "Empty";
                    }
                break;
                case "6":
                    $resultapp = $Queryclass->getRaspbladeGuide($bapp, $hubdiam, $numsegm, $pinhole, $tooth, $teeth, "", "", "");
                    $row = count($resultapp);
                    if ($row > 0) {
                        $response["blades"] = array();
                        $os = array();
                        foreach ($resultapp as $row2) {
                            $bproductid = $row2['bproduct_id'];
                            array_push($os, $bproductid);
                        }
                        $os = array_unique($os);
                        /* $response['keycontent']=$response['keycontent'].'<div class="col-12 col-sm-12 col-md-12 col-lg-8 ">
                        
                        <div class="center-div">
                        
                        <img class=" col-12"  src="img/logos/pincott.png" alt="Retread & Repair Systems" />
                        
                        </div>'; */
                        $response['keycontent'] = $response['keycontent'] . '<div class="col-12 col-sm-12 col-md-12 col-lg-10 ">

													 <div class="center-div ">

														<div class="row">

															<div class="col-2"></div>

															<img class=" col-6 result-header-img "  src="img/logos/pincott.png" alt="Retread & Repair Systems" />

															<div class="col-2"></div>

														</div>

													</div>';
                        foreach ($os as $value) {
                            $resulta = $Queryclass->get("blade_product", "bproduct_id", $value);
                            $rowsa = array();
                            $row = count($resultapp);
                            if ($row > 0) {
                                foreach ($resulta as $row) {
                                    $bladesstr = $row['bproduct_name'];
                                    $bladesidser = $row['bproduct_id'];
                                    $bladesimgurl = $imagedomain . "Blade/" . $row['bproduct_img'];
                                    $response['keycontent'] = $response['keycontent'] . '<div class="result">

														

															<div class="col-5   resultcontent"  align="center">' . $bladesstr . '</div>

													</div><div><img src="' . $bladesimgurl . '"/></div>';
                                }
                                $response['sts'] = "200";
                                $response['msg'] = "Done";
                            } else {
                                $response['sts'] = "204";
                                $response['msg'] = "Empty";
                            }
                        }
                        $response['keycontent'] = $response['keycontent'] . '<div class="mob-tab-view ">

													<div class="catlog">

														<div class="row" >

																<div class="col-8 cattitle center-div"  >Product Catalogue</div>

																<div class="col-2 caticon"  align="center">

																	<img src="img/view.png"/>

																</div>

																<div class="col-2 caticon imq-eq center-div"  align="center">

																	<img src="img/mail.png"/>

																</div>

														</div>

													</div>

													<div class="catlog">

														<div class="row" >

																<div class="col-8 cattitle center-div"  >Selection Chart</div>

																<div class="col-2 caticon imq-eq" align="center">

																	<img src="img/view.png"/>

																</div>

																<div class="col-2 caticon imq-eq "  align="center">

																	<img src="img/mail.png"/>

																</div>

														</div>

													</div>

												

													<div class="catlog">

														<div class="row" >

															<div class="col-8 cattitle center-div" >Search Result</div>

															<div class="col-2 caticon imq-eq" >

																	<img src="img/text.png"/>

															</div>

															<div class="col-2 caticon imq-eq"  >

																	<img src="img/mail.png"/>

															</div>

														</div>

													</div>

												</div>

												</div>

											 

												<div class="col-12 col-sm-12 col-md-12 col-lg-2 d-none d-lg-block">

												<h3 style="color:#eeeeeb">RESULT</h3>

												</div>';
                    } else {
                        $response['sts'] = "204";
                        $response['msg'] = "Empty";
                    }
                break;
                case "7":
                    $result_sel = $Queryclass->getRaspbladeGuide($bapp, "", "", "", "", "", "", "", "");
                    $response["keywordtitle"] = "blade";
                    $os = array();
                    $row = count($result_sel);
                    if ($row > 0) {
                        foreach ($result_sel as $row2) {
                            $bproductid = $row2['bproduct_id'];
                            array_push($os, $bproductid);
                        }
                        $os = array_unique($os);
                        foreach ($os as $value) {
                            $result_prodt = $Queryclass->get("blade_product", "bproduct_id", $value);
                            $rowsa = array();
                            $row = count($result_prodt);
                            if ($row > 0) {
                                // foreach ($resulta as $row) {
                                foreach ($result_prodt as $row) {
                                    $bladesstr = $row['bproduct_name'];
                                    $bladesidser = $row['bproduct_id'];
                                    $bladesimgurl = $imagedomain . "Blade/" . $row['bproduct_img'];
                                    $response['keycontent'] = $response['keycontent'] . "<div class='col-6 col-sm-6 col-md-6 col-lg-6 grid-product '><div class='product-item-details ' onclick='readykeyword(this,\"" . $bapp . "\",\"" . $hubdiam . "\",\"" . $numsegm . "\",\"" . $pinhole . "\",\"" . $tooth . "\",\"" . $teeth . "\",\"" . $bladesidser . "\",\"" . $steppos . "\",\"" . $navtype . "\",\"" . $bladesstr . "\",\"Hub Diameter\",\"card\")'><div class='product-item-img img-eq'><img src='" . $bladesimgurl . "' alt='Radial' /></div><div class='product-item-title title-eq'><h3>" . $bladesstr . "</h3></div></div></div>";
                                }
                                $response['sts'] = "200";
                                $response['msg'] = "Done";
                            } else {
                                $response['sts'] = "204";
                                $response['msg'] = "Empty";
                            }
                        }
                    } else {
                        $response['sts'] = "204";
                        $response['msg'] = "Empty";
                    }
                break;
                case "8":
                    /* $response['keycontent']=$response['keycontent'].'<div class="col-12 col-sm-12 col-md-12 col-lg-8 ">
                    
                    <div class="center-div">
                    
                    <img class=" col-12"  src="img/logos/pincott.png" alt="Retread & Repair Systems" />
                    
                    </div>'; */
                    $response['keycontent'] = $response['keycontent'] . '<div class="col-12 col-sm-12 col-md-12 col-lg-10 ">

													 <div class="center-div ">

														<div class="row">

															<div class="col-2"></div>

															<img class=" col-6 result-header-img "  src="img/logos/pincott.png" alt="Retread & Repair Systems" />

															<div class="col-2"></div>

														</div>

													</div>';
                    $resulta = $Queryclass->get("blade_product", "bproduct_id", $bproductid);
                    $rowsa = array();
                    $row = count($resulta);
                    if ($row > 0) {
                        foreach ($resulta as $row) {
                            $bladesstr = $row['bproduct_name'];
                            $bladesidser = $row['bproduct_id'];
                            $bladesimgurl = $imagedomain . "Blade/" . $row['bproduct_img'];
                            $response['keycontent'] = $response['keycontent'] . '<div class="result">

														

															<div class="col-5  text-align:left resultcontent"  align="center">' . $bladesstr . '</div>

													</div><div><img src="' . $bladesimgurl . '"/></div>';
                        }
                        $response['sts'] = "200";
                        $response['msg'] = "Done";
                    } else {
                        $response['sts'] = "204";
                        $response['msg'] = "Empty";
                    }
                    $response['keycontent'] = $response['keycontent'] . '<div class="mob-tab-view ">

													<div class="catlog">

														<div class="row" >

																<div class="col-8 cattitle"  >Product Catalogue</div>

																<div class="col-2 caticon text-align:left"  align="center">

																	<img src="img/view.png"/>

																</div>

																<div class="col-2 caticon text-align:left "  align="center">

																	<img src="img/mail.png"/>

																</div>

														</div>

													</div>

													<div class="catlog">

														<div class="row" >

																<div class="col-8 cattitle"  >Selection Chart</div>

																<div class="col-2 caticon text-align:left" align="center">

																	<img src="img/view.png"/>

																</div>

																<div class="col-2 caticon text-align:left"  align="center">

																	<img src="img/mail.png"/>

																</div>

														</div>

													</div>

												

													<div class="catlog">

														<div class="row" >

															<div class="col-8 cattitle" >Search Result</div>

															<div class="col-2 caticon text-align:left" align="center">

																	<img src="img/text.png"/>

															</div>

															<div class="col-2 caticon text-align:left"  align="center">

																	<img src="img/mail.png"/>

															</div>

														</div>

													</div>

												</div>

												</div>

											 

												<div class="col-12 col-sm-12 col-md-12 col-lg-2 d-none d-lg-block">

												<h3 style="color:#eeeeeb">RESULT</h3>

												</div>';
                break;
            }
        break;

        case "marketequ":
            if (($_POST['brand'] != "") && isset($_POST['brand'])) {
                $brand = $_POST['brand'];
            } else {
                $brand = "0";
            }
            if (($_POST['raspblade'] != "") && isset($_POST['raspblade'])) {
                $raspblade = $_POST['raspblade'];
            } else {
                $raspblade = "0";
            }
            if (($_POST['steppos'] != "") && isset($_POST['steppos'])) {
                $steppos = $_POST['steppos'];
            } else {
                $steppos = "0";
            }
            if (($_POST['navtype'] != "") && isset($_POST['navtype'])) {
                $navtype = $_POST['navtype'];
            } else {
                $navtype = "1";
            }
            $response["keycontent"] = "";
            $reqst = $steppos;
            $steppos = $steppos + 1;
            if ($navtype == - 1) {
                $navtype = 1;
                $singlelinavtype = - 1;
            } else {
                $singlelinavtype = 1;
            }
            switch ($reqst) {
                case "0":
                    $brand = "";
                    $res = $Queryclass->get("market_brand", "", "");
                    $response["keywordtitle"] = "brand";
                    $rowsa = array();
                    $response['keycontent'] = "<div class='col-12 col-sm-12 col-md-12 col-lg-7 size-custom-select'><div class='size-select' id='selectsize' ><select id='stpspn3' ><option value=''>Select *</option>";
                    foreach ($res as $row1) {
                        $brandstr = $row1['market_brandnam'];
                        $brandidser = $row1['market_brandid'];
                        $response['keycontent'] = $response['keycontent'] . "<option value='" . $brandidser . "'>" . $brandstr . "</option>";
                    }
                    $response['keycontent'] = $response['keycontent'] . '</select></div></div>

																					<script>var x, i, j, selElmnt, a, b, c;/*look for any elements with the class "custom-select":*/x = document.getElementsByClassName("size-select");for (i = 0; i < x.length; i++) {selElmnt = x[i].getElementsByTagName("select")[0];/*for each element, create a new DIV that will act as the selected item:*/a = document.createElement("DIV");a.setAttribute("class", "size-select-selected");a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';x[i].appendChild(a);/*for each element, create a new DIV that will contain the option list:*/b = document.createElement("DIV"); b.setAttribute("class", "size-select-items size-select-hide");for (j = 1; j < selElmnt.length; j++) {/*for each option in the original select element,create a new DIV that will act as an option item:*/c = document.createElement("DIV");c.innerHTML = selElmnt.options[j].innerHTML;c.addEventListener("click", function(e) {/*when an item is clicked, update the original select box,

																		and the selected item:*/

																		

																		var y, i, k, s, h;

																		s = this.parentNode.parentNode.getElementsByTagName("select")[0];

																		h = this.parentNode.previousSibling;

																		for (i = 0; i < s.length; i++) {

																		  if (s.options[i].innerHTML == this.innerHTML) {

																			s.selectedIndex = i;

																			h.innerHTML = this.innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';

																			y = this.parentNode.getElementsByClassName("size-same-as-selected");

																			for (k = 0; k < y.length; k++) {

																			  y[k].removeAttribute("class");

																			}

																			this.setAttribute("class", "size-same-as-selected");

																			break;

																		  }

																		}

																		h.click();

																		

																		selectbrand(this,"' . $brand . '","' . $raspblade . '","' . $steppos . '","' . $navtype . '","' . $empty . '","Brand","list");

																		

																	});

																	b.appendChild(c);

																  }

																  x[i].appendChild(b);

																  a.addEventListener("click", function(e) {

																	  /*when the select box is clicked, close any other select boxes,

																	  and open/close the current select box:*/

																	  e.stopPropagation();

																	

																	  closeAllSelect(this);

																	  this.nextSibling.classList.toggle("size-select-hide");

																	  this.classList.toggle("size-select-arrow-active");

																	});

																}

																function closeAllSelect(elmnt) {

																  /*a function that will close all select boxes in the document,

																  except the current select box:*/

																  var x, y, i, arrNo = [];

																  x = document.getElementsByClassName("size-select-items");

																  y = document.getElementsByClassName("size-select-selected");

																  for (i = 0; i < y.length; i++) {

																	if (elmnt == y[i]) {

																	  arrNo.push(i)

																	} else {

																	  y[i].classList.remove("size-select-arrow-active");

																	}

																  }

																  for (i = 0; i < x.length; i++) {

																	if (arrNo.indexOf(i)) {

																	  x[i].classList.add("size-select-hide");

																	}

																  }

																}

																/*if the user clicks anywhere outside the select box,

																then close all select boxes:*/

																document.addEventListener("click", closeAllSelect);

																</script>';
                break;
                case "1":
                    $raspblade = "";
                    $resulta = $Queryclass->getMarkE($brand, "", "", "");
                    $response["keywordtitle"] = "Select Rasp Blade";
                    $os = array();
                    foreach ($resulta as $row) {
                        $repplyratLoadid = $row['market_RaspBlade'];
                        array_push($os, $repplyratLoadid);
                    }
                    $os = array_unique($os);
                    $response['keycontent'] = "";
                    $response['keycontent'] = "<div class='col-12 col-sm-12 col-md-12 col-lg-7 size-custom-select'><div class='size-select' id='selectsize' ><select id='stpspn3' ><option value=''>Select *</option>";
                    foreach ($os as $value) {
                        $res = $Queryclass->get("market_raspblade", "marketRaspBladeid", $value);
                        $rowsa = array();
                        foreach ($res as $row1) {
                            $marketraspbladestr = $row1['marketRaspBladenam'];
                            $marketraspbladeidser = $row1['marketRaspBladeid'];
                            $response['keycontent'] = $response['keycontent'] . "<option value='" . $marketraspbladeidser . "'>" . $marketraspbladestr  . "</option>";
                        }
                    }
                    $response['keycontent'] = $response['keycontent'] . '</select></div></div>

																					<script>var x, i, j, selElmnt, a, b, c;/*look for any elements with the class "custom-select":*/x = document.getElementsByClassName("size-select");for (i = 0; i < x.length; i++) {selElmnt = x[i].getElementsByTagName("select")[0];/*for each element, create a new DIV that will act as the selected item:*/a = document.createElement("DIV");a.setAttribute("class", "size-select-selected");a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';x[i].appendChild(a);/*for each element, create a new DIV that will contain the option list:*/b = document.createElement("DIV"); b.setAttribute("class", "size-select-items size-select-hide");for (j = 1; j < selElmnt.length; j++) {/*for each option in the original select element,create a new DIV that will act as an option item:*/c = document.createElement("DIV");c.innerHTML = selElmnt.options[j].innerHTML;c.addEventListener("click", function(e) {/*when an item is clicked, update the original select box,

																		and the selected item:*/

																		

																		var y, i, k, s, h;

																		s = this.parentNode.parentNode.getElementsByTagName("select")[0];

																		h = this.parentNode.previousSibling;

																		for (i = 0; i < s.length; i++) {

																		  if (s.options[i].innerHTML == this.innerHTML) {

																			s.selectedIndex = i;

																			h.innerHTML = this.innerHTML+\'<i class="fas fa-angle-down float-right "></i>\';

																			y = this.parentNode.getElementsByClassName("size-same-as-selected");

																			for (k = 0; k < y.length; k++) {

																			  y[k].removeAttribute("class");

																			}

																			this.setAttribute("class", "size-same-as-selected");

																			break;

																		  }

																		}

																		h.click();

																		

																		selectblade(this,"' . $brand . '","' . $raspblade . '","' . $steppos . '","' . $navtype . '","' . $empty . '","Rasp Blade","list");

																		

																	});

																	b.appendChild(c);

																  }

																  x[i].appendChild(b);

																  a.addEventListener("click", function(e) {

																	  /*when the select box is clicked, close any other select boxes,

																	  and open/close the current select box:*/

																	  e.stopPropagation();

																	

																	  closeAllSelect(this);

																	  this.nextSibling.classList.toggle("size-select-hide");

																	  this.classList.toggle("size-select-arrow-active");

																	});

																}

																function closeAllSelect(elmnt) {

																  /*a function that will close all select boxes in the document,

																  except the current select box:*/

																  var x, y, i, arrNo = [];

																  x = document.getElementsByClassName("size-select-items");

																  y = document.getElementsByClassName("size-select-selected");

																  for (i = 0; i < y.length; i++) {

																	if (elmnt == y[i]) {

																	  arrNo.push(i)

																	} else {

																	  y[i].classList.remove("size-select-arrow-active");

																	}

																  }

																  for (i = 0; i < x.length; i++) {

																	if (arrNo.indexOf(i)) {

																	  x[i].classList.add("size-select-hide");

																	}

																  }

																}

																/*if the user clicks anywhere outside the select box,

																then close all select boxes:*/

																document.addEventListener("click", closeAllSelect);

																</script>';
                break;
                case "2":
                    // $sql = "SELECT * FROM `market_result`  WHERE `market_Brand` ='$brand' AND `market_RaspBlade` ='$raspblade' ORDER BY `market_result`.`market_resultid` ASC";
                    $resulta = $Queryclass->getMarkE($brand, $raspblade, "", "");
                    $os = array();
                    foreach ($resulta as $row) {
                        $repplyratLoadid = $row['market_Pinbrandequ'];
                        array_push($os, $repplyratLoadid);
                    }
                    $os = array_unique($os);
                    /* $response['keycontent']=$response['keycontent'].'<div class="col-12 col-sm-12 col-md-12 col-lg-8 ">
                    
                    <div class="center-div">
                    
                    <img class=" col-12"  src="img/logos/pincott.png" alt="Retread & Repair Systems" />
                    
                    </div>'; */
                    $response['keycontent'] = $response['keycontent'] . '<div class="col-12 col-sm-12 col-md-12 col-lg-10 ">

													 <div class="center-div ">

														<div class="row">

															<div class="col-2"></div>

															<img class=" col-6 result-header-img "  src="img/logos/pincott.png" alt="Retread & Repair Systems" />

															<div class="col-2"></div>

														</div>

													</div>';
                    foreach ($os as $value) {
                        $res = $Queryclass->get("market_pinbrandequ", "marketPinbrandequid", $value);
                        $rowsa = array();
                        foreach ($res as $row1) {
                            $bladesstr = $row1['marketPinbrandequnam'];
                            $bladesidser = $row1['marketPinbrandequid'];
                            $bladesimgurl = $imagedomain . "PinBrand/" . $row1['marketPinbrandequimg'];
                            $response['keycontent'] = $response['keycontent'] . '<div class="result"><div class="col-5  text-align:left resultcontent"  align="center">' . $bladesstr . '</div></div><div><img src="' . $bladesimgurl . '"/></div>';
                        }
                    }
                    $response['keycontent'] = $response['keycontent'] . '<div class="mob-tab-view ">

													<div class="catlog">

														<div class="row" >

																<div class="col-8 cattitle"  >Product Catalogue</div>

																<div class="col-2 caticon text-align:left"  align="center">

																	<img src="img/view.png"/>

																</div>

																<div class="col-2 caticon text-align:left "  align="center">

																	<img src="img/mail.png"/>

																</div>

														</div>

													</div>

													<div class="catlog">

														<div class="row" >

																<div class="col-8 cattitle"  >Selection Chart</div>

																<div class="col-2 caticon text-align:left" align="center">

																	<img src="img/view.png"/>

																</div>

																<div class="col-2 caticon text-align:left"  align="center">

																	<img src="img/mail.png"/>

																</div>

														</div>

													</div>

												

													<div class="catlog">

														<div class="row" >

															<div class="col-8 cattitle" >Search Result</div>

															<div class="col-2 caticon text-align:left" align="center">

																	<img src="img/text.png"/>

															</div>

															<div class="col-2 caticon text-align:left"  align="center">

																	<img src="img/mail.png"/>

															</div>

														</div>

													</div>

												</div>

												</div>

											 

												<div class="col-12 col-sm-12 col-md-12 col-lg-2 d-none d-lg-block">

												<h3 style="color:#eeeeeb">RESULT</h3>

												</div>';
                break;
            }
        break;

    }
    $response['reqst'] = $reqst;
    echo json_encode($response);
}
function comparator($object1, $object2) {
    return $object1->score > $object2->score;
}
function getStringBetween($str, $from, $to) {
    $sub = substr($str, strpos($str, $from) + strlen($from), strlen($str));
    return substr($sub, 0, strpos($sub, $to));
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit