|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <h2><%= H(Model.Title) %></h2>
- <div class="row">
- <div class="col-md-8 col-sm-8 col-xs-12">
- <%= H(Model.RecordCount) %> Contacts found. Showing <%= H(Model.PageSize) %> records per page.
- <%= HTML.LinkToExt("<i class='bi bi-plus-square-fill'></i> New","Contacts", "Create", empty, Array("class", "btn btn-xs btn-primary")) %>
- </div>
- <div class="col-md-4 col-sm-4 col-xs-12">
-
- <%= HTML.FormTag("Contacts", "Search", empty, empty) %>
-
- <div class="col-md-10 col-sm-10 col-xs-12">
- <label class="sr-only" for="search">Search</label>
- <div class="input-group">
- <input type="text" class="form-control input-search" value='<%= Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q")) %>' name="q" id="search" placeholder="Search">
- <span class="input-group-addon group-icon"><span class="glyphicon glyphicon-eye-open"></span>
- <button type="submit" class="btn btn-success"><i class="bi bi-search"></i>Search</buttton>
- </div>
- </div>
-
- </form>
- </div>
- </div>
- <table id="Contacts" class="table table-striped">
- <thead>
- <tr>
- <th></th>
- <th style="text-align: left">ID</th>
- <th style="text-align: left">JURISCODE</th>
- <th style="text-align: left">TownshipName</th>
- <th style="text-align: left">CONTACT_NAME</th>
- <th style="text-align: left">TownshipNum</th>
- <th style="text-align: left">BUSINESS_ADDRESS</th>
- <th style="text-align: left">TITLE</th>
- <th style="text-align: left">BUSINESS_ADDRESS2</th>
- <th style="text-align: left">BUSINESS_ADDRESS3</th>
- <th style="text-align: left">MAILING_ADDRESS</th>
- <th style="text-align: left">MAILING_ADDRESS2</th>
- <th style="text-align: left">MAILING_ADDRESS3</th>
- <th style="text-align: left">RESIDENTIAL_ADDRESS</th>
- <th style="text-align: left">RESIDENTIAL_ADDRESS2</th>
- <th style="text-align: left">PHONENUM1</th>
- <th style="text-align: left">RESIDENTIAL_ADDRESS3</th>
- <th style="text-align: left">FAXNUM</th>
- <th style="text-align: left">PHONENUM2</th>
- <th style="text-align: left">EMAIL</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <% dim it : set it = Model.Contacts.Iterator %>
- <% dim Contacts %>
- <% While it.HasNext %>
- <% set Contacts = it.GetNext() %>
- <tr>
- <td>
- <%= HTML.LinkToExt("<i class='bi bi-search'></i>", "Contacts", "Edit", Array("Id", Contacts.ID), Array("class", "btn btn-primary")) %>
- </td>
- <td><% = H(Contacts.ID) %></td>
- <td><% = H(Contacts.JURISCODE) %></td>
- <td><% = H(Contacts.TownshipName) %></td>
- <td><% = H(Contacts.CONTACT_NAME) %></td>
- <td><% = H(Contacts.TownshipNum) %></td>
- <td><% = H(Contacts.BUSINESS_ADDRESS) %></td>
- <td><% = H(Contacts.TITLE) %></td>
- <td><% = H(Contacts.BUSINESS_ADDRESS2) %></td>
- <td><% = H(Contacts.BUSINESS_ADDRESS3) %></td>
- <td><% = H(Contacts.MAILING_ADDRESS) %></td>
- <td><% = H(Contacts.MAILING_ADDRESS2) %></td>
- <td><% = H(Contacts.MAILING_ADDRESS3) %></td>
- <td><% = H(Contacts.RESIDENTIAL_ADDRESS) %></td>
- <td><% = H(Contacts.RESIDENTIAL_ADDRESS2) %></td>
- <td><% = H(Contacts.PHONENUM1) %></td>
- <td><% = H(Contacts.RESIDENTIAL_ADDRESS3) %></td>
- <td><% = H(Contacts.FAXNUM) %></td>
- <td><% = H(Contacts.PHONENUM2) %></td>
- <td><% = H(Contacts.EMAIL) %></td>
- </tr>
- <% Wend %>
- </tbody>
- </table>
- <div>
- <% If Model.CurrentPageNumber <> 1 then %>
- <%= HTML.LinkToExt("<i class='bi bi-chevron-left'></i><i class='bi bi-chevron-left'></i>", MVC.ControllerName, MVC.ActionName, Array("page_num", 1,"q", Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q"))), Array("class", "btn btn-default")) %>
-
- <%= HTML.LinkToExt("<i class='bi bi-chevron-left'></i>", MVC.ControllerName, MVC.ActionName, Array("page_num", Model.CurrentPageNumber - 1,"q", Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q"))), Array("class", "btn btn-default")) %>
-
- <% Else %>
- <a class='btn btn-default disabled'><i class='bi bi-chevron-left'></i><i class='bi bi-chevron-left'></i></a>
-
- <a class='btn btn-default disabled'><i class='bi bi-chevron-left'></i></a>
-
- <% End If %>
- <% If CInt(Model.CurrentPageNumber) < CInt(Model.PageCount) then %>
- <%= HTML.LinkToExt("<i class='bi bi-chevron-right'></i>", MVC.ControllerName, MVC.ActionName, Array("page_num", Model.CurrentPageNumber + 1,"q", Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q"))), Array("class", "btn btn-default")) %>
-
- <%= HTML.LinkToExt("<i class='bi bi-chevron-right'></i><i class='bi bi-chevron-right'></i>", MVC.ControllerName, MVC.ActionName, Array("page_num", Model.PageCount,"q", Choice(Request.Form.Count = 0,Request.QueryString("q"),Request.Form("q"))), Array("class", "btn btn-default")) %>
-
- <% Else %>
- <a class='btn btn-default disabled'><i class='bi bi-chevron-right'></i><i class='bi bi-chevron-right'></i></a>
-
- <a class='btn btn-default disabled'><i class='bi bi-chevron-right'></i></a>
-
- <% End If %>
- </div>
- </div>
|