Kontakty
Popíšeme jak v Opencarte přejmenujeme špatně založenou strukturu obrázků
DROP FUNCTION IF EXISTS fn_remove_accents; DELIMITER | CREATE FUNCTION fn_remove_accents( textvalue VARCHAR(10000) ) RETURNS VARCHAR(10000) BEGIN SET @textvalue = textvalue; -- ACCENTS SET @withaccents = ’QWERTYUIOPASDFGHJKLZXCVBNMŠšŽžÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝŸÞàáâãäåæçèéêëìíîïñòóôõöøùúûüýÿþƒ _’; SET @withoutaccents = ’qwertyuiopasdfghjklzxcvbnmsszzaaaaaaaceeeeiiiinoooooouuuuyybaaaaaaaceeeeiiiinoooooouuuuyybf--’; SET @count = LENGTH(@withaccents); WHILE @count > 0 DO SET @textvalue = REPLACE(@textvalue, SUBSTRING(@withaccents, @count, 1), SUBSTRING(@withoutaccents, @count, 1)); SET @count = @count - 1; END WHILE; -- SPECIAL CHARS SET @special = ’!@#$%¨&*()+=§¹²³£¢¬"`´{[^~}]<,>:;?°ºª+*|’’’; SET @count = LENGTH(@special); WHILE @count > 0 do SET @textvalue = REPLACE(@textvalue, SUBSTRING(@special, @count, 1), ’’); SET @count = @count - 1; END WHILE; RETURN @textvalue; END | DELIMITER;
Q | W | E | R | T | Y | U | I | O | P | A | S | D | F | G | H | J | K | L | Z | X | C | V | B | N | M | Š | š | Ž | ž | À | Á | Â | Ã | Å | Æ | Ç | È | É | Ê | Ë | Ì | Í | Î | Ï | Ñ | Ò | Ó | Ô | Õ | √ | Ø | Ù | Ú | Û | Ü | Ý | Þ | | | á | ç | è | é | ê | ë | ì | í | ï | ñ | ò | o | ô | õ | ö | ø | ù | ú | û | ü | ý | ÿ | þ | ƒ | | _ |
q | w | e | r | t | y | u | i | o | p | a | s | d | f | g | h | j | k | l | z | x | c | v | b | n | m | s | s | z | z | a | a | a | a | a | a | c | e | e | e | e | i | i | i | i | n | o | o | o | o | o | o | o | u | u | u | u | y | y | b | a | a | a | a | a | a | a | c | e | e | e | e | i | i | i | i | i | n | o | o | o | o | o | o | u | u | u | u | y | y | b | f | - | - |