Formulario duplo
2 participantes
Página 1 de 1
Formulario duplo
aqui está o formulário de procura de narrador:
Procura de Narrador:
Troca de Narrador:
Caso escolha troca de narrador, aparece o formulário da mesma, e a mesma coisa para troca de narrador...
teria como fazer isso?
- Código:
<style>#footer {
display: none !important;
}
</style>
<style>
#left {
display: none !important;
width: 0px !important;
}
#content {
margin-left: 0px !important;
}
</style>
<script src="http://somosmugiwara.forumeiros.com/39140.js"></script>
<script src="http://somosmugiwara.forumeiros.com/40179.js"></script>
<form onsubmit="submit_form();" action="/posting.forum" id="generated_form" method="post" enctype="multipart/form-data">
<h1 data-type="field">Formulário de Procura de Narrador</h1>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Nome da Aventura</strong></dt>
<dd><input type="text" data-type="field" value="" id="field2"></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Participantes</strong></dt>
<dd><input type="text" data-type="field" value="" id="field3"></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Link da Aventura</strong></dt>
<dd><input type="text" data-type="field" value="" id="field4"></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Data de Criação da Aventura</strong></dt>
<dd><input type="date" data-type="field" id="field5"></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Seu Nick no Fórum</strong></dt>
<dd><input type="text" data-type="field" value="" id="field6"></dd>
</dl>
<input type="hidden" name="f" value="16">
<input type="hidden" name="subject" value="O script não enviou o título" template="Apresentação - {field2}">
<input type="hidden" name="description" value="O script não enviou a descrição" template="">
<textarea name="message" style="display:none"></textarea>
<textarea id="message-template-bbcode" style="display:none">
[center][img]http://i.imgur.com/BRSoPIj.gif[/img][/center]
[center][b][size=20]Troca de Narrador - {field6}[/size][/b][/center]
[quote][b]Nome da Aventura:[/b] {field2}
[b]Participantes da Aventura:[/b] {field3}
[b]Link da Aventura:[/b] {field4}
[b]Data de Criação:[/b] {field5}
[/quote]</textarea>
<input type="hidden" name="mode" value="newtopic">
<input type="hidden" name="lt" value="0">
<input type="submit" name="post" class="button2" value="Enviar Pedido de Procura de Narrador">
</form>
- Código:
<style>#footer {
display: none !important;
}
</style>
<style>
#left {
display: none !important;
width: 0px !important;
}
#content {
margin-left: 0px !important;
}
</style>
<script src="http://somosmugiwara.forumeiros.com/39140.js"></script>
<script src="http://somosmugiwara.forumeiros.com/40179.js"></script>
<form onsubmit="submit_form();" action="/posting.forum" id="generated_form" method="post" enctype="multipart/form-data">
<h1 data-type="field">Formulário de Troca de Narrador</h1>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Nome da Aventura</strong></dt>
<dd><input type="text" data-type="field" value="" id="field2"></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Participantes da Aventura</strong></dt>
<dd><input type="text" data-type="field" value="" id="field3"></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Link da Aventura</strong></dt>
<dd><input type="text" data-type="field" value="" id="field4"></dd>
</dl>
<dl>
<dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Resumo da Aventura</strong></dt>
<dd><textarea data-type="field" id="field5"></textarea></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Antigo Narrador</strong></dt>
<dd><input type="text" data-type="field" value="" id="field6"></dd>
</dl>
<dl>
<dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Motivo pelo qual quer trocar de Narrador</strong></dt>
<dd><textarea data-type="field" id="field7"></textarea></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Seu nick no Fórum</strong></dt>
<dd><input type="text" data-type="field" value="" id="field8"></dd>
</dl>
<input type="hidden" name="f" value="16">
<input type="hidden" name="subject" value="O script não enviou o título" template="Apresentação - {field2}">
<input type="hidden" name="description" value="O script não enviou a descrição" template="">
<textarea name="message" style="display:none"></textarea>
<textarea id="message-template-bbcode" style="display:none">
[center][img]http://i.imgur.com/BRSoPIj.gif[/img][/center]
[center][b][size=20]Troca de Narrador - {field8}[/size][/b][/center]
[quote][b]Nome:[/b] {field2}
[b]Participantes:[/b] {field3}
[b]Link:[/b] {field4}
[b]Resumo:[/b]
[quote]{field5}[/quote][b]Narrador:[/b] {field6}
[b]Motivo:[/b]
[quote]{field7}[/quote][/quote]</textarea>
<input type="hidden" name="mode" value="newtopic">
<input type="hidden" name="lt" value="0">
<input type="submit" name="post" class="button2" value="Enviar Pedido de Troca de Narrador">
</form>
Procura de Narrador:
Troca de Narrador:
Caso escolha troca de narrador, aparece o formulário da mesma, e a mesma coisa para troca de narrador...
teria como fazer isso?
Convidado- Convidado
Re: Formulario duplo
sim sim, podem sim..
mas o verdadeiro desafio que e que estes dois formulários deveram funcionar nessa página abaixo:
http://somosmugiwara.forumeiros.com/f16-procura-troca-de-narrador
mas o verdadeiro desafio que e que estes dois formulários deveram funcionar nessa página abaixo:
http://somosmugiwara.forumeiros.com/f16-procura-troca-de-narrador
Convidado- Convidado
Re: Formulario duplo
Mas esses dois que você passou está funcionando, certo? Ele está postando no fórum corretamente?
Re: Formulario duplo
Sim, eles estão corretos, mas queria que tivesse uma opção de escolher algum dos formulários , como neste formulário abaixo.
http://shift.forumactif.com/h7-
Note que quando se escolhe uma opção, aparece o formulario abaixo, queria algo assim, que os dois formulários ficassem na mesma página.. E que fossem para a página citada por mim
http://shift.forumactif.com/h7-
Note que quando se escolhe uma opção, aparece o formulario abaixo, queria algo assim, que os dois formulários ficassem na mesma página.. E que fossem para a página citada por mim
Convidado- Convidado
Re: Formulario duplo
Sim, sim, isso eu entendi. Vamos ver...
Tente assim:
Tente assim:
- Código:
<script src="http://somosmugiwara.forumeiros.com/39140.js"></script>
<script src="http://somosmugiwara.forumeiros.com/40179.js"></script>
<style>div.aba {
background:#fff;
text-align:justify;
margin-bottom:20px;
padding:10px 15px;
border:1px solid #CcC;
box-shadow:inset 1px 1px 2px #999;
border-radius:4px;
}
#navebar {
font:bold 12px Georgia, "Times New Roman", Times, serif;
margin:0;
padding:3px 0;
text-align:center;
}
#navebar li {
list-style:none;
margin-right:6px;
display:inline;
}
#navebar li a {
padding:3px 6px;
border:1px solid #09F;
border-bottom:none;
background:#4f4e4e;
color:#333;
text-decoration:none;
}
#navebar li a:hover {
color:#fff;
background:#aae;
border-color:#09F;
}
#navebar li a.ativo {background-color:#009;}
#navebar li a {
color: #FFF;
font-size: 14px;
font-weight: bold;
text-align: center;
text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
background-color: #333333;
border-radius: 6px;
padding: 10px 6px 10px;
display: block;
width:160px;
border-width: 1px 1px 3px 1px;
border-style: solid;
border-color: rgba(0,0,0,0.16);
box-shadow: inset 0 0 2px rgba(255,255,255,0.76);
-webkit-transition: background-color 0.5s;
-moz-transition: background-color 0.5s;
-o-transition: background-color 0.5s;
-ms-transition: background-color 0.5s;
display:inline-block;
transition: background-color 0.5s;
}
#navebar li a:hover { background-color: #4f4e4e;}
#left {
display: none !important;
width: 0px !important;
}
#content {
margin-left: 0px !important;
}
#footer {
display: none !important;
}
</style>
<script>
jQuery(document).ready(function(){
jQuery('#formulario_abas').prepend(
'<ul id="navebar"> <li><a class="ativo">Procura de Narrador</a></li> <li><a>Troca de Narrador</a></li></ul>')
jQuery('.aba').css({
display: 'none',
marginTop: 0,
borderTopWidth: 0
})
jQuery('#aba1').css('display', 'block');
jQuery('a', jQuery('#navebar')).click(function() {
var i = jQuery('a', jQuery('#navebar')).index(this) + 1;
jQuery(this).parents('#formulario_abas').children('.aba:visible').hide();
jQuery('#aba' + i).show();
jQuery(this).parents('#navebar').find('a').removeClass('ativo');
jQuery(this).addClass('ativo');
})
})
</script><div id="formulario_abas"><div id="aba1" class="aba">
<form onsubmit="submit_form();" action="/posting.forum" id="generated_form" method="post" enctype="multipart/form-data">
<h1 data-type="field">Formulário de Procura de Narrador</h1>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Nome da Aventura</strong></dt>
<dd><input type="text" data-type="field" value="" id="field2"></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Participantes</strong></dt>
<dd><input type="text" data-type="field" value="" id="field3"></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Link da Aventura</strong></dt>
<dd><input type="text" data-type="field" value="" id="field4"></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Data de Criação da Aventura</strong></dt>
<dd><input type="date" data-type="field" id="field5"></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Seu Nick no Fórum</strong></dt>
<dd><input type="text" data-type="field" value="" id="field6"></dd>
</dl>
<input type="hidden" name="f" value="16">
<input type="hidden" name="subject" value="O script não enviou o título" template="Apresentação - {field2}">
<input type="hidden" name="description" value="O script não enviou a descrição" template="">
<textarea name="message" style="display:none"></textarea>
<textarea id="message-template-bbcode" style="display:none">
[center][img]http://i.imgur.com/BRSoPIj.gif[/img][/center]
[center][b][size=20]Troca de Narrador - {field6}[/size][/b][/center]
[quote][b]Nome da Aventura:[/b] {field2}
[b]Participantes da Aventura:[/b] {field3}
[b]Link da Aventura:[/b] {field4}
[b]Data de Criação:[/b] {field5}
[/quote]</textarea>
<input type="hidden" name="mode" value="newtopic">
<input type="hidden" name="lt" value="0">
<input type="submit" name="post" class="button2" value="Enviar Pedido de Procura de Narrador">
</form></div>
<div id="aba2" class="aba">
<form onsubmit="submit_form();" action="/posting.forum" id="generated_form" method="post" enctype="multipart/form-data">
<h1 data-type="field">Formulário de Troca de Narrador</h1>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Nome da Aventura</strong></dt>
<dd><input type="text" data-type="field" value="" id="field2"></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Participantes da Aventura</strong></dt>
<dd><input type="text" data-type="field" value="" id="field3"></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Link da Aventura</strong></dt>
<dd><input type="text" data-type="field" value="" id="field4"></dd>
</dl>
<dl>
<dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Resumo da Aventura</strong></dt>
<dd><textarea data-type="field" id="field5"></textarea></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Antigo Narrador</strong></dt>
<dd><input type="text" data-type="field" value="" id="field6"></dd>
</dl>
<dl>
<dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Motivo pelo qual quer trocar de Narrador</strong></dt>
<dd><textarea data-type="field" id="field7"></textarea></dd>
</dl>
<dl><dt><strong style="color: rgb(51, 51, 51); font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 15px; background-color: rgb(251, 251, 251);">Seu nick no Fórum</strong></dt>
<dd><input type="text" data-type="field" value="" id="field8"></dd>
</dl>
<input type="hidden" name="f" value="16">
<input type="hidden" name="subject" value="O script não enviou o título" template="Apresentação - {field2}">
<input type="hidden" name="description" value="O script não enviou a descrição" template="">
<textarea name="message" style="display:none"></textarea>
<textarea id="message-template-bbcode" style="display:none">
[center][img]http://i.imgur.com/BRSoPIj.gif[/img][/center]
[center][b][size=20]Troca de Narrador - {field8}[/size][/b][/center]
[quote][b]Nome:[/b] {field2}
[b]Participantes:[/b] {field3}
[b]Link:[/b] {field4}
[b]Resumo:[/b]
[quote]{field5}[/quote][b]Narrador:[/b] {field6}
[b]Motivo:[/b]
[quote]{field7}[/quote][/quote]</textarea>
<input type="hidden" name="mode" value="newtopic">
<input type="hidden" name="lt" value="0">
<input type="submit" name="post" class="button2" value="Enviar Pedido de Troca de Narrador">
</form>
</div></div>
Re: Formulario duplo
Viu como agora foi fácil? Estude a estrutura que foi feita pra entender melhor!Houdini escreveu:Ficou bom demais meu caro Legolas...
Perfeito, resolvido.
JS
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|