Fix di stile

Piccoli miglioramenti riguardanti lo stile in generale.
This commit is contained in:
Thomas Zilio 2017-09-07 17:50:42 +02:00
parent e43cdb0998
commit e7a23297c9
6 changed files with 32 additions and 9 deletions

View File

@ -555,7 +555,13 @@ div.DTS tbody th {
max-width: 500px;
}
.table-responsive th > input,
.table-responsive td > input{
.table-responsive th>input,
.table-responsive td>input {
min-width: 200px;
}
table.table:not(.dataTable) th,
table.table:not(.dataTable) td {
word-wrap: break-word;
word-break: break-all;
}

View File

@ -872,6 +872,9 @@ function sum($first, $second = null, $decimals = null)
function redirectOperation()
{
$id_module = filter('id_module');
$id_record = filter('id_record');
$backto = filter('backto');
// Scelta del redirect dopo un submit
if (!empty($backto)) {

View File

@ -124,6 +124,7 @@ if (file_exists($docroot.'/templates/'.$ptype.'/init.php')) {
];
$mpdf = new mPDF('utf-8', $settings['dimension'], $settings['font-size'], '', 12, 12, $settings['header'], $settings['footer'], 9, 9, $settings['orientation']);
$mpdf->SetHTMLFooter($foot);
$mpdf->SetHTMLHeader($head);

View File

@ -1,10 +1,16 @@
body {
background-color: white;
color: black;
font-family: 'FreeSans', sans-serif, monospace;
}
.small-bold {
font-weight: bold;
}
small,
.small,
.small-bold {
font-size: 70%;
}
@ -88,6 +94,7 @@ p {
table {
width: 100%;
overflow: wrap
}
table td {
@ -112,6 +119,6 @@ table td {
padding: 4px;
}
.bg-default{
.bg-default {
background-color: #eee;
}

View File

@ -38,6 +38,7 @@ $tot_righe = sizeof($righe);
foreach ($righe as $i => $riga) {
$n_rows += ceil(strlen($riga['descrizione']) / $words4row);
$n_rows += substr_count($riga['descrizione'], PHP_EOL);
echo "
<tr class='".($i % 2 != 0 ? 'bg-default' : '')."'>
@ -138,7 +139,8 @@ if (!empty($v_iva)) {
// Controllo se è stata applicata questa tipologia di iva
foreach ($elenco as $e => $testo) {
if (in_array($e, $keys)) {
$n_rows += nl2br($testo) / $words4row;
$n_rows += strlen($testo) / $words4row;
$n_rows += substr_count($riga['descrizione'], PHP_EOL);
echo "
<tr>

View File

@ -67,7 +67,7 @@ echo '
<div class="col-xs-5 col-xs-offset-1">
<table class="table" style="width:100%;margin-top:5mm;">
<tr>
<td class="border-full" style="height:16mm;">
<td colspan=2 class="border-full" style="height:16mm;">
<p class="small-bold">'.strtoupper(tr('Spett.le')).'</p>
<p>$c_ragionesociale$</p>
<p>$c_indirizzo$ $c_citta$</p>
@ -75,16 +75,20 @@ echo '
</tr>
<tr>
<td class="border-right border-bottom border-left">
<td class="border-bottom border-left">
<p class="small-bold">'.strtoupper(tr('Partita IVA')).'</p>
<p>$c_piva$</p>
</td>
<td class="border-right border-bottom text-right">
<small>$c_piva$</small>
</td>
</tr>
<tr>
<td class="border-right border-bottom border-left">
<td class="border-bottom border-left">
<p class="small-bold">'.strtoupper(tr('Codice fiscale')).'</p>
<p>$c_codicefiscale$</p>
</td>
<td class="border-right border-bottom text-right">
<small>$c_codicefiscale$</small>
</td>
</tr>
</table>