'AddInfo', 'URL' => get_admin_plugin_menu_link(ADDINFO_PATH . 'admin/admin.php'))); return $menu; } //Ajout du prefiltre image add_event_handler('loc_begin_admin', 'Imodadminf',55); add_event_handler('loc_begin_admin', 'ImodadminA',55); function Imodadminf() { global $template; $template->set_prefilter('picture_modify', 'ImodadminfT'); } function ImodadminfT($content, &$smarty) { load_language('plugin.lang', ADDINFO_PATH); load_language('lang', PHPWG_ROOT_PATH.'local/', array('no_fallback'=>true, 'local'=>true) ); $search = '#
{\'addinfo_info1\'|@translate} :


{\'addinfo_info2\'|@translate} :


{\'addinfo_info3\'|@translate} :


assign( array( //'AIVALUE' => $idaddinfo, 'AICONTENT' => $info1, 'AICONTENT2' => $info2, 'AICONTENT3' => $info3, )); } if (isset($_POST['submitinsimg'])) { $query = ' DELETE FROM ' . ADDINFO_TABLE . ' WHERE id = '.$_GET['image_id'].' ;'; $result = pwg_query($query); $q = ' INSERT INTO ' . $prefixeTable . 'AddInfo_images(id,info1,info2,info3)VALUES ('.$_GET['image_id'].',"'.$_POST['inser'].'","'.$_POST['inser2'].'","'.$_POST['inser3'].'");'; pwg_query($q); $template->assign( array( 'AICONTENT' => $_POST['inser'], 'AICONTENT2' => $_POST['inser2'], 'AICONTENT3' => $_POST['inser3'], )); } } ?>