<!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=gb2312" />
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<%

if session("top")="" and request.QueryString("ver")="" then
session("top")="-690px"
end if

if session("top")="" and request.QueryString("ver")="2" then
session("top")="-595px"
end if

 %>
<%
set conn=Server.Createobject("adodb.Connection") 
str="dsn=conn;Driver={mysql driver};server=127.0.0.1;Port=3306;uid=root;pwd=bohaosoftware19711978;database=bohaosupermarket;"

conn.open Str
sql="select * from information_schema.columns where table_name ='hipospda'"
set rs = conn.execute(sql)

if rs.bof and rs.eof then 
set add=conn.execute("CREATE TABLE hipospda (id int(1),tiendaname varchar(255),calle varchar(255),cp varchar(255),Provincia varchar(255),empresa varchar(255),cif varchar(255),telefono varchar(255),logo varchar(255),billete varchar(255),ventamode int(1),modelo int(1),style int(1),autoprint int(1),puntoavale varchar(255),notaxs varchar(255),nota varchar(255),fx varchar(255),tiendanamesize varchar(255),tiendanamealign varchar(255),name1size varchar(255),name1align varchar(255),name2size varchar(255),name2align varchar(255),preciosize varchar(255),precioalign varchar(255),fxsize varchar(255),fxalign varchar(255),notasize varchar(255),notaalign varchar(255),codesize varchar(255),codealign varchar(255),codebarwidth varchar(255),codebarheight varchar(255),billetesize varchar(255),billetealign varchar(255),AlpproveedorMAX varchar(255),AlpproveedorarticuloMAX varchar(255),EName1MAX varchar(255),EName2MAX varchar(255),EName2IgualEName1 int(1),PName1MAX varchar(255),PName2MAX varchar(255),PName2IgualPName1 int(1),TkTipo varchar(255),TkNO varchar(255),TkNota varchar(255),ALPUSAIDOCODIGO int(1),MAYORCONDOSPRECIOS int(1),BilleteAntes int(1),Printidocodigo int(1),BgColor varchar(255),Photo varchar(255),OP1 varchar(255),OP2 varchar(255),OP3 varchar(255),OP4 varchar(255),OP5 varchar(255),OP6 varchar(255),OP7 varchar(255),OP8 varchar(255),OP9 varchar(255),OP10 varchar(255),PRIMARY KEY (id))")

set add=conn.execute("insert into hipospda (id,tiendaname,calle,cp,Provincia,empresa,cif,telefono,logo,billete,ventamode,modelo,style,autoprint,puntoavale,notaxs,nota,fx,tiendanamesize,tiendanamealign,name1size,name1align,name2size,name2align,preciosize,precioalign,fxsize,fxalign,notasize,notaalign,codesize,codealign,codebarwidth,codebarheight,billetesize,billetealign,AlpproveedorMAX,AlpproveedorarticuloMAX,EName1MAX,EName2MAX,EName2IgualEName1,PName1MAX,PName2MAX,PName2IgualPName1,TkTipo,TkNO,TkNota,ALPUSAIDOCODIGO,MAYORCONDOSPRECIOS,BilleteAntes,Printidocodigo,BgColor,Photo,OP1,OP2,OP3,OP4,OP5,OP6,OP7,OP8,OP9,OP10)values('888','TIENDANAME','CALLE MARIANO VELA 49','28026','MADRID','HAIMENG TECHS .L','B8888888','916228488/666666501','','1','1','0','1','0','0','1','P.V.P Iva Inc','1','40','center','24','left','24','left','75','center','75','right','22','left','22','left','440','70','75','left','30','1000','20','20','0','18','18','0','Factura Proforma','1','Gracias por su compra!','1','1','0','1','#000000','0','OP1','OP2','OP3','OP4','OP5','OP6','OP7','OP8','OP9','OP10')")
end if

