40 lines
1.1 KiB
Perl
40 lines
1.1 KiB
Perl
package WebGUI::i18n::English::Macro_SQL;
|
|
|
|
our $I18N = {
|
|
|
|
'macroName' => {
|
|
message => q|SQL|,
|
|
lastUpdated => 1128919058,
|
|
},
|
|
|
|
'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,
|
|
},
|
|
|
|
'illegal query' => {
|
|
message => q|Cannot execute this type of query.|,
|
|
lastUpdated => 1135105884,
|
|
},
|
|
|
|
'sql error' => {
|
|
message => q|<p><b>SQL Macro Failed:</b>%s<p>|,
|
|
lastUpdated => 1135105919,
|
|
},
|
|
|
|
};
|
|
|
|
1;
|