echo $titulo; ?> </div> </div> <div class="portlet-body"> <?php foreach ($inputs as $val) { foreach ($val as $key => $value) { switch ($key) { case 'text': echo input_text($value); break; case 'file': echo input_file($value); break; case 'select': echo input_select($value, $array_provincias); break; case 'ckeditor': echo input_ckeditor($value); break; case 'colorpicker': echo input_color_picker($value); break; case 'selecticon': echo input_select_icon($value); break; case 'dropzone_normal': echo input_dropzone($value);
<form method="post" enctype="multipart/form-data"> <div id="poststuff"> <div id="post-body" class="metabox-holder columns-2"> <div id="post-body-content"> <div class="postbox-container"> <div class="postbox"> <h3 class="hndle"><span>Importar Inscritos</span></h3> <input type="hidden" name="id" value="<?php echo $pessoa->id; ?> "> <div class="inside"> <?php // Arquivo echo input_file("arquivo", "Arquivo CSV", "O formato dos dados devem ser: nome;email;cpf;celular;"); // Importar como confirmados echo input_checkbox_padrao("confirmar", "Importar Confirmados", 1, "Diz se os inscritos importados agora serão incluídos como Confirmados no evento"); // Importar como presentes echo input_checkbox_padrao("presente", "Importar Presentes", null, "Diz se os inscritos importados agora serão incluídos como Confirmados e Presentes no evento"); ?> </div> <div id="major-publishing-actions"> <div id="publishing-action"> <span class="spinner"></span> <input type="submit" name="publish" id="publish" class="button button-primary button-large" value="Importar" accesskey="p"> </div> <div class="clear"></div> </div>
?> </h2> <form method="post" enctype="multipart/form-data"> <div id="poststuff"> <div class="postbox-container"> <div class="postbox"> <h3 class="hndle"><span>Área do Aluno</span></h3> <input type="hidden" name="id" value="<?php echo $pessoa->id; ?> "> <div class="inside"> <?php echo input_file("arquivo", "Imagem do Certificado", ""); echo input_checkbox_padrao("nome", "Incluir nome do Participante"); echo input_checkbox_padrao("evento", "Incluir nome do Evento"); ?> </div> <div id="major-publishing-actions"> <div id="publishing-action"> <span class="spinner"></span> <input type="submit" name="publish" id="publish" class="button button-primary button-large" value="Salvar" accesskey="p"> </div> <div class="clear"></div> </div> </div> </div>
</div> <div class="clear"></div> </div> <?php } else { ?> <h3 class="hndle"><span>Inserir Badge</span></h3> <div class="inside"> <?php echo label('title', 'Título', input_texto_simples('title', 'Título', 40, $_POST['title'])); echo label('alias', 'Alias', input_texto_simples('alias', 'Alias', 40, $_POST['alias'])); echo label('description', 'Descrição', input_textarea_simples('description', 5, $_POST['description'])); echo input_file("arquivo", "Imagem", ""); ?> </div> <div id="major-publishing-actions"> <div id="publishing-action"> <span class="spinner"></span> <input type="submit" name="publish" id="publish" class="button button-primary button-large" value="Salvar" accesskey="p"> </div> <div class="clear"></div> </div> <?php } ?>
<?php echo abre_form(CAMINHO_PADRAO_FORM); echo titulo('Cadastro de Anunciantes'); echo titulo('<br>'); echo monta_select($tamanho = "12", $label = "Categorias", $nome = "categorias", $dados['select_categoria'], $selecionado = $dados['form']['categorias'], $id = "categoria_anunciante", $classes = ""); echo titulo('<br>'); echo '' . '<select name="sub_cat" id="sub_cat">' . '<option class="sumir" value="0">Selecione uma Categoria</option>' . '</select>'; echo input($tamanho = "12", $label = "Nome", $tipo_input = "text", $value = $dados['form']['nome'], $nome = "nome", $id = "nome", $maxlength = 50); echo titulo('<br>'); //echo texto_divisoria_form('Endereço'); echo input($tamanho = "6", $label = "Logradoro", $tipo_input = "text", $value = $dados['form']['logradoro'], $nome = "logradoro", $id = "logradoro", $maxlength = 50); echo input($tamanho = "1", $label = "Numero", $tipo_input = "text", $value = $dados['form']['numero'], $nome = "numero", $id = "numero", $maxlength = 50); echo input($tamanho = "5", $label = "Bairro", $tipo_input = "text", $value = $dados['form']['bairro'], $nome = "bairro", $id = "bairro", $maxlength = 50); echo titulo('<br>'); echo input($tamanho = "4", $label = "Cidade", $tipo_input = "text", $value = $dados['form']['cidade'], $nome = "cidade", $id = "cidade", $maxlength = 50); echo input($tamanho = "4", $label = "Estado", $tipo_input = "text", $value = $dados['form']['estado'], $nome = "estado", $id = "estado", $maxlength = 50); echo input($tamanho = "4", $label = "CEP", $tipo_input = "text", $value = $dados['form']['cep'], $nome = "cep", $id = "cep", $maxlength = 8); //echo texto_divisoria_form('fotos'); echo titulo('<br>'); echo input_file($label = "Foto Perfil", $nome = "foto_perfil", $id = "") . titulo('<br>'); echo input_file($label = "Foto1", $nome = "foto1", $id = "") . titulo('<br>'); echo input_file($label = "Foto2", $nome = "foto2", $id = "") . titulo('<br>'); echo input_file($label = "Foto3", $nome = "foto3", $id = "") . titulo('<br>'); echo input_file($label = "Foto4", $nome = "foto4", $id = "") . titulo('<br>'); echo input_file($label = "Foto5", $nome = "foto5", $id = "") . titulo('<br>'); echo input_file($label = "Foto6", $nome = "foto6", $id = "") . titulo('<br>'); echo monta_select($tamanho = "12", $label = "Status", $nome = "status", $dados['status'], $selecionado = $dados['form']['status'], $id = "", $classes = ""); echo titulo('<br>'); echo bt($nome = 'Salvar ', $id = 'validar_anunciantes', $icone = ""); echo fechar_form(); echo limpar_both();