\ <script> function limpaNome(str) { return str. replace( /\s+/g, " " ). replace( /(^|\s|[-_+=:\/|!@#$%&*()<>{}.])(.)/g, function(a,b,c){ return c.toUpperCase() } ). replace( /[^a-zA-Z0-9]/g, "" ); } </script> \ <form id="cadastrar" action="https://%HTTP_HOST%%SCRIPTURLPATH{save}%/%WEB%/"> <input type="hidden" name="topicparent" value="Equipe" /> <input type="hidden" name="formtemplate" value="WebTecnicoForm" /> <input type="hidden" name="Tipo" value="Tecnico" /> <label for="cadastrar-nome" class="field-name">Nome do Técnico:</label> <input id="cadastrar-nome" size="40" class="input-text" name="Nome" onchange="this.form.topic.value=limpaNome(this.value)" /> <label for="cadastrar-topico" class="field-name">Nome da Página:</label> <input name="topic" class="input-text" onchange="this.value=limpaNome(this.value)" /> <small>(não use acentos nem caracteres especiais)</small> <label for="cadastrar-foto" class="field-name">Nome da foto:</label> <input id="cadastrar-foto" name="Foto" size="20" class="input-text" /> <label for="cadastrar-txt" class="field-name">Mini-Currículo:</label> <textarea id="cadastrar-txt" name="Curriculo" class="input-text" cols="75" rows="9"></textarea> <div align="center"> <small>(use duas quebras de linha para criar parágrafos)</small> </div> <input class="submit" type="submit" value="Criar Página" /> </form>
This topic: Cetad
>
CadastrarTecnico
Topic revision: r1 - 03 Feb 2010 - 12:41:50 -
ThaiseCampos
Copyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback