Created
March 1, 2014 04:11
-
-
Save leonguyen/9285034 to your computer and use it in GitHub Desktop.
ad_user frm_detail
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
| <div class="page-header"> | |
| <h3>Detail</h3> | |
| </div> | |
| <div class="row"><div class="col-md-5 form-group"> | |
| <label class="control-label" for="lstBrDt">Branch</label> | |
| <select class="form-control chosen-select" multiple data-placeholder="Select Branch" id="lstBrDt" name="lstBrDt"> | |
| <% if(typeof(lstBr)!='undefined'){ lstBr.forEach(function(ml){ %> | |
| <option value="<%=ml.bId?ml.bId:''%>"><%=ml.bCode?ml.bCode:''%></option> | |
| <% });}//lstBr %> | |
| </select></div> | |
| <div class="col-md-5 form-group"> | |
| <label class="control-label" for="selRl">Role</label> | |
| <select class="form-control" id="selRl" name="selRl"> | |
| <option value="">Select Role</option> | |
| <% if(typeof(lstRl)!='undefined'){ lstRl.forEach(function(ml){ %> | |
| <option value="<%=ml.rId?ml.rId:''%>"><%=ml.rName?ml.rName:''%></option> | |
| <% });}//selRl %> | |
| </select> | |
| </div> | |
| <div class="col-md-2 form-group"> | |
| <% if(typeof(sess.AuthList['E'])!='undefined' || typeof(sess.AuthList['S'])!='undefined'){%> | |
| <label class="control-label" for="btnAdd"> </label> | |
| <button class="form-control" type="submit" class="btn btn-default" id="btnAdd" name="btnAdd" onclick="save()"><span class="glyphicon glyphicon-floppy-disk"></span> Add</button> | |
| <%}//if%> | |
| </div></div> | |
| <table class="table table-bordered"> | |
| <thead> | |
| <tr> | |
| <th>Branch</th> | |
| <th>Role</th> | |
| <th>Action </th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <% if(typeof(lstDt)!='undefined'){ lstDt.forEach(function(ml){ %> | |
| <tr> | |
| <td><%=ml.bCode?ml.bCode:''%></td> | |
| <td><%=ml.rName?ml.rName:''%></td> | |
| <td> | |
| <div class="btn-group"> | |
| <% if(typeof(sess.AuthList['D'])!='undefined'){%> | |
| <button type="button" id="btnDelDt" name="btnDelDt" class="btn btn-default dropdown-toggle" data-toggle="dropdown" onclick="delDt(<%=ml.urId?ml.urId:''%>,<%=typeof(mr)!='undefined'?mr.uId:''%>)"> | |
| <span class="glyphicon glyphicon-remove"></span> Delete | |
| </button> | |
| <%}//if%> | |
| </div> | |
| </td> | |
| </tr> | |
| <% });}//lstDt %> | |
| </tbody> | |
| </table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment