move all macros into a namespace
This commit is contained in:
parent
0554039f51
commit
6876239b0e
50 changed files with 50 additions and 50 deletions
24
lib/WebGUI/i18n/English/Macro_SQL.pm
Normal file
24
lib/WebGUI/i18n/English/Macro_SQL.pm
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
package WebGUI::i18n::English::Macro_SQL;
|
||||
|
||||
our $I18N = {
|
||||
|
||||
'sql title' => {
|
||||
message => q|SQL Macro|,
|
||||
lastUpdated => 1112466408,
|
||||
},
|
||||
|
||||
'sql body' => {
|
||||
message => q|
|
||||
<b>^SQL();</b><br>
|
||||
A one line SQL report. Sometimes you just need to pull something back from the database quickly. This macro is also useful in extending the SQL Report wobject. It uses the numeric macros (^0; ^1; ^2; etc) to position data and can also use the ^^rownum; macro just like the SQL Report wobject. Examples:<p>
|
||||
^SQL("select count(*) from users","There are ^0; users on this system.");
|
||||
<p>
|
||||
^SQL("select userId,username from users order by username","<a href='^/;?op=viewProfile&uid=^0;'>^1;</a><br>");
|
||||
<p>
|
||||
|
||||
|,
|
||||
lastUpdated => 1112466919,
|
||||
},
|
||||
};
|
||||
|
||||
1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue