GlisWeb framework
_anagrafica.view.php
Vai alla documentazione di questo file.
1 <?php
2 
12  // debug
13  // print_r( $_SESSION );
14 
15  // tabella della vista
16  $ct['view']['table'] = 'anagrafica';
17 
18  // campi della vista
19  $ct['view']['cols'] = array(
20  'id' => '#',
21  '__label__' => 'contatto',
22  'telefoni' => 'telefoni',
23  'mail' => 'mail',
24  'categorie' => 'categorie'
25  );
26 
27  // stili della vista
28  $ct['view']['class'] = array(
29  'id' => 'd-none d-md-table-cell',
30  '__label__' => 'text-left no-wrap',
31  'telefoni' => 'text-left',
32  'mail' => 'text-left',
33  'categorie' => 'text-left'
34  );
35 
36  // colonne custom
37  if( isset( $_SESSION['account']['se_agente'] ) && ! empty( $_SESSION['account']['se_agente'] ) ) {
38  arrayInsertAssoc( '__label__', $ct['view']['cols'], array( 'provincia' => 'provincia' ) );
39  arrayInsertAssoc( '__label__', $ct['view']['class'], array( 'provincia' => 'text-left' ) );
40  $ct['view']['cols']['agente'] = 'agente';
41  $ct['view']['class']['agente'] = 'text-left';
42  }
43 
44  // template filtri custom
45  $ct['etc']['include']['filters'] = 'anagrafica.view.filters.html';
46 
47  // pagina per la gestione degli oggetti esistenti
48  $ct['view']['open']['page'] = 'anagrafica_gestione';
49 
50  // tendina categoria
51  $ct['etc']['id_categoria'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM categorie_anagrafica_view' );
52 
53 ?>
$ct['view']['table']
mysqlQuery( $c, $q, $p=false, &$e=array())
$cf['ricerca']['template']
Definition: _030.common.php:7
if(isset( $_REQUEST['amazonCheckoutSessionId'])) $_SESSION['carrello']
arrayInsertAssoc( $ref, &$data, $array)