{
$res = XDB::query("SELECT icon
FROM profile_networking_enum
- WHERE network_type = {?}",
+ WHERE nwid = {?}",
$mid);
$img = dirname(__FILE__) . '/../htdocs/images/networking/' . $res->fetchOneCell();
$type = mime_content_type($img);
}
}
- function handler_ajax_searchname(&$page, $id)
+ function handler_ajax_searchname(&$page, $id, $isFemale)
{
header('Content-Type: text/html; charset=utf-8');
$page->changeTpl('profile/general.searchname.tpl', NO_SKIN);
WHERE NOT FIND_IN_SET('not_displayed', flags)
AND NOT FIND_IN_SET('always_displayed', flags)");
$page->assign('sn_type_list', $res->fetchAllAssoc());
+ $page->assign('isFemale', $isFemale);
$page->assign('i', $id);
}
function handler_admin_networking(&$page, $action = 'list', $id = null) {
$page->assign('xorg_title', 'Polytechnique.org - Administration - Networking');
$page->assign('title', 'Gestion des types de networking');
- $table_editor = new PLTableEditor('admin/networking', 'profile_networking_enum', 'network_type');
+ $table_editor = new PLTableEditor('admin/networking', 'profile_networking_enum', 'nwid');
$table_editor->describe('name', 'intitulé', true);
$table_editor->describe('icon', 'nom de l\'icĂ´ne', false);
$table_editor->describe('filter', 'filtre', true);