. * /** * @brief Postindexing administration : unlock files or folders locked by postindexing * * @file * @author Yves Christian KPAKPO * @date $date$ * @version $Revision$ * @ingroup postindexin */ require_once("core".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_request.php"); require_once("modules".DIRECTORY_SEPARATOR."postindexing".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_modules_tools.php"); require_once("apps".DIRECTORY_SEPARATOR.$_SESSION['config']['app_id'].DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_extended_list_show.php"); $admin = new core_tools(); $func = new functions(); $postindexing = new postindexing(); $list = new extended_list_show(); $request = new request; $admin->test_admin('admin_postindexing', 'postindexing'); /****************Management of the location bar ************/ $init = false; if($_REQUEST['reinit'] == "true") { $init = true; } $level = ""; if($_REQUEST['level'] == 2 || $_REQUEST['level'] == 3 || $_REQUEST['level'] == 4 || $_REQUEST['level'] == 1) { $level = $_REQUEST['level']; } $page_path = $_SESSION['config']['businessappurl'].'index.php?page=admin_postindexing&module=postindexing'; $page_label = _ADMIN_POSTINDEXING; $page_id = "admin_postindexing"; $admin->manage_location_bar($page_path, $page_label, $page_id, $init, $level); /***********************************************************/ ?>

extended_define_order($order, $field); array_push($select[$_SESSION['tablename']['view_admin_postindexing']], "video_user", "user_name", "video_batch", "video_time", "count_documents", "folders_system_id", "folder_full_label", "video_status "); $tab=$request->select($select,$where,$orderstr,$_SESSION['config']['databasetype'], $_SESSION['config']['databasesearchlimit'], false, '', '', '', false); //$request->show(); for ($i=0;$idateformat(date("Y-m-d H:i:s", $tab[$i][$j]['value'])); $tab[$i][$j]['value']=$func->dateformat(date("Y-m-d H:i:s", $tab[$i][$j]['value']));; $tab[$i][$j]["order"]="video_time"; } if($tab[$i][$j][$value]=='folders_system_id') { $tab[$i][$j]['folders_system_id']=$tab[$i][$j]['value']; $tab[$i][$j]["label"]=''; $tab[$i][$j]["size"]="4"; $tab[$i][$j]["label_align"]="left"; $tab[$i][$j]["align"]="center"; $tab[$i][$j]["valign"]="bottom"; $tab[$i][$j]["show"]=false; $tab[$i][$j]["value_export"] = $tab[$i][$j]['value']; $tab[$i][$j]["order"]='folders_system_id'; } if ($tab[$i][$j][$value] == "folder_full_label") { $tab[$i][$j]["label"]=_FOLDERID.' : '._FOLDERNAME; $tab[$i][$j]["size"]="30"; $tab[$i][$j]["label_align"]="left"; $tab[$i][$j]["align"]="center"; $tab[$i][$j]["valign"]="bottom"; $tab[$i][$j]["show"]=true; $tab[$i][$j]["value_export"] = $tab[$i][$j]['value']; $tab[$i][$j]['value']=$tab[$i][$j]['value']; $tab[$i][$j]["order"]="folder_full_label"; } if ($tab[$i][$j][$value] == "video_status") { $tab[$i][$j]["label"]=_STATUS; $tab[$i][$j]["size"]="10"; $tab[$i][$j]["label_align"]="left"; $tab[$i][$j]["align"]="center"; $tab[$i][$j]["valign"]="bottom"; $tab[$i][$j]["show"]=true; $tab[$i][$j]["value_export"] = $tab[$i][$j]['value']; $tab[$i][$j]['value']=$tab[$i][$j]['value']; $tab[$i][$j]["order"]="video_status"; } if($tab[$i][$j][$value]=="count_documents") { $tab[$i][$j]["label"]=_NUMBER_OF_DOCS; $tab[$i][$j]["size"]="10"; $tab[$i][$j]["label_align"]="right"; $tab[$i][$j]["align"]="right"; $tab[$i][$j]["valign"]="bottom"; $tab[$i][$j]["show"]=true; $tab[$i][$j]["value_export"] = $tab[$i][$j]['value']; $tab[$i][$j]["order"]="count_documents"; } } } } if (count($tab) >0 ) { //Clé de la liste $list_key = 'video_user'; //Initialiser le tableau de paramètres $paramsTab = array(); //Aspect de la liste $paramsTab['page_title'] = _RESULTS." : ".count($tab).' '._VIDEO_WORKBATCH_FOUND; $paramsTab['bool_big_page_title'] = false; $paramsTab['bool_sort'] = true; //Creation des liens $paramsTab['page_name'] = 'view_baskets'; $paramsTab['page_parameters'] = 'module=basket&baskets='.$_SESSION['current_basket']['id']; //Actions array $actions = array(); $action_icon = array( "href"=>$_SESSION['config']['businessappurl']."index.php?display=true&page=unlock_docs&module=postindexing&id=@@video_user@@&wb=@@video_batch@@&folder_id=@@folders_system_id@@", "icon"=>$_SESSION['config']['businessappurl']."static.php?filename=cadenas_vert.png", "tooltip"=>_UNLOCK_RES, "bool_alert"=>true, "alert_text"=> _REALLY_UNLOCK." @@video_batch@@ ?\\n" ); array_push($actions, $action_icon); $paramsTab['click_line_text']; //Afficher la liste $list->extended_list($tab, $list_key, $paramsTab, $actions); } else { ?>