%@page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,java.util.*,java.text.*"%>
<%@ include file="../../Connections/edros.jsp" %>
<%
String prodotti__MMColParam = "_|";
if (request.getParameter("cat") !=null) {prodotti__MMColParam = (String)request.getParameter("cat") ;}
%>
<%
String prodotti__cat1 = "accessori";
if (request.getParameter("cat1") !=null) {prodotti__cat1 = (String)request.getParameter("cat1") ;}
%>
<%
String prodotti__cat2 = "nokia";
if (request.getParameter("cat2") !=null) {prodotti__cat2 = (String)request.getParameter("cat2") ;}
%>
<%
String prodotti__cerca = "NOKIA";
if (request.getParameter("cerca").toUpperCase() !=null) {prodotti__cerca = (String)request.getParameter("cerca").toUpperCase() ;}
%>
<%
DecimalFormat df = new DecimalFormat("#,##0.00");
// *** Edit Operations: declare variables
// set the form action variable
String MM_editAction = request.getRequestURI();
if (request.getQueryString() != null && request.getQueryString().length() > 0) {
MM_editAction += "?" + request.getQueryString();
}
String MM_editDriver = null, MM_editConnection = null, MM_editUserName = null, MM_editPassword = null;
String MM_editRedirectUrl = null;
StringBuffer MM_editQuery = null;
boolean MM_abortEdit = false;
String MM_editTable = null, MM_editColumn = null, MM_recordId = null;
String[] MM_fields = null, MM_columns = null;
Driver Driverprodotti = (Driver)Class.forName(MM_edros_DRIVER).newInstance();
Connection Connprodotti = DriverManager.getConnection(MM_edros_STRING,MM_edros_USERNAME,MM_edros_PASSWORD);
PreparedStatement Statementprodotti = Connprodotti.prepareStatement("SELECT *, img as img_grande FROM c_prodotti WHERE (supercat= '" + prodotti__MMColParam + "' and (subcat1='" + prodotti__cat1 + "' or subcat1='') and (subcat2='" + prodotti__cat2 + "' or subcat2='') and '" + prodotti__cerca + "'='_|') or ('" + prodotti__cerca + "'='' or locate('" + prodotti__cerca + "',UCASE(c_prodotti.descbreve))>0 or locate('" + prodotti__cerca + "',UCASE(c_prodotti.titolo))>0 or locate('" + prodotti__cerca + "',UCASE(c_prodotti.keywords))>0) and supercat<>'' ORDER BY ordine");
ResultSet prodotti = Statementprodotti.executeQuery();
boolean prodotti_isEmpty = !prodotti.next();
boolean prodotti_hasData = !prodotti_isEmpty;
Object prodotti_data;
int prodotti_numRows = 0;
%>
<%
Driver Driverstat = (Driver)Class.forName(MM_edros_DRIVER).newInstance();
Connection Connstat = DriverManager.getConnection(MM_edros_STRING,MM_edros_USERNAME,MM_edros_PASSWORD);
PreparedStatement stat = Connstat.prepareStatement("INSERT INTO ricerche (supercat, cat1, cat2, cerca,ip) VALUES ('"+request.getParameter("cat")+"','"+request.getParameter("cat1")+"','"+request.getParameter("cat2")+"','"+request.getParameter("cerca")+"','"+request.getRemoteAddr()+"' ) ");
stat.executeUpdate();
%>
<%
int Repeat1__numRows = -1;
int Repeat1__index = 0;
prodotti_numRows += Repeat1__numRows;
%>
|
Contact
us |
For
any information
+39
0424 1951 000
|
|
|
Terms
& Condition |
We
ship worldwide with DHL or UPS. We take VISA/MASTERCARD
credit cards throught secure server. |
|
<%
java.util.StringTokenizer tokens_prodotto ,tokens_prezzo,prezzoz,tokens_accessori,tokens_disponibilita,tok_breve ;
String breve,supporto,disponibilita_lingue,prodotto_lingue,accessori_lingue,prodotto,prezzo,prezzo_stati,qta,scon_temp,prezzi_carrello,disponibilita,linkz;
String accessori;
double base,prezzo_r;
int num_tok;
String riv_price;
session.putValue("s",session.getId());
%>
<% if (!prodotti_isEmpty ) { %>
<% } /* end !prodotti_isEmpty */ %>
<% if (prodotti_isEmpty ) { %>
<% } /* end prodotti_isEmpty */ %>
<%
prodotti.close();
Connprodotti.close();
%>
<%
Connstat.close();
%>
<%
prodotti.close();
%>