0 ) { $list = "(" . $_REQUEST['marked'][0]; for ($i=1; $i<$l; $i++) { $list .= "," . $_REQUEST['marked'][$i]; } $list .= ")"; if ($markaction == 'del') { $message = runsql('delete from ' . $tbpref . 'tags where TgID in ' . $list, "Deleted"); runsql("DELETE " . $tbpref . "wordtags FROM (" . $tbpref . "wordtags LEFT JOIN " . $tbpref . "tags on WtTgID = TgID) WHERE TgID IS NULL", ''); adjust_autoincr('tags', 'TgID'); } } } } } // ALL ACTIONS if (isset($_REQUEST['allaction'])) { $allaction = $_REQUEST['allaction']; if ($allaction == 'delall') { $message = runsql('delete from ' . $tbpref . 'tags where (1=1) ' . $wh_query, "Deleted"); runsql("DELETE " . $tbpref . "wordtags FROM (" . $tbpref . "wordtags LEFT JOIN " . $tbpref . "tags on WtTgID = TgID) WHERE TgID IS NULL", ''); adjust_autoincr('tags', 'TgID'); } } // DEL elseif (isset($_REQUEST['del'])) { $message = runsql('delete from ' . $tbpref . 'tags where TgID = ' . $_REQUEST['del'], "Deleted"); runsql("DELETE " . $tbpref . "wordtags FROM (" . $tbpref . "wordtags LEFT JOIN " . $tbpref . "tags on WtTgID = TgID) WHERE TgID IS NULL", ''); adjust_autoincr('tags', 'TgID'); } // INS/UPD elseif (isset($_REQUEST['op'])) { // INSERT if ($_REQUEST['op'] == 'Save') { $message = runsql( 'insert into ' . $tbpref . 'tags (TgText, TgComment) values(' . convert_string_to_sqlsyntax($_REQUEST["TgText"]) . ', ' . convert_string_to_sqlsyntax_nonull($_REQUEST["TgComment"]) . ')', "Saved", $sqlerrdie = false ); } // UPDATE elseif ($_REQUEST['op'] == 'Change') { $message = runsql( 'update ' . $tbpref . 'tags set TgText = ' . convert_string_to_sqlsyntax($_REQUEST["TgText"]) . ', TgComment = ' . convert_string_to_sqlsyntax_nonull($_REQUEST["TgComment"]) . ' where TgID = ' . $_REQUEST["TgID"], "Updated", $sqlerrdie = false ); } } // NEW if (isset($_REQUEST['new'])) { ?>

New Tag

Tag: Field must not be empty
Comment:

Edit Tag

Tag: Field must not be empty
Comment:
$pages) { $currentpage = $pages; } $limit = 'LIMIT ' . (($currentpage-1) * $maxperpage) . ',' . $maxperpage; $sorts = array('TgText','TgComment','TgID desc','TgID asc'); $lsorts = count($sorts); if ($currentsort < 1) { $currentsort = 1; } if ($currentsort > $lsorts) { $currentsort = $lsorts; } ?>

New New Term Tag ...

0) { ?>
Filter Filter 
Tag Text or Comment:    
Tag Sort Order:

No tags found.

Multi Actions Multi Actions
ALL : 
Marked Tags: 
'; } mysqli_free_result($res); ?>
Mark Actions Tag Text Tag Comment Terms With Tag
 Edit  Delete  ' . tohtml($record['TgText']) . ' ' . tohtml($record['TgComment']) . ' ' . ($c > 0 ? '' . $c . '' : '0' ) . '
1) { ?>
Tag