Php
I am PHP small white Ask a question copy copy the following code of the file why the action does not exist Web site with the Smarty template separation.
{Seopage id=18}
{include "header.inc.html"}
{include "user/header.inc.html"}
{include "user/side.inc.html"}
My Favorites
thumbnail Images |
Product Name |
Unit Price |
Add to Shopping cart |
Cancel Collection |
{userfavorite userid= $smarty. Session.userid}
|
{$item. Goodsinfo.name} |
{$item. Goodsinfo.pricenow} |
|
|
{/userfavorite}
function Delfavorite (FID) {if (!fid | | IsNaN (FID)) {return false;}//if (!confirm ("OK to delete the collection?") ")) {return false;} $.ajax ({type: "POST", url: "{$baseUrl}user/favorite/", Data: "Inajax=1&act=del&id=" +fid, DataType: "JSON", Cache:false, Success:function (data) {g.ui.popup.showmsg (data.message,{Type:data.type}), if (data.success) {$ ("#fav" +fid). Hide ("slow"). Remove (); } } });}
{include "footer.inc.html"}