Chirurgia endoscopică a hipofizei
"Standardul de aur" în chirurgia hipofizară îl reprezintă endoscopia transnazală transsfenoidală. Echipa NeuroHope este antrenată în unul din cele mai mari centre de chirurgie a hipofizei din Europa, Spitalul Foch din Paris, centrul în care a fost introdus pentru prima dată endoscopul în chirurgia transnazală a hipofizei, de către neurochirurgul francez Guiot. Pe lângă tumorile cu origine hipofizară, prin tehnicile endoscopice transnazale pot fi abordate numeroase alte patologii neurochirurgicale. www.neurohope.ro |
Ajutor la script
Last Updated: Sep 25 2016 17:21, Started by
sebyteo
, Sep 25 2016 11:27
·
0
#1
Posted 25 September 2016 - 11:27
Salut,
Am nevoie de ajutor pt scriptul de mai jos: Pagina trebuie sa trimita un mail cu coordonatele si date de identificare ale device-ului in momentul in care utilizatorul apasa pe buton. scrie si un cookie sa stie daca este prima data cand apasa sau nu. ideea e de a da un check in la inceput de tura si check out la sfarsit de tura. Am probleme cu gps-ul. pe unele device-uri merge ok, pe unele nu detecteaza gps-ul chiar daca este pornit. Dupa ce pornesti gps-ul detecteaza greu ca este pornit si tot da mesaj de eroare. ma poate ajuta cineva, va rog? // sunt super incepator in java/html/php <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <link href='http://netdna.bootst...otstrap.min.css' rel='stylesheet' type='text/css'> <link href='//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.2.0/css/datepicker.min.css' rel='stylesheet' type='text/css'> <link href='//cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/1.8/css/bootstrap-switch.css' rel='stylesheet' type='text/css'> <link href='http://davidstutz.gi...multiselect.css' rel='stylesheet' type='text/css'> <script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js' type='text/javascript'></script> <script src='//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.0/js/bootstrap.min.js' type='text/javascript'></script> <script src='//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.2.0/js/bootstrap-datepicker.min.js' type='text/javascript'></script> <script src='//cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/1.8/js/bootstrap-switch.min.js' type='text/javascript'></script> <script src='http://davidstutz.gi...-multiselect.js' type='text/javascript'></script> <style> .loading{ background-image : url('http://tetrisaz.com/...img/loading.gif'); background-size: 60px 60px; background-repeat:no-repeat; background-color: #4CAF50; width: 190px; height: 60px; text-align : left; padding-left : 65px; cursor:wait; } .init{ background-size: 60px 60px; background-repeat:no-repeat; background-color: #bce5ff; width: 150px; height: 40px; text-align : center; transition-duration: 0.7s; margin-left: 0em; margin-right: 0em; height:100px;width:150px } .init:hover { background-size: 60px 60px; background-repeat:no-repeat; background-color: #6cff9b; width: 150px; height: 40px; font-size: 101%; text-align : center; transition-duration: 0.7s; box-shadow: -6px 6px 6px #888888; margin-left: 2em; margin-right: 2em; border-top-right-radius: 3em 2em; border-bottom-right-radius: 3em 2em; height:100px;width:150px } </style> </head> <body> <br> <p style="background-color:lightgrey; color:green;font-size:120%;" align="center"><b>Te rog activeaza GPS-ul inainte de apasa pe buton.</b></p> <br><br> <p align="center">Numele tau: <input name="nume" type="text" maxlength="512" id="nume" required/></p> <p align="center" style=" color:red;font-size:110%;" id="demo"></p> <bR><bR><bR> <!--<button style="height:100px;width:150px" onclick="getLocation()">Localizeaza !</button> <input style="height:100px;width:150px" onclick="verifica(); change(); getLocation()" type="button" value="Localizeaza !" id="myButton"></input> --> <p align="center"><input type="submit" value="reset" id="res" onclick="window.location.href='http://www.website.ro/campanie/'; setCookie('username', '', 1);" ></p> <br> <!--buton........... !!! --> <p align="center"><input type="submit" value="check in !" id="myButton" class="init" onclick="verifica(); " ></p> <!--buton........... !!! --> <script> function setCookie(cname,cvalue,exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires=" + d.toGMTString(); document.cookie = cname+"="+cvalue+"; "+expires; } function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i<ca.length; i++) { var c = ca[i]; while (c.charAt(0)==' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } function checkCookie() { var user=getCookie("username"); if (user != "") { alert("Welcome again " + user); } else { user = prompt("Please enter your name:",""); if (user != "" && user != null) { setCookie("username", user, 30); } } } var user1=getCookie("username"); if (user1 != "") { // document.getElementById("res").style.visibility = "visible"; myButton.value = "check out"; document.getElementById("nume").value=user1; } document.getElementById("res").style.visibility = "hidden"; var x = document.getElementById("demo"); function verifica() { if (document.getElementById("nume").value =='') { alert("te rog completeaza numele"); x.innerHTML = "te rog completeaza numele."; document.getElementById("res").style.visibility = "visible"; //document.getElementById('myButton').setAttribute('class', 'init'); window.stop(); throw new Error("Something went badly wrong!"); } else { var userr = document.getElementById("nume").value; setCookie("username", userr, 1); change(); getLocation() if(myButton.value == "check out"){ myButton.value = "papa";setCookie('username', '', 1);} } var t = document.getElementById("nume").value; if (t == null || t == "") { alert("Name must be filled out"); return false; } } function change() { if (myButton.value=="check in !") myButton.value = "Astepta..."; // else myButton.value = "Multumesc !"; } if (myButton.value=="merge treaba ") document.getElementById("res").style.visibility = "visible"; // localizeaza...................................................................... function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); //setTimeout("window.location = 'http://www.website.r...ampanie/';", 1000); } else { x.innerHTML = "Geolocation is not supported by this browser."; } } function showPosition(position) { x.innerHTML = "Latitude: " + position.coords.latitude + "<br>Longitude: " + position.coords.longitude; //var acuratete = position.coords.accuracy; var isMobile = false; var mob = 'PC'; var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function() { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function() { return navigator.userAgent.match(/Opera Mini/i); }, Windows: function() { return navigator.userAgent.match(/IEMobile/i); }, any: function() { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); } }; if( isMobile.iOS() ) mob = 'ios'; if( isMobile.BlackBerry() ) mob = 'BlackBerry'; if( isMobile.Opera() ) mob = 'Opera'; if( isMobile.Android() ) mob = 'android'; if( isMobile.Windows() ) mob = 'Windows'; if( isMobile.any() ) {} else mob = 'pc'; //window.alert(document.getElementById('nume').value); window.location = "http://www.website.r...index.php?lat=" + position.coords.latitude + "&long="+position.coords.longitude + "&dev="+mob +"&nume="+document.getElementById('nume').value; } var watch =null; function success(position) { var lat = position.coords.latitude; var lon= position.coords.longitude; if (watch != null ) /*Need to take care .. as maybe there is no gps and user want it off so keep attempt 3 times or some kind a way out otherwise it will infinite loop */ { navigator.geolocation.clearWatch(watch); watch = null; } } function getLatLon() { var geolocOK = ("geolocation" in navigator); if ( geolocOK ) { var option = {enableHighAccuracy:true, maximumAge: 0,timeout:7000 }; watch = navigator.geolocation.watchPosition(success, fails, option); } else { //disable the current location? } } function fails() { alert("te rog activeaza gps-ul, apoi apasa 'reset' !"); x.innerHTML = "te rog activeaza gps-ul, apoi apasa 'reset' !"; document.getElementById("res").style.visibility = "visible"; } getLatLon(); </script> <?php $d1=$_GET['lat']; $nume=$_GET['nume']; $dev = $_GET['dev']; $d2 = $_GET['long']; $llink ="https://www.google.r.../".$d1.",".$d2; echo "<br>"; //echo "<a href='$llink'>Link</a>"; echo "<br>"; function trimite($l, $dev, $nume) { //echo " <br>...campanie trimisa !"; $ip = $_SERVER['REMOTE_ADDR']?$_SERVER['HTTP_X_FORWARDED_FOR']?:$_SERVER['HTTP_CLIENT_IP']); $dat= $_SERVER['HTTP_X_WAP_PROFILE']."\n".$_SERVER['HTTP_PROFILE']."\n".$_SERVER['HTTP_USER_AGENT']."\n"; $to='[email protected]; $subiect='localizare !'; $headers = "From: [email protected]\n"; $mesaj=$l."\n\nde pe: ".$dev."\n\n de la: ".$nume."\n\n de pe IP: ".$ip."\n\n despre device: ".$dat ; echo "<br>"; //echo "<a href='$l'>Link</a>"; mail($to,$subiect,$mesaj,$headers); echo "<br><br><br><a href='http://www.website.r...39;>RESET</a>"; ?> <script> //change(); myButton.value = "Multumesc !"; </script> <?php } if($d1 != "") trimite($llink, $dev, $nume); /* echo "<br><br><br><a href='http://www.website.r...k'>Descarca Aplicatia pentru ANDROID!</a>"; echo "<br><a href='http://www.website.r...a'>Descarca Aplicatia pentru iOS!</a>"; */ ?> </body> </html> Multumesc ! Edited by sebyteo, 25 September 2016 - 11:29. |
#2
Posted 25 September 2016 - 15:08
poti gasi freelanceri carpaci pe freelancer.com care sa iti citeasca mizeria de cod
|
#3
Posted 25 September 2016 - 17:21
Anunturi
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users