include 'D:\\www\\shehuahk\\smarty\\plugins\\function.write_url.php';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
echo @Site_Name;
?>
</title>
<link href="css/login.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form method="post" action="<?php 
echo smarty_function_write_url(array('url' => $_smarty_tpl->getVariable('thisurl')->value, 'action' => 'login'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
">
<table border="0" cellspacing="1" cellpadding="0" align=center>
	<tr><th colspan="2"><?php 
echo @Site_Name;
?>
</th></tr>
	<tr>
		<td align="right" width="30%">账 号</td>
		<td><input type="text" name="Username" /></td>
	</tr>
	<tr>
		<td align="right">密 码</td>
		<td><input type="password" name="Password" /></td>
	</tr>
        echo smarty_function_write_url(array('open' => 'product_sms'), $_smarty_tpl->smarty, $_smarty_tpl);
        ?>
"><span class="act_1_13"></span>代理群发产品短信 (<b><?php 
        echo count($_smarty_tpl->getVariable('back')->value['P_SMS']['pro']);
        ?>
 , <?php 
        echo count($_smarty_tpl->getVariable('back')->value['P_SMS']['proxy']);
        ?>
</b>)</a></span><?php 
    }
    ?>
	<?php 
    if ($_smarty_tpl->getVariable('BTP')->value['proxy_sms']['show'] && count($_smarty_tpl->getVariable('back')->value['Pxy_SMS'])) {
        ?>
<span class="car"><a href="<?php 
        echo smarty_function_write_url(array('open' => 'proxy_sms'), $_smarty_tpl->smarty, $_smarty_tpl);
        ?>
"><span class="act_1_12"></span>代理群发手机短信 (<b><?php 
        echo count($_smarty_tpl->getVariable('back')->value['Pxy_SMS']);
        ?>
</b>)</a></span><?php 
    }
    ?>
	<span class="clear"></span>
	<?php 
} else {
    ?>
	<div style="height:2em"></div>
	<?php 
}
?>
						<?php 
            } else {
                ?>
						<td colspan="6" align="center" style="background-color:#FFC">自定义 的 手机号码</td>
						<th><?php 
                echo $_smarty_tpl->getVariable('pso')->value;
                ?>
</th>
						<?php 
            }
            ?>
						<td align="center" class="action"><?php 
            if ($_smarty_tpl->getVariable('BTP')->value['customSMS']['del']) {
                ?>
<a href="<?php 
                echo smarty_function_write_url(array('url' => $_smarty_tpl->getVariable('thisurl')->value, 'action' => 'del', 'phone' => $_smarty_tpl->getVariable('pso')->value), $_smarty_tpl->smarty, $_smarty_tpl);
                ?>
" class="act_1_5" title="删除"></a><?php 
            }
            ?>
</td>
					</tr>
					<?php 
        }
    }
    ?>
					<?php 
    if (count($_smarty_tpl->getVariable('back')->value['customSMS'])) {
        ?>
					
					<tr><td colspan="8" align="center" style="color:#F00; height:25px">注意:如果添加的代理没有手机号码,或者号码不正确将不会被发送短信</td></tr>
    ?>
<li><a href="<?php 
    echo smarty_function_write_url(array('url' => $_smarty_tpl->getVariable('thisurl')->value, 'action' => 'show', 'DEL' => 'ALL'), $_smarty_tpl->smarty, $_smarty_tpl);
    ?>
" <?php 
    echo smarty_function_CLASS_COLOR(array('show' => $_smarty_tpl->getVariable('get')->value['action'], 'CLASS' => 'this'), $_smarty_tpl->smarty, $_smarty_tpl);
    ?>
>客服列表</a></li><?php 
}
?>
			</ul>
			<span class="clear"></span>
		</div>
		<div class="append">
			<form action="<?php 
echo smarty_function_write_url(array('url' => $_smarty_tpl->getVariable('thisurl')->value, 'go' => 'append'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
" method="post">
				<table width="100%" border="0" cellspacing="1" cellpadding="0" id="tab_show">
					<tr><th colspan="2"><?php 
if ($_smarty_tpl->getVariable('get')->value['action'] != 'edit') {
    ?>
添加客服<?php 
} else {
    ?>
编辑客服<?php 
}
?>
</th></tr>
					<tr>
						<td align="right" width="40%" class="Need">账号</td>
                ?>
" <?php 
                if ($_smarty_tpl->getVariable('Npc')->value == $_smarty_tpl->getVariable('get')->value['page']) {
                    ?>
class="this"<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->getVariable('Npc')->value;
                ?>
</a></li><?php 
            }
        }
        ?>
					<li><a href="<?php 
        echo smarty_function_write_url(array('url' => $_smarty_tpl->getVariable('thisurl')->value, 'page' => $_smarty_tpl->getVariable('list_page')->value['down']), $_smarty_tpl->smarty, $_smarty_tpl);
        ?>
">下一页</a></li>
				</ul>
				<?php 
    }
    ?>
				<i class="clear"></i>
			</div>
		</form>
		<?php 
}
?>
	</div>
	<?php 
