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
| Fiber(function() { | |
| //Code here | |
| }).run(); |
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
| <%=typeof(mr)!='undefined'?mr.uName:''%> |
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
| <% mlist.forEach(function(ml){ %> | |
| <%=ml.uName?ml.uName:''%> | |
| <% });//mlist %> |
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
| <button type="button" class="btn btn-default" id="btnBack" onclick="location.href='/ad_user'"><span class="glyphicon glyphicon-chevron-left"></span> Back</button> | |
| <% if(typeof(sess.AuthList['D'])!='undefined'){%> | |
| <button type="button" class="btn btn-default" id="btnDelete" <%=typeof(mr)!='undefined'?'':'disabled="disabled'%> <%=typeof(mr)!='undefined'&&mr.uId==sess.uId?'style=display:none':''%> onclick="del(<%=typeof(mr)!='undefined'?mr.uId:''%>)"><span class="glyphicon glyphicon-remove"></span> Delete</button> | |
| <%}//if%> | |
| <% if(typeof(sess.AuthList['E'])!='undefined' || typeof(sess.AuthList['S'])!='undefined'){%> | |
| <button type="button" class="btn btn-default" id="btnSave" onclick="save()"><span class="glyphicon glyphicon-floppy-disk"></span> Save</button> | |
| <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> | |
| <span class="caret"></span> | |
| </button> | |
| <ul class="dropdown-menu" role="menu"> |
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
| <link href="/javascripts/chosen/chosen.css" rel="stylesheet" type="text/css" /> | |
| <script type="text/javascript" src="/javascripts/chosen/chosen.jquery.js"></script> | |
| <script type="text/javascript"> | |
| $(".chosen-select").chosen({}); | |
| function save(value){ | |
| if($('#frm').parsley('validate')){ | |
| if(value) document.getElementById('hdSave').value = value; | |
| $('#frm').submit(); | |
| } | |
| } |
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> |
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"> | |
| <div class="btn-group pull-right"><% include button %></div> | |
| <h2><%=title%></h2> | |
| </div> | |
| <form id="frm" class="form" role="form" data-validate="parsley" method="post" enctype="multipart/form-data" action="/ad_user/save"> | |
| <div class="row"><div class="col-md-6 form-group"> | |
| <label class="control-label" for="txtName">Username</label> |
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
| <script type="text/javascript"> | |
| function del(id){ | |
| var n = noty({ | |
| layout: 'center', | |
| type: 'alert', | |
| modal: false, | |
| closeWith: ['click'], | |
| text: 'Do you want to delete?', | |
| buttons: [ | |
| {addClass: 'btn btn-primary', text: 'Ok', onClick: function($noty) { |
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
| <script type="text/javascript"> | |
| var options = { | |
| size:"small", | |
| alignment:"right", | |
| currentPage: <%=typeof(pg)!='undefined'?pg.current:''%>, | |
| totalPages: <%=typeof(pg)!='undefined'?pg.pageCount:''%>, | |
| pageUrl: function(type, page, current){ | |
| return '<%=typeof(pg)!='undefined'?pg.prelink:''%>' + page; | |
| } | |
| } |
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"> |