<Div class = "footreturn">
<! -- <A id = "showcard" onclick = "showcard ()" class = "Submit" href = "javascript: void (0)"> Save </a> -->
<Div class = "window" id = "windowcenter">
<! -- <Div id = "title" class = "wtitle"> Save <SPAN class = "close" id = "alertclose"> </span> </div> -->
<Div class = "content">
<Div id = "TXT"> </div>
</Div>
</Div>
</Div>
</Div>
<SCRIPT src = "http://libs.baidu.com/jquery/2.0.0/jquery.min.js"> </SCRIPT>
<SCRIPT type = "text/JavaScript">
Function showcard (){
VaR submitdata = {
IMO: $ ("# IMO"). Val (),
Type: $ ("# type"). Val (),
Taocan: $ ("# taocan"). Val (),
Userid: $ ("# userid"). Val (),
};
$. Ajax ({
Type: "Post ",
URL: "{: U ('Card/cord ')}",
// URL: "_ root _/testpay/jsapicall. php ",
Data: submitdata,
Datatype: "JSON ",
Success: function (data ){
// Alert (data );
If (data. errno = 200 ){
Alert (data. Error );
Location. href = "/weishop/index. php? M = card & A = index ";
} Else {
Alert (data. Error );
}
}
})
// Location. href = "_ root _/testpay/jsapicall. php ";
}
$ ("# Windowclosebutton"). Click (function (){
$ ("# Windowcenter"). slideup (500 );
});
$ ("# Alertclose"). Click (function (){
$ ("# Windowcenter"). slideup (500 );
});
//////////////////////////////////////// //////////////////////////
If ($ return ){
$ Re ['errno'] = '000000 ';
$ Re ['error'] = 'Recharge successful ';
} Else {
$ Re ['errno'] = '0 ';
$ Re ['error'] = 'Recharge failed ';
$ Re ['url'] = "";
}
Echo json_encode ($ re );