$_template = new Smarty_Internal_Template("foot.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
">尾页</a><?php 
    } else {
        ?>
尾页<?php 
    }
    ?>
				至 <input type="text" value="<?php 
    echo $_smarty_tpl->getVariable('list_page')->value['NowPage'];
    ?>
" onkeydown="go_page(event , this , '<?php 
    echo $_smarty_tpl->getVariable('thisurl')->value;
    ?>
')" /> 页
				排序:
				<select onchange="page_Local(this,0 , '<?php 
    echo smarty_function_write_url(array('url' => $_smarty_tpl->getVariable('thisurl')->value, 'DEL' => 'ORDER'), $_smarty_tpl->smarty, $_smarty_tpl);
    ?>
')">
					<option value="ORDER=time_UP" <?php 
    echo smarty_function_selected(array('val' => $_smarty_tpl->getVariable('get')->value['ORDER'], 'str' => 'time_UP'), $_smarty_tpl->smarty, $_smarty_tpl);
    ?>
>按 时间 (↑) 排序</option>
					<option value="ORDER=time_Dn" <?php 
    echo smarty_function_selected(array('val' => $_smarty_tpl->getVariable('get')->value['ORDER'], 'str' => 'time_Dn'), $_smarty_tpl->smarty, $_smarty_tpl);
    ?>
>按 时间 (↓) 排序</option>
					<option value="ORDER=open_UP" <?php 
    echo smarty_function_selected(array('val' => $_smarty_tpl->getVariable('get')->value['ORDER'], 'str' => 'open_UP'), $_smarty_tpl->smarty, $_smarty_tpl);
    ?>
>按 Open (↑) 排序</option>
					<option value="ORDER=open_Dn" <?php 
				<a href="<?php 
echo smarty_function_write_url(array('open' => 'Quote', 'exchange' => 'JPY'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
" <?php 
echo smarty_function_CLASS_COLOR(array('JPY' => $_smarty_tpl->getVariable('get')->value['exchange'], 'CLASS' => 'this'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
>日元</a>
				<a href="<?php 
echo smarty_function_write_url(array('open' => 'Quote', 'exchange' => 'EUR'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
" <?php 
echo smarty_function_CLASS_COLOR(array('EUR' => $_smarty_tpl->getVariable('get')->value['exchange'], 'CLASS' => 'this'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
>欧元</a>
				<a href="<?php 
echo smarty_function_write_url(array('open' => 'Quote', 'exchange' => 'GBP'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
" <?php 
echo smarty_function_CLASS_COLOR(array('GBP' => $_smarty_tpl->getVariable('get')->value['exchange'], 'CLASS' => 'this'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
>英镑</a>
			</dd>
		</dl>
		<?php 
echo $_smarty_tpl->getVariable('html')->value;
?>

	</div>
	<?php 
$_template = new Smarty_Internal_Template("foot.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
echo $_template->getRenderedTemplate();
    echo smarty_function_write_url(array('url' => $_smarty_tpl->getVariable('thisurl')->value, 'action' => 'deploy', 'orders_id' => $_smarty_tpl->getVariable('orders')->value['orders_id']), $_smarty_tpl->smarty, $_smarty_tpl);
    ?>
'" />
					<input type="button" value="扣除余款" onclick="window.location='<?php 
    echo smarty_function_write_url(array('url' => $_smarty_tpl->getVariable('thisurl')->value, 'action' => 'balance', 'orders_id' => $_smarty_tpl->getVariable('orders')->value['orders_id']), $_smarty_tpl->smarty, $_smarty_tpl);
    ?>
'" />
					<input type="button" value="更改物流状态" onclick="window.location='<?php 
    echo smarty_function_write_url(array('url' => $_smarty_tpl->getVariable('thisurl')->value, 'action' => 'dispatch', 'orders_id' => $_smarty_tpl->getVariable('orders')->value['orders_id']), $_smarty_tpl->smarty, $_smarty_tpl);
    ?>
'" />
				<?php 
} elseif ($_smarty_tpl->getVariable('orders')->value['status'] == 'dispatch') {
    ?>
					<input type="button" value="更改物流状态" onclick="window.location='<?php 
    echo smarty_function_write_url(array('url' => $_smarty_tpl->getVariable('thisurl')->value, 'action' => 'dispatch', 'orders_id' => $_smarty_tpl->getVariable('orders')->value['orders_id']), $_smarty_tpl->smarty, $_smarty_tpl);
    ?>
'" />
					<input type="button" value="收到货物" onclick="receiving(this , '<?php 
    echo $_smarty_tpl->getVariable('orders')->value['orders_id'];
    ?>
' , 4)" />
				<?php 
} elseif ($_smarty_tpl->getVariable('orders')->value['status'] == 'receiving') {
    ?>
					<b style="color:#093">已完成的订单</b>
				<?php 
} elseif ($_smarty_tpl->getVariable('orders')->value['status'] == 'returned') {
    ?>
					<span style="color:#999">取消的订单</span>
				<?php 
);" /> 元</td>
				</tr>
				<tr>
					<td colspan="2" align="center"><input type="button" value=" 确 认 取 消 " style="height:25px; border:1px solid #CCC;cursor:pointer;padding:0.4em;background-color:#F0F0F0" onClick="cancel_koukuang('<?php 
            echo $_smarty_tpl->getVariable('show')->value['orders_id'];
            ?>
' , 'tab_' , 'check_')" /></td>
				</tr>
			</table>
		<?php 
        } else {
            ?>
			<a href="javascript:;" onClick="cancel(this,'<?php 
            echo $_smarty_tpl->getVariable('get')->value['orders_id'];
            ?>
',10,'<?php 
            echo smarty_function_write_url(array('url' => $_smarty_tpl->getVariable('thisurl')->value, 'action' => 'cancel', 'go' => 'validation', 'orders_id' => $_smarty_tpl->getVariable('show')->value['orders_id']), $_smarty_tpl->smarty, $_smarty_tpl);
            ?>
')">确认取消订单</a>
		<?php 
        }
        ?>
	<?php 
    }
} else {
    ?>
	订单不存在 ...
<?php 
}
?>
</div>
				<?php 
        }
    }
    ?>
				<tr class="x"><th colspan="35"></th></tr>
				<tr>
					<th class="zx"></th>
					<td align="right">备注:</td>
					<td colspan="32"><textarea name="remark" style="width:99%;height:120px; margin:10px 0"></textarea></td>
					<th class="yx"></th>
				</tr>
				<?php 
} else {
    ?>
				<tr class="No_info"><th class="zx"></th><td colspan="33">当前购物车中没有产品 , <a href="<?php 
    echo smarty_function_write_url(array('open' => 'Query'), $_smarty_tpl->smarty, $_smarty_tpl);
    ?>
">点击添加</a></td><th class="yx"></th></tr>
				<?php 
}
?>
				<tr class="x"><th colspan="35"></th></tr>
				<tr>
					<th class="zx"></th>
					<th colspan="33" class="Js_cars"><input type="submit" value="" /></th>
					<th class="yx"></th>
				</tr>
				<tr class="x"><th colspan="35"></th></tr>
			</table>
		</form>
	</div>
		<img src="images/logo.jpg" alt="奢华国际钻石集团"/>
		
		<?php 
$_template = new Smarty_Internal_Template("nav.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
echo $_template->getRenderedTemplate();
$_template->updateParentVariables(0);
unset($_template);
?>

	</div>
</div>

<div class="login">
	<div>
		<form action="<?php 
echo smarty_function_write_url(array('open' => 'login', 'action' => 'login'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
" method="post">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr><th rowspan="4" valign="top"><img src="images/ln_ren.jpg" /></th><th align="left">LD会员登陆</th></tr>
				<tr><td>用户账号:<input type="text" name="Username" /></td></tr>
				<tr><td>登录密码:<input type="password" name="Password" /></td></tr>
				<tr><th><input type="submit" value="登  陆" /><input type="button" value="忘记密码" /></th></tr>
			</table>
		</form>
		<img src="images/ln_p.jpg" />
		<i class="clear"></i>
	</div>
</div>

<div class="Pe Login_foot">
?>
" >More...</a>
                </div>
				<div class="Ct">
					<ul>
					<?php 
$_smarty_tpl->tpl_vars['pso'] = new Smarty_Variable();
$_from = $_smarty_tpl->getVariable('NEWS')->value;
if (!is_array($_from) && !is_object($_from)) {
    settype($_from, 'array');
}
if (count($_from) > 0) {
    foreach ($_from as $_smarty_tpl->tpl_vars['pso']->key => $_smarty_tpl->tpl_vars['pso']->value) {
        ?>
						<li style="list-style-type:none;"><a href="<?php 
        echo smarty_function_write_url(array('open' => 'news', 'action' => 'view', 'id' => $_smarty_tpl->getVariable('pso')->value['id']), $_smarty_tpl->smarty, $_smarty_tpl);
        ?>
"><?php 
        echo $_smarty_tpl->getVariable('pso')->value['title'];
        ?>
</a><span><?php 
        echo $_smarty_tpl->getVariable('pso')->value['bewrite'];
        ?>
</span></li>
					<?php 
    }
}
?>
					</ul>
				</div>
			</div>
            ?>
</td>
							<td><a href="<?php 
            echo $_smarty_tpl->getVariable('ap')->value['number'];
            ?>
">进入代理页</a></td>
						</tr>
						<?php 
        }
    }
    ?>
						<?php 
} else {
    ?>
						<tr class="No_info"><th class="zx"></th><td colspan="31">当前没有你搜索的代理 , <a href="<?php 
    echo smarty_function_write_url(array('open' => 'search'), $_smarty_tpl->smarty, $_smarty_tpl);
    ?>
">点击重新查询</a></td><th class="yx"></th></tr>
						<?php 
}
?>
					</table>
				</div>
				
			</div>
		</div>
	</div>
	<?php 
$_template = new Smarty_Internal_Template("footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
echo $_template->getRenderedTemplate();
$_template->updateParentVariables(0);