| Current File : C:/Inetpub/vhosts/derecha3kmotor.com/httpdocs/2024/admin/anadir2.asp |
<!--#include file="leercliente.asp"-->
<%
Response.CharSet = "UTF-8"
id_raiz=request.querystring("id_raiz")
texto=request.querystring("texto")
id_cliente=request.querystring("id_cliente")
textopet=request.form("textocontenido")
Set UploadProgress = Server.CreateObject("Persits.UploadProgress")
PID = "PID=" & UploadProgress.CreateProgressID()
barref = "framebar.asp?to=10&" & PID
' GRABAMOS EN SQL EL TEXTO
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open conexion
sSQL="Insert Into contenido24 (id_raiz,texto,enlace) values ('" & id_raiz & "','" & textopet & "','" & novalue & "')"
set RS = Conn.Execute(sSQL)
Conn.Close
' RECUPERAMOS ULTIMO ID
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open(conexion)
sSQL="Select * From contenido24 order by id desc"
set RS = Conn.Execute(sSQL)
id_contenido=RS("id")
Conn.Close
%>
<html>
<head>
<meta http-equiv="Content-Language" content="es">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Administración de Menús</title>
<link href='http://fonts.googleapis.com/css?family=Electrolize' rel='stylesheet' type='text/css'>
<style type="text/css">
A.p12n:link { text-decoration: none; }
A.p12n:active { text-decoration: none; }
A.p12n:visited { text-decoration: none; }
A.p12n:hover { text-decoration: underline; }
.p12n {
color: rgb(0, 0, 0);
font-family: 'Electrolize', sans-serif;
font-size: 12px;
font-style: normal;
font-variant: normal;
font-weight: normal;
letter-spacing: normal;
line-height: 18px;
text-indent: 0px;
text-transform: none;
white-space: normal;
widows: 2;
word-spacing: 0px;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;
'background-color: rgb(255, 255, 255);
display: inline !important;
float: none;
}
.p16b {
color: rgb(50, 100, 255);
font-family: 'Electrolize', sans-serif;
font-size: 16px;
font-style: normal;
font-variant: normal;
font-weight: normal;
letter-spacing: normal;
line-height: 18px;
text-indent: 0px;
text-transform: none;
white-space: normal;
widows: 2;
word-spacing: 0px;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px;
'background-color: rgb(255, 255, 255);
display: inline !important;
float: none;
}
</style>
<SCRIPT LANGUAGE="JavaScript">
function ShowProgress()
{
strAppVersion = navigator.appVersion;
if (document.subirfotos.FILE1.value != "")
{
if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4)
{
winstyle = "dialogWidth=385px; dialogHeight:140px; center:yes";
window.showModelessDialog('<% = barref %>&b=IE',null,winstyle);
}
else
{
window.open('<% = barref %>&b=NN','','width=370,height=115', true);
}
}
return true;
}
</SCRIPT>
</head>
<body bgcolor="#FFFFFF">
<table border="0" width="100%" cellspacing="3">
<tr align="center">
<td colspan="3" align="center" class="p16b">
<b>Administración de menu en Webs</b>
</td>
</tr>
<tr>
<td class="p12n" align="center">Web: <%=web%><br>Propietario: <%=nombre%></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="5">
<tr>
<td> </td>
<td>
<table border="0" width="100%" cellspacing="5" cellpadding="0">
<tr>
<td align="center" valign="top">
</td>
<td align="center" valign="top">
<p class="p16b">AÑADIR OPCIÓN A RAIZ:<br>
<p class="p12n"><%=texto%></td>
<td align="center" valign="top"> </td>
<td align="center" valign="top">
<a href="admina.asp" target="_self">
<img border="0" src="back.png" width="40" height="40" alt="Volver atrás" Title="Volver atrás"></a></td>
<td align="center" valign="top"> </td>
</tr>
</table>
</td>
<td> </td>
</tr>
</table>
<div align="center">
<table border="0" width="500" cellspacing="5" cellpadding="2">
<tr>
<td>
<p align="right" class="p12n"><font color="#FF0000">Texto añadido:</font></td>
<td class="p12n"><font color="#FF0000"><%=textopet%></font></td>
</tr>
<tr>
<td>
<p align="right" class="p12n">Objeto adjunto:</td>
<td>
<p align="left">
<FORM name="subirfotos" ACTION="anadir3.asp?<% = PID %>&id_contenido=<%=id_contenido%>&id_cliente=<%=id_cliente%>" METHOD="POST" ENCTYPE="multipart/form-data" OnSubmit="return ShowProgress();">
<TABLE BORDER="1" CELLSPACING="0" CELLPADDING="2">
<TR><TD BGCOLOR="#EEEEEE">
<INPUT TYPE="FILE" NAME="FILE1" SIZE="40" tabindex="1"></TD></TR>
<TR><TD BGCOLOR="#EEEEEE">
</TD></TR>
<TR><TD BGCOLOR="#FFFFFF">
<p align="center"><INPUT TYPE="submit" VALUE="Continuar"></TD></TR>
</TABLE>
</FORM>
</td>
</tr>
</table>
</div>
</body>
</html>