Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.13 KB | None | 0 0
  1. <link rel="stylesheet" href="<?php echo BASE_URL;?>assets/css/manager-edit.css">
  2. <div class="container-panel">
  3. <div class="container-panel-int">
  4.  
  5. <div class="info-conta">
  6. <center class="panel-title">Editar Endereço</center>
  7. <?php foreach($usuarios as $user): ?>
  8. <?php if($user['cnpj'] != ''):?>
  9. <div class="form-editCoEd">
  10. <div class="form-editCoEd-left">
  11. <div class="form-editCoEd-int">
  12. <form method="POST">
  13.  
  14. <label for="razao_social">Razão Social*</label>
  15. <input type="text" name="razao_social" class="form-control" maxlength="60" required value="<?php echo $user['razao_social'];?>">
  16.  
  17. <label for="telefone">Telefone*</label>
  18. <input type="text" name="telefone" maxlength="14" class="form-control" value="<?php echo $user['telefone'];?>">
  19.  
  20. <label for="celular">Celular</label>
  21. <input type="text" name="celular" maxlength="15" class="form-control" required value="<?php echo $user['celular'];?>">
  22.  
  23. <label for="rua">Rua*</label>
  24. <input type="text" name="rua" class="form-control" maxlength="100" required value="<?php echo $user['rua'];?>">
  25.  
  26. <label for="numero">Número</label>
  27. <input type="text" name="numero" class="form-control" maxlength="10" required value="<?php echo $user['numero'];?>">
  28. </div>
  29. </div>
  30. <div class="form-editCoEd-right">
  31. <div class="form-editCoEd-int">
  32.  
  33. <label for="complemento">Complemento</label>
  34. <input type="text" name="complemento" class="form-control" maxlength="30" value="<?php echo $user['complemento'];?>">
  35.  
  36. <label for="bairro">Bairro*</label>
  37. <input type="text" name="bairro" class="form-control" maxlength="30" required value="<?php echo $user['bairro'];?>">
  38. <label for="estado">Estado</label>
  39. <select name="estado" onchange="changeState(this)" required class="form-control">
  40. <?php foreach($estados as $estado): ?>
  41. <option value="<?php echo $estado['Uf'];?>"<?php echo ($estado['Uf']==$user['estado'])?'selected="selected"':''; ?>><?php echo $estado['Uf'];?></option>
  42. <?php endforeach;?>
  43. </select>
  44.  
  45. <label for="cidade">Cidade*</label>
  46. <select name="cidade" class="form-control" required>
  47. <?php foreach($cidades as $cidade): ?>
  48. <option value="<?php echo $cidade['CodigoMunicipio']; ?>" <?php echo ($cidade['CodigoMunicipio']==$user['cCidade'])?'selected="selected"':''; ?>><?php echo utf8_encode($cidade['Nome']); ?></option>
  49. <?php endforeach;?>
  50. </select>
  51. <label for="cep">CEP</label>
  52. <input type="text" maxlength="10" name="cep" class="form-control" value="<?php echo $user['cep'];?>" required>
  53. </div>
  54. <center><input type="submit" name="Salvar" class="btn-edit-sends"/></center>
  55. </div>
  56. </form>
  57. </div>
  58. <?php else:?>
  59. <div class="form-editCoEd">
  60. <div class="form-editCoEd-left">
  61. <div class="form-editCoEd-int">
  62. <form method="POST">
  63.  
  64. <label for="nome">Nome*</label>
  65. <input type="text" name="nome" maxlength="30" class="form-control" required value="<?php echo $user['nome'];?>">
  66.  
  67. <label for="sobrenome">Sobrenome*</label>
  68. <input type="text" name="sobrenome" maxlength="30" class="form-control" value="<?php echo $user['sobrenome'];?>">
  69.  
  70. <label for="telefone">Telefone*</label>
  71. <input type="text" name="telefone" maxlength="14" class="form-control" value="<?php echo $user['telefone'];?>">
  72.  
  73. <label for="celular">Celular</label>
  74. <input type="text" name="celular" maxlength="15" class="form-control" required value="<?php echo $user['celular'];?>">
  75. <label for="rua">Rua*</label>
  76. <input type="text" name="rua" maxlength="60" class="form-control" required value="<?php echo $user['rua'];?>">
  77.  
  78. <label for="numero">Número</label>
  79. <input type="text" name="numero" maxlength="10" class="form-control" required value="<?php echo $user['numero'];?>">
  80. </div>
  81. </div>
  82. <div class="form-editCoEd-right">
  83. <div class="form-editCoEd-int">
  84.  
  85. <label for="complemento">Complemento</label>
  86. <input type="text" name="complemento" maxlength="30" class="form-control" value="<?php echo $user['complemento'];?>">
  87.  
  88. <label for="bairro">Bairro*</label>
  89. <input type="text" name="bairro" class="form-control" maxlength="30" required value="<?php echo $user['bairro'];?>">
  90.  
  91. <label for="estado">Estado</label>
  92. <select name="estado" onchange="changeState(this)" required class="form-control">
  93. <?php foreach($estados as $estado): ?>
  94. <option value="<?php echo $estado['Uf'];?>"<?php echo ($estado['Uf']==$user['estado'])?'selected="selected"':''; ?>><?php echo $estado['Uf'];?></option>
  95. <?php endforeach;?>
  96. </select>
  97.  
  98. <label for="cidade">Cidade*</label>
  99. <select name="cidade" class="form-control" required>
  100. <?php foreach($cidades as $cidade): ?>
  101. <option value="<?php echo $cidade['CodigoMunicipio']; ?>" <?php echo ($cidade['CodigoMunicipio']==$user['cCidade'])?'selected="selected"':''; ?>><?php echo utf8_encode($cidade['Nome']); ?></option>
  102. <?php endforeach;?>
  103. </select>
  104. <label for="cep">CEP</label>
  105. <input type="text" name="cep" maxlength="10" class="form-control" value="<?php echo $user['cep'];?>" required>
  106. </div>
  107. <center><input type="submit" name="Salvar" class="btn-edit-sends"/></center>
  108. </div>
  109. </form>
  110. </div>
  111. <?php endif;?>
  112. </div>
  113.  
  114.  
  115.  
  116. <div class="aMenu">
  117. <span class="aDescOptions">MINHA CONTA</span>
  118. <div class="table table-hover" id="table-account">
  119. <ul>
  120. <li>
  121. <a href="<?php echo BASE_URL; ?>accountuser/manager"> Painel Geral</a>
  122. </li>
  123. <li>
  124. <a href="<?php echo BASE_URL; ?>accountuser/account/edit_user">Informações da Conta</a>
  125. </li>
  126. <li>
  127. <a href="<?php echo BASE_URL; ?>accountuser/address/edit">Meu Endereço</a>
  128. </li>
  129. <li>
  130. <a href="<?php echo BASE_URL; ?>pedidos">Minhas Compras</a>
  131. </li>
  132. <li>
  133. <a href="">Termos de Cobrança</a></li>
  134. </ul>
  135. <span class="aDescOptions">MEU CARRINHO</span><br/>
  136. <ul>
  137. <li>
  138. <a href="/carrinho">
  139. <?php echo (isset($_SESSION['carrinho']))?count($_SESSION['carrinho']):'0'; ?> Itens
  140. </a>
  141. </li>
  142. </ul>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. <script type="text/javascript" src="<?php echo BASE_URL;?>/assets/js/account_city.js"></script>
  149. <?php endforeach;?>
  150. </div>
  151. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement