*/ require_once("core".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_request.php"); require_once("core".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_security.php"); require_once("modules".DIRECTORY_SEPARATOR."postindexing".$_SESSION['slash_env']."class".$_SESSION['slash_env']."class_modules_tools.php"); $core_tools = new core_tools(); $core_tools->load_lang(); $security = new security(); $func = new functions(); $postindexing = new postindexing(); $db = new dbquery(); $_SESSION['collection_id_choice'] = $_SESSION['current_basket']['coll_id']; $right = false; if(!empty($_SESSION['current_basket']['view'])) { $table = $_SESSION['current_basket']['view']; } else { $table = $_SESSION['current_basket']['table']; } $coll_id = $_SESSION['current_basket']['coll_id']; $basket_id = $_SESSION['current_basket']['id']; $func->configPosition("index_video.php"); $core_tools->load_html(); $core_tools->load_header(); $time = $core_tools->get_session_time_expire(); $connexion = new dbquery(); //Close postindexing windows and return to document list $closeAndReturn = false; //He we go!!! if (count($_SESSION['postindexing']['docs']) > 0) { //par defaut on se positionne au début du tableau if(!isset($_SESSION['postindexing']['resid_pointeur']) || empty($_SESSION['postindexing']['resid_pointeur'])) { $_SESSION['postindexing']['resid_pointeur'] = 0; } //On positionne le pointeur sur un enregistrement $_SESSION['postindexing']['res_actif'] = $_SESSION['postindexing']['docs'][$_SESSION['postindexing']['resid_pointeur']]; //echo $_SESSION['postindexing']['res_actif']; exit; //On test les droits sur le document $right = $security->test_right_doc($_SESSION['collection_id_choice'], $_SESSION['postindexing']['res_actif']); //Si ok on recup les infos if(!$right) { $_SESSION['error'] .= _NO_RIGHT_TXT.'
'; $closeAndReturn = true; } else { $indexes = $postindexing->get_postindexing_indexes('minimal'); for($i=0; $iconnect(); $connexion->query("select type_id, type_label, typist, creation_date, res_id, status ".$comp_field." from ".$table." where res_id = ".$_SESSION['postindexing']['res_actif']); //$connexion->show(); //exit; //Si l'id ne renvoi if($connexion->nb_result() == 0) { $_SESSION['error'] .= _NO_DOCUMENT_CORRESPOND_TO_IDENTIFIER.'
'; $closeAndReturn = true; } else { $_SESSION['postindexing']['field_save'] = array(); $details = $connexion->fetch_object(); $type_id = $details->type_id; $type_label = str_replace("\\","",$details->type_label) ; $status = $details->status; $indexes = $postindexing->get_postindexing_indexes(); foreach(array_keys($indexes) as $key) { if(preg_match('/^custom_/', $indexes[$key]['column'])) // In the view all custom from res table begin with doc_ { $field = 'doc_'.$indexes[$key]['column']; } else { $field = $indexes[$key]['column']; } if($indexes[$key]['type'] == 'date') { $indexes[$key]['value'] = $func->format_date_db($details->$field); $indexes[$key]['show_value'] = $func->format_date_db($details->$field); } else { $indexes[$key]['value'] = $details->$field; $indexes[$key]['show_value'] = $details->$field; } $_SESSION['postindexing']['field_save'][$field] = $details->$field; } //$db->show_array($indexes); //Do not move the order of fields in array, it affect the hash !!!!! $hash = $postindexing->encrypt_array($_SESSION['postindexing']['field_save']); } } } else { $_SESSION['error'] .= _VIDEO_NO_RES.'
'; $closeAndReturn = true; } ?> '; //echo $_SESSION['postindexing']['work'].'
'; //echo "Pointeur: ".$_SESSION['postindexing']['resid_pointeur'].'
'; //DEBUG //Infos if(!empty($_SESSION['info'])) { ?> convert_smart_quotes(html_entity_decode($func->wash_html($_SESSION['error']."\n"._CLOSE_VIDEO_PAGE))); ?> convert_smart_quotes(html_entity_decode($func->wash_html($_SESSION['error']))); ?>

'.$_SESSION['postindexing']['nb_total'].'';?>
'.$_SESSION['user']['UserId'].' - date : '.date("d/m/y H:i").'';?>
'.str_pad($_SESSION['postindexing']['workbatch'],8,"0", STR_PAD_LEFT).'';?>
'.$_SESSION['postindexing']['res_actif'].'';?>
'.$_SESSION['postindexing']['work'].'';?>
'; } elseif($status == $_SESSION['postindexing']['status_reject']) { echo ''._VIDEO_REJECTED.''; } elseif($status == $_SESSION['postindexing']['status_update']) { echo ''._VIDEO_UPDATED.''; } else { echo ''._VIDEO_NEW.''; } ?>
     0 ) { echo ''._FIRST.' '; } else { echo ''._FIRST.' '; } //PREVIOUS BUFFER if( ($_SESSION['postindexing']['resid_pointeur'] + 1) >= $_SESSION['postindexing']['buffer'] && (count($_SESSION['postindexing']['docs']) > $_SESSION['postindexing']['buffer']) ) { echo ''.$_SESSION['postindexing']['buffer']._PREVIOUS_BUFFER.' '; } else { echo ''.$_SESSION['postindexing']['buffer']._PREVIOUS_BUFFER.' '; } //PREVIOUS if($_SESSION['postindexing']['resid_pointeur'] > 0) { echo ''._PREVIOUS.' '; } else { echo ''._PREVIOUS.' '; } //NEXT if($_SESSION['postindexing']['resid_pointeur'] < ($_SESSION['postindexing']['nb_total'] - 1 )) { echo ''._NEXT.' '; } else { echo ''._NEXT.' '; } //NEXT BUFFER if($_SESSION['postindexing']['resid_pointeur'] < (count($_SESSION['postindexing']['docs']) - $_SESSION['postindexing']['buffer'])) { echo ''.$_SESSION['postindexing']['buffer']._NEXT_BUFFER.' '; } else { echo ''.$_SESSION['postindexing']['buffer']._NEXT_BUFFER.' '; } //LAST if($_SESSION['postindexing']['resid_pointeur'] < count($_SESSION['postindexing']['docs']) - 1) { echo ''._LAST.' '; } else { echo ''._LAST.' '; } ?>
query("select n.id from ".$_SESSION['tablename']['not_notes']." n where n.identifier = ".$_SESSION['postindexing']['res_actif']." and tablename = '".$basket_id."' and coll_id = '".$coll_id."'"); if($connexion->nb_result() != 0) { ?>
 

:
 
<?php echo $indexes[$key]['label'];?> : size="40" title="" alt="" /> *