<%@ $Language=JScript /* PARA COLORES PHP */ %><% include("../includes/DB_Conectar.php"); include("../includes/inc_auth.php"); include("../includes/funciones.php"); //aca proceso las posibilidades if($accion=="Guardar") { //actualizo //este es para que actualice lo editado $squpdate = "update Custom set cusValor = '$imagen1' where cusVariable = 'alt_image'"; $qrupdate = $conn->execute($squpdate); $squpdate = "update Custom set cusValor = '$imagen2' where cusVariable = 'nodisp_image'"; $qrupdate = $conn->execute($squpdate); //actualiza imagen de 'imagen no disponible' $imagen2url=str_replace("http://$SERVER_NAME".$var_path,"",$imagen2url); @copy($app_path.$imagen2url,$app_path."/images/nodisp_image.jpg"); $msje=$I_dataupdated; } %> <%=$I_administration%> <%include("menu.php");%>
<%if($msje!=""){%> <%}%>

<%=$I_defaultimage%>

<%=$msje%>
  <% //aca buscas $sql = "select * from Custom where cusVariable = 'alt_image'"; $rs = $conn->execute($sql); //los campos $cusVariable1 = $rs->field(cusVariable); $cusValor1 = $rs->field(cusValor); $sql2 = "select * from Custom where cusVariable = 'nodisp_image'"; $rs2 = $conn->execute($sql2); $cusVariable2 = $rs2->field(cusVariable); $cusValor2 = $rs2->field(cusValor); %>
<%$texto_htm=$I_thisimageappears;%> <%$texto_htm=$I_thisimageappears;%>
 
<%=$I_altimage%>
<% if($cusValor1){ $sqimag = "select * from ADVF where advID='$cusValor1'"; $rsimag = $conn->execute($sqimag); $catID = $rsimag->field(catID); if($rsimag){ echo ""; } }else{ echo ""; $catID = "0"; } %> Seleccionar Imagen  Quitar Imagen  
 
<%=$I_nodispimage%>
Seleccionar Imagen  Quitar Imagen  


<%if($id!=""){ %> <%}else{ %> <%}%>
<%if($id!=""){ %> <%}%>