/** * Cancel operation * * @author John.meng * @since version - Dec 21, 2005 * @param datatype paramname description * @return datatype description */ function opCancel() { global $__Lang__, $MessageObj, $smarty; $GroupDAO = new GroupDAO(); if ($delNum = $GroupDAO->delRowsByID(GROUPS_TABLE, "GroupsID", $_REQUEST['ID'])) { $smarty->assign("Main", $MessageObj->displayMsg($__Lang__['langGeneralCancel'] . " <font color='red' > <b> {$delNum} </b> </font> " . $__Lang__['langGeneralRecord'], "MSG")); } }