Accueil > Forum > > > > asp-php
asp-php
lundi 25 août 2008 à 08:15:03 |
asp-php

tity3
|
Bonjour!Je suis debutant en asp, j'ai un site ecrit en asp. J'aimerais le changer(traduire) en php. Serait il possible?Existe t'il un logiciel pour ca a part asp2php? Si oui vraiment je serais tres ravi de voir vos propos!!Merci. A titre d'exemple, voici un code a changer: <% Dim param1, find Dim pktema Dim oConn 'connection object Dim oRs 'recordSet object '--------------------------------------------------------- find=Request.QueryString("find") if find = "" then find=Request.form("find") param1=Request.QueryString("t") Set oConn = Server.CreateObject("ADODB.Connection") Set oRs = Server.CreateObject("ADODB.RecordSet") oConn.connectionString="Provider=SQLOLEDB.1;UID=login;PWD=password;database=base" oConn.Open oRs.CursorType = 2 oRs.ActiveConnection=oConn oRs.source ="DtServiceByTemaName " & param1 oRs.open
%>
<html> <head> <meta http-equiv="Content-Language" content="ru"> <META name="ROBOTS" content="all"> <meta http-equiv="keywords" name="keywords" content=""> <meta http-equiv="description" name="description" content=""> <TITLE></TITLE> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<script language="JavaScript"> <!-- function Validate() { if( form1.find.value.length < 3 ) { alert( "??????? ??????? ?????? ??? ??????" ); return; } form1.submit(); }
function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); // -->
function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; }
function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} }
function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && document.getElementById) x=document.getElementById(n); return x; }
function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-image: url(shapka/1_r1_c1.gif); background-repeat: repeat-x; } a { font-family: "Times New Roman", Times, serif; font-size: 14px; color: #4444D9; } td { font-family: Arial, Helvetica, sans-serif; font-size: 13px; } .style2 { font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #000000; } .style3 {font-family: Arial, Helvetica, sans-serif} .style6 { color: #FFFFFF; font-size: 7px; } .style7 {color: #666666} .style9 {color: #000000} .style10 { font-size: 16px; font-weight: bold; } --> </style> <script language="JavaScript" type="text/JavaScript"> <!--
function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } //--> </script> </head>
<body> <div align="center"> <form name="form1" method="post" action="findfirm.asp"> <table border="0" cellpadding="0" cellspacing="0" width="778"> <!-- fwtable fwsrc="Untitled" fwbase="1.gif" fwstyle="Dreamweaver" fwdocid = "1014121847" fwnested="0" --> <tr> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="36" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="20" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="63" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="98" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="33" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="51" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="93" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="36" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="21" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="88" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="13" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="21" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="25" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="1" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="19" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="35" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="125" height="1" border="0" alt=""></td> <td background="shapka/1_r5_c4.gif"><img src="shapka/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr> <td colspan="17" background="shapka/1_r5_c4.gif"><img name="n1_r1_c1" src="shapka/1_r5_c4.gif" width="10" height="13" border="0" alt=""></td> <td><img src="shapka/spacer.gif" width="1" height="13" border="0" alt=""></td> </tr> <tr> <td rowspan="4"> </td> <td colspan="3"> </td> <td rowspan="3"> </td> <td rowspan="2"><img name="n1_r2_c6" src="shapka/1_r2_c6.gif" width="51" height="65" border="0" alt=""></td> <td rowspan="2"> </td> <td rowspan="2" colspan="2"><img name="n1_r2_c8" src="shapka/1_r2_c8.gif" width="57" height="65" border="0" alt=""></td> <td rowspan="2"> </td> <td rowspan="2" colspan="2"><img name="n1_r2_c11" src="shapka/1_r2_c11.gif" width="34" height="65" border="0" alt=""></td> <td rowspan="2" colspan="3"> </td> <td rowspan="3" colspan="2"><div align="center"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100" height="100"> <param name="movie" value="banner.swf"> <param name="quality" value="high"> </object> </div></td> <td><img src="shapka/spacer.gif" width="1" height="31" border="0" alt=""></td> </tr> <tr> <td rowspan="3" colspan="2"><a href="default.php"><img src="shapka/1_r3_c2.gif" alt="" name="n1_r3_c2" width="83" height="180" border="0"></a></td> <td rowspan="2"><a href="default.php"><img name="n1_r3_c4" src="shapka/1_r3_c4.gif" width="98" height="108" border="0" alt=""></a></td> <td><img src="shapka/spacer.gif" width="1" height="34" border="0" alt=""></td> </tr> <tr> <td colspan="2" valign="top"><div align="left"><a href="http://www.map.tver.ru">????? ????? <br> ? ???????? ???????</a></div></td> <td colspan="3" valign="top"><div align="left"><a href="about.php"></a></div></td> <td><img src="shapka/spacer.gif" width="1" height="74" border="0" alt=""></td> </tr> <tr> <td colspan="11" background="shapka/1_r5_c4.gif"><div align="center"> <table width="394" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="179"><span class="style2">??????? ???????? ?????:</span><span class="style9"> </span> </td> <td width="85"> <div align="left"> <input name="find" value="<%=find%>"> </div></td> <td width="86"><div align="right"><A href="javascript:Validate()"><img name="Image43" border="0" src="shapka/kno.gif" width="55" height="22"></a></div></td> </tr> </table> </div></td> <td colspan="2" rowspan="2" valign="bottom"><img name="n1_r5_c15" src="shapka/1_r5_c15.gif" border="0" alt=""></td> <td rowspan="3"> <p align="center"> <a href="zayavka_besplatn.php" class="style7">??????????? ? ???????????</a> </p> <p align="center"><a href="dop_inform.php" class="style7">???????? ??????????</a></p> <p align="center"><a href="reklama.php" class="style7"> ??????? ? ???????????</a></p></td> <td><img src="shapka/spacer.gif" width="1" height="72" border="0" alt=""></td> </tr> <tr> <td colspan="11" rowspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="bottom"><div align="left" class="style7"></div></td> <td><div align="right" class="style7"></div></td> </tr> </table></td> <td colspan="3"><div align="right"><img name="n1_r6_c12" src="shapka/1_r6_c12.gif" border="0" alt=""></div></td> <td><img src="shapka/spacer.gif" width="1" height="54" border="0" alt=""></td> </tr>
<tr> <td colspan="5"> </td> <td><img src="shapka/spacer.gif" width="1" height="27" border="0" alt=""></td> </tr> <tr> <td colspan="17"><p><img src="shapka/spacer.gif" width="778" height="1" border="0" alt=""></p> <p><img name="n1_r8_c1" src="shapka/spacer.gif" width="56" height="1" border="0" alt=""></p></td> <td><img src="shapka/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <!-- <tr> <td align=center colspan=14><a href="http://www.auto-tver.ru"><img src="images/at468x60.gif" width="468" height="60" border="0" alt=""></a><br> </td> </tr> -->
</table> <table width="680" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="675" valign="top"> <table width="100%" cellspacing="0" cellpadding="5" align="center"> <tr bgcolor="#cccccc"> <td valign="top" height="4"> <IMG height=1 src="images/ru.gif" width=665><br> <b>???????: <%=param1%></b> </td> </tr> <tr> <td width="33%" bgcolor="#eeeeee" valign="top"><b>??????????:</b> </td> </tr> </table> <table width="100%">*---* <% dim tempvalue tempvalue=1 response.write("hmm") while not oRs.EOF response.write("???") if tempvalue=1 then tempvalue=2 response.write("<tr bgcolor=#FFFFEE>") else tempvalue=1 response.write("<tr bgcolor=#FFFFFF>") end IF%> <TD> <a href=firms.asp?s="<%=oRs("pk_service")%>"> <% Response.Write(oRs("s_name") & " (" & oRs("s_num") & ")")%> </TD></TR> <%oRs.moveNext wEnd %>*...* </TABLE> <%oRs.close%> <%OConn.close%> </td> <td width="36" ></td> <td width="127" height="10" valign="top"> <table width="100%" align="center" cellpadding="10" cellspacing="0" border="0"> <tr> <td valign="top"> <p> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="160" height="160"> <param name="movie" value="trasko160.swf"> <param name="quality" value="high"> <embed src="trasko160.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="160" height="160"></embed> </object> </p> <p> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="160" height="400"> <param name="movie" value="banner2.swf"> <param name="quality" value="high"> <embed src="banner2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="160" height="400"></embed> </object> </p> </td> </tr> </table>
</td> </tr> </table> </form> <br> <hr width="774" size="1"> <br> <p> </p> </div> <!--Rating@Mail.ru COUNTEr--><script language="JavaScript" type="text/javascript"><!-- d=document;var a='';a+=';r='+escape(d.referrer) js=10//--></script><script language="JavaScript1.1" type="text/javascript"><!-- a+=';j='+navigator.javaEnabled() js=11//--></script><script language="JavaScript1.2" type="text/javascript"><!-- s=screen;a+=';s='+s.width+'*'+s.height a+=';d='+(s.colorDepth?s.colorDepth:s.pixelDepth) js=12//--></script><script language="JavaScript1.3" type="text/javascript"><!-- js=13//--></script><script language="JavaScript" type="text/javascript"><!-- d.write('<a href="http://top.mail.ru/jump?from=1156749"'+ ' target=_top><img src="http://d6.ca.b1.a1.top.list.ru/counter'+ '?id=1156749;t=105;js='+js+a+';rand='+Math.random()+ '" alt="???????@Mail.ru"'+' border=0 height=18 width=88/><\/a>') if(11<js)d.write('<'+'!-- ')//--></script><noscript><a target=_top href="http://top.mail.ru/jump?from=1156749"><img src="http://d6.ca.b1.a1.top.list.ru/counter?js=na;id=1156749;t=105" border=0 height=18 width=88 alt="???????@Mail.ru"/></a></noscript><script language="JavaScript" type="text/javascript"><!-- if(11<js)d.write('--'+'>')//--></script><!--/COUNTER--><br> <font face="Arial, Helvetica, sans-serif" size="1"> <span lang="en-us"> </span></font> </div>
</body> </html>
|
|
lundi 25 août 2008 à 11:06:25 |
Re : asp-php

