<script  type="text/javascript">
    function reload()
    {
        var captcha = document.getElementById('captcha');
        captcha.src = '<?= base_url() ?>application/libraries/captcha/img.php?rand='+Math.random();
    }
</script>
<div id="middleContent">            
    <!-- Bread Crumb Start -->
    <div class="breadCrumb">
        <span><a class="home" href="<?= base_url(); ?>"></a></span>        
        <span class="current">المستخدمـيــن</span>
    </div>
    <!-- Bread Crumb End -->  
    <div class="block">
        <div class="title">التسجـــيــــل بالموقع</div>
        <div class="content">
            <?php //echo (isset($this->form_validation->error_string)) ? $this->form_validation->error_string() : "" ; ?>

            <form action="<?php echo base_url() ?>users/new_user/create_newuser" method="post" enctype="multipart/form-data">
                <fieldset class="form">
                    <p><?php echo form_error('name'); ?></p>
                    <p><?php echo form_error('username'); ?></p>
                    <p><?php echo form_error('password'); ?></p>
                    <p><?php echo form_error('passconf'); ?></p>
                    <p><?php echo form_error('email'); ?></p>
                    <p><?php echo form_error('captcha'); ?></p>
                    <legend>&nbsp;</legend><br>
                    <label for="name" class="label">  الإسم بالكامل <em>*</em>:</label>
                    <input name="name" class="textBox med" id="name" value="<?= set_value('name'); ?>">                
                    <br />
                    <label for="username" class="label">اسم المستخدم <em>*</em>:</label>
                    <input name="username" class="textBox med" id="username" value="<?= set_value('username'); ?>">
                    <br />
                    <label for="password" class="label">رمز المرور <em>*</em> :</label>
                    <input name="password" type="password" class="textBox med" id="password" >
                    <br />
                    <label for="passconf" class="label">تأكيد رمز المرور  <em>*</em>:</label>
                    <input name="passconf" type="password" class="textBox med" id="passconf">
                    <br />
                    <label for="email" class="label">البريد الإلكترونى <em>*</em>:</label>
                    <input name="email" class="textBox med" id="email" value="<?= set_value('email'); ?>">
                    <br />
                    <label for="captcha" class="label"><?php echo $this->lang->line('captcha') ?>ادخل الأحرف التالية<em>*</em>:</label>
                    <div id="captchaContainer">
                        <img src="<?= base_url() ?>application/libraries/captcha/img.php" id="captcha" alt="captcha" />
                        <input type="text" name="captcha" value="" class="textBox sml" /><br />
                        <img src="<?= base_url() ?>global/site/images/ico32-refresh1.png" id="refresh" onclick="reload();" alt="refresh" />
                    </div>
                    <br />
                    <input id="submit" type="submit" value="تسجيل" class="button sml" />
                </fieldset>
            </form>
        </div>
    </div>           
</div>
