$value_deflt_lang,
'langue' => $create_lang->table[$value_deflt_lang]
);
} else {
$langs[] = array(
'lang_code' => '',
'langue' => ''
);
}
// Création du selecteur de statut nouveauté en prenant le paramêtre utilisateur en compte
$is_new_select = '';
// Création du selecteur de langue d'indexation
$index_lang_select = new marc_select("languages", 'indexation_lang', $xmlta_indexation_lang, '', '--', '--');
// Sélecteur langue de publication
$lang_select = new marc_select("lang", 'record_default_lang', $value_deflt_lang, '', '--', '--');
$marc_select = new marc_select("doctype", 'record_types');
$cms_editorial_article = new cms_editorial_types('article');
$cms_editorial_section = new cms_editorial_types('section');
$cms_section = new cms_section();
$cms_article = new cms_article();
$cms_publication_state = new cms_editorial_publications_states();
$status = $cms_publication_state->get_selector_options();
$record_part = gen_plus("record_options",encoding_normalize::utf8_normalize($msg['dsi_docwatch_watch_form_options_record']),
'
');
$form = $docwatch_watch_form_tpl;
$form = str_replace('!!users_checkboxes!!', self::generate_users(), $form);
$form = str_replace('!!options_record!!', $record_part, $form);
$form = str_replace('!!options_article!!', $article_part,$form);
$form = str_replace('!!options_section!!', $section_part, $form);
$form = str_replace('!!options_rss!!', $rss_part, $form);
return $form;
}
public static function get_category_form(){
global $docwatch_category_form_tpl;
$form = $docwatch_category_form_tpl;
return $form;
}
public static function generate_users(){
global $dbh,$charset;
$counter = 1;
$users_checkboxes = "
";
$query = "select userid, username from users order by username";
$result=pmb_mysql_query($query, $dbh);
if (pmb_mysql_num_rows($result)) {
while($row=pmb_mysql_fetch_object($result)){
$checked = '';
if($row->userid == SESSuserid){
$checked = 'checked=\'checked\' onclick=\'return false;\'';
}
$users_checkboxes.= "
"."
";
if($counter%6 == 0){
$users_checkboxes.= "
";
}
$counter++;
}
}
$users_checkboxes.="
";
return $users_checkboxes;
}
public static function get_record_status(){
global $dbh, $msg, $charset, $statut_query;
// récupération des statuts de documents utilisés.
$query = "SELECT count(statut), id_notice_statut, gestion_libelle ";
$query .= "FROM notice_statut LEFT JOIN notices ON id_notice_statut=statut GROUP BY id_notice_statut order by gestion_libelle";
$res = pmb_mysql_query($query, $dbh);
$toprint_statutfield = "";
while ($obj = @pmb_mysql_fetch_row($res)) {
$toprint_statutfield .= "