← Back
Editing: param_b.php
<?php define ('EMAIL_STR', 'info@poderedelpriorato.it'); define ('NOME_STR', 'Podere del Priorato'); $EMAIL_STR = array (1=>"info@poderedelpriorato.it", 2=>"info@poderedelpriorato.it", 3=>"info@poderedelpriorato.it", 4=>"info@poderedelpriorato.it", 11=>"info@poderedelpriorato.it", 12=>"info@poderedelpriorato.it", "opa"=>"info@poderedelpriorato.it", "emc"=>"info@poderedelpriorato.it"); $FAX_CONTR = ""; $firma = "<p><b>Az.agr. Federica Bertoni<br />Strada del Priorato - 58010 Albinia (GR)<br />Web www.poderedelpriorato.it</p>\n"; $isStag = "n"; $prevOnline = "s"; # flag per fare preventivi on line $pagamCC = "y"; # flag per fare pagamenti on line //$prevOnline = $_REQUEST['prev']; $verifDisp = "s"; # flag per verificare la disponiblita' delle strutture $dataNuContr = date ("Y")."-01-01"; # data di inizio per i nuovi contratti nel sistema $dataScadl = "2019-12-31"; $idCCamp = 32944; # id del contratto per segnare gli extra visitatori $oreTurni = array ('00:00:00', '14:00:00', '23:59:59'); $arTurni = array (1=>'Mattina', 2=>'Pomeriggio'); $etaBamb0 = 9; $etaBamb = "(3/9 ".ANNI_COMP.")"; $etaBamb2 = "(0/9 ".ANNI_COMP.")"; $etaNeo = "(0/2 ".ANNI_COMP.")"; $tipoCane = array (); // (30); # valori presi da $NOMI_B[1] o [2] $tipoAnim = array (); $tipoStrutt1 = array (0=>'', 1=>$NOMI_B[1][3], 2=>$NOMI_B[1][5], 3=>$NOMI_B[1][6]); $tipoStrutt1_it = array (0=>'', 1=>$NOMI_B_IT[1][3], 2=>$NOMI_B_IT[1][5], 3=>$NOMI_B_IT[1][6]); $tipoStrutt12 = array (0=>'', 1=>$NOMI_B[1][3], 4=>$NOMI_B[1][20], 5=>$NOMI_B[1][21]); $tipoStrutt12_it = array (0=>'', 1=>$NOMI_B_IT[1][3], 4=>$NOMI_B_IT[1][20], 5=>$NOMI_B_IT[1][21]); $tipoStrutt13 = array (0=>'', 4=>$NOMI_B[1][20], 5=>$NOMI_B[1][21]); $tipoStrutt13_it = array (0=>'', 4=>$NOMI_B_IT[1][20], 5=>$NOMI_B_IT[1][21]); $carattStrutt1 = array (0=>'', 1=>'2x2/3x3', 2=>'3x3/4x4', 3=>'4x4/5x5', 4=>'5x5/6x6', 5=>OLTRE.' 6x6'); $carattStrutt1_it = array (0=>'', 1=>'2x2/3x3', 2=>'3x3/4x4', 3=>'4x4/5x5', 4=>'5x5/6x6', 5=>'oltre 6x6'); $tipoStrutt0 = $_GET['tp'] == 1 ? $tipoStrutt1 : $null; $tipoContrAr = array (1=>'CLI'); $tipoAr = array (1=>'AP', 2=>'CD', 3=>'CM', 4=>'CMS'); $percCap = array (1=>30, 2=>0, 3=>0, 4=>20, 5=>20); # percentuale importo caparre $strTipoAr = array (1=>21, 2=>22, 3=>23, 4=>24); # conversione da tipo a tipo struttura $tipoTablAr = array (1=>'AP', 2=>'CD', 3=>'CM', 4=>'CMS'); # tipi di strutture per cui serve tableau $tabl1SuddAr = array (''=>''); # serve per eventuali suddivisioni $tipoArx = array (1=>'Appartamento', 2=>'Doppia prato giardino', 3=>'Matrimoniale panoramica campagna', 4=>'Matrimoniale superior'); $tipoArx_it = $tipoArx; $tipoScontoAr = array (0=>'', 1=>'percent.', 2=>'euro', 3=>'omaggio'); $scadStato = array (2=>7); # giorni default per scadenza stato se non risposto $areeContr = array ('ex', 'fi', 'dc'); # aree da far apparire nella pagine contratto # listini.tipo - prezzi.tipologia - prezzi.incluso x quantita' $listSpiagg1 = array (0=>'', '6-3-19'=>$NOMI_B[6][3]." ".$TIPO_PREZZI_B[6][19], '6-3-40'=>$NOMI_B[6][3]." ".$TIPO_PREZZI_B[6][40], '6-3-61'=>$NOMI_B[6][3]." ".$TIPO_PREZZI_B[6][61]); # prezzi.incluso nel listino $perSpiagg = array (19, 49, 61); $listExtra2 = array ( 1=>array (0=>'', 7=>SI), 4=>array (10=>FINALE)); # uguale all'altra coi nomi estesi $listExtra2e = $listExtra2; # uguale alla prima in italiano $listExtra2_it = array ( 1=>array (0=>'', 7=>'si'), 4=>array (10=>'finale')); $tagExtra2 = array (1=>AFFITTO_LETTO_BAGNO, 4=>PULIZIA); $tagExtra2_it = array (1=>'Cambio letto', 4=>'Pulizia'); # relazione trra $listExtra2 e date ("N") per trovare i giorni esatti di pulizia $ggExtra2 = array (0=>array (''), 1=>array ('',3), 2=>array ('',1,3), 3=>array('',6), 4=>array ('',6,3), 5=>array ('',6,1,3), 6=>array ('',1,2,3,4,5,7), 7=>array ('',1,2,3,4,5,6,7)); $listConosc = array (1=>ALTRO, 2=>INTERNET, 3=>PASSAPAROLA, 4=>CLIENTE); # NB non funziona mettendoli dentro lan_arr $arGiorni = array (0=>DOM, 1=>LUN, 2=>MAR, 3=>MER, 4=>GIO, 5=>VEN, 6=>SAB); $arMesi = array (0=>'', '01'=>GENM, '02'=>FEBM, '03'=>MARM, '04'=>APRM, '05'=>MAGM, '06'=>GIUM, '07'=>LUGM, '08'=>AGOM, '09'=>SETM, '10'=>OTTM, '11'=>NOVM, '12'=>DICM); $arMesi_it = array (0=>'', '01'=>'gen', '02'=>'feb', '03'=>'mar', '04'=>'apr', '05'=>'mag', '06'=>'giu', '07'=>'lug', '08'=>'ago', '09'=>'set', '10'=>'ott', '11'=>'nov', '12'=>'dic'); $arMesiC = $arMesi; $an = date("Y"); $arAnni = array ($an=>$an, ($an+1)=>($an+1)); # se viene da contratto o da gestionale if ($az == "new") $aDi = 0; else $aDi = 17; for ($an=date ("Y")-$aDi; $an>date ("Y")-110; $an--) $selAnniNasc.= "<option value=\"".$an."\">".$an."</option>"; $arSesso = array (1=>MASCH, 2=>FEMM); $listDocum = array (0=>'', 1=>CARTA_ID, 2=>PATENTE, 3=>PASSAPORTO, 4=>CARTA_ID_ELE, 5=>CERTIF_ID, 6=>PATENTE_NAU, 7=>PASSAP_SERV, 8=>PASSAP_DIPLOM); $tipoPers = array (1=>'intestatario', 2=>'intest.non pr.', 3=>'equipaggio', 4=>'ospite', 5=>'visitatore'); $statoPers = array (-2=>'non gradito', -1=>'da valutare', 0=>'cliente', 1=>'cliente pag.'); $arAnniN = array (''); for ($an=date ("Y"); $an>date ("Y")-110; $an--) $selAnni.= "<option value=\"".$an."\">".$an."</option>"; # vari stati del contratto per muovibili e fissi $statoAr = array (-2=>'Contratto disdetto', -1=>'Contratto scart/scad', 0=>'Scartata/scaduta', 1=>'Richiesta preventivo', 2=>'Preventivo inviato', 3=>'Contratto firmato', 4=>'Caparra richiesta', 5=>'Caparra versata', 6=>'Voucher inviato', 7=>'Check-in', 8=>'Check-out'); $statoFAr = array (-2=>'Contratto disdetto', -1=>'Contratto scart/scad', 0=>'Scartata/scaduta', 11=>'Richiesta preventivo', 12=>'Preventivo inviato', 13=>'Contratto firmato', 14=>'Caparra richiesta', 15=>'Caparra versata', 16=>'Voucher inviato', 17=>'Check-in', 18=>'Check-out'); # parametri per tableau $coloriSt = array (2=>'#3DEB3D', 3=>'#FFEE99', 4=>'#AA88EE', 5=>'#AA0088', 6=>'#FF8080', 7=>'#FF0000', 8=>'#CCCCCC'); $coloriStF = "#FFD320"; $coloriPer = array (13=>'#00FF00', 14=>'#FFFF00', 15=>'#FF950E'); $lettiAr = array ('', '1m', '1m+1d', '2pm', '1m+1dm'); $fumoAr = array ('ind', 'nf', 'f'); $statoStrutt = array (-1=>'guasto', 0=>'chiuso', 1=>'dispon.'); $metodiPag = array (2=>BONIF_BANCARIO); $metodiPagLoco = array (2=>BONIF_BANCARIO, 3=>CARTA_CREDITO, 5=>CONTANTI, 6=>ASSEGNO); $companyInfo = "<p align=\"left\"><b>Ragione sociale:</b> Cooperativa \"Tempo Libero\" scarl<br /><b>Sede Legale:</b> Via Papa Giovanni XXIII, 45 - 58100 GROSSETO (GR)<br /><b>Registro Imprese:</b> Grosseto - <b>REA:</b> <br /><b>Codice Fiscale e P.IVA:</b> n.<br /><b>Capitale Sociale:</b> Euro i.v.<br /><b>Tipo società:</b> </p>"; # email di cortesia per preventivi in scadenza $emailCortesia = array ("it"=>"Gentile ".$row->nome." ".$row->cognome.", mi preme ricordarLe che il preventivo inoltratoLe relativo alla Sua richiesta del ".date2data ($row->data_inserim)." scade domani alle ore 00.00. Qualora voglia dare corso alla prenotazione si ricordi, entro tale orario, di compilare on-line il contratto, stamparlo ed inoltrarcelo via fax seguendo le istruzioni ivi riportate. In caso contrario decadra' tutto automaticamente senza alcun impegno reciproco. Faccio presente che potra', comunque ed in qualsiasi altro momento (fatta salva la nostra eventuale disponibilita'), inoltraci una nuova richiesta. Resto a Sua disposizione per ogni eventuale ulteriore richiesta, anche telefonica, dal lunedì al venerdì dalle ore 08,30 alle 17,00. Cordiali saluti Amministrazione ".NOME_STR, "en"=>"Dear ".$row->nome." ".$row->cognome.", I would like to remember you that the cost estimate we've sent you related to your request of ".date2data ($row->data_inserim)." expires tomorrow at midnight. In case that you would like to book, please remember to book before midnight. In order to book definitely, please fill out the online booking contract, print it and send it by fax, following the instructions therein. In the contrary case the cost estimate will automatically expire without any reciprocal engagement. However, you send us another availability request to which we will answer you then according to our availability with a new cost estimate. For any further request, also by phone, I will be at your disposal from Monday to Friday, from 8.30 a.m. until 5 p.m. Best Regards Amministrazione ".NOME_STR, "de"=>"Dear ".$row->nome." ".$row->cognome.", I would like to remember you that the cost estimate we've sent you related to your request of ".date2data ($row->data_inserim)." expires tomorrow at midnight. In case that you would like to book, please remember to book before midnight. In order to book definitely, please fill out the online booking contract, print it and send it by fax, following the instructions therein. In the contrary case the cost estimate will automatically expire without any reciprocal engagement. However, you send us another availability request to which we will answer you then according to our availability with a new cost estimate. For any further request, also by phone, I will be at your disposal from Monday to Friday, from 8.30 a.m. until 5 p.m. Best Regards Amministrazione ".NOME_STR); ?>
Save File
Cancel