You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
245 lines
11 KiB
245 lines
11 KiB
<html lang="zh-TW">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="Keywords" content="{$keywords}" />
|
|
<meta name="Description" content="{$description}" />
|
|
|
|
<!-- TemplateBeginEditable name="doctitle" -->
|
|
<title>{$page_title}</title>
|
|
<!-- TemplateEndEditable -->
|
|
|
|
<!-- TemplateBeginEditable name="head" -->
|
|
<!-- TemplateEndEditable -->
|
|
|
|
<link rel="shortcut icon" href="favicon.ico" />
|
|
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
|
|
<link href="{$ecs_css_path}" rel="stylesheet" type="text/css" />
|
|
<link href="user.css" rel="stylesheet" type="text/css" />
|
|
|
|
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
|
|
<link href="css/templatemo.css" rel="stylesheet" type="text/css" />
|
|
<link href="css/custom.css" rel="stylesheet" type="text/css" />
|
|
|
|
<!-- Load fonts style after rendering the layout styles -->
|
|
<link href="css/css2.css" rel="stylesheet" type="text/css" />
|
|
<link href="css/fontawesome.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
{* 包含腳本文件 *}
|
|
{insert_scripts files='jquery-1.9.1.min.js,jquery.json.js'}
|
|
{insert_scripts files='common.js,user.js,easydialog.min.js'}
|
|
</head>
|
|
<body class="user_center">
|
|
<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
|
|
<div id="wrapper" class="cle">
|
|
<!-- #BeginLibraryItem "/library/ur_here.lbi" --><!-- #EndLibraryItem -->
|
|
|
|
<div class="my_nala_main">
|
|
<!-- #BeginLibraryItem "/library/user_menu.lbi" --><!-- #EndLibraryItem -->
|
|
|
|
<div class="my_nala_centre ilizi_centre">
|
|
<div class="ilizi cle">
|
|
<div class="box">
|
|
<div class="box_1">
|
|
<div class="userCenterBox boxCenterList clearfix" style="_height:1%; font-size:14px;">
|
|
|
|
<!-- *我的推薦 -->
|
|
<!-- {if $affiliate.on eq 1} -->
|
|
<!-- {if $action eq 'affiliate'} -->
|
|
<!-- {if !$goodsid || $goodsid eq 0} -->
|
|
<h5><span>{$lang.affiliate_detail}</span></h5>
|
|
<div class="blank"></div>
|
|
{$affiliate_intro}
|
|
<!-- {if $affiliate.config.separate_by eq 0} -->
|
|
<!-- 下線人數、分成 -->
|
|
<div class="blank"></div>
|
|
<h5><span><a name="myrecommend">{$lang.affiliate_member}</a></span></h5>
|
|
<div class="blank"></div>
|
|
<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
|
|
<tr align="center">
|
|
<td bgcolor="#ffffff">{$lang.affiliate_lever}</td>
|
|
<td bgcolor="#ffffff">{$lang.affiliate_num}</td>
|
|
<td bgcolor="#ffffff">{$lang.level_point}</td>
|
|
<td bgcolor="#ffffff">{$lang.level_money}</td>
|
|
</tr>
|
|
<!-- {foreach from=$affdb key=level item=val name=affdb} -->
|
|
<tr align="center">
|
|
<td bgcolor="#ffffff">{$level}</td>
|
|
<td bgcolor="#ffffff">{$val.num}</td>
|
|
<td bgcolor="#ffffff">{$val.point}</td>
|
|
<td bgcolor="#ffffff">{$val.money}</td>
|
|
</tr>
|
|
<!-- {/foreach} -->
|
|
</table>
|
|
<!-- /下線人數、分成 -->
|
|
<!-- {else} -->
|
|
<!-- 介紹訂單數、分成 -->
|
|
<!-- /介紹訂單數、分成 -->
|
|
<!-- {/if} -->
|
|
<!-- 我的推薦清單 -->
|
|
<div class="blank"></div>
|
|
<h5><span>分成規則</span></h5>
|
|
<div class="blank"></div>
|
|
<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
|
|
<tr align="center">
|
|
<td bgcolor="#ffffff">{$lang.order_number}</td>
|
|
<td bgcolor="#ffffff">{$lang.affiliate_money}</td>
|
|
<td bgcolor="#ffffff">{$lang.affiliate_point}</td>
|
|
<td bgcolor="#ffffff">{$lang.affiliate_mode}</td>
|
|
<td bgcolor="#ffffff">{$lang.affiliate_status}</td>
|
|
</tr>
|
|
<!-- {foreach from=$logdb item=val name=logdb} -->
|
|
<tr align="center">
|
|
<td bgcolor="#ffffff">{$val.order_sn}</td>
|
|
<td bgcolor="#ffffff">{$val.money}</td>
|
|
<td bgcolor="#ffffff">{$val.point}</td>
|
|
<td bgcolor="#ffffff"><!-- {if $val.separate_type == 1 || $val.separate_type === 0} -->{$lang.affiliate_type.$val.separate_type}<!-- {else} -->{$lang.affiliate_type.$affiliate_type}<!-- {/if} --></td>
|
|
<td bgcolor="#ffffff">{$lang.affiliate_stats[$val.is_separate]}</td>
|
|
</tr>
|
|
{foreachelse}
|
|
<tr><td colspan="5" align="center" bgcolor="#ffffff">{$lang.no_records}</td>
|
|
</tr>
|
|
<!-- {/foreach} -->
|
|
<!-- {if $logdb} -->
|
|
<tr>
|
|
<td colspan="5" bgcolor="#ffffff">
|
|
<form action="{$smarty.server.PHP_SELF}" method="get">
|
|
<div id="pager"> {$lang.pager_1}{$pager.record_count}{$lang.pager_2}{$lang.pager_3}{$pager.page_count}{$lang.pager_4} <span> <a href="{$pager.page_first}">{$lang.page_first}</a> <a href="{$pager.page_prev}">{$lang.page_prev}</a> <a href="{$pager.page_next}">{$lang.page_next}</a> <a href="{$pager.page_last}">{$lang.page_last}</a> </span>
|
|
<select name="page" id="page" onchange="selectPage(this)">
|
|
{html_options options=$pager.array selected=$pager.page}
|
|
</select>
|
|
<input type="hidden" name="act" value="affiliate" />
|
|
</div>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
<!-- {/if} -->
|
|
</table>
|
|
<script type="text/javascript" language="JavaScript">
|
|
<!--
|
|
{literal}
|
|
function selectPage(sel)
|
|
{
|
|
sel.form.submit();
|
|
}
|
|
{/literal}
|
|
//-->
|
|
</script>
|
|
<!-- /我的推薦清單 -->
|
|
<div class="blank"></div>
|
|
<h5><span>{$lang.affiliate_code}</span></h5>
|
|
<div class="blank"></div>
|
|
<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
|
|
<tr>
|
|
<td bgcolor="#ffffff"><a href="{$shopurl}?u={$userid}" target="_blank" title="{$shopname}" class="f6"><img src="{$shopurl}erweima_user.php?id={$userid}" width=200 height=200 class="JIATHIS_IMG_OK" /></a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- {else} -->
|
|
<!-- 單個商品推薦 -->
|
|
<style type="text/css">
|
|
.types a{ text-decoration:none; color:#f70;}
|
|
</style>
|
|
<h5><span>{$lang.affiliate_code}</span></h5>
|
|
<div class="blank"></div>
|
|
<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
|
|
<tr align="center">
|
|
<td bgcolor="#ffffff">{$lang.affiliate_view}</td>
|
|
<td bgcolor="#ffffff">{$lang.affiliate_code}</td>
|
|
</tr>
|
|
<!-- {foreach from=$types item=val name=types} -->
|
|
<tr align="center">
|
|
<td bgcolor="#ffffff" class="types"><script src="{$shopurl}affiliate.php?charset={$ecs_charset}&gid={$goodsid}&u={$userid}&type={$val}"></script></td>
|
|
<td bgcolor="#ffffff">javascript {$lang.affiliate_codetype}<br>
|
|
<textarea cols=30 rows=2 id="txt{$smarty.foreach.types.iteration}" style="border:1px solid #ccc;"><script src="{$shopurl}affiliate.php?charset={$ecs_charset}&gid={$goodsid}&u={$userid}&type={$val}"></script></textarea>[<a href="#" title="Copy To Clipboard" onClick="Javascript:copyToClipboard(document.getElementById('txt{$smarty.foreach.types.iteration}').value);alert('{$lang.copy_to_clipboard}');" class="f6">{$lang.code_copy}</a>]
|
|
<br>iframe {$lang.affiliate_codetype}<br><textarea cols=30 rows=2 id="txt{$smarty.foreach.types.iteration}_iframe" style="border:1px solid #ccc;"><iframe width="250" height="270" src="{$shopurl}affiliate.php?charset={$ecs_charset}&gid={$goodsid}&u={$userid}&type={$val}&display_mode=iframe" frameborder="0" scrolling="no"></iframe></textarea>[<a href="#" title="Copy To Clipboard" onClick="Javascript:copyToClipboard(document.getElementById('txt{$smarty.foreach.types.iteration}_iframe').value);alert('{$lang.copy_to_clipboard}');" class="f6">{$lang.code_copy}</a>]
|
|
<br />{$lang.bbs}UBB {$lang.affiliate_codetype}<br /><textarea cols=30 rows=2 id="txt{$smarty.foreach.types.iteration}_ubb" style="border:1px solid #ccc;">{if $val != 5}[url={$shopurl}goods.php?id={$goodsid}&u={$userid}][img]{if $val < 3}{$goods.goods_thumb}{else}{$goods.goods_img}{/if}[/img][/url]{/if}
|
|
|
|
[url={$shopurl}goods.php?id={$goodsid}&u={$userid}][b]{$goods.goods_name}[/b][/url]
|
|
{if $val != 1 && $val != 3}[s]{$goods.market_price}[/s]{/if} [color=red]{$goods.shop_price}[/color]</textarea>[<a href="#" title="Copy To Clipboard" onClick="Javascript:copyToClipboard(document.getElementById('txt{$smarty.foreach.types.iteration}_ubb').value);alert('{$lang.copy_to_clipboard}');" class="f6">{$lang.code_copy}</a>]
|
|
{if $val == 5}<br />{$lang.im_code} {$lang.affiliate_codetype}<br /><textarea cols=30 rows=2 id="txt{$smarty.foreach.types.iteration}_txt" style="border:1px solid #ccc;">{$lang.show_good_to_you} {$goods.goods_name}
|
|
|
|
{$shopurl}goods.php?id={$goodsid}&u={$userid}</textarea>[<a href="#" title="Copy To Clipboard" onClick="Javascript:copyToClipboard(document.getElementById('txt{$smarty.foreach.types.iteration}_txt').value);alert('{$lang.copy_to_clipboard}');" class="f6">{$lang.code_copy}</a>]{/if}</td>
|
|
</tr>
|
|
<!-- {/foreach} -->
|
|
</table>
|
|
<script language="Javascript">
|
|
copyToClipboard = function(txt)
|
|
{
|
|
if(window.clipboardData)
|
|
{
|
|
window.clipboardData.clearData();
|
|
window.clipboardData.setData("Text", txt);
|
|
}
|
|
else if(navigator.userAgent.indexOf("Opera") != -1)
|
|
{
|
|
//暫時無方法:-(
|
|
}
|
|
else if (window.netscape)
|
|
{
|
|
try
|
|
{
|
|
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
|
}
|
|
catch (e)
|
|
{
|
|
alert("{$lang.firefox_copy_alert}");
|
|
return false;
|
|
}
|
|
var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
|
|
if (!clip)
|
|
return;
|
|
var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
|
|
if (!trans)
|
|
return;
|
|
trans.addDataFlavor('text/unicode');
|
|
var str = new Object();
|
|
var len = new Object();
|
|
var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
|
|
var copytext = txt;
|
|
str.data = copytext;
|
|
trans.setTransferData("text/unicode",str,copytext.length*2);
|
|
var clipid = Components.interfaces.nsIClipboard;
|
|
if (!clip)
|
|
return false;
|
|
clip.setData(trans,null,clipid.kGlobalClipboard);
|
|
}
|
|
}
|
|
</script>
|
|
<!-- /單個商品推薦 -->
|
|
<!-- {/if} -->
|
|
<!-- {/if} -->
|
|
|
|
<!-- {/if} -->
|
|
|
|
<!-- /我的推薦 -->
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="add_ok" id="cart_show">
|
|
<div class="tip">
|
|
<i class="iconfont"></i>商品已成功加入購物車
|
|
</div>
|
|
<div class="go">
|
|
<a href="javascript:easyDialog.close();" class="back"><<繼續購物</a>
|
|
<a href="flow.php" class="btn">去結算</a>
|
|
</div>
|
|
</div>
|
|
<!-- #BeginLibraryItem "/library/page_footer.lbi" --> <!-- #EndLibraryItem -->
|
|
</body>
|
|
<script type="text/javascript">
|
|
{foreach from=$lang.clips_js item=item key=key}
|
|
var {$key} = "{$item}";
|
|
{/foreach}
|
|
</script>
|
|
</html>
|