sql = "select * from hipospda where id ='888'"
set rs = conn.execute(sql)
tiendaname=rs("tiendaname")
calle=rs("calle")
cp=rs("cp")
Provincia=rs("Provincia")
empresa=rs("empresa")
cif=rs("cif")
telefono=rs("telefono")
logo=rs("logo")
if rs("billete")="1" then
billetecode="1"
billete="€"
end if
if rs("billete")="2" then
billetecode="2"
billete="$"
end if

ventamode=rs("ventamode")
if ventamode="2" then
ventamodexs="Åú·¢"
end if

modelo=rs("modelo")
style=rs("style")
autoprint=rs("autoprint")
puntoavale=rs("puntoavale")
nota=rs("nota")
notaxs=rs("notaxs")
if rs("fx")="1" then
fx="¡ü"
end if
if rs("fx")="2" then
fx="¡ý"
end if
AlpproveedorMAX=RS("AlpproveedorMAX")
AlpproveedorarticuloMAX=RS("AlpproveedorarticuloMAX")
EName1MAX=RS("EName1MAX")
EName2MAX=RS("EName2MAX")
EName2IgualEName1=RS("EName2IgualEName1")
PName1MAX=RS("PName1MAX")
PName2MAX=RS("PName2MAX")
PName2IgualPName1=RS("PName2IgualPName1")
TkTipo=RS("TkTipo")
TkNO=RS("TkNO")
TkNota=RS("TkNota")
ALPUSAIDOCODIGO=RS("ALPUSAIDOCODIGO")
MAYORCONDOSPRECIOS=RS("MAYORCONDOSPRECIOS")
BilleteAntes=RS("BilleteAntes")
Printidocodigo=RS("Printidocodigo")

 
tiendanamesize=rs("tiendanamesize") 
tiendanamealign="center"

name1size=rs("name1size") 
name1align="left"

name2size=rs("name2size") 
name2align="left"

preciosize=rs("preciosize")  
precioalign="center"

fxsize=rs("fxsize") 
fxalign="right"

notasize=rs("notasize")
notaalign="left"

codesize=rs("codesize")
codealign="left"

codebarwidth=rs("codebarwidth")
codebarheight=rs("codebarheight")

billetesize=rs("billetesize") 
billetealign="left"

photo=rs("photo")
op1=rs("op1")
op2=rs("op2")
op3=rs("op3")
op4=rs("op4")
op5=rs("op5")
op6=rs("op6")
op7=rs("op7")
op8=rs("op8")
op9=rs("op9")
op10=rs("op10")

bgcolor=rs("bgcolor")
opacity="0.9"


  conn.close
  set rs=nothing 


%>

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
body,td,th {
	font-size: 12px;
	font-family: Geneva, Arial, Helvetica, sans-serif;
}
a {
	font-size: 12px;
	color: #000000;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: none;
	color: #000000;
}
a:active {
	text-decoration: none;
	color: #000000;
}
.STYLE4 {
	color: #FFFFFF;
	font-family: Geneva, Arial, Helvetica, sans-serif;

}
.STYLE5 {color: #FFFFFF}
.STYLE7 {color: #000000; font-size: 8px; }
.STYLE14 {font-size: 8px;}
.STYLE15 {font-size: 10px}
.STYLE17 {font-size: 8px; color:#FFFFFF;}
.STYLE16 {font-size: 14px; color:#FFFFFF;}
.STYLE18 {font-size: 12px; color:#000000;}
.Menu1 {font-size: 12px; color:#FFFFFF;}
.Menu2 {font-size: 8px; color:#FFFFFF;}
.footer {
            position: fixed;
            left: 0px;
            bottom: 0px;
            width: 100%;
            height: 40px;
            background-color:<%= bgcolor %>;
            z-index: 9999;
			font-size:12px;
			color:#FFFFFF;
        }
		
@media print{
   #noprint{
       display:none;
   }
}
-->
</style>
<div id="noprint">
<% if request.QueryString("ac")<>"print" then %>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" bgcolor="<%= bgcolor %>"><div align="center"><span class="STYLE4"><%= tiendaname %> @HIPOS<%= ventamodexs %> v2.2</span></div></td>
  </tr>
</table>
<% end if %>
</div>
