LogOn("", "", "Itineraire"); print "Itinéraires de découverte - Liste des thèmes"; ?>
", TitlePostRecord => "", NumRecPage => 20, PagesPre => "

Pages affichables :
", PagesPost => " Fin de liste
", PagesWhere => 2, PagePre => " ", PagePreSelect => "|", PagePostSelect => "|" ) ); $L->AddTableLevel(array( SQLTable => "theme", PrimKey => 0, IfAlternate => Yes, RecordPre => "", RecordPost => "", RecordPreAlt => "", RecordPostAlt => "", IfSelectOrder => Yes, SelectOrderPrim => "NumTheme" ) ); $L->AddField(array( TitlePre => "", SelectOrder => "NumTheme", //SelectOrderDesc => $bdesc, //SelectOrderAsc => $basc ) ); $L->AddFieldLevel(array( FieldType => FieldMute, SQLField => "NumTheme", FieldPre => "", FieldPreAlt => "" ) ); $L->AddField(array( TitlePre => "", SelectOrder => "Theme", SelectOrderDesc => $bdesc, SelectOrderAsc => $basc ) ); $L->AddFieldLevel(array( FieldType => Field, SQLField => "Theme", FieldPre => "", FieldPreAlt => "" ) ); $L->AddField(array( TitlePre => "", SelectOrder => "Sujet", SelectOrderDesc => $bdesc, SelectOrderAsc => $basc ) ); $L->AddFieldLevel(array( FieldType => Field, SQLField => "Sujet", FieldPre => "", FieldPreAlt => "" ) ); $L->AddField(array( TitlePre => "", SelectOrder => "Domaine", SelectOrderDesc => $bdesc, SelectOrderAsc => $basc ) ); $L->AddFieldLevel(array( FieldType => Field, SQLField => "Domaine", FieldPre => "", FieldPreAlt => "" ) ); $L->AddField(array( TitlePre => "", SelectOrder => "Discipline_A", SelectOrderDesc => $bdesc, SelectOrderAsc => $basc ) ); $L->AddFieldLevel(array( FieldType => Field, SQLField => "Discipline_A", FieldPre => "", FieldPreAlt => "" ) ); $L->AddField(array( TitlePre => "", SelectOrder => "Discipline_B", SelectOrderDesc => $bdesc, SelectOrderAsc => $basc ) ); $L->AddFieldLevel(array( FieldType => Field, SQLField => "Discipline_B", FieldPre => "", FieldPreAlt => "" ) ); /* $L->AddField(array( TitlePre => "", SelectOrder => "RNE", SelectOrderDesc => $bdesc, SelectOrderAsc => $basc ) ); $L->AddFieldLevel(array( FieldType => Field, SQLField => "RNE", FieldPre => "", FieldPreAlt => "" ) ); $L->AddField(array( TitlePre => "", //SelectOrder => "RNE", //SelectOrderDesc => $bdesc, //SelectOrderAsc => $basc ) ); $L->AddFieldLevel(array( FieldType => Counter, SQLField => "RNE", FieldPre => "", FieldPreAlt => "" ) ); */ $L->AddField(array( TitlePre => "" ) ); $L->AddFieldLevel(array( FieldType => Command, Form => "maj_iti.php", Button => $bupdate, Command => "Key=\$_KEY", IfVisible => "__visible(\$_KEY);", FieldPre => "", FieldPreAlt => "" ) ); $L->AddField(0); $L->AddFieldLevel(array( FieldType => Command, Form => "visu.php", Button => $bvisu, Command => "Key=\$_KEY", FieldPre => "", FieldPreAlt => "" ) ); $L->AddField(0); $L->AddFieldLevel(array( FieldType => Command, Form => "supres.php", Button => $bsupres, Command => "Key=\$_KEY", IfVisible => "__visible(\$_KEY);", FieldPre => "", FieldPreAlt => "" ) ); function ins() { global $binsert; //print "$binsert Saisir un nouvel itinéraire de découverte"; } print "

Base de Thèmes

Liste des itinéraires de découverte

"; ins(); $L->PutList(); ins(); include "scripts/barnav.inc";?>
Accueil
"; //print "View Tables !
"; //print "Main Page
"; ?>


C
O
L
L
E
G
E

"; $bdesc = "Descendant"; $binsert = "Nouveau"; $bupdate = "Modifier"; $bvisu = "Visualiser"; $bsupres = "Supprimer"; $cl_title = "#990066"; $cl_police = "#FFFF66"; $cl_record = "#dddddd"; $cl_record_alt = "#cccccc"; $L = new DB_List(&$DB); include "scripts/connect.inc"; $log=$loginsession; function __visible($K) { global $log; $database="Itineraire"; $sql = "select RNE from Theme where NumTheme = $K"; $result1=mysql_db_query($database, $sql); $aff_result1=mysql_fetch_row($result1); //echo $aff_result1[0]; //echo "toto"; //echo $log; if (($log==$aff_result1[0]) or ($log=="0330150J")) { return 1; } else { return 0; } }; $L->AddTable(array( FormMain => "list_iti.php", ParamMain => "_Ord=".$_Ord."&_Go=".$_Go, TablePre => "", TablePost => "
", IfTitle => Yes, TitlePreRecord => "
", Title => "", TitlePost => "", FieldPost => "", FieldPostAlt => "", Title => " Thème", TitlePost => "", FieldPost => "", FieldPostAlt => "", Title => " Sujet", TitlePost => "", FieldPost => "", FieldPostAlt => "", Title => " Domaine", TitlePost => "", FieldPost => "", FieldPostAlt => "", Title => " Discipline", TitlePost => "", FieldPost => "", FieldPostAlt => "", Title => " Discipline", TitlePost => "", FieldPost => "", FieldPostAlt => "", Title => " RNE", TitlePost => "", FieldPost => "", FieldPostAlt => "", Title => " Cpt", TitlePost => "", FieldPost => "", FieldPostAlt => "", Title => "Commandes", TitlePost => "", FieldPost => "", FieldPostAlt => "", FieldPost => "", FieldPostAlt => "", FieldPost => "", FieldPostAlt => "