Last active
August 29, 2015 13:56
-
-
Save leonguyen/9320092 to your computer and use it in GitHub Desktop.
ad_tpl list 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
| *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:''; | |
| --- | |
| var where = " WHERE uName LIKE " + conn.escape('%'+search['name']+'%'); | |
| --- | |
| if(req.query.JobId) | |
| sort = ' ORDER BY JobId ' + req.query.JobId; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment