0 ORDER BY ss_name, ss_spoken;"); $total = mysql_num_rows($r); if ($total>10) { $pages .= "

Pages: "; for ($i=0; $i$verb is not a part of any synset yet"; } else { print ''; print ""; if (!defined('CPSS')) { print ""; } $max = $total; if (!empty($pages)) { if ($p!=='all') { mysql_data_seek($r, 10*$p); $max = 10; } } $i = 0; while (($synset = mysql_fetch_assoc($r)) && $i < $max) { $class = ($synset['ss_spoken']==1 ? " class='spoken'" : ""); print ""; } elseif (!empty($ss)) { print ""; } else { print ""; } $i++; } print "
IDSynsetMeanings $synset[ss_id]$synset[ss_name]"; $rm = mysql_query(" SELECT v.*, m.* FROM pvc_verbs v INNER JOIN pvc_meanings m ON m_vid=v.id INNER JOIN pvc_synonyms s ON sn_meaning=m_id WHERE sn_synset=$synset[ss_id] ORDER BY sn_order"); $cnt = 1; while ($meaning = mysql_fetch_assoc($rm)) { if ($cnt>1) print ", "; print $cnt.") ".str_replace(' ', ' ', $meaning['pers_inf']) ." ".str_replace(' ', ' ', $meaning['m_text']).""; $cnt++; } if (defined('CPSS')) { print "

has: [ add a relation ]"; print "

    " . GetRelations($synset['ss_id']) . "
" . str_replace('#scriptparams#', "$synset[ss_id], $synset[ss_spoken]", $options) . "
select
"; } print "

New synsets

"; $r = mysql_query(" SELECT ss.* FROM pvc_synsets ss LEFT JOIN pvc_synonyms sn ON ss_id=sn_synset GROUP BY ss_id HAVING COUNT(sn_synset)=0"); print ' '; if (!defined('CPSS')) print ''; print ' '; if (mysql_num_rows($r)>0) { while ($synset = mysql_fetch_assoc($r)) { $class = ($synset['ss_spoken']==1 ? " class='spoken'" : ""); print ""; } elseif (!empty($ss)) { print ""; } else { print ""; } } } print "
IDSynset 
$synset[ss_id]$synset[ss_name]"; if (defined('CPSS')) { print "

has: [ add a relation ]"; print "

    " . GetRelations($synset['ss_id']) . "
" . str_replace('#scriptparams#', "$synset[ss_id], $synset[ss_spoken]", $options) . "
select
"; ?>

Add a new synset: