$server_db = "localhost";
$user = "jas_db";
$pw = "129K_JAS!128wkajjh";
$nome_db = "jasink";
// Connessione al database
$db = mysql_connect($server_db, $user, $pw);
mysql_select_db($nome_db, $db);
// inizializzazione variabili
isset($_REQUEST['cod']) ? $codice = $_REQUEST['cod'] : $codice = "0";
$codice = str_replace('\'','',$codice);
$qry = "SELECT msm_data.id, msm_data.no, msm_data.rif, msm_data.inventario, msm_data.provenienza, msm_data.materia_spec, msm_data.colore_sup, msm_data.colore_frat, msm_data.impasto_sup, msm_data.impasto_frat, msm_data.tratt_sup, msm_data.tessitura, msm_data.omogeneita, msm_data.tipo_supporto, msm_data.stato_fisico, msm_data.integrita, msm_data.pseudoritocchi, msm_data.gr_patinatura, msm_data.htot, msm_data.diam_imboc, msm_data.diam_esp, msm_data.diam_base, msm_data.spess_ansa, msm_data.htot_nocer, msm_data.largh_max, msm_data.altro, msm_data.litica_lungh, msm_data.litica_largh, msm_data.litica_spess, msm_data.tipo, msm_data.descr_morf, msm_data.orlo, msm_data.collo, msm_data.spalla, msm_data.corpo, msm_data.base, msm_data.ansa_presa, msm_data.cortice, msm_data.distacchi_regol, msm_data.negativi_dors, msm_data.bulbo, msm_data.tallone, msm_data.percussione, msm_data.altra_morf, msm_data.tipo_primario, msm_data.descr_tipol, msm_data.note_tecno, msm_data.decorazione, msm_data.stato_conserv, msm_data.datazione, msm_data.note, msm_data.schedatore ";
$qry .= "FROM msm_data ";
$qry .= "WHERE msm_data.no = '".$codice."'";
$qryres = mysql_query($qry);
while ($ary = mysql_fetch_array($qryres)) {
?>
$qryImg = "SELECT msm_figure.fig_no, msm_figure.fig_name, msm_figure.fig_type ";
$qryImg .= "FROM msm_figure ";
$qryImg .= "WHERE msm_figure.fig_no = '".$codice."' order by fig_type ";
$qryresImg = mysql_query($qryImg);
$cont = 0;
while ($aryImg = mysql_fetch_array($qryresImg)) {
$cont++;
?>
-
}
?>
NO. |
echo($ary['no']); ?> |
Rif. |
echo($ary['rif']); ?> |
Collezione: |
echo($ary['collezione']); ?> |
NO. inventario: |
echo($ary['inventario']); ?> |
Provenienza: |
echo($ary['provenienza']); ?> |
Materia: |
echo($ary['materia']); ?> |
if ( !$ary['materia_spec'] == "" ) { ?>
Specifica materia: |
echo($ary['materia_spec']); ?> |
|
} if ( !$ary['colore_sup'] == "" ) { ?>
|
|
Colore: |
Superficie: |
echo($ary['colore_sup']); ?> |
} if ( !$ary['colore_frat'] == "" ) { ?>
|
|
|
Frattura: |
echo($ary['colore_frat']); ?> |
} if ( !$ary['impasto_sup'] == "" ) { ?>
|
|
Impasto: |
Superficie: |
echo($ary['impasto_sup']); ?> |
} if ( !$ary['impasto_frat'] == "" ) { ?>
|
|
|
Frattura: |
echo($ary['impasto_frat']); ?> |
} if ( !$ary['tratt_sup'] == "" ) { ?>
|
|
Trattamento superficie: |
echo($ary['tratt_sup']); ?> |
|
} ?>
if ( !$ary['tessitura'] == "" ) { ?>
|
|
Tessitura: |
echo($ary['tessitura']); ?> |
|
} if ( !$ary['omogeneita'] == "" ) { ?>
|
|
Omogeneità: |
echo($ary['omogeneita']); ?> |
|
} if ( !$ary['tipo_supporto'] == "" ) { ?>
|
|
Tipo di supporto: |
echo($ary['tipo_supporto']); ?> |
|
} ?>
if ( !$ary['stato_fisico'] == "" ) { ?>
Stato fisico: |
echo($ary['stato_fisico']); ?> |
} if ( !$ary['integrita'] == "" ) { ?>
|
Integrità: |
echo($ary['integrita']); ?> |
} if ( !$ary['pseudoritocchi'] == "" ) { ?>
|
Pseudoritocchi: |
echo($ary['pseudoritocchi']); ?> |
} if ( !$ary['gr_patinatura'] == "" ) { ?>
|
Grado di patinatura: |
echo($ary['gr_patinatura']); ?> |
} ?>
Misure: |
|
|
if ( $ary['tipo_classe'] == "CER" ) { ?>
if ( !$ary['htot'] == "" ) { ?>
|
Altezza totale: |
echo($ary['htot']); ?> |
} if ( !$ary['diam_imboc'] == "" ) { ?>
|
Diametro imboccatura: |
echo($ary['diam_imboc']); ?> |
} if ( !$ary['diam_esp'] == "" ) { ?>
|
Diametro massima espansione: |
echo($ary['diam_esp']); ?> |
} if ( !$ary['diam_base'] == "" ) { ?>
|
Diametro base: |
echo($ary['diam_base']); ?> |
} if ( !$ary['spess_ansa'] == "" ) { ?>
|
Spessore ansa: |
echo($ary['spess_ansa']); ?> |
} ?>
} if ( $ary['idcl'] == 1 || $ary['idcl'] == 2 ) { ?>
if ( !$ary['litica_lungh'] == "" ) { ?>
|
Lunghezza: |
echo($ary['litica_lungh']); ?> |
} if ( !$ary['litica_largh'] == "" ) { ?>
|
Larghezza: |
echo($ary['litica_largh']); ?> |
} if ( !$ary['litica_spess'] == "" ) { ?>
|
Spessore: |
echo($ary['litica_spess']); ?> |
} ?>
} if ( $ary['tipo_classe'] == "AC" ) { ?>
if ( !$ary['htot_nocer'] == "" ) { ?>
|
Altezza totale: |
echo($ary['htot_nocer']); ?> |
} if ( !$ary['largh_max'] == "" ) { ?>
|
Larghezza massima: |
echo($ary['largh_max']); ?> |
} if ( !$ary['altro'] == "" ) { ?>
|
Altro: |
echo($ary['altro']); ?> |
} ?>
} ?>
Classe: |
echo($ary['classe']); ?> |
|
if ( !$ary['tipo'] == "" ) { ?>
Tipo: |
echo($ary['tipo']); ?> |
|
} if ( !$ary['descr_morf'] == "" ) { ?>
Descrizione morfologica: |
echo($ary['descr_morf']); ?> |
|
} if ( $ary['tipo_classe'] == "CER" ) { ?>
if ( !$ary['orlo'] == "" ) { ?>
|
Orlo: |
echo($ary['orlo']); ?> |
} if ( !$ary['collo'] == "" ) { ?>
|
Collo: |
echo($ary['collo']); ?> |
} if ( !$ary['spalla'] == "" ) { ?>
|
Spalla: |
echo($ary['spalla']); ?> |
} if ( !$ary['corpo'] == "" ) { ?>
|
Corpo: |
echo($ary['corpo']); ?> |
} if ( !$ary['base'] == "" ) { ?>
|
Base: |
echo($ary['base']); ?> |
} if ( !$ary['ansa_presa'] == "" ) { ?>
|
Ansa/presa: |
echo($ary['ansa_presa']); ?> |
} ?>
} if ( $ary['tipo_classe'] == "LIT" ) { ?>
if ( !$ary['cortice'] == "" ) { ?>
|
Quantità di cortice: |
echo($ary['cortice']); ?> |
} if ( !$ary['distacchi_regol'] == "" ) { ?>
|
Distacchi di regolarizzazione: |
echo($ary['distacchi_regol']); ?> |
} if ( !$ary['negativi_dors'] == "" ) { ?>
|
Descrizione da negativi dorsali: |
echo($ary['negativi_dors']); ?> |
} if ( !$ary['bulbo'] == "" ) { ?>
|
Bulbo: |
echo($ary['bulbo']); ?> |
} if ( !$ary['tallone'] == "" ) { ?>
|
Tallone: |
echo($ary['tallone']); ?> |
} if ( !$ary['percussione'] == "" ) { ?>
|
Punto di percussione: |
echo($ary['percussione']); ?> |
} ?>
} if ( !$ary['altra_morf'] == "" ) { ?>
|
|
echo($ary['altra_morf']); ?> |
} ?>
if ( !$ary['tipo_primario'] == "" ) { ?>
Tipo primario (Laplace 1964): |
echo($ary['tipo_primario']); ?> |
} if ( !$ary['descr_tipol'] == "" ) { ?>
Descrizione tipologica: |
echo($ary['descr_tipol']); ?> |
} if ( !$ary['note_tecno'] == "" ) { ?>
Note tecnologiche: |
echo($ary['note_tecno']); ?> |
} if ( !$ary['decorazione'] == "" ) { ?>
Decorazione: |
echo($ary['decorazione']); ?> |
} if ( !$ary['stato_conserv'] == "" ) { ?>
Stato conservazione: |
echo($ary['stato_conserv']); ?> |
} if ( !$ary['cronologia'] == "" ) { ?>
Fasi cronologiche: |
echo($ary['cronologia']); ?> |
} if ( !$ary['datazione'] == "" ) { ?>
Datazione: |
echo($ary['datazione']); ?> |
} if ( !$ary['note'] == "" ) { ?>
Note: |
echo($ary['note']); ?> |
} if ( !$ary['schedatore'] == "" ) { ?>
Schedatore: |
echo($ary['schedatore']); ?> |
}
} //while
?>