PHP Classes

File: docs/templates/default/index.view.html.twig

Recommend this page to a friend!
  Classes of milenmk   Simple PHP Password Manager   docs/templates/default/index.view.html.twig   Download  
File: docs/templates/default/index.view.html.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple PHP Password Manager
Application to store and retrieve user password
Author: By
Last change:
Date: 1 year ago
Size: 3,398 bytes
 

Contents

Class file image Download
{% extends 'base.html.twig' %} {% block body %} <div class="d-flex justify-content-between align-items-center mb-2"> <form method="post"> <input type="hidden" name="action" value="add_domain"/> <h4><i class="bi bi-plus-square" onclick="this.closest('form').submit();"></i></h4> </form> <h6> {{ count }} </h6> </div> <table class="table table-success table-striped table-responsive"> <thead> <tr> <th scope="col">{{ langs.trans('Label') }}</th> <th scope="col">{{ langs.trans('HasWebsite') }}</th> <th scope="col">{{ langs.trans('HasFTP') }}</th> <th scope="col">{{ langs.trans('HasDatabase') }}</th> <th scope="col"></th> </tr> </thead> <tbody> {% if res > 0 %} {% for result in res %} <tr> <td><a href="https://{{ result.label }}" target="_blank">{{ result.label }}</a></td> {% if result.website > 0 %} <td class="text-center"><img src="{{ main_url }}/themes/{{ theme }}/img/yes.png" alt="yes.png"/></td> {% else %} <td class="text-center"><img src="{{ main_url }}/themes/{{ theme }}/img/no.png" alt="no.png"/></td> {% endif %} {% if result.ftp > 0 %} <td class="text-center"><img src="{{ main_url }}/themes/{{ theme }}/img/yes.png" alt="yes.png"/></td> {% else %} <td class="text-center"><img src="{{ main_url }}/themes/{{ theme }}/img/no.png" alt="no.png"/></td> {% endif %} {% if result.data_base > 0 %} <td class="text-center"><img src="{{ main_url }}/themes/{{ theme }}/img/yes.png" alt="yes.png"/></td> {% else %} <td class="text-center"><img src="{{ main_url }}/themes/{{ theme }}/img/no.png" alt="no.png"/></td> {% endif %} <td> <div class="d-grid gap-2 d-md-flex justify-content-md-end"> <a href="{{ main_url }}/records.php?fk_domain={{ result.id }}"> <button class="btn btn-primary btn-sm">{{ langs.trans('ViewRecords') }}</button> </a> <form method="post"> <input type="hidden" name="id" value="{{ result.id }}"/> <input type="hidden" name="action" value="edit_domain"/> <input class="btn btn-success btn-sm" type="submit" name="submit" value="{{ langs.trans('Edit') }}"/> </form> <form method="post"> <input type="hidden" name="id" value="{{ result.id }}"/> <input type="hidden" name="action" value="delete"/> <input class="btn btn-danger btn-sm" type="submit" name="submit" value="{{ langs.trans('Delete') }}"/> </form> </div> </td> </tr> {% endfor %} {% endif %} </tbody> </table> {% endblock %}