GlisWeb framework
|
Vai al codice sorgente di questo file.
Variabili | |
$ct ['etc']['table'] = 'incarichi_immobili' | |
$ct ['etc']['id_immobile'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM immobili_view' ) | |
$ct ['etc']['id_tipologia'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM tipologie_incarichi_immobili_view' ) | |
$ct ['etc']['id_agenzia'] = mysqlSelectValue( $cf['mysql']['connection'], 'SELECT id FROM anagrafica_view WHERE se_azienda_gestita = 1' ) | |
$ct ['etc']['id_tipologia_attivita'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM tipologie_attivita_view WHERE nome=\'valutazione\' OR nome=\'chiamata\' ' ) | |
$ct ['etc']['id_cliente'] = mysqlQuery( $cf['mysql']['connection'], "SELECT id, coalesce( CONCAT(__label__,' - ' , telefoni, COALESCE(concat(' - ',mail),' ' ) ),__label__) AS __label__ FROM anagrafica_view" ) | |
$ct ['etc']['id_agente'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM anagrafica_view WHERE se_agente = 1 OR se_collaboratore = 1 OR se_interno = 1' ) | |
$ct ['etc']['id_editor'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT account.id AS id, __label__ FROM account LEFT JOIN anagrafica_view ON anagrafica_view.id = account.id_anagrafica WHERE se_agente = 1 OR se_collaboratore = 1 ' ) | |
$ct ['etc']['id_esito_notizia'] = mysqlQuery( $cf['mysql']['connection'], 'SELECT id, __label__ FROM esiti_notizie_immobili_view' ) | |
if(isset( $_REQUEST['incarichi_immobili']['id'])) | if (empty($_REQUEST[$ct[ 'etc'][ 'table']][ 'id'])) |