<body> <?php include "includes/header.php"; ?> <table width="960" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> <table border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="30" colspan="5" class="titulo_ruta"><?php echo $nombretr; ?> > Mi Cuenta > Mi TR</td> <td align="right" colspan="2"><?php if ($_SESSION["userid"] != "") { echo " <span class=\"blue\">Hola " . strtoupper(cual_usuario($_SESSION["userid"], $_SESSION["usertipo"])) . "</span>"; ?> | <a href="/salirTR/" class="red" target="_self">Salir</a> <?php } ?> </td> </tr> <tr> <td width="70"><a href="/bienvenidoTR/<?php echo limpiar_cadena($nombretr); ?> "><img src="/imagenes/btn_resumen_off.jpg" name="mitr" width="70" height="21" border="0" id="mitr" /></a></td> <td width="43"><a href="/mitr/<?php echo limpiar_cadena($nombretr); ?>
?> /<?php echo $b["id"]; ?> " class="bluep">Artículo # <?php echo numero_articulo($b["id"]); ?> </a></span><br /> <?php if ($b["usuario_tienda"] == "2") { ?> visite <?php echo cual_usuario_resultado($b["id_usuario_tienda"], 2); ?> <br /><a href="/tr/<?php echo limpiar_cadena(cual_usuario($b["id_usuario_tienda"], 2)); ?> /<?php echo $b["id_usuario_tienda"]; ?> /0/0/1"><img src="/imagenes/icon_tr.jpg" width="33" height="25" border="0" /></a><?php } ?> <br /> </div> <div class="red" style="width:100px; float:left;">Bs. <?php echo $b["precio"]; ?> </div> <div class="gris" style="width:100px; float:left;"><?php echo date("d-m-Y", strtotime($b["vence"]));
} $update = mysql_query("UPDATE usuario SET activo='{$act}' WHERE id='{$id}'"); if ($act == 1) { //activo el producto y el usuario $vence = "DATE_ADD(NOW(), INTERVAL 60 DAY)"; $update = mysql_query("UPDATE productos SET vence={$vence} WHERE usuario_tienda='1' && id_usuario_tienda='{$id}'"); //email al usuario y a vendo repuestos $to = cual_email_usuario($id, '1'); $to2 = "*****@*****.**"; $subject = "Activacion Publicacion [www.vendorepuestos.com.ve]"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; $headers .= "X-Priority: 1\n"; $headers .= "From: administracion@vendorepuestos.com.ve\r\n"; $numero_articulo = numero_articulo($idp); $message .= "Estimad@ " . cual_usuario($id, '1') . ", su pago ha sido recibido satisfactoriamente y su articulo ha sido publicado<br><br>"; $message .= "Atte: vendorepuestos.com\n\n "; $send_mail = mail($to, $subject, $message, $headers); $send_mail = mail($to2, $subject, $message, $headers); } elseif ($act == 0) { //descativo el usuario y el producto $vence = "DATE_ADD(NOW(), INTERVAL -1 DAY)"; $update = mysql_query("UPDATE productos SET vence={$vence} WHERE usuario_tienda='1' && id_usuario_tienda='{$id}'"); } } ?> <!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=iso-8859-1" /> <link href="cascadas.css" rel="stylesheet" type="text/css" />
<br /> <span class="bluep"><a href="/articulo/<?php echo limpiar_cadena($b["titulo"]); ?> /<?php echo $b["id"]; ?> /" class="bluep">Artículo # <?php echo numero_articulo($b["id"]); ?> </a></span><br /> <?php if ($b["usuario_tienda"] == "2") { ?> visite <?php echo cual_usuario($b["id_usuario_tienda"], 2); ?> <br /><a href="tienda_lista.php?id=<?php echo $b["id_usuario_tienda"]; ?> "><img src="/imagenes/icon_tr.jpg" width="33" height="25" border="0" /></a><?php } ?> <br /></div> <div class="red" style="width:100px; float:left;">Bs. <?php echo $b["precio"]; ?> </div> <div class="gris" style="width:100px; float:left;"><?php echo date("d-m-Y", strtotime($b["vence"])); ?>
$delete = mysql_query("DELETE FROM productos WHERE usuario_tienda='1' && id_usuario_tienda='{$id}'"); } if ($_GET['sw'] == '1') { $act = $_GET["act"]; $id = $_GET["id"]; if ($act == 1) { $act = 0; //descativo el usuario y el producto $vence = "DATE_ADD(NOW(), INTERVAL -1 DAY)"; $update = mysql_query("UPDATE productos SET vence={$vence} WHERE usuario_tienda='1' && id_usuario_tienda='{$id}'"); } elseif ($act == 0) { $act = 1; //activo el producto y el usuario $vence = "DATE_ADD(NOW(), INTERVAL 60 DAY)"; $update = mysql_query("UPDATE productos SET vence={$vence} WHERE usuario_tienda='1' && id_usuario_tienda='{$id}'"); $nombre = cual_usuario($id, '1'); //email al cliente $to = cual_email_usuario($id, '1'); $subject = "Aprobación Cliente Certificado"; //EMAIL A TR $to2 = "*****@*****.**"; $subject2 = "Aprobación Cliente Certificado"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; $headers .= "X-Priority: 1\n"; $headers .= "From: centrodeseguridad@vendorepuestos.com.ve\r\n"; $message = "Gracias <b>{$nombre}</b> por confiar en vendorepuestos.com.ve<br><br> \n\t\t\tSu pago ha sido recibido satisfactoriamente y su articulo ha sido publicado.<br><br>\n\t\t\tPara información adicional contacte nuestra sección de Preguntas Frecuentes o a nuestro equipo de Soporte En Línea vía Twitter @vendorepuestos<br><br> \n\t\t\tGracias por usar vendorepuestos.com.ve.<br><br>\n\t\t\tSaludos."; $send_mail = mail($to, $subject, $message, $headers); $send_mail = mail($to2, $subject2, $message, $headers); } $update = mysql_query("UPDATE usuario SET activo='{$act}' WHERE id='{$id}'");