[TYPO3-dev] Delete all record as a link
Tapio Markula
tapio.markula at xetpoint.fi
Fri Oct 19 11:42:20 CEST 2007
Hi
I would need in a plugin 'Delete all records'
as link, which needs confirmation
<a class="button" style="display:block; width: 180px; border: 1px solid
#cecece;padding:1px 2px;margin-top:2px" href="#"
onclick="'.htmlspecialchars('if
(confirm(\''.$LANG->getLL('deleteWarning').'\'))
{window.self(\'db_list.php?id='.$this->id.'&delete_record='.$table.'\');}
else return
false;').'"><img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/garbage.gif','').'
title="'.$GLOBALS['LANG']->sL('LLL:EXT:tm_contentaccess/locallang_extra.xml:deleteAllRecords').'"
alt=""
/>'.$GLOBALS['LANG']->sL('LLL:EXT:tm_contentaccess/locallang_extra.xml:deleteAllRecords').'</a>
Pressing ok doesn't do anything
More information about the TYPO3-dev
mailing list