文章来源:http://lwp8407120426.blog.163.com/blog/static/46428075200810208465167/
Tags: MySQLMySQL | 数据库数据库 | SaaSSaaS
2008-12-15 15:20:54 | 编辑
Mysql(SaaS)数据库设计要点
CmdUtils.CreateCommand({
name: "dudu",
takes: {"tag name": noun_arb_text},
icon: "http://www.duduwolf.com/image/favicon.ico",
_content: function(){
return CmdUtils.getSelection();
},
_getTitle: function() {
return window.document.title;
},
_getUrl: function() {
return Application.activeWindow.activeTab.document.URL;
},
preview: function( pblock ) {
var msg = '<div>文档标题为:<span style="color:green;font-weight:bold;">${title}</div><div>文档URL为:<span style="color:green;font-weight:bold;">${url}</span></div>';
pblock.innerHTML = CmdUtils.renderTemplate(msg, {title: this._getTitle(), url: this._getUrl()});
},
execute: function() {
Utils.openUrlInBrowser('http://www.duduwolf.com/KMS_ADMIN/kms_add.asp?l=' + encodeURIComponent(this._getUrl()) + '&t=' + encodeURIComponent(this._getTitle()));
}
})
name: "dudu",
takes: {"tag name": noun_arb_text},
icon: "http://www.duduwolf.com/image/favicon.ico",
_content: function(){
return CmdUtils.getSelection();
},
_getTitle: function() {
return window.document.title;
},
_getUrl: function() {
return Application.activeWindow.activeTab.document.URL;
},
preview: function( pblock ) {
var msg = '<div>文档标题为:<span style="color:green;font-weight:bold;">${title}</div><div>文档URL为:<span style="color:green;font-weight:bold;">${url}</span></div>';
pblock.innerHTML = CmdUtils.renderTemplate(msg, {title: this._getTitle(), url: this._getUrl()});
},
execute: function() {
Utils.openUrlInBrowser('http://www.duduwolf.com/KMS_ADMIN/kms_add.asp?l=' + encodeURIComponent(this._getUrl()) + '&t=' + encodeURIComponent(this._getTitle()));
}
})