SET @template := 'membershipRenewedToAdmin'; SET @categoryId := 4; SET @sorter := (SELECT MAX(sorter) FROM sta_Settings WHERE idCategory = @categoryId) + 1; INSERT INTO `sta_Settings` (`name`, `idCategory`, `fieldType`, `label`, `value`, `options`, `description`, `required`, `system`, `sorter`, `added`, `changed`) VALUES (CONCAT(@template, 'Header'), @categoryId, 'header', '', 'Renew Membership (Admin Notification)', '', '', 'n', 'n', @sorter, NOW(), NOW()), (CONCAT(@template, 'Subject'), @categoryId, 'text', 'Subject', '{fullName} has renewed his/her membership', '', '', 'y', 'n', @sorter + 1, NOW(), NOW()), (CONCAT(@template, 'From'), @categoryId, 'text', 'From Email Address   If you leave this field empty - the From Email Address will be the same as the one in General Settings.', '', '', '', 'n', 'n', @sorter + 2, NOW(), NOW()), (CONCAT(@template, 'Body'), @categoryId, 'HtmlEditor', 'Message Body', '

{fullName} has renewed his/her membership

Membership: {membershipTitle}
Previous Expiration Date: {previousExpirationDate}
New Expiration Date: {newExpirationDate}

View member''s profile

', '', 'Constants: {fullName} {membershipTitle} {previousExpirationDate} {newExpirationDate} {userEditUrl}', 'y', 'n', @sorter + 3, NOW(), NOW()); INSERT INTO `sta_SettingsOptions` (`name`, `variable`, `value`, `type`, `sorter`) VALUES (CONCAT(@template, 'Body'), 'mode', 'view', 'string', NULL);