mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Fix di stile
Piccoli miglioramenti riguardanti lo stile in generale.
This commit is contained in:
@@ -555,7 +555,13 @@ div.DTS tbody th {
|
|||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-responsive th > input,
|
.table-responsive th>input,
|
||||||
.table-responsive td > input{
|
.table-responsive td>input {
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.table:not(.dataTable) th,
|
||||||
|
table.table:not(.dataTable) td {
|
||||||
|
word-wrap: break-word;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
@@ -872,6 +872,9 @@ function sum($first, $second = null, $decimals = null)
|
|||||||
|
|
||||||
function redirectOperation()
|
function redirectOperation()
|
||||||
{
|
{
|
||||||
|
$id_module = filter('id_module');
|
||||||
|
$id_record = filter('id_record');
|
||||||
|
|
||||||
$backto = filter('backto');
|
$backto = filter('backto');
|
||||||
// Scelta del redirect dopo un submit
|
// Scelta del redirect dopo un submit
|
||||||
if (!empty($backto)) {
|
if (!empty($backto)) {
|
||||||
|
@@ -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 = new mPDF('utf-8', $settings['dimension'], $settings['font-size'], '', 12, 12, $settings['header'], $settings['footer'], 9, 9, $settings['orientation']);
|
||||||
|
|
||||||
$mpdf->SetHTMLFooter($foot);
|
$mpdf->SetHTMLFooter($foot);
|
||||||
$mpdf->SetHTMLHeader($head);
|
$mpdf->SetHTMLHeader($head);
|
||||||
|
|
||||||
|
@@ -1,10 +1,16 @@
|
|||||||
body {
|
body {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
color: black;
|
color: black;
|
||||||
|
font-family: 'FreeSans', sans-serif, monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-bold {
|
.small-bold {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
small,
|
||||||
|
.small,
|
||||||
|
.small-bold {
|
||||||
font-size: 70%;
|
font-size: 70%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,6 +94,7 @@ p {
|
|||||||
|
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
overflow: wrap
|
||||||
}
|
}
|
||||||
|
|
||||||
table td {
|
table td {
|
||||||
@@ -112,6 +119,6 @@ table td {
|
|||||||
padding: 4px;
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-default{
|
.bg-default {
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
}
|
}
|
||||||
|
@@ -38,6 +38,7 @@ $tot_righe = sizeof($righe);
|
|||||||
|
|
||||||
foreach ($righe as $i => $riga) {
|
foreach ($righe as $i => $riga) {
|
||||||
$n_rows += ceil(strlen($riga['descrizione']) / $words4row);
|
$n_rows += ceil(strlen($riga['descrizione']) / $words4row);
|
||||||
|
$n_rows += substr_count($riga['descrizione'], PHP_EOL);
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
<tr class='".($i % 2 != 0 ? 'bg-default' : '')."'>
|
<tr class='".($i % 2 != 0 ? 'bg-default' : '')."'>
|
||||||
@@ -138,7 +139,8 @@ if (!empty($v_iva)) {
|
|||||||
// Controllo se è stata applicata questa tipologia di iva
|
// Controllo se è stata applicata questa tipologia di iva
|
||||||
foreach ($elenco as $e => $testo) {
|
foreach ($elenco as $e => $testo) {
|
||||||
if (in_array($e, $keys)) {
|
if (in_array($e, $keys)) {
|
||||||
$n_rows += nl2br($testo) / $words4row;
|
$n_rows += strlen($testo) / $words4row;
|
||||||
|
$n_rows += substr_count($riga['descrizione'], PHP_EOL);
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
<tr>
|
<tr>
|
||||||
|
@@ -67,7 +67,7 @@ echo '
|
|||||||
<div class="col-xs-5 col-xs-offset-1">
|
<div class="col-xs-5 col-xs-offset-1">
|
||||||
<table class="table" style="width:100%;margin-top:5mm;">
|
<table class="table" style="width:100%;margin-top:5mm;">
|
||||||
<tr>
|
<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 class="small-bold">'.strtoupper(tr('Spett.le')).'</p>
|
||||||
<p>$c_ragionesociale$</p>
|
<p>$c_ragionesociale$</p>
|
||||||
<p>$c_indirizzo$ $c_citta$</p>
|
<p>$c_indirizzo$ $c_citta$</p>
|
||||||
@@ -75,16 +75,20 @@ echo '
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<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 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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<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 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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
Reference in New Issue
Block a user