%@ Import Namespace="System.Xml" %>
<%
String dsn = ConfigurationSettings.AppSettings["dsn"];
DBLayer.DBLayer m_DBLayer = new DBLayer.DBLayer(dsn);
String strSQL = "sp_top_category_get";
SqlParameter[] myParams =
{
m_DBLayer.CreateSqlParameter("@language_id", SqlDbType.Int, 4, ParameterDirection.Input, 1)
};
String xml = ""+m_DBLayer.RunSQLReturnXML (strSQL, myParams, true);
int order_id;
if (Request.Cookies["order_id"] != null && Request.Cookies["order_id"].Value != string.Empty)
order_id = Convert.ToInt32(Request.Cookies["order_id"].Value);
else
order_id = 0;
strSQL = "sp_shop_cart_xml";
SqlParameter[] myParams2 =
{
m_DBLayer.CreateSqlParameter("@order_id", SqlDbType.Int, 4, ParameterDirection.Input, order_id)
};
xml += m_DBLayer.RunSQLReturnXML (strSQL, myParams2, true);
strSQL = "sp_get_banner_xml";
xml += m_DBLayer.RunSQLReturnXML (strSQL, null, true);
xml += "";
XmlDocument doc = new XmlDocument();
doc.LoadXml (xml);
%>
<%
if (doc.SelectSingleNode ("/root/banner/file_name") != null){
Response.Write (" ");
}
%> |
 |
<% XmlNodeList nodelist = doc.SelectNodes ("/root/banner");
for (int i=0; i 0){
if (node.SelectSingleNode ("file_name") != null){
Response.Write (" ");
}
}
}
%> |
|
| Search |
 |
UK 01733 765030 |
|
| Item |
<%
if (doc.SelectSingleNode ("/root/shopcart/item") != null)
Response.Write (doc.SelectSingleNode ("/root/shopcart/item").InnerText);
%>
|
Value |
<%
if (doc.SelectSingleNode ("/root/symbol") != null)
Response.Write (doc.SelectSingleNode ("/root/symbol").InnerText);
if (doc.SelectSingleNode ("/root/shopcart/subtotal") != null)
Response.Write (doc.SelectSingleNode ("/root/shopcart/subtotal").InnerText);
%>
|
|
 |
 |
If you have forgotten your password, enter your email address and it will be sent to you.
|
 |
 |
|
 |
|
|