|
Server IP : 10.111.20.6 / Your IP : 216.73.217.121 Web Server : Apache System : Linux webm006.cluster111.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : edizioni ( 7252) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/edizioni/stampaeweb/../wordpress/../momentiweb/modules/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include("check.php");
?>
<head>
<link rel="stylesheet" href="css.css">
<?php
require_once('lettura_colori.php'); session_start(); $ope= $_SESSION['username'];
?>
<title>Nuovo Volume</title>
<style>
.div_form{
background-color:<?php echo $colori[$ope]['preventivo']; ?>;
}
.checkbox-round {
width: 1.1em;
height: 1.1em;
background-color: white;
border-radius: 50%;
vertical-align: middle;
border: 3px solid #fa0644;
appearance: none;
-webkit-appearance: none;
outline: none;
cursor: pointer;
}
.checkbox-round:checked {
background-color: red;
}
.campo_input, .campo_input2{
color:#fa0644;
font-size:14px;
font-family: Arial;
border: 3px solid #fa0644;
border-radius: 18px;
padding-left:5px;
font-weight:bold;
width:100%;
}
.campo_input2{
width:40%;
float:left;
}
.label{
color:#fa0644;
font-size:20px;
font-family: Arial;
font-weight:bold;
text-shadow: 1px 1px 1px #888;
}
.colonna_input{
width:59%;
}
.colonna_input2{
width:40%;
}
</style>
<!-- JQUERY DATE PICKER -->
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="js.js"></script>
<?php
include('funzioni_bis.php');
include('testa_easy.php');
$valori1=array("15x21 (A5)", "17x24 (A4)", "23x31 (Musicali)");
$data_odierna = date ("d/m/Y");
?>
<script>
function titolone(){
document.getElementById("titolo_pagina").innerHTML="Preventivo Nuovo Volume";
}
</script>
<script type="text/javascript">
function riempire(){
var a=document.getElementById("titolo");
var b=document.getElementById("autore");
var b1=document.getElementById("nome");
var c=document.getElementById("riempi");
var c1=document.getElementById("copie1");
var c2=document.getElementById("copie2");
var c3=document.getElementById("copie3");
var c4=document.getElementById("copie4");
var c5=document.getElementById("copie5");
var i1=document.getElementById("importo1");
var i2=document.getElementById("importo2");
var i3=document.getElementById("importo3");
var i4=document.getElementById("importo4");
var i5=document.getElementById("importo5");
var formato=document.getElementById("formato");
var pagine=document.getElementById("pagine");
var pagine1=document.getElementById("pagine1");
var grammi1=document.getElementById("grammi1");
var grammi2=document.getElementById("grammi2");
var ck=document.getElementById("ck").checked;
var ck1=document.getElementById("ck1").checked;
var ck2=document.getElementById("ck2").checked;
var ck3=document.getElementById("ck3").checked;
var ckpdf=document.getElementById("ckpdf").checked;
var ff;
ff=formato.value.substring(0, 5);
console.log(ckpdf);
var s;
s = "Gent.m";
if (ck3==true){
s+="a ";
}else{
s+="o ";
}
s+=b.value + " " +b1.value + ",\n";
s +="faccio seguito alla Sua richiesta e Le sottopongo il preventivo per la pubblicazione di un libro ";
if (ck==true){
s+=". Il lavoro comprende: ideazione grafica della copertina a partire da vs. files di testo e spartiti ";
if (ckpdf==true){
s+="in formato PDF ";
}
}else{
s+="";
}
s+="(rif. " + a.value + "); ";
s +="editing del testo da parte di 1 redattore della ns. casa editrice; fornitura di 1 opuscolo edito dalla ns. casa editrice con queste caratteristiche: formato " + ff +" cm ca, copertina stampata su un lato a colori su carta patinata " + grammi1.value +" gr/mq con plastificazione";
if (ck1==true){
s+=" e alette";
}else{
s+="";
}
s+=", rispettivamente " + pagine.value +" pagine interne stampate ";
if (ck2==true){
s+="in bianco e nero ";
}else{
s+="a colori ";
}
s+="su carta patinata " + grammi2.value +" gr/mq";
if (parseFloat(pagine1.value)>0){
s+=" e " + pagine1.value + " pagine consecutive stampate a colori sulla stessa carta";
}else{
s+="";
}
s+=", rilegato in brossura cucita; bozza digitale in formato pdf del file pronto per la stampa da approvare; attribuzione codice ISBN;\n";
if (c1.value>0 && i1.value>0){
s+=" - Importo per " + c1.value + " copie a Lei destinate " + Intl.NumberFormat('it-IT', { minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(i1.value) + " euro Iva inclusa\n";
}
if (c2.value>0 && i2.value>0){
s+=" - Importo per " + c2.value + " copie a Lei destinate " + Intl.NumberFormat('it-IT', { minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(i2.value) + " euro Iva inclusa\n";
}
if (c3.value>0 && i3.value>0){
s+=" - Importo per " + c3.value + " copie a Lei destinate " + Intl.NumberFormat('it-IT', { minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(i3.value) + " euro Iva inclusa\n";
}
if (c4.value>0 && i4.value>0){
s+="\no in alternativa formato 20x29 cm ca., copertina stampata su un lato a colori su carta patinata 200 gr, pagine interne stampate in bianco e nero su carta usomano 80 gr/mq\n";
s+=" - Importo per " + c4.value + " copie a Lei destinate " + Intl.NumberFormat('it-IT', { minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(i4.value) + " euro Iva inclusa\n";
}
if (c5.value>0 && i5.value>0){
s+=" - Importo per " + c5.value + " copie a Lei destinate " + Intl.NumberFormat('it-IT', { minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(i5.value) + " euro Iva inclusa\n";
}
c.value=s;
/* document.getElementById("riempi").style.overflow="hidden";*/
}
</script>
<script>
$(function() {
var elenco = <?php echo json_encode($valori1);?>;
$( "#formato" ).autocomplete({
source: elenco
});
});
</script>
</head>
<body onload="titolone()">
<form id="pippo" action="volumi_salva.php" method="POST" target="_self" name="surci">
<div class="div_form">
<table class="riga">
<tr>
<td class="colonna_input">
<span class="label">Titolo</span><br>
<input id="titolo" name="txt_titolo" type="text" maxlenght="60" id="tags" onfocusout="riempire()" class="campo_input">
</td>
<td class="colonna_input2"><span class="label">Nome e Cognome</span><br>
<input id="autore" name="txt_autore" type="text" maxlenght="20" class="campo_input2" onfocusout="riempire()"><input id="nome" name="txt_nome" type="text" maxlenght="20" class="campo_input2" onfocusout="riempire()">
<input type="checkbox" value="Donna" name="txt_check3" id="ck3" onclick="riempire()" class="checkbox-round"/><span class="label">F</span></td>
</tr>
<tr>
<td class="colonna4">E-Mail</td><td colspan="3" class="colonna5"><input name="txt_mail" type="text" maxlenght="40" class="testo"></td>
</tr>
<tr>
<td class="colonna4">Oggetto</td><td class="colonna5"><input name="txt_oggetto" type="text" maxlenght="100" class="testo" value="Preventivo per la composizione, stampa e pubblicazione di un volume"></td>
</tr>
<tr><td class="colonna4">Formato Carta</td>
<td class="colonna5">
Misura <input id="formato" name="txt_formato" type="text" maxlenght="10" size="7" style="text-align:center" onfocusout="riempire()" title="Misura in cm (A x B)">
Pagine <input id="pagine" name="txt_pagine" type="text" maxlenght="4" size="5" style="text-align:center" onfocusout="riempire()"> e <input id="pagine1" name="txt_pagine1" type="text" maxlenght="4" size="5" style="text-align:center" onfocusout="riempire()"> cons. a colori sulla stessa carta <input type="checkbox" value="Colori" name="txt_check2" id="ck2" onclick="riempire()" checked/>B/N
</td>
</tr>
<tr><td class="colonna4">Tipologia Carta</td>
<td class="colonna5">Grammatura Copertina <input id="grammi1" name="txt_grammi1" type="text" maxlenght="4" size="3" style="text-align:center" onfocusout="riempire()" value="300">
Grammatura Interno <input id="grammi2" name="txt_grammi2" type="text" maxlenght="4" size="3" style="text-align:center" onfocusout="riempire()" value="100"> <input type="checkbox" value="Alette" name="txt_check1" id="ck1" onclick="riempire()"/>Con Alette
</td>
</tr>
<tr>
<td class="colonna4"></td><td class="colonna5">- Importo per <input id="copie1" name="txt_copie1" type="text" maxlenght="5" value="100" size="3" style="text-align:center" onfocusout="riempire()"> copie a Lei destinate <input id="importo1" name="txt_importo1" type="text" maxlenght="10" size="5" style="text-align:center" onfocusout="riempire()"> €</td>
</tr>
<tr>
<td class="colonna4"></td><td class="colonna5">- Importo per <input id="copie2" name="txt_copie2" type="text" maxlenght="5" value="200" size="3" style="text-align:center" onfocusout="riempire()"> copie a Lei destinate <input id="importo2" name="txt_importo2" type="text" maxlenght="10" size="5" style="text-align:center" onfocusout="riempire()"> €</td>
</tr>
<tr>
<td class="colonna4"></td><td class="colonna5">- Importo per <input id="copie3" name="txt_copie3" type="text" maxlenght="5" value="300" size="3" style="text-align:center" onfocusout="riempire()"> copie a Lei destinate <input id="importo3" name="txt_importo3" type="text" maxlenght="10" size="5" style="text-align:center" onfocusout="riempire()"> € <input type="checkbox" value="Spartiti" name="txt_check" id="ck" onclick="riempire()"/>Presenza di Spartiti
<input type="checkbox" value="Spartiti_Pdf" name="txt_pdf" id="ckpdf" onclick="riempire()"/>Formato PDF
</td>
</tr>
<!-- PROPOSTA DI MOMENTI -->
<tr><td colspan="2" style="padding-left:200px;"><hr align="center" size="1" width="700" color="blue" noshade></td></tr>
<tr>
<td class="colonna4"></td><td class="colonna5">- Importo per <input id="copie4" name="txt_copie4" type="text" maxlenght="5"size="3" style="text-align:center" onfocusout="riempire()"> copie a Lei destinate <input id="importo4" name="txt_importo4" type="text" maxlenght="10" size="5" style="text-align:center" onfocusout="riempire()"> €</td>
</tr>
<tr>
<td class="colonna4"></td><td class="colonna5">- Importo per <input id="copie5" name="txt_copie5" type="text" maxlenght="5"size="3" style="text-align:center" onfocusout="riempire()"> copie a Lei destinate <input id="importo5" name="txt_importo5" type="text" maxlenght="10" size="5" style="text-align:center" onfocusout="riempire()"> €</td>
</tr>
<!-- FINE PROPOSTA MOMENTI -->
<tr>
<td class="colonna4">Testo introduttivo</td><td class="colonna5"><textarea id="riempi" cols="120" rows="15" maxlength="1500" name="txt_pagina1" class="testopiccolo"/>
</textarea></td>
</tr>
</table>
</div>
<p style="text-align:center; padding:2%;">
<img src=<?php echo $_SESSION["foto"]; ?> style="float:right;width:48px;">
<label>Operatore</label> <input type="text" id="operatore" value=<?php echo $_SESSION["username"]; ?> disabled>
<input class="btn-grad" type="submit" value="Salva">
</p>
</div>
</div>
</form>