";
switch($action){
case "edit" :
if($partial_submit){//Modification par l'ajax ou par le javascript
$editions_state->get_from_form();
}
print $editions_state->get_form();
break;
case "save" :
$editions_state->get_from_form();
$editions_state->save();
show_state_list();
break;
case "show" :
print $editions_state->show($sub,$elem);
break;
case "delete" :
$editions_state->delete();
default:
show_state_list();
break;
}
function show_state_list(){
global $msg,$charset,$javascript_path;
$query = "select id_editions_state, editions_state_name, editions_state_comment, libproc_classement, editions_state_num_classement from editions_states left join procs_classements on editions_state_num_classement = idproc_classement order by libproc_classement,editions_state_name asc";
$result = mysql_query($query);
print "
";
if(mysql_num_rows($result)){
$class_prec=$msg['proc_clas_aucun'];
$buf_tit=$msg['proc_clas_aucun'];
$buf_class=0;
$parity=1;
while ($row = mysql_fetch_object($result)){
if (!$row->libproc_classement) $row->libproc_classement=$msg['proc_clas_aucun'];//Pour les états qui ne sont pas dans un classement
if ($class_prec!=$row->libproc_classement) {
if ($buf_tit) {
$buf_contenu="