GlisWeb framework
_fatturati.view.php
Vai alla documentazione di questo file.
1 <?php
2 
12  // tabella della vista
13  $ct['view']['table'] = 'fatturati';
14 
15  // campi della vista
16  $ct['view']['cols'] = array(
17  'id' => '#',
18  'anno' => 'anno',
19  'nome_mese' => 'mese',
20  'emittente' => 'emittente',
21 // 'tipologia' => 'tipologia',
22  'agente' => 'agente',
23  'cliente' => 'cliente',
24  'mandante' => 'mandante',
25  'importo' => 'importo'
26  );
27 
28 
29  // stili della vista
30  $ct['view']['class'] = array(
31  'anno' => 'text-left',
32  'nome_mese' => 'text-left',
33  'emittente' => 'text-left',
34 // 'tipologia' => 'text-left',
35  'cliente' => 'text-left',
36  'agente' => 'text-left',
37  'mandante' => 'text-left',
38  'importo' => 'text-right'
39  );
40 
41  // colonne custom
42  if( isset( $_SESSION['account']['se_amministrazione'] ) && ! empty( $_SESSION['account']['se_amministrazione'] ) ) {
43  $ct['view']['cols']['provvigione_azienda'] = 'provv. EFFEBI';
44  $ct['view']['class']['provvigione_azienda'] = 'text-right';
45  $ct['view']['cols']['provvigione_agente'] = 'provv. agente';
46  $ct['view']['class']['provvigione_agente'] = 'text-right';
47  }
48 
49  // pagina per la gestione degli oggetti esistenti
50  $ct['view']['open']['page'] = 'fatturati_gestione';
51 
52  // generazione vista
53  require DIRECTORY_BASE . '_src/_inc/_macro/_default.view.php';
54 
55  // trasformo il mese
56 # foreach( $ct['view']['data'] as &$row ) {
57 # $row['mese'] = int2month( $row['mese'] );
58 # }
59 
60  // debug
61  // print_r( $ct['view'] );
62  // print_r( $_REQUEST['__view__'] );
63  // print_r( $_REQUEST['__view__'][ $ct['view']['table'] ] );
64  // print_r( $_SESSION['__view__'] );
65  // print_r( $_SESSION['__view__'][ $ct['view']['table'] ] );
66 
67 ?>
const DIRECTORY_BASE
Definition: _osm.php:3
$ct['view']['table']
if(isset( $_REQUEST['amazonCheckoutSessionId'])) $_SESSION['carrello']