OP Yeni Üye
Teşekkür Sayısı: 0
38 mesaj
Kayıt Tarihi:Kayıt: Ağu 2009
slm arkadaşlar hazır script indirdim (asp).asp kullanmayı bilmiyorum sadece küçük düzenlemeler yapıyorum.scriptte bir program düzenleme bölümü var ama kaydet butonunu koymayı unutmuşlar.ben anlamadığım için yapamadım.bilen bi arkadaş yardım ederse çok makbule geçer. kod aşağıda daha ayrıntılı bakmak isteyen varsa aspindirde bahar download v2 var onu indirdim.
<% @Language=VBScript %>
<!-- #include file="parola.asp" -->
<!-- #include file="admin_ust.asp" -->
<%
Set Sur = Server.CreateObject("ADODB.Connection")
Sur.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("../db/prog.mdb")
id=Request.QueryString("id")
Set yeniasp = Server.CreateObject("ADODB.Recordset")
sor = "Select * from download where id="&id
yeniasp.Open sor,Sur,1,3
islem=Request.QueryString("islem")
if islem="duzenle" then
call duzenle
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" type="text/css" href="stil.css">
<title>Download Yönetimi Yönetici Bölümü</title>
</head>
<body>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="720">
<tr>
<td height="5"></td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="720">
<tr>
<td>
<form method="POST" action="aspduzenle.asp?id=<%=yeniasp("id")%>&islem=duzenle">
<input type="hidden" name="id" value="<%=yeniasp("id")%>">
<div align="center">
<table border="0" cellpadding="0" cellspacing="1" width="100%" bgcolor="#D1D1D1">
<tr>
<td bgcolor="#808080" height="20">
<p align="center"><b><font color="#FFFFFF">PROGRAM DÜZENLEME BÖLÜMÜ</font></b></td>
</tr>
</table>
</div>
<div align="center">
<table border="0" cellpadding="0" width="100%" bgcolor="#D1D1D1" cellspacing="1">
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Program
Adı :</td>
<td width="250" height="25" bgcolor="#EAEAEA"> <input type="text" name="script_adi" size="35" class="form" value="<%=yeniasp("script_adi")%>"></td>
</tr>
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Boyut
:</td>
<td width="250" height="25" bgcolor="#EAEAEA"> <input type="text" name="boyut" size="35" class="form" value="<%=yeniasp("boyut")%>"></td>
</tr>
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Dili
:</td>
<td width="250" height="25" bgcolor="#EAEAEA"> <input type="text" name="dil" size="35" class="form" value="<%=yeniasp("dil")%>"></td>
</tr>
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Versiyon
:</td>
<td width="250" height="25" bgcolor="#EAEAEA"> <input type="text" name="versiyon" size="35" class="form" value="<%=yeniasp("versiyon")%>"></td>
</tr>
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Platform
:</td>
<td width="250" height="25" bgcolor="#EAEAEA"> <input type="text" name="os" size="35" class="form" value="<%=yeniasp("os")%>"></td>
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Lisans
:</td>
<td width="250" height="25" bgcolor="#EAEAEA"> <input type="text" name="lisans" size="35" class="form" value="<%=yeniasp("lisans")%>"></td>
</tr>
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Ekleme
:</td>
<td width="250" height="25" bgcolor="#EAEAEA"> <input type="text" name="tarih" size="35" class="form" value="<%=yeniasp("tarih")%>"></td>
</tr>
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Ekleyen
:</td>
<td width="250" height="25" bgcolor="#EAEAEA"> <input type="text" name="ekleyen" size="35" class="form" value="<%=yeniasp("ekleyen")%>"></td>
</tr>
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Link
:</td>
<td width="250" height="25" bgcolor="#EAEAEA"> <input type="text" name="url" size="35" class="form" value="<%=yeniasp("url")%>"></td>
</tr>
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Açıklaması
:</td>
<td width="250" height="25" bgcolor="#EAEAEA">
<table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" bgcolor="#FFFFFF">
<tr>
<td width="70%">
<head>
<script language="Javascript1.2"><!-- // load htmlarea
_editor_url = ""; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate(tanim) { return false; }</scr'+'ipt>'); }
// -->r</script>
</head>
<textarea name="tanim" cols="47" rows="14" class="form"><%=yeniasp("tanim")%></textarea><font size="1" face="Verdana"><br>
<script language="JavaScript1.2" defer>
editor_generate('tanim');
</script>
</font></td>
</tr>
</table>
<script>
function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset" and "button"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset"||tempobj.type.toLowerCase()=="button")
//disable em
tempobj.disabled=true
}
}
}
</script>
</td>
</tr>
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Resim
:</td>
<td width="250" height="25" bgcolor="#EAEAEA"> <select name="resim" size="1">
<option value="<%=yeniasp("resim")%>">Kullanma</option>
<%
Set dir=server.createobject("scripting.filesystemobject" )
Set myfiles=dir.getfolder(Server.MapPath("../resim" ))
For Each filefound in myfiles.files
%>
<option value="resim/<%=filefound.name %>"><%=filefound.name %></option>
<%
Next
%>
</select></td>
</tr>
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Telif
:</td>
<td width="250" height="25" bgcolor="#EAEAEA"> <input type="text" name="telif" size="35" class="form" value="<%=yeniasp("telif")%>"></td>
</tr>
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Telif Url
:</td>
<td width="250" height="25" bgcolor="#EAEAEA"> <input type="text" name="telifurl" size="35" class="form" value="<%=yeniasp("telifurl")%>"></td>
</tr>
<tr>
<td width="150" align="right" height="25" bgcolor="#EAEAEA">Program Onayı</font></td>
:</b></font></td>
<