The original program by default is a dynamic language program, although you can generate static files, such as the production of English stations in the/en/directory, but the generated customer service information will often change, do not want to change the customer service information every time also need to build a full station, make a dynamic call. The language needs to be processed in PHP as follows
Case ' Kefu ' :($_get[' i '] > $config [' lang_total '] | | $_get[' i ' < 1) && die (' Parameter Error. '); if (Isset ($_cookie[' mlecms_global_language ')) {Setcookie (' mlecms_global_language ', $_get[' I '], $gmt _time + 2592000, ‘/‘);} if ($_cookie[' mlecms_global_language ' <> $_get[' i ']) {echo (' window.location.reload (); ');} Echo (' $ (function () {');$ ("#lrkfwarp"). LRKF ({');Echo ("kftop: ' + ', ');Echo ('Defshow:false, ');Echo ("position: ' absolute ', ');Echo ('qqs:[');foreach ($web [' QQ '] as $i + + $qq) {if ($i) echo ","; echo "{' name ': ' Pre-sale '. ( $i + 1). " Number ', ' QQ ': '. $qq. '} ';} Echo ('], ');Echo ('skype:[');foreach ($web [' Skype '] as $i = + $skype) {if ($i) echo ","; echo "{' Name ': '". $skype. "', ' Skype ': '". $skype. "'}";} Echo ('], ');Echo ('msn:[');foreach ($web [' MSN '] as $i + $msn) {if ($i) echo ","; echo "{' Name ': '". $msn. "', ' MSN ': '". $msn. "'}";} Echo ('], ');Echo ('wangwang:[');foreach ($web [' Wangwang '] as $i = + $wangwang) {if ($i) echo ","; echo "{' Name ': '". $wangwang. "', ' Wangwang ': '". $wangwang ."‘}";} Echo ('], ');if ($_get[' i '] = = 1) {echo ("erweima:[{' name ': ' QR code concerns ', ' Erweima ': '". $web ["Erweima"]. "'}", ""); Echo ("tel:[{' name ': ' 24-Hour Hotline ', ' Tel ': ' ". $web [" Phone "][0]." '}, {' name ': ' Fax ', ' tel ': ' ". $web [" 传真 "][0]." '}], ");} Else{echo ("erweima:[{' name ': ' WeChat ', ' Erweima ': '". $web ["Erweima"]. "'}]," "Echo (" tel:[{' name ': ' Hour hotline ', ' Tel ': '. $web ["Phone"][0]. "'}, {' name ': ' Fax ', ' tel ': '". $web ["Fax"][0]. "'}],");} if ($_get[' i '] = = 1) {echo ("more: '". $config [' url ']. " Contact.html ', More_title: ' >> More Ways '});}); Else{echo ("more: '". $config [' url ']. " Contact.html ', More_title: ' >>contact Us ');}); /*echo ("var goumai = document.getElementById (' Goumai ');"); Echo ("if (Goumai) {"), if ($_get[' i '] = = 1) {echo ("document.getElementById (' Goumai '). InnerHTML = ' <a href=http:// Wpa.qq.com/msgrd?v=3&uin= ". $web [' QQ '][0]." &site= ". $config [' url ']." &menu=yes> Consult </a><a href=http://wpa.qq.com/msgrd?v=3&uin= immediately ". $web [' QQ '][1]." &site= ". $config [' url ']." &menu=yes> Enquire now </A≫ '; ');} Else{echo ("document.getElementById (' Goumai '). InnerHTML = ' <a href=http://wpa.qq.com/msgrd?v=3&uin=". $ web[' QQ '][0]. " &site= ". $config [' url ']." &menu=yes>consult</a><a href=http://wpa.qq.com/msgrd?v=3&uin= ". $web [' QQ '][0]." &site= ". $config [' url ']." &menu=yes>Consult</a> '; ');} Echo ("};"); */break; js call <script language= ' javascript ' src= '/app.php?a=kefu&i={: $web [' Lang ']:} ' type= ' text/ JavaScript ' charset= ' utf-8 ' ></script> reprint Please specify: This article reprinted from Shenzhen Lock Network technology http://www.ledaokj.com/a-wlyx/176/809.html