update.tpl 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. {extends file='main.tpl'}
  2. {block name="title"}
  3. <title>Modificar {$name}</title>
  4. {/block}
  5. {block name="content"}
  6. <p>
  7. <strong>
  8. Modificar usuario: {$name}
  9. </strong>
  10. </p>
  11. <h2>{$message}</h2>
  12. <a href="users.php?page=read">Ir a lista</a>
  13. <form name="update_password" action="{$smarty.server.PHP_SELF}" method="post">
  14. <div class="fhide">
  15. <label for="page">Page: </label>
  16. <input type="text" name="page" value="update"/>
  17. </div>
  18. <div class="fhide">
  19. <label for="id">Id: </label>
  20. <input type="text" name="id" value="{$id}"/>
  21. </div>
  22. <div>
  23. <label for="password">Contraseña: </label>
  24. <input type="text" name="password" value="{$password}"/>
  25. </div>
  26. <div>
  27. <input type="submit" value="Modificar contraseña">
  28. </div>
  29. </form>
  30. {if $rol=='1'}
  31. <form name="update_to_admin" action="{$smarty.server.PHP_SELF}" method="post">
  32. <div class="fhide">
  33. <label for="page">Page: </label>
  34. <input type="text" name="page" value="update"/>
  35. </div>
  36. <div class="fhide">
  37. <label for="id">Id: </label>
  38. <input type="text" name="id" value="{$id}"/>
  39. </div>
  40. <div class="fhide">
  41. <label for="rol">Volver admin: </label>
  42. <input type="text" name="rol" value="0"/>
  43. </div>
  44. <div>
  45. <input type="submit" value="Volver admin">
  46. </div>
  47. </form>
  48. {/if}
  49. {if $rol=='0'}
  50. <form name="update_to_client" action="{$smarty.server.PHP_SELF}" method="post">
  51. <div class="fhide">
  52. <label for="page">Page: </label>
  53. <input type="text" name="page" value="update"/>
  54. </div>
  55. <div class="fhide">
  56. <label for="id">Id: </label>
  57. <input type="text" name="id" value="{$id}"/>
  58. </div>
  59. <div class="fhide">
  60. <label for="rol">Volver cliente: </label>
  61. <input type="text" name="rol" value="1"/>
  62. </div>
  63. <div>
  64. <input type="submit" value="Volver cliente">
  65. </div>
  66. </form>
  67. {/if}
  68. {if $softDelete=='1'}
  69. <form name="enable" action="{$smarty.server.PHP_SELF}" method="post">
  70. <div class="fhide">
  71. <label for="page">Page: </label>
  72. <input type="text" name="page" value="update"/>
  73. </div>
  74. <div class="fhide">
  75. <label for="id">Id: </label>
  76. <input type="text" name="id" value="{$id}"/>
  77. </div>
  78. <div class="fhide">
  79. <label for="softDelete">Habilitar: </label>
  80. <input type="text" name="softDelete" value="0"/>
  81. </div>
  82. <div>
  83. <input type="submit" value="Habilitar">
  84. </div>
  85. </form>
  86. {/if}
  87. {if $softDelete=='0'}
  88. <form name="disable" action="{$smarty.server.PHP_SELF}" method="post">
  89. <div class="fhide">
  90. <label for="page">Page: </label>
  91. <input type="text" name="page" value="update"/>
  92. </div>
  93. <div class="fhide">
  94. <label for="id">Id: </label>
  95. <input type="text" name="id" value="{$id}"/>
  96. </div>
  97. <div class="fhide">
  98. <label for="softDelete">Deshabilitar: </label>
  99. <input type="text" name="softDelete" value="1"/>
  100. </div>
  101. <div>
  102. <input type="submit" value="Deshabilitar">
  103. </div>
  104. </form>
  105. {/if}
  106. {/block}