Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <link rel="stylesheet" href="<?php echo BASE_URL;?>assets/css/manager-edit.css">
- <div class="container-panel">
- <div class="container-panel-int">
- <div class="info-conta">
- <center class="panel-title">Editar Endereço</center>
- <?php foreach($usuarios as $user): ?>
- <?php if($user['cnpj'] != ''):?>
- <div class="form-editCoEd">
- <div class="form-editCoEd-left">
- <div class="form-editCoEd-int">
- <form method="POST">
- <label for="razao_social">Razão Social*</label>
- <input type="text" name="razao_social" class="form-control" maxlength="60" required value="<?php echo $user['razao_social'];?>">
- <label for="telefone">Telefone*</label>
- <input type="text" name="telefone" maxlength="14" class="form-control" value="<?php echo $user['telefone'];?>">
- <label for="celular">Celular</label>
- <input type="text" name="celular" maxlength="15" class="form-control" required value="<?php echo $user['celular'];?>">
- <label for="rua">Rua*</label>
- <input type="text" name="rua" class="form-control" maxlength="100" required value="<?php echo $user['rua'];?>">
- <label for="numero">Número</label>
- <input type="text" name="numero" class="form-control" maxlength="10" required value="<?php echo $user['numero'];?>">
- </div>
- </div>
- <div class="form-editCoEd-right">
- <div class="form-editCoEd-int">
- <label for="complemento">Complemento</label>
- <input type="text" name="complemento" class="form-control" maxlength="30" value="<?php echo $user['complemento'];?>">
- <label for="bairro">Bairro*</label>
- <input type="text" name="bairro" class="form-control" maxlength="30" required value="<?php echo $user['bairro'];?>">
- <label for="estado">Estado</label>
- <select name="estado" onchange="changeState(this)" required class="form-control">
- <?php foreach($estados as $estado): ?>
- <option value="<?php echo $estado['Uf'];?>"<?php echo ($estado['Uf']==$user['estado'])?'selected="selected"':''; ?>><?php echo $estado['Uf'];?></option>
- <?php endforeach;?>
- </select>
- <label for="cidade">Cidade*</label>
- <select name="cidade" class="form-control" required>
- <?php foreach($cidades as $cidade): ?>
- <option value="<?php echo $cidade['CodigoMunicipio']; ?>" <?php echo ($cidade['CodigoMunicipio']==$user['cCidade'])?'selected="selected"':''; ?>><?php echo utf8_encode($cidade['Nome']); ?></option>
- <?php endforeach;?>
- </select>
- <label for="cep">CEP</label>
- <input type="text" maxlength="10" name="cep" class="form-control" value="<?php echo $user['cep'];?>" required>
- </div>
- <center><input type="submit" name="Salvar" class="btn-edit-sends"/></center>
- </div>
- </form>
- </div>
- <?php else:?>
- <div class="form-editCoEd">
- <div class="form-editCoEd-left">
- <div class="form-editCoEd-int">
- <form method="POST">
- <label for="nome">Nome*</label>
- <input type="text" name="nome" maxlength="30" class="form-control" required value="<?php echo $user['nome'];?>">
- <label for="sobrenome">Sobrenome*</label>
- <input type="text" name="sobrenome" maxlength="30" class="form-control" value="<?php echo $user['sobrenome'];?>">
- <label for="telefone">Telefone*</label>
- <input type="text" name="telefone" maxlength="14" class="form-control" value="<?php echo $user['telefone'];?>">
- <label for="celular">Celular</label>
- <input type="text" name="celular" maxlength="15" class="form-control" required value="<?php echo $user['celular'];?>">
- <label for="rua">Rua*</label>
- <input type="text" name="rua" maxlength="60" class="form-control" required value="<?php echo $user['rua'];?>">
- <label for="numero">Número</label>
- <input type="text" name="numero" maxlength="10" class="form-control" required value="<?php echo $user['numero'];?>">
- </div>
- </div>
- <div class="form-editCoEd-right">
- <div class="form-editCoEd-int">
- <label for="complemento">Complemento</label>
- <input type="text" name="complemento" maxlength="30" class="form-control" value="<?php echo $user['complemento'];?>">
- <label for="bairro">Bairro*</label>
- <input type="text" name="bairro" class="form-control" maxlength="30" required value="<?php echo $user['bairro'];?>">
- <label for="estado">Estado</label>
- <select name="estado" onchange="changeState(this)" required class="form-control">
- <?php foreach($estados as $estado): ?>
- <option value="<?php echo $estado['Uf'];?>"<?php echo ($estado['Uf']==$user['estado'])?'selected="selected"':''; ?>><?php echo $estado['Uf'];?></option>
- <?php endforeach;?>
- </select>
- <label for="cidade">Cidade*</label>
- <select name="cidade" class="form-control" required>
- <?php foreach($cidades as $cidade): ?>
- <option value="<?php echo $cidade['CodigoMunicipio']; ?>" <?php echo ($cidade['CodigoMunicipio']==$user['cCidade'])?'selected="selected"':''; ?>><?php echo utf8_encode($cidade['Nome']); ?></option>
- <?php endforeach;?>
- </select>
- <label for="cep">CEP</label>
- <input type="text" name="cep" maxlength="10" class="form-control" value="<?php echo $user['cep'];?>" required>
- </div>
- <center><input type="submit" name="Salvar" class="btn-edit-sends"/></center>
- </div>
- </form>
- </div>
- <?php endif;?>
- </div>
- <div class="aMenu">
- <span class="aDescOptions">MINHA CONTA</span>
- <div class="table table-hover" id="table-account">
- <ul>
- <li>
- <a href="<?php echo BASE_URL; ?>accountuser/manager"> Painel Geral</a>
- </li>
- <li>
- <a href="<?php echo BASE_URL; ?>accountuser/account/edit_user">Informações da Conta</a>
- </li>
- <li>
- <a href="<?php echo BASE_URL; ?>accountuser/address/edit">Meu Endereço</a>
- </li>
- <li>
- <a href="<?php echo BASE_URL; ?>pedidos">Minhas Compras</a>
- </li>
- <li>
- <a href="">Termos de Cobrança</a></li>
- </ul>
- <span class="aDescOptions">MEU CARRINHO</span><br/>
- <ul>
- <li>
- <a href="/carrinho">
- <?php echo (isset($_SESSION['carrinho']))?count($_SESSION['carrinho']):'0'; ?> Itens
- </a>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript" src="<?php echo BASE_URL;?>/assets/js/account_city.js"></script>
- <?php endforeach;?>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement