← Back
Editing: testacoda.php
<?php $perc = substr ($_SERVER['DOCUMENT_ROOT'], 0, strrpos($_SERVER['DOCUMENT_ROOT'], '/')+1); $lan = $_REQUEST['lan']; $nome_it = $_POST['nome_it']; $nome_en = $_POST['nome_en']; $nome_de = $_POST['nome_de']; $nome_fr = $_POST['nome_fr']; $nome_es = $_POST['nome_es']; $nome_ne = $_POST['nome_ne']; $nome_sv = $_POST['nome_sv']; $nome_hu = $_POST['nome_hu']; $titolo_it = $_POST['titolo_it']; $titolo_en = $_POST['titolo_en']; $titolo_de = $_POST['titolo_de']; $titolo_fr = $_POST['titolo_fr']; $titolo_es = $_POST['titolo_es']; $titolo_ne = $_POST['titolo_ne']; $titolo_sv = $_POST['titolo_sv']; $titolo_hu = $_POST['titolo_hu']; $testo_it = $_POST['testo_it']; $testo_en = $_POST['testo_en']; $testo_de = $_POST['testo_de']; $testo_fr = $_POST['testo_fr']; $testo_es = $_POST['testo_es']; $testo_ne = $_POST['testo_ne']; $testo_sv = $_POST['testo_sv']; $testo_hu = $_POST['testo_hu']; $sigLng = array ('it', 'en', 'de', 'fr', 'es', 'ne', 'sv', 'hu'); $colpari = "F0F0FF"; $coldisp = "D0D0FF"; $elenco = ""; $lan = "it"; $valop = "ds"; $nomiLng = array ('it'=>'italiano', 'en'=>'inglese', 'de'=>'tedesco', 'fr'=>'francese', 'es'=>'spagnolo', 'ne'=>'olandese', 'sv'=>'svedese', 'hu'=>'ungherese'); $mesi = array ('', 'gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre', 'gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'); $gMesi = array(1=>31, 2=>28, 3=>31, 4=>30, 5=>31, 6=>30, 7=>31, 8=>31, 9=>30, 10=>31, 11=>30, 12=>31, 13=>31, 14=>28, 15=>31, 16=>30, 17=>31, 18=>30, 19=>31, 20=>31, 21=>30, 22=>31, 23=>30, 24=>31); $linea = "<tr><td bgcolor=\"black\" height=\"3\"></td></tr>"; $linea2 = "<tr><td bgcolor=\"black\" height=\"3\" colspan=\" 2\"></td></tr>"; $noMod = "<input type=\"button\" value=\"Annulla mod.\" onclick=\"javascript:document.location='".$_SERVER['PHP_SELF']."$noModPar'\" />"; require_once ("class.php"); $az = $_REQUEST['az']; $pag = $_REQUEST['pag']; $lim = $_REQUEST['lim']; require ($dominio."/param_b.php"); define ('ID_UTENTE', $id_utente); define ('DIR_STR', $_SESSION['perc_strutt']); $deltaT = 3600*2; # EX-ore di differenza tra UTC e CEST $oggi = date ("Y-m-d", time()+$deltaT); $adesso = date ("Y-m-d H:i", time()+$deltaT); $ora = date ("H:i", time()+$deltaT); $ieri = date ("Y-m-d", time()-(3600*24)+$deltaT); $docFiscAr = array (1=>'Doc. Annullato', 2=>'Ricevuta fiscale', 3=>'Fattura', 4=>'Ricevuta fiscale', 5=>'Fattura', 6=>'Tassa di soggiorno'); $testaQuery = new doQuery (); if ($_REQUEST['ppp'] == "y") { $id_utente = 23; $id_oper = 29; $lingue = "it"; $dominio = "alroseto.it"; } $testa = "<html><head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"> <title>".$ptitolo." - Smart E-Booking, il sistema completo e avanzato per il booking on line</title> <meta name=\"robots\" content=\"noindex,nofollow\"> <link rel=\"stylesheet\" type=\"text/css\" href=\"nav-h.css\" /> <link rel=\"stylesheet\" type=\"text/css\" href=\"slimmenu/dist/css/slimmenu.min.css\" /> <link rel=\"stylesheet\" type=\"text/css\" href=\"".$dominio."/custom.css\" /> <style type=\"text/css\"> body { margin: 0; padding: 0; color: #333; text-align: center; font-family: Arial, Helvetica, sans-serif; } td { font-family: Arial, Helvetica, sans-serif; } a { color: #600; text-decoration: none; } a:hover { background: #C0B0D0; color: #000; text-decoration: none; } .Stile5, .Stile5 a{ color: #FFF; } .suggBox { position: relative; left: 5px; margin: 0px 0px 0px 0px; width: 200px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border: 1px solid #999; background-color: #fff; } .suggList { margin: 0px; padding: 0px; } .suggList li { margin: 0px 0px 0px 5px; padding: 0px; cursor: pointer; list-style-type: none; } .suggList li:hover { color: #fff; background-color: #333; font-weight: bold; } .formcon { font-size: 9px; } .oggi { background-color: #003399; color: #FFFFFF; font-weight: bold; } .oggi a { color: #FFFFFF; } .calend td {border-right: 1px solid #ffffff; } </style> <!--[if gte IE 5.5]> <script language=\"javascript\" src=\"nav-h.js\" type=\"text/JavaScript\"></script> <![endif]--> <script language=\"javascript\"> <!-- function PopIt(label){ var s1 = \"<html><body topmargin=0 leftmargin=0><center><img src='\"+ label +\"'></body></html>\" popup = window.open(\"\",\"popDialog\",\"height=273,width=360\") popup.document.write(s1) popup.document.close() } function confDel(id) { if (confirm(\"Vuoi davvero cancellare la riga? Premi ok per confermare.\")) document.location='".$_SERVER['PHP_SELF']."?id='+ id +'&az=canc'; } function confWipe(id,lan) { if (confirm(\"Vuoi davvero cancellare il testo? Premi ok per confermare.\")) document.location='".$_SERVER['PHP_SELF']."?id='+ id +'&az=canc&lan='+ lan; } function checkDate() { var ff = document.form1; if ( (ff.gg.value == '31' && (ff.mm.value == '2' || ff.mm.value == '4' || ff.mm.value == '6' || ff.mm.value == '9' || ff.mm.value == '11' || ff.mm.value == '02' || ff.mm.value == '04' || ff.mm.value == '06' || ff.mm.value == '09')) || ((ff.mm.value == '2' || ff.mm.value == '02') && ff.gg.value == '30') ) alert ('ATTENZIONE: la data inserita non e\' valida!...'); } //--> </script>\n"; if ($noscr != "y") $testa.= "<script type=\"text/javascript\" src=\"js/jquery-1.11.3.min.js\"></script>\n"; $testa0 = "<html><head> <style type=\"text/css\"> body { margin: 0; padding: 0; background: #FFF; color: #333; text-align: center; } a { color: #600; text-decoration: none; } a:hover { background: #C0B0D0; color: #000; text-decoration: none; } .Stile5, .Stile5 a{ color: #FFF; } .suggBox { position: relative; left: 5px; margin: 0px 0px 0px 0px; width: 200px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border: 1px solid #999; background-color: #fff; } .suggList { margin: 0px; padding: 0px; } .suggList li { margin: 0px 0px 0px 5px; padding: 0px; cursor: pointer; list-style-type: none; } .suggList li:hover { color: #fff; background-color: #333; font-weight: bold; } </style> </head> <body text=\"#000000\" link=\"#000000\" bgcolor=\"#FFFFFF\">\n"; if ($html == "y") $testa.= "<script type=\"text/javascript\" src=\"tiny_mce.js\"></script> <script type=\"text/javascript\"> tinyMCE.init({ mode : \"textareas\", language : \"it\", plugins : \"safari,style,layer,table,save,advhr,advimage,advlink,inlinepopups,media, searchreplace,print,contextmenu,paste,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras\", theme : \"advanced\", theme_advanced_toolbar_location : \"top\", theme_advanced_toolbar_align : \"left\", theme_advanced_buttons1 : \"newdocument,save,|,bold,italic,underline,strikethrough,|,cut,copy,paste,pastetext,pasteword,forecolor,backcolor,formatselect,fontselect, fontsizeselect\", theme_advanced_buttons2 : \"search,replace,|, undo,redo,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,blockquote,|, link,unlink,nonbreaking,|,advhr,removeformat,visualaid,visualchars,|,charmap,cleanup,code,fullscreen,help\", theme_advanced_buttons3 : \"\", external_link_list_url : \"lists/link_list.js\", external_image_lists_url : \"lists/image_list.php\", media_external_list_url : \"lists/media_list.js\" }); </script>\n"; if ($ajCal == "y") { $testa.= "<link rel=\"stylesheet\" href=\"css/ui.all.css\" rel=\"stylesheet\" /> <script type=\"text/javascript\" src=\"js/jquery-1.11.3.min.js\"></script> <script type=\"text/javascript\" src=\"js/jquery-ui.js\"></script> <script type=\"text/javascript\" src=\"js/ui.datepicker-it.js\"></script>\n"; $testa0.= "<link rel=\"stylesheet\" href=\"css/ui.all.css\" rel=\"stylesheet\" /> <script type=\"text/javascript\" src=\"js/jquery-1.11.3.min.js\"></script> <script type=\"text/javascript\" src=\"js/jquery-ui.js\"></script> <script type=\"text/javascript\" src=\"js/ui.datepicker-it.js\"></script>\n"; } $testa.= "</head> <body text=\"black\" link=\"black\" onload=\"".$jScript."\"> <a nane=\"top\"></a>"; # per posizionare il tableau list ($yo, $mo, $do) = explode ('-', $oggi); $posizT = mktime (0,0,0, $mo, $do+14, $yo); if ($id_oper == 9) $dominioT = "campeggiomaremmalmare.it"; else $dominioT = NOME_STR; if (ID_UTENTE > 100) { $backImg100 = "images/smart_booking_banner_1920x110.jpg"; $backImg = ">"; $tabHei = " height=\"100\""; $sStyle = "display: block; align: right;"; } else { $backImg = "images/barra-navigazione_inv.png\"> <span align=\"left\"><font size=\"4\" face=\"Arial\"> <b>SMART E-BOOKING</b> ".NOME_STR."</font></span>\n"; $sStyle = "display: inline; align: right;"; } if ($barra != "n") { if ($fixH == "y") $testa.= "<div id=\"head\">\n"; $testa.= "<table width=\"100%\" height=border=\"0\" background=\"".$backImg100."\" cellspacing=\"0\" class=\"tabslim\"> <tr".$tabHei."> <td colspan=\"10\" background=\"".$backImg." <span align=\"right\" style=\"".$sStyle." text-align: right; font-size: 15px;\"> <b>Ciao ".$nome_oper."</b> <span style=\"font-size: 12px;\">[<a href=\"logout.php\">esci</a> | <a href=\"https://www.smartmedia2000.it/booking/passw_ed.php\">cambia password</a>] <b>".$ora."</b></span></span> </td> </tr><tr> <td height=\"25\" colspan=\"10\" background=\"images/barra-navigazionepng\"> <table width=\"100%\" class=\"tabslim\"> <tr> <td> <ul id=\"navmenu-h\">\n"; # if (($id_utente == 12 || $id_utente > 100) && $menuShort != "y") $testa.= " <ul class=\"slimmenu\">\n"; else $testa.= " <ul id=\"navmenu-h\">\n"; require_once ($dominio."/testamenu.php"); $testa.= " </ul> </td> <td> </td> </tr> </table> </td> </tr> </table> <script src=\"slimmenu/dist/js/jquery.slimmenu.min.js\"></script> <script src=\"slimmenu/dist/js/jquery.easing.min.js\"></script> <script> $('.slimmenu').slimmenu( {\n"; if ($id_utente > 100) $testa.= " resizeWidth: '600',\n"; else $testa.= " resizeWidth: '1000',\n"; $testa.= " collapserTitle: 'Menù Principale', animSpeed: 'medium', indentChildren: true, childrenIndenter: '»' }); </script> \n"; if ($fixH == "y") $testa.= "</div>\n"; } $coda = "<div align=\"center\"><hr width=\"400\"><a href=\"#top\">Torna in alto</a></div><br /></body></html>"; # collegamento contratit persone per sql $c2p = "AND `contratti`.`id` = `presenze`.`id_contratto` AND `persone`.`id` = `presenze`.`id_persona`"; $wc2p = "`contratti`, `persone`, `presenze` WHERE `presenze`.`id_utente` = ".$id_utente." AND `contratti`.`id` = `presenze`.`id_contratto` AND `persone`.`id` = `presenze`.`id_persona`"; # stessa cosa fatta con inner join $ijc2p = "INNER JOIN `presenze` ON `presenze`.`id_utente` = ".$id_utente." INNER JOIN `contratti` ON `contratti`.`id` = `presenze`.`id_contratto` INNER JOIN `persone` ON `persone`.`id` = `presenze`.`id_persona`"; # inizio mezzo e fine tabella per maschera di aggiunta/modifica $iniTab = "<tr><td><table><tr bgcolor=\"#EEEEEE\">\n"; $mezTab = "</tr><tr bgcolor=\"#999999\">\n"; $finTab = "</tr></table></td></tr>\n"; # inizio e fine delle righe dal database libere pe ril colore $iniTabR = "<table><tr>"; $finTabR = "</tr></table>"; $id = $_REQUEST['id']; $az = $_REQUEST['az']; $op = $_REQUEST['op']; $st = $_REQUEST['st']; $pg = $_REQUEST['pg'] != "" ? $_REQUEST['pg'] : 1; $idC = $_REQUEST['idC']; $idF = $_REQUEST['idF']; $numeroC = $_REQUEST['numeroC']; $sistC = $_REQUEST['sistC']; $nomeC = $_REQUEST['nomeC']; $tp = $_REQUEST['tp'] ? $_REQUEST['tp'] : 1; $tpC = $_REQUEST['tpC'] ? $_REQUEST['tpC'] : 1; $backPres = "<input type=\"button\" value=\"Fine\" onclick=\"javascript:document.location='presenze_ed.php?tp=$tp&tpC=$tpC&st=$st&nomeC=$nomeC'\" />"; # array per completare le inserzioni con l'operatore $ioAr = array ('id_oper'=>$id_oper); $arOper = array (); # array degli operatori $rowsIo = $testaQuery->freeQuery ("SELECT `id`, `nome` FROM `operatori` WHERE `id_utente`=".$id_utente, 0); foreach ($rowsIo as $rowIo) { $arOper = $arOper + array ($rowIo->id=>$rowIo->nome); } if ($az == "ed") { $intesta = "Modifica"; $noMod = "<input type=\"button\" value=\"Annulla mod.\" onclick=\"javascript:document.location='".$_SERVER['PHP_SELF']."$noModPar'\" />"; } else $intesta = "Aggiungi"; if ($id != "" && $id_utente != 1) { $rowCtrl = $testaQuery->selectById (0); if ($rowCtrl->id_utente != $id_utente) header ("Location: logout.php"); } # determina la data di scadenza dei listini più vicina $sqlDsl = "SELECT DISTINCT MIN(`fine`) AS `fine0` FROM `stagioni` WHERE `id_utente` = ".$id_utente." AND `fine` >= '".date ("Y-m-d")."'"; $rowDsl = $testaQuery->freeQuery ($sqlDsl, 0); //$dataScadl = $rowDsl[0]->fine0; # metodi di pagamento $metodiPag0 = array (0=>'', 1=>"bollettino/bonifico postale", 2=>"bonifico bancario", 7=>'carta di credito', 8=>'bancomat', 4=>"paypal", 5=>"contanti", 6=>"assegno", 3=>"c.credito/bancomat"); # tipi di pagamento $tipiPagam = array (1=>'tatale', 2=>'caparra', 3=>'saldo', 4=>'acconto'); # stupidi obblighi di legge :## $disclaimer = "<p align=\"left\">________________________________________________________________________________<br />\nQuesta email, e i suoi eventuali allegati, contengono informazioni confidenziali e riservate. Se avete ricevuto questa comunicazione per errore non utilizzatene il contenuto, non portatelo a conoscenza di alcuno, eliminatela dalla vostra casella email e avvisate il mittente. E' da rilevare inoltre che l'attuale infrastruttura tecnologica non puo' garantire ne' l'autenticità del mittente, ne' tantomeno l'integrita' dei contenuti.</p>"; function colriga ($numriga) { # da il colore della riga global $colpari, $coldisp; $colore = fmod ($numriga, 2) ? $colpari : $coldisp; return $colore; } ?>
Save File
Cancel