GlisWeb framework
_mod
_2400.campagne
_src
_inc
_macro
_campagne.gestione.php
Vai alla documentazione di questo file.
1
<?php
2
13
// tabella della vista
14
$ct
[
'etc'
][
'table'
] =
'campagne'
;
15
16
/*
17
// tendina iva
18
$ct['etc']['id_iva'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM iva_view' );
19
20
// tendina modalità di pagamento
21
$ct['etc']['id_modalita_pagamento'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM modalita_pagamento_view' );
22
23
24
// tendina emittenti
25
$ct['etc']['id_emittente'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM anagrafica_view WHERE se_azienda_gestita = 1' );
26
27
// tendina sedi emittenti
28
if( isset( $_REQUEST[ $ct['etc']['table'] ]['id_emittente'] ) ) {
29
$ct['etc']['id_sede_emittente'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM indirizzi_view WHERE id_anagrafica = ?', array( array( 's' => $_REQUEST[ $ct['etc']['table'] ]['id_emittente'] ) ) );
30
}
31
32
// tendina referente emittente
33
$ct['etc']['id_referente_emittente'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM anagrafica_view' );
34
35
// tendina agente emittente
36
$ct['etc']['id_agente_emittente'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM anagrafica_view WHERE se_agente = 1' );
37
38
39
40
// tendina clienti
41
$ct['etc']['id_cliente'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM anagrafica_clienti_view' );
42
43
// tendina sedi cliente
44
if( isset( $_REQUEST[ $ct['etc']['table'] ]['id_cliente'] ) ) {
45
$ct['etc']['id_sede_cliente'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM indirizzi_view WHERE id_anagrafica = ?', array( array( 's' => $_REQUEST[ $ct['etc']['table'] ]['id_cliente'] ) ) );
46
}
47
48
// tendina referente cliente
49
$ct['etc']['id_referente_cliente'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM anagrafica_view' );
50
51
52
// tendina fornitori
53
$ct['etc']['id_fornitore'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM anagrafica_view WHERE se_fornitore = 1' );
54
55
56
57
// timer
58
timerCheck( $cf['speed'], ' -> fine generazione tendina clienti' );
59
60
if( isset( $_REQUEST[ $ct['etc']['table'] ]['id_agente'] ) ) {print_r('cia');
61
$ct['etc']['id_agente'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM anagrafica_view WHERE '.( ( isset( $idAgente ) ) ? ' id = '.$idAgente : NULL ).' OR id = ?', array( array( 's' => $_REQUEST[ $ct['etc']['table'] ]['id_agente'] ) ) );
62
} else {
63
$ct['etc']['id_agente'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM anagrafica_view WHERE se_agente = 1 '.( ( isset( $idAgente ) ) ? ' AND id = '.$idAgente : NULL ) );
64
}
65
66
// timer
67
timerCheck( $cf['speed'], ' -> fine generazione tendina clienti' );
68
*/
69
70
// gestione default
71
require
DIRECTORY_BASE
.
'_src/_inc/_macro/_default.gestione.php'
;
72
73
74
?>
$ct
$ct['etc']['table']
Definition:
_campagne.gestione.php:14
DIRECTORY_BASE
const DIRECTORY_BASE
Definition:
_osm.php:3
Generato Sab 25 Lug 2020 23:06:26 per GlisWeb framework da
1.8.13