| Current File : C:/Inetpub/vhosts/derecha3kmotor.com/httpdocs/2019/control/presubirfotos.asp |
<%
if Session("autadmin")=true or Session("autprensa")=true then
else
Response.Status="401 Prohibido"
Response.End
end if
bloger=session("bloger")
usuario=session("usuario")
entrada=request.form("id")
if entrada="" then
entrada=request.querystring("id")
else
end if
' LEO TITULAR QUE CORRESPONDE AL COMENTARIO
conexion="PROVIDER=SQLOLEDB;DATA SOURCE=147.135.183.197;UID=admind3km;PWD=KyoshoChurri6791;DATABASE=derecha3kmotor"
tabla="entradas"
' CONSULTO ENTRADA
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open(conexion)
sSQL="Select * From " & tabla & " where id='" & entrada & "'"
set RS = Conn.Execute(sSQL)
titular = rs("titular")
conn.close
%>
<HTML>
<head>
<%
Set UploadProgress = Server.CreateObject("Persits.UploadProgress")
PID = "PID=" & UploadProgress.CreateProgressID()
barref = "framebar.asp?to=10&" & PID
%>
<SCRIPT LANGUAGE="JavaScript">
function ShowProgress()
{
strAppVersion = navigator.appVersion;
if (document.subirfotos.FILE1.value != "" || document.subirfotos.FILE2.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">
<H1 align="center"><i><font size="3" face="Trebuchet MS" color="#003399">Subir
Fotograf?s del art?ulo:</font></i></H1>
<p align="center"><b><i><u><font face="Trebuchet MS" size="4" color="#003399"><%=titular%></font></u></i></b></p>
<FORM name="subirfotos" METHOD="POST" ENCTYPE="multipart/form-data" ACTION="subirfotos.asp?<% = PID %>&entrada=<%=entrada%>" OnSubmit="return ShowProgress();">
<p align="center">
<font face="Trebuchet MS" size="2" color="#003399">Fotograf? Principal
(obligatoria):</font><br>
<INPUT TYPE="FILE" NAME="FILE1" SIZE="50" style="font-family: Trebuchet MS; font-size: 10pt; color: #003399; background-color: #FFFFFF" tabindex="1"></p>
<p align="center">
</p>
<p align="center">
<font face="Trebuchet MS" size="2" color="#003399">Fotograf? Interior
(opcional):</font><br>
<INPUT TYPE="FILE" NAME="FILE2" SIZE="50" style="font-family: Trebuchet MS; font-size: 10pt; color: #003399; background-color: #FFFFFF" tabindex="2"></p>
<p align="center">
<BR>
<br>
<INPUT TYPE="submit" VALUE="Subir Fotograf?" tabindex="3" style="font-family: Trebuchet MS; font-size: 10pt; color: #FFFFFF; font-style: italic; font-weight: bold; border: 1px solid #FFFFFF; background-color: #003399">
</p>
</FORM>
</BODY>
</HTML>