nicomilville
|
Salut, Pour les logiciel qui traduise, je crois qu'il y en a sur code source tools... Le code que tu nous a donné est inutile, on sais ce que c'est de l'ASP... Voila, je t'ai donné une piste, a toi de l'exploiter... a++ Si la réponse vous convient, pensez : Réponse acceptée ! 
|
|
lundi 25 août 2008 à 11:11:38 |
Re : asp-php

tity3
|
Bonjour!Merci de ta rep. mais j'ai dit que je suis debutant, et j'airais si qlq'un saurait traduire je serais tres content. quant au logiciel, il ya asp2php qui donne des bouts de code insenses.Merci quand mme !
|
|
lundi 25 août 2008 à 11:18:23 |
Re : asp-php

nicomilville
|
De rien, Ce n'est pas parce que tu es débutant que tu ne sais pas rentré un morceau de code dans un textarea et choisir un langage dans un select... Faut pas se foutre du monde non plus... a++ Si la réponse vous convient, pensez : Réponse acceptée ! 
|
|
Cette discussion est classée dans : font, document, mm, nbsp, if
Répondre à ce message
Sujets en rapport avec ce message
Captcha sans image. Comment l'intégrer? [ par Davidoux94 ]
Bonjour à tous ! Je viens vers vous pour avoir une réponse.J'ai un formulaire en ligne, en PHP, et depuis quelques temps je reçois des validations de
pb: afficher et lire un pdf à partir d'un choix dans un menu déroulant [ par fredoann ]
Bonjour je souhaite à partir d'un menu déroulant "choix_avion" simplement lancer un fichier pdf (qu'il s'ouvre et que l'on puisse le lire);dans le men
mot de passe invisible dans le code source [ par bibiss1961 ]
Bonjour, J'ai fait 2 pages 1 pour écrire le mot de passe 1 pour afficher la page protégée voici les codes 1RE PAGE <!DOCTYPE html PUBLIC "-//W3
probleme d'opload d'image a partir d'un formulaire [ par cyrilherve ]
bonjour a tous ,j'ai cree un formulaire, a partir du quel je recupere des informations que je garde dans une base de donnee et je charge egalement une
id [ par Homeros ]
Bonjour, je demande une si vous pouvez. ce que je suis entraine de fair c'est crée un site pour recrutement, dans la page "annonnce.php" j'ai fait p
recharger la meme page en affichant un message [ par cyrilherve ]
salut a tous , voici le code de ma page 'corps_expedition', [CODE].Style6 {color: #000000; }.Style7 {font-size: 10px}.Sty
urgent! problémé authentification avec php [ par kingprog ]
Bonsoirje veux créer une page d'authentification avec php mais voila les problémes qu'ils me donnent:Warning: session_start() [function.session-start<
probléme authentification avec php/mysql [ par kingprog ]
Mon probléme c'est que quand j'entre le login et le mot de passe qui existe déja dans la base la page se redirige toujours vers la page d'erreur et p
compteur de vie [ par jujulagor ]
Salut les spécialistes,Je débute ds la programmation et j'ai besoin de vos talents.Voila le souci, pour la naissance de mon fils j'ai crée un site et
accès restreint à certains membres [ par killtroop ]
Tout d'abord bonjour à tous! Voilà mon petit soucis: j'aimerai que certaines pages ne soient accessibles qu'à certains membres (je précise, il y aura
Livres en rapport
|
Derniers Blogs
[WP7] DYNAMICALLY CHANGE STARTUP PAGE[WP7] DYNAMICALLY CHANGE STARTUP PAGE par KooKiz
Let's say that you want to allow the user to customize the startup page of your application. You can easily change the startup page by editing the 'NavigationPage' attribute in the manifest file. But the manifest cannot be modified once the applicatio...
Cliquez pour lire la suite de l'article par KooKiz SESSION SILVERLIGHT 5 3D : SLIDES ET DEMOSSESSION SILVERLIGHT 5 3D : SLIDES ET DEMOS par Groc
Durant les techdays, j'ai eu le plaisir d'animer une session sur Silverlight 5 et la 3D avec Simon Ferquel. Comme promis, voici nos slides et mes démos (celles avec le viper BSG) ici et là. Pour mémoire, les démos utilisent toutes le viper BSG...
Cliquez pour lire la suite de l'article par Groc [TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES[TECHDAYS 2012] SESSION WEBMATRIX 2 : LE COUTEAU SUISSE GRATUIT POUR VOS DéVELOPPEMENTS WEB - SLIDES par gpommier
Suite à la session que j'ai présenté sur WebMatrix 2, vous pouvez trouver les slides ici, ainsi que les démos en packages nuget : démos1 et démos2 J'en profite pour remercier chaleureusement tous ceux qui sont venus très nombreux à cette sess...
Cliquez pour lire la suite de l'article par gpommier [SHAREPOINT] LES SESSIONS TECHDAYS 2012.[SHAREPOINT] LES SESSIONS TECHDAYS 2012. par Patrick Guimonet
Voici donc pour ceux qui n'ont pas pu venir, ou ceux qui n'ont pas pu toutes les suivre la liste des sessions SharePoint aux TechDays 2012, que je mettrais à jour dès que les liens des vidéo seront disponibles. Ou ici : http...
Cliquez pour lire la suite de l'article par Patrick Guimonet TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3TECHDAYS PARIS 2012 : SESSION PLEINIèRE JOUR 3 par ROMELARD Fabrice
Speaker: Bernard Ourghanlian Cette session est comme chaque jour transmise en live par BrainSonic, et j'ai donc suivi cette troisième pleinière par ce moyen sur mon iPad . Elle est dédiée comme chaque année à la mise en perspective de l'é...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Forum
RE : SONDAGE..RE : SONDAGE.. par phpAnonyme
Cliquez pour lire la suite par phpAnonyme RE : SONDAGE..RE : SONDAGE.. par TychoBrahe
Cliquez pour lire la suite par TychoBrahe
Logiciels
Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning
|