<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("Images Manager"); define(IMAGES_DIR,"/stp_images/"); define(FS_IMAGES_DIR,"../../stp_images/"); $db = $database; #Guardando las imagenes if($f) { for ($w=0; $w < count($f); $w++) { if(strcmp(trim($f_name[$w]),"")) { copy ($f[$w], FS_IMAGES_DIR.$f_name[$w]); //echo "insert into STP_IMAGES (st_id,image_file,image_name) VALUES ($subtype,'$f_name[$w]','$t[$w]')"; mysql_db_query($db,"insert into STP_IMAGES (st_id,image_file,image_name) VALUES ($subtype,'$f_name[$w]','$t[$w]')"); } } echo mysql_error(); $update = "UPDATE SUB_TIPO_PRODUCTOS SET DESC_SUB_TIPO_PRODUCTO='$desc' WHERE ID_SUB_TIPO_PRODUCTO=$subtype"; mysql_db_query($db,$update); echo mysql_error(); if (!mysql_error()) { //Alerta("Done !"); } else { Alerta("The process had errors"); }
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("Orders List / Waiting Delivery"); ?> <SCRIPT language=JavaScript src="./date.js"></SCRIPT> <!-- CONTENIDO --> <center> <script> function DelO(oid) { if (confirm("Do you really wnt to delete the order [No. "+oid+"]")) { OpenW('./del_order.php?oid='+oid,'350','400','yes'); } } function Mark_all() { var i; for(i=0; i<document.list.elements.length; i++) { document.list.elements[i].checked=1; } } </script> <table bgcolor=cecece border =0 cellpadding=3 cellspacing=1> <form name=fecha> <tr bgcolor=ffffff> <td>Delivery Since<br> <input type="text" name="f1" size=10 value="<?echo $f1?>"> <A href="javascript:show_calendar('fecha.f1');"><IMG
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("ADMIN PRODUCT PRICES"); if ($flag) { for ($i=0; $i<count($bunch); $i++) { $sql_updateproducts = " UPDATE PRODUCTOS SET UNIT_COST=$bunch[$i] , QBCODE='$qbcode[$i]' WHERE ID_PRODUCTO=$id[$i] "; mysql_db_query($db,$sql_updateproducts); $sql_updateproductsprices = " UPDATE PRODUCTOS P , SIZES S SET PRICE_STEM = CASE WHEN P.UNIT = 'S' THEN (((P.UNIT_COST * P.STEMS_PER_BUNCH * P.BUNCHES_BOX/ $markup) + S.FEDEX_COST) *1.03)/( P.STEMS_PER_BUNCH * P.BUNCHES_BOX) WHEN P.UNIT = 'B' THEN ROUND((((P.UNIT_COST * P.BUNCHES_BOX/ $markup) + S.FEDEX_COST) * 1.03)/( P.BUNCHES_BOX),2) END WHERE P.`ID_SIZE` = S.`ID_SIZE` AND P.`ID_PRODUCTO`=$id[$i] "; //echo $sql_updateproductsprices; mysql_db_query($db,$sql_updateproductsprices) or die(mysql_error()); mysql_db_query($db,"UPDATE PRODUCTOS SET `PRICE_BUNCH`= CASE WHEN UNIT='S' THEN ROUND(`PRICE_STEM`*`STEMS_PER_BUNCH`,2) WHEN UNIT='B' THEN ROUND(`PRICE_STEM`,3) END , `LAST_MARKUP`=$markup, `LAST_UPDATE` = NULL WHERE `ID_PRODUCTO`=$id[$i]") or die(mysql_error()); if (trim(${"d".$id[$i]})) { mysql_db_query($db,"delete from PRODUCTOS where ID_PRODUCTO='".$id[$i]."'"); }
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("Orders List"); ?> <SCRIPT language=JavaScript src="./date.js"></SCRIPT> <!-- CONTENIDO --> <center> <script> function DelO(oid) { if (confirm("Do you really wnt to delete the order [No. "+oid+"]")) { OpenW('./del_order.php?oid='+oid,'350','400','yes'); } } function Mark_all() { var i; for(i=0; i<document.list.elements.length; i++) { document.list.elements[i].checked=1; } } </script> <table bgcolor=cecece border =0 cellpadding=3 cellspacing=1> <form name=fecha> <tr bgcolor=ffffff> <td>Delivery Since<br> <input type="text" name="f1" size=10 value="<?echo $f1?>"> <A href="javascript:show_calendar('fecha.f1');"><IMG
<?session_start(); require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("New Product"); if ($desc) { #################################### DELIVERY DAY if ($f1) { $dtmp = mysql_db_query($database,"select UNIX_TIMESTAMP('$f1') FROM PRODUCTOS limit 1"); echo mysql_error(); $dtmp = mysql_fetch_row($dtmp); $dd = $dtmp[0]; } $current_day = date("w",$dd); $day_charge="0"; $consulta_day_charge_shopping_cart = <<< EOCS select DAY_CHARGE from WEEKDAYS where ID_WEEKDAY = $current_day+1 EOCS; $result_consulta_day_charge_shopping_cart = mysql_db_query($database,$consulta_day_charge_shopping_cart,$shopping_db_link); $fila_day_charge_shopping_cart = mysql_fetch_array ($result_consulta_day_charge_shopping_cart); $day_charge = $fila_day_charge_shopping_cart["DAY_CHARGE"]; mysql_free_result ($result_consulta_day_charge_shopping_cart); #EJECUTAMOS EL INSERT EN LA TABLA SHOPPING CART CON PARAMETROS ID_SESSION, ID_PRODUCTO, DAY_CHARGE, QUANTITY Y PRICE
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("Orders List / Waiting Confirmation"); ?> <SCRIPT language=JavaScript src="./date.js"></SCRIPT> <!-- CONTENIDO --> <center> <script> function DelO(oid) { if (confirm("Do you really wnt to delete the order [No. "+oid+"]")) { OpenW('./del_order.php?oid='+oid,'350','400','yes'); } } function Mark_all() { var i; for(i=0; i<document.list.elements.length; i++) { document.list.elements[i].checked=1; } } </script> <table bgcolor=cecece border =0 cellpadding=3 cellspacing=1> <form name=fecha> <tr bgcolor=ffffff> <td>Delivery Since<br> <input type="text" name="f1" size=10 value="<?echo $f1?>"> <A href="javascript:show_calendar('fecha.f1');"><IMG
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("ADMIN ITEMS"); if ($flag) { foreach($id as $k=>$i){ mysql_db_query($db,"UPDATE PRODUCTOS SET QBCODE='$qbcode[$i]',GENERIC_NAME='$generic_name[$i]',delay='$delay[$i]' WHERE ID_PRODUCTO=$id[$i]") or die(mysql_error()); if (trim(${"d".$id[$i]})) { mysql_db_query($db,"delete from PRODUCTOS where ID_PRODUCTO='".$id[$i]."'"); } if (trim(${"s".$id[$i]})) { //echo "update PRODUCTOS SET ID_PRODUCT_STATUS=1 where ID_PRODUCTO='".$id[$i]."'<br>"; mysql_db_query($db,"update PRODUCTOS SET ID_PRODUCT_STATUS=1 where ID_PRODUCTO='".$id[$i]."'"); } else { //echo "update PRODUCTOS SET ID_PRODUCT_STATUS=0 where ID_PRODUCTO='".$id[$i]."'<br>"; mysql_db_query($db,"update PRODUCTOS SET ID_PRODUCT_STATUS=0 where ID_PRODUCTO='".$id[$i]."'"); } echo mysql_error(); } }
*/ //require_once("../../utilidades/sesiones.php"); // esta es la libreria en donde se crean las sesiones //validarSesion(); // funcion que abre la sesion para este archivo require_once("../../utilidades/sesiones.php"); validarSesion(); require ('../../functions.php'); // en este archivo esta el esquema de base de datos. include('../head_admin.php'); // en este archivo se encuentra el cabezote. if (!$_SESSION["OID"]) { $_SESSION["OID"]=date("YmdHis"); } $vendedor=$_SESSION['name']; Titulo_Maestro("Take Phone Orders"); $today = mktime (0,0,0,date("m"),date("d"),date("Y")); ?> <SCRIPT language=JavaScript src="./date.js"></SCRIPT> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <script> function Validar() { var today = '<?echo date("Y-m-d")?>'; with (document.as) { if (qty.value=='' || it.selectedIndex==0 || (dd.selectedIndex==0 && f1.value=='')) { alert('All fields are required !!!'); } else if (today > f1.value && f1.value != '') { alert ('Delivery date is wrong date');
<?php require '../../functions.php'; include '../head_admin.php'; Titulo_Maestro("CUSTOMERS MAIN"); ?> <?php if (isset($_POST['disable'])) { mysql_select_db($db, $shopping_db_link); foreach ($_POST['disable'] as $key => $value) { if ($value == 1) { mysql_query("UPDATE CLIENTS SET STATUS=1 WHERE ID_CLIENT={$key} ", $shopping_db_link) or die(mysql_error()); mysql_query("UPDATE CLIENTS SET confirmed=0 WHERE ID_CLIENT={$key} ", $shopping_db_link) or die(mysql_error()); } } } if (isset($_POST['enable'])) { mysql_select_db($db, $shopping_db_link); $subject = "Your FarmsTogo on line account has been activated "; $headers = "From: FarmsToGo.com <*****@*****.**> \r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: text/html; charset=utf-8\r\n" . "Content-Transfer-Encoding: 8bit\r\n\r\n"; // Send foreach ($_POST['enable'] as $key => $value) { if ($value == 1) { $query_mail = "SELECT CLIENT_NAME,CLIENT_EMAIL FROM CLIENTS WHERE ID_CLIENT={$key} AND emailed=0 LIMIT 1 "; $mail = mysql_query($query_mail, $shopping_db_link) or die(mysql_error()); $row_mail = mysql_fetch_assoc($mail); if (mysql_num_rows($mail)) { mysql_query("UPDATE CLIENTS SET confirmed=1,emailed=1 WHERE ID_CLIENT={$key} ", $shopping_db_link) or die(mysql_error()); $message = "Dear " . $row_mail['CLIENT_NAME'] . ",<br />\nThank you for registering with Farms To Go .com. You can now start ordering on line and taking advantage of our resale prices and specials.\nPlease go to www.farmstogo.com <http://www.farmstogo.com/> login now and start enjoying a world of freshness great prices and quality service!<br />\nKind Regards <br />\n<br />\nMiguel Saavedra<br /> \nCEO Farmstogo.com"; mail('it@flowerdealers.com, miguels@flowerdealers.com,' . $row_mail['CLIENT_EMAIL'], $subject, $message, $headers);
<? session_start(); include('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("Update Product"); $source=(isset($_GET['source']))?$_GET['source']:'update_prices.php'; mysql_select_db($db,$shopping_db_link) or die (mysql_error()); $query_fedex="select DISTINCT ID_SIZE,FEDEX_COST FROM SIZES"; $fedex=mysql_query($query_fedex,$shopping_db_link) or die(mysql_error()); $row_fedex=mysql_fetch_assoc($fedex); echo "<script> \n"; echo "var fedex= new Array; \n"; do{ echo "fedex[".$row_fedex[ID_SIZE]."]=".$row_fedex[FEDEX_COST]."; \n "; } while ($row_fedex=mysql_fetch_assoc($fedex)); echo "</script> \n"; ?> <body bgcolor="#FFFFFF"> <? if ($ptx) { $CQuery = <<< EOP UPDATE PRODUCTOS SET ID_SUB_TIPO_PRODUCTO='$st' , ID_SIZE='$sz' , ID_MARKET='$mk' , PRODUCTO='$product' , STEMS_PER_BUNCH=$stems_bunch , PRICE_BUNCH='$price', BUNCHES_BOX='$bch_box', ID_PRODUCT_STATUS='$status', COLOR_VARIETY_CHOICE='$dc' , QBCODE='$qbcode', minimal_box='$min_box',UNIT='$unit', UNIT_COST=$unit_cost where ID_PRODUCTO=$id EOP; #echo $CQuery; mysql_db_query($db,$CQuery);
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("TESTIMONIALS"); if (!$flag) { ?> <html> <head> <title>Testimonials</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <style> TD { COLOR: #000000; FONT-FAMILY: Trebuchet Ms,Arial,Helvetica; FONT-SIZE: 11px } TH { COLOR: #000000; FONT-FAMILY: Trebuchet Ms,Arial,Helvetica; FONT-SIZE: 11px; FONT-WEIGHT: Bold; }
<? require ('../../functions.php'); include('../head_admin.php'); $database = "flowerde_ff2gv"; $db = "flowerde_ff2gv"; $h2 = "mysqlv.temp1000.dreamhosters.com"; $u2 = "miguels"; $pw2 = "patricia"; $database2 = "ff2gv"; $db2 = "ff2gv"; $rosefarms=mysql_connect($h,$u,$pw) or die(mysql_error()); mysql_select_db($database,$rosefarms) or die(mysql_error()); Titulo_Maestro("CLONE MARKETS FROM TEMPLATE"); foreach($_POST as $nombre_campo => $val){ $asignacion = "\$" . $nombre_campo . "='" . $val . "';"; eval($asignacion); } ///Funcion para clonar mercados if(isset($id)){ foreach($_POST['id'] as $i => $valor ){ $bun=$_POST['bunch'][$i]; $qb=$_POST['qbcode'][$i]; if (isset($nm[$i])) { $qry="insert into PRODUCTOS SELECT '',ID_SUB_TIPO_PRODUCTO , ID_TIPO_PRODUCTO , ID_SIZE , ".$nmk." , PRODUCTO , PRICE_STEM , STEMS_PER_BUNCH ,'".$bun."', BUNCHES_BOX , DELIVERY_DELAY , ID_PRODUCT_STATUS , COLOR_VARIETY_CHOICE ,'".$qb."', minimal_box,GENERIC_NAME FROM PRODUCTOS WHERE ID_PRODUCTO='".$valor."'"; echo $qry."\n\n"; mysql_query($qry,$rosefarms) or die(mysql_error()); }
<? //require ('../../functions.php'); require ('../../s/include/functions.php'); //include('../head_admin.php'); Titulo_Maestro("Add Images"); $base = "../../stp_images/"; while (list ($key,$val) = @each ($_POST['del'])) { mysql_db_query($db,"insert into event_images (id_event,image) VALUES ('$id','$val')"); //echo "insert into event_images (id_event,image) VALUES ('$id','$val')"; ?> <script> <!-- //alert('Images added'); this.opener.location.reload(); window.close(); --> </script> <? } ?> <style> BODY { COLOR: #000000; FONT-FAMILY: Arial,Helvetica,Univers,Zurich BT; FONT-SIZE: 12px }
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("Company Search Report"); ?> <SCRIPT language=JavaScript src="./date.js"></SCRIPT> <!-- CONTENIDO --> <center> <script> <!-- function DelO(oid) { if (confirm("Do you really want to delete the order [No. "+oid+"]")) { OpenW('./del_order.php?oid='+oid,'350','400','yes'); } } function Mark_all() { var i; for(i=0; i<document.list.elements.length; i++) { document.list.elements[i].checked=1; } } --> </script> <table bgcolor=cecece border =0 cellpadding=3 cellspacing=1> <form name=fecha> <tr bgcolor=ffffff> <td>
// +------------------------------------------------------------------------+ // | Llamado a las Bibliotecas requeridas | // +------------------------------------------------------------------------+ require_once("../../forms/config/bd.conf"); // Get the connection variables require_once("../../forms/lib/database.php"); // Get the DataBase extended functions // +-----------------------------------------------------------------------+ // | Incializa las plantillas y establece la conexión con la BD | // +-----------------------------------------------------------------------+ $db = DB::connect($dsn, DB_CONNECT_MODE); $db->setFetchMode(DB_FETCHMODE_ASSOC); include('../../includes/head.php'); Titulo_Maestro ("VenMaster Orders to FD Delivery"); if (!$flag) { ?> <form action="<? echo $PHP_SELF ?>" method="post" enctype="multipart/form-data"> <table> <tr> <td><b><center>Aplicativo para subir archivos</b></center></td> </tr> <tr> <td>Archivo </td> <td><input type="file" name="arch" size=25> </td> </tr> <tr> <td> <input type="submit" name="send" value="Subir Archivo "> <input type="hidden" name="flag" value="1">
} if (isset($_POST['STATUS'][$key]) && $_POST['STATUS'][$key] == 1) { $query = "UPDATE TIPO_PRODUCTOS SET STATUS= 1 where ID_TIPO_PRODUCTO={$key}"; mysql_query($query, $shopping_db_link) or die(mysql_error()); } else { $query = "UPDATE TIPO_PRODUCTOS SET STATUS= 0 where ID_TIPO_PRODUCTO={$key}"; mysql_query($query, $shopping_db_link) or die(mysql_error()); } } } mysql_select_db($db, $shopping_db_link); $query_tproduct = "select * from TIPO_PRODUCTOS order by ID_TIPO_PRODUCTO"; $tproduct = mysql_query($query_tproduct, $shopping_db_link) or die(mysql_error()); $row_tproduct = mysql_fetch_assoc($tproduct); include '../head_admin.php'; Titulo_Maestro("ADMIN TIPO PRODUCTOS"); ?> <script> function valida_form1(){ if(document.form1.TIPO_PRODUCTO.value=="" || document.form1.ORDER.value==""){ alert("Please type an Product Type and an order"); }else { document.form1.submit();} } </script> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><div align="center"><a href="../reports.php">Go Back to Main Menu</a> </div></td> </tr> <tr> <td><form id="form1" name="form1" method="post" action="<?php echo $PHP_SELF;
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("CUSTOMER LIST"); for ($i=0; $i<count($del); $i++) { mysql_db_query($db,"DELETE FROM CLIENTS WHERE ID_CLIENT=$del[$i]"); } ?> <body bgcolor="#FFFFFF"> <center> <p> <? ####################################### ?> <table cellpadding=2 cellspacing=1> <tr><form> <td> Keyword<br> <input type="text" name="keyw"> </td> <td><br> <input type="hidden" name="flag" value="1"> <input type="submit" value="Search"> </td> <td width=80></td> <td>
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("Orders List / Delivered"); ?> <SCRIPT language=JavaScript src="./date.js"></SCRIPT> <!-- CONTENIDO --> <center> <script> function DelO(oid) { if (confirm("Do you really wnt to delete the order [No. "+oid+"]")) { OpenW('./del_order.php?oid='+oid,'350','400','yes'); } } function Mark_all() { var i; for(i=0; i<document.list.elements.length; i++) { document.list.elements[i].checked=1; } } </script> <table bgcolor=cecece border =0 cellpadding=3 cellspacing=1> <form name=fecha> <tr bgcolor=ffffff> <td>Delivery Since<br> <input type="text" name="f1" size=10 value="<?echo $f1?>"> <A href="javascript:show_calendar('fecha.f1');"><IMG
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("FAQ'S"); if (!$flag) { ?> <html> <head> <title>FAQ's</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <style> TD { COLOR: #000000; FONT-FAMILY: Trebuchet Ms,Arial,Helvetica; FONT-SIZE: 11px } TH { COLOR: #000000; FONT-FAMILY: Trebuchet Ms,Arial,Helvetica; FONT-SIZE: 11px; FONT-WEIGHT: Bold; }
<!-- CONTENIDO --> <script> function Validar() { if (document.fm.nombre.value=="") { alert ('All data are required'); return false; } } </script> <center> <? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("ADMIN CUSTOMER TYPES"); ?> <table border="0" cellpadding=2 cellspacing=2> <tr bgcolor=ffffff> <form name=fm action="admin_ctypes2.php" onsubmit="return Validar()" method=post> <td valign=top><b>Customer Type</b><br> <input type="text" name="nombre" size=25> </td> <td valign=top><b>Description</b><br> <input type="text" name="desc" size=45> </td> <th valign=bottom>
<?php session_start(); require '../../functions.php'; include '../head_admin.php'; Titulo_Maestro("Standing Orders Report"); ?> <html> <head> <title>Flower Farms To Go .com</title> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bottommargin="0" rightmargin="0" bgcolor="#FFFFFF" text="#000000" link="#000099" vlink="#000099" alink="#000099"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" height="2" colspan="2" align="center"> <?php # CONECTARSE A LA BASE DE DATOS # Ponemos ORDER BY ID_STANDING_ORDER_INFO si no hay uno definido if (!$orderby) { $orderby = "ID_STANDING_ORDER_INFO"; } # CONSULTA PARA MOSTRAR LAS ORDENES FIJAS $consulta_st_orders = <<<EOM select STANDING_ORDERS_INFO.CLIENT_NAME, STANDING_ORDERS_INFO.CLIENT_ADDRESS, STANDING_ORDERS_INFO.CLIENT_ZIPCODE, STANDING_ORDERS_INFO.CLIENT_PHONE, STANDING_ORDERS_INFO.CLIENT_FAX, STANDING_ORDERS_INFO.CLIENT_EMAIL, STANDING_ORDERS_INFO.CLIENT_CITY,STANDING_ORDERS_INFO.DATE_FROM, STATES.STATE,
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("General Search"); ?> <SCRIPT language=JavaScript src="./date.js"></SCRIPT> <!-- CONTENIDO --> <center> <script> function DelO(oid) { if (confirm("Do you really want to delete the order [No. "+oid+"]")) { OpenW('./del_order.php?oid='+oid,'350','400','yes'); } } function Mark_all() { var i; for(i=0; i<document.list.elements.length; i++) { document.list.elements[i].checked=1; } } </script> <table bgcolor=cecece border =0 cellpadding=3 cellspacing=1> <form name=fecha> <tr bgcolor=ffffff> <td>Order Day Since<br> <input type="text" name="f3" size=10 value="<?echo $f3?>"> <A href="javascript:show_calendar('fecha.f3');"><IMG
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("ADMIN SEARCH TERMS"); mysql_select_db($db,$shopping_db_link) or die('Can not connect the database'); $query_sterms="SELECT `value` from s_parameters where `param_cod`='STERMS'"; $sterms=mysql_query($query_sterms,$shopping_db_link) or die (mysql_error()); $row_sterms=mysql_fetch_assoc($sterms); if(isset($_POST['value'])){ mysql_select_db($db,$shopping_db_link) or die('Can not connect the database'); mysql_query("UPDATE s_parameters SET `value`='".$_POST['value']."' where `param_cod`='STERMS'",$shopping_db_link) or die (mysql_error()); echo "<script>"; echo "self.location='sterms.php';"; echo "</script>"; } ?> <form action="<?php echo $PHP_SELF; ?> " method="post" name="form1"> <table width="200" border="0" align="center" cellpadding="4" cellspacing="0"> <tr> <td>This is the text of the terms in this momment : </td> </tr> <tr> <td>
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("ADMIN PROMOTIONS"); if ($prom) { if ($idx) { $query = "UPDATE PROMOTIONS SET PROMOTION='$prom' , DESC_PROMOTION='$desc' , ". " ID_PROMOTION_STATUS='$st' , ID_PRODUCTO_PROMOTION='$pr' , ID_QUANTITY_PROMOTION='$qty' , ". " PROMOTION_PRICE='$price' , ID_PRODUCTO_BONUS='$bonus' , ID_QUANTITY_BONUS='$qtyb'". " , BONUS_PRICE='$bprice' , BONUS_WITH_IT='$with' , BONUS_ARRIVAL_DATE='$adate' WHERE ID_PROMOTION=$idx"; } else { $query = "INSERT INTO PROMOTIONS ( PROMOTION , DESC_PROMOTION , ". " ID_PROMOTION_STATUS , ID_PRODUCTO_PROMOTION , ID_QUANTITY_PROMOTION , PROMOTION_PRICE ,". " ID_PRODUCTO_BONUS , ID_QUANTITY_BONUS , BONUS_PRICE , BONUS_WITH_IT , BONUS_ARRIVAL_DATE ) ". " VALUES ( '$prom', '$desc', '$st', '$pr', '$qty', '$price', '$bonus', '$qtyb',". " '$bprice', '$with','$adate')"; } //echo $query; mysql_db_query($database,$query); echo mysql_error(); Alerta("Promotion Ready !!!"); } $today = mktime (0,0,0,date("m"),date("d"),date("Y")); $qx = "select DISTINCT T.TIPO_PRODUCTO,ST.SUB_TIPO_PRODUCTO,M.MARKET,S.SIZE,P.ID_PRODUCTO,".
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("Orders List / Invoice Pending"); ?> <SCRIPT language=JavaScript src="./date.js"></SCRIPT> <!-- CONTENIDO --> <center> <script> function DelO(oid) { if (confirm("Do you really wnt to delete the order [No. "+oid+"]")) { OpenW('./del_order.php?oid='+oid,'350','400','yes'); } } function Mark_all() { var i; for(i=0; i<document.list.elements.length; i++) { document.list.elements[i].checked=1; } } </script> <table bgcolor=cecece border =0 cellpadding=3 cellspacing=1> <form name=fecha> <tr bgcolor=ffffff> <td>Delivery Since<br> <input type="text" name="f1" size=10 value="<?echo $f1?>"> <A href="javascript:show_calendar('fecha.f1');"><IMG
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("ADMIN SIZES"); ?> <center> <!-- CONTENIDO --> <script> function Validar() { if (document.fm.nombre.value==""||document.fm.cod.value=="") { alert ('All data are required'); return false; } } </script> <center> <!-- CREAR --> <table border="0" cellpadding=2 cellspacing=2> <tr bgcolor=ffffff> <form name=fm action="admin_sizes2.php" onsubmit="return Validar()" method=get> <td valign=top><b>Size</b><br> <input type="text" name="cod" size=25> </td> <td valign=top><b>Size Long Desc</b><br>
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("ADMIN MARKETS"); ?> <center> <!-- CONTENIDO --> <script> function Validar() { if (document.fm.nombre.value=="") { alert ('All data are required'); return false; } } </script> <center> <!-- CREAR --> <table border="0" cellpadding=2 cellspacing=2> <tr bgcolor=ffffff> <form name=fm action="admin_markets2.php" onsubmit="return Validar()" method=post> <td valign=bottom><b>Market</b><br> <input type="text" name="nombre" size=25> </td> <td valign=bottom>Start Date<br>(yyyy-mm-dd)<br> <input type=text size=10 maxlength=10 name=sd value="<?echo $rs["START_DATE"]?>" onchange="this.form.ad.value=this.value"></td>
$insertar_factura_vendedor = @mysql_db_query($database,$consulta_insertar_factura_vendedor,$shopping_db_link); } //////////////////////////////////////////////////////////////////////////////////////////////////// Titulo_Maestro("Information, Order [No. #$ido / ".$fila_factura["DATE_TIME"]."]"); #### MOSTRAMOS INFORMACION CLIENTE ?> <style> . tabla, tabla td, tabla th { border:1px solid #999999; border-collapse:collapse;} </style> <script> function OpenX(url,w,h,sb) { window.open(url,'XS','menubar,toolbar=yes,scrollbars=yes,width='+w+',height='+h); //,toolbars=yes,resizable=yes, ,'OpenW','toolbars=yes,width='+w+',height='+h+',top=0,left=0');
<? require ('../../functions.php'); include('../head_admin.php'); Titulo_Maestro("ADMIN SUBPRODUCTS"); ?> <center> <!-- CONTENIDO --> <script> function Validar() { if (document.fm.nombre.value=="") { alert ('All data are required'); return false; } } </script> <center> <form> <select name="pt" onchange="this.form.submit()"> <option value="">SELECT A PRODUCT TYPE </option> <? SelecTable($db,'TIPO_PRODUCTOS','ID_TIPO_PRODUCTO','TIPO_PRODUCTO',"",$pt) ?> </select> </form> <!-- CREAR --> <? if($pt) { ?> <table border="0" cellpadding=2 cellspacing=2> <tr bgcolor=ffffff>