This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async.each(cfg.msdbA, function(config, cb){ | |
| var connection = new sql.Connection(config, function(err){ | |
| var request = new sql.Request(connection); | |
| var queryStr = ""; | |
| request.query(queryStr, function(err, rows) { | |
| if(err) console.log(err); | |
| //Code here | |
| }); | |
| }); | |
| }, function(err){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *View | |
| <label class="control-label" for="txtName">Username</label> | |
| <input type="text" class="form-control" id="txtName" name="txtName" value="<%=typeof(sess.search)!='undefined'&&typeof(sess.search.uName)!='undefined'?sess.search.uName:''%>" placeholder="Username" autofocus autocomplete="off"></th> | |
| --- | |
| <th>Username <a href="/ad_user/search?uName=ASC">▲</a><a href="/ad_user/search?uName=DESC">▼</a></th> | |
| --- | |
| <td><%=ml.uName?ml.uName:''%></td> | |
| *Route | |
| search['name'] = req.body.txtName?req.body.txtName:''; | |
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% include ../header %> | |
| <% include ../admin/menu %> | |
| <% include ../admin/msg %> | |
| <div class="page-header"> | |
| <% if(typeof(sess.AuthList['N'])!='undefined'){%> | |
| <button type="button" class="btn btn-default pull-right" id="btnAdd" name="btnAdd" onclick="location.href='/ad_user/create'"><span class="glyphicon glyphicon-plus"></span> Add new</button> | |
| <%}//if%> | |
| <h2><%=title%></h2> | |
| </div> | |
| <form id="frm" name="frm" class="form" role="form" method="post" action="/ad_user/search"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <table class="table"> | |
| <thead><tr> | |
| <th width="88px;" style="border-bottom:none"> | |
| <label class="control-label" for="txtNo">No.</label> | |
| <input type="text" class="form-control" id="txtNo" name="txtNo" value="<%=typeof(sess.search)!='undefined'?sess.search.no:''%>" placeholder="No." autofocus autocomplete="off"></th> | |
| <th width="88px;" style="border-bottom:none"> | |
| <label class="control-label" for="btnSearch"> </label> | |
| <button class="form-control" type="submit" class="btn btn-default" id="btnSearch" name="btnSearch"><span class="glyphicon glyphicon-search"></span> Search</button> | |
| </th> | |
| </tr></thead></table> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% include ../header %> | |
| <% include ../admin/menu %> | |
| <% include ../admin/msg %> | |
| <div class="page-header"> | |
| <% if(typeof(sess.AuthList['N'])!='undefined'){%> | |
| <button type="button" class="btn btn-default pull-right" id="btnAdd" name="btnAdd" onclick="location.href='/ad_user/create'"><span class="glyphicon glyphicon-plus"></span> Add new</button> | |
| <%}//if%> | |
| <h2><%=title%></h2> | |
| </div> | |
| <form id="frm" name="frm" class="form" role="form" method="post" action="/ad_user/search"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * GET admin awb page. | |
| */ | |
| var _this = this, | |
| prefix = 'sint_', | |
| tbl = 'al', id = 'aId', | |
| control = 'ad_awb'; | |
| var search = ''; | |
| exports.index = function(req, res) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setInterval(function() { | |
| //Code here | |
| }, interval); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async.series([ | |
| function(callback){ | |
| // do some stuff ... | |
| callback(null, 'one'); | |
| }, | |
| function(callback){ | |
| // do some more stuff ... | |
| callback(null, 'two'); | |
| }, | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setTimeout(function(){ | |
| //Code here | |
| }, 1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async.each(list, function(item, cb){ | |
| //Code here | |
| }, function(err){ | |
| if(err){ console.log(err); }; | |
| });//async.each |