Ir para conteúdo
  • 0

Preciso desse system


lol08

Pergunta

2 respostass a esta questão

Posts Recomendados

  • 0
[spoiler]

<div class='errors'> <?php echo error(validation_errors()); ?> </div>

<?php include("public/js/keyboard.php");

global $config;

?>

<script>

function createAccount() {

$('.loader').show();

var form = $('#createAccount').serialize();

$.ajax({

url: '<?php echo WEBSITE; ?>/index.php/account/create/1',

type: 'post',

data: form,

success: function(data) {

$('.errors').html(data);

$('.loader').hide();

}

});

}

</script>

<link rel="stylesheet" type="text/css" href="<?php echo WEBSITE; ?>/public/css/keyboard.css">

<div class='message'>

<div class='title'>Conta</div>

<div class='content'> <?php echo form_open('account/create', array('id'=>'createAccount')); ?>

<fieldset>

<legend >Conta</legend>

<div class="table">

<ul style="width:30%">

<li class="even">

<label for="name">Conta</label>

</li>

<li class="odd">

<label for="nickname">Apelido</label>

</li>

<li class="even">

<label for="email">E-mail</label>

</li>

<li class="odd">

<label for="password">Senha</label>

</li>

<li class="even">

<label for="repeat">Senha</label>

</li>

</ul>

<ul style="width:70%">

<li class="even">

<input type="text" value="<?php echo set_value('name'); ?>" id="name" class="keyboardInput" name="name"/>

</li>

<li class="odd">

<input type='text' name='nickname' id="nickname" value='<?php echo set_value('nickname'); ?>' />

</li>

<li class="even">

<input type="text" value="<?php echo set_value('email'); ?>" id="email" name="email"/>

</li>

<li class="odd">

<input type="password" class="keyboardInput" id="password" name="password"/>

</li>

<li class="even">

<input type="password" class="keyboardInput" id="repeat" name="repeat"/>

</li>

</ul>

</div>

</fieldset>

<fieldset>

<legend>Personagem</legend>

<div class="table">

<ul style="width:30%">

<li class="even">

<label for="character_name">Nome</label>

</li>

<li class="odd">

<label for="sex">Sexo</label>

</li>

<li class="even">

<label for="vocation">Vocation</label>

</li>

<li class="odd">

<label for="city">Cidade</label>

</li>

<li class="even">

<label for="world">Serivor</label>

</li>

</ul>

<ul style="width:70%">

<li class="even">

<input type="text" id="character_name" value="<?php echo set_value('character_name'); ?>" name="character_name"/>

</li>

<li class="odd">

<input name="sex" type="radio" id="sex" value="1" checked="checked" />

male  

<input type="radio" id="sex" name="sex" value="0" />

female </li>

<li class="even">

<select name="vocation" class="keyboardInput" id="vocation">

<option value="1">Treinador</option>

<option disabled="disabled">Treinador de Elite</option>

</select>

</li>

<li class="odd">

<select name="city" id="city">

<?php

foreach($config['cities'] as $city => $name)

echo '<option value="'.$city.'">'.$name.'</option>'; ?>

</select>

</li>

<li class="even">

<?php

if(sizeof($config['worlds']) > 1) { ?>

<select name="world" id="world">

<?php

foreach($config['worlds'] as $world => $name)

echo '<option value="'.$world.'">'.$name.'</option>'; ?>

</select>

<?php }else{ ?>

<input type="hidden" name="world" value="0" />

<?php echo $config['worlds'][0]; ?>

<?php } ?>

</li>

</ul>

</div>

</fieldset>

<fieldset>

<legend>Captcha</legend>

<div class="table">

<ul style="width: 30%">

<li class="even">


</li>

<li class="even">

<label>Captcha</label>

</li>

</ul>

<ul style="width: 70%">

<li class="even">

<?php echo $captcha;?>

</li>

<li class="even">

<input type='text' name='captcha'/>

</li>

</ul>

</div>

</fieldset>

<br/>

<label> </label>

<input class='sub' type="submit" value="Registrar"/>

<?php echo loader(); ?>

</form>

</div>

</div>


[/spoiler]

Editado por lol08
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...