Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE OR ALTER FUNCTION [dbo].help_show
- (
- @code nvarchar(128),
- @s nvarchar(max)
- ) RETURNS nvarchar(max) as
- BEGIN
- DECLARE @res nvarchar(max)=''
- declare @isDemo bit =iif( dbo.as_setting('demo', '0')='1', 1, 0)
- if(@isDemo=1) begin
- set @res = '
- <div class="as-oneShow as-oneShow-hideOnClick alert alert-info alert-dismissible" data-code="x1'+@code+'">
- <h3><i class="far fa-hand-point-right"></i> Подсказка по демо</h3>
- '+@s+'
- <a href="#" class="close" data-dismiss="alert" ><i class="fa fa-times"></i></a>
- </div>
- '
- end
- return @res
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement