table.' '. 'WHERE link_id = '.$id; $rs = $con->select($strReq); $l_label = $rs->f('label'); $l_href = $rs->f('href'); $l_title = $rs->f('title'); $l_lang = $rs->f('lang'); $l_rel = $rs->f('rel'); if (!$rs->isEmpty() && $action == 'edit_link') { $l_label = trim($_POST['l_label']); $l_title = trim($_POST['l_title']); $l_href = trim($_POST['l_href']); $l_lang = trim($_POST['l_lang']); if (!$l_label || !$l_href) { $err = __('You must provide at least a label and an URL'); } else { $rel = ''; if (isSet($_POST['identity'])) $rel .= $_POST['identity']; else { if(isSet($_POST['friendship'])) $rel .= ' '.$_POST['friendship']; if(isSet($_POST['physical'])) $rel .= ' met'; if(isSet($_POST['professional'])) $rel .= ' '.implode(' ',$_POST['professional']); if(isSet($_POST['geographical'])) $rel .= ' '.$_POST['geographical']; if(isSet($_POST['family'])) $rel .= ' '.$_POST['family']; if(isSet($_POST['romantic'])) $rel .= ' '.implode(' ',$_POST['romantic']); } if ($blogroll->updLink($id,$l_label,$l_href,$l_title,$l_lang, $rel) == false) { $err = $blogroll->con->error(); } else { header('Location: '.$url); exit; } } } # Affichage $mySubMenu->addItem( ''.__('Back').'',array($url),$icon,false); buffer::str('
'.__('Error(s)').' :
'. ''.$err.'
'. ''.__('No link').'
'); } else { buffer::str( '' ); } ?>