<script  type="text/javascript">





            function reload()

            {



                var captcha = document.getElementById('captcha');



                captcha.src = '<?= base_url()?>application/libraries/captcha/img.php?rand='+Math.random();





            }





        </script>



       <style type="text/css">

            /*<![CDATA[*/

            /*body{background-color: #000000;overflow: hidden;}*/

            .box{margin: 0 auto;width: 310px;margin-top: 10%;padding: 10px}/* border: 5px solid #222222;*/

            .box #captcha{float: left}

            .box #refresh{float: left;margin: 10px;cursor: pointer}

            .box h1{color: #FFFFFF;font-family: Arial;font-size: 20px;margin: 0px}

            .box .textBox{padding: 2px;text-align:center;width:70px;min-width:20px}

            /*]]>*/

        </style>

<div id="middleContent">

      <!-- Form Start -->

    <div class="block lrg">

        <div class="title"><?php echo lang('title')?></div>

        <div class="content">

            <form action="<?= base_url().'visitors/add_visitor/'?>" method="post" enctype="multipart/form-data">

                <fieldset class="form">

                    <legend><?php echo lang('title')?></legend><br />

                   

                    <label for="name" class="label"><?php echo lang('visitor_name')?><em>*</em>:</label>

                    <input id="name" class="textBox med" name="name" />

                    <?php echo form_error('name'); ?><br />

                    <label for="email" class="label"><?php echo lang('visitor_mail')?> <em>*</em>:</label>

                    <input id="email" class="textBox med" name="email" />

                    <?php echo form_error('email'); ?><br />

                    <label for="name" class="label"> <?php echo lang('visitor_mobile')?> :</label>

                    <input id="name" class="textBox med" name="mobile" />

                    <br />

                    <label for="message" class="label"><?php echo lang('phone')?> :</label>

                    <input id="email" class="textBox med" name="phone" />

                     <br />

                    <label class="label"><?php echo lang('nationality')?> :</label>

                            <select dir="rtl" size="1" name="nationality">

                                <option value=""> -- <?php echo lang('choose')?> -- </option>

                                <?php foreach($nationality as $n):?>

                                <option value="<?php echo $n['n_id']?>"><?php echo $n['n_name']?></option>

                                <?php endforeach;?>

                            </select>

                     <br />

                    <label class="label"><?php echo lang('visitor_country')?> :</label>

                            <select dir="rtl" size="1" name="country">

                                <option value=""> -- <?php echo lang('choose')?> -- </option>

                                <?php foreach($country as $c):?>

                                <option value="<?php echo $c['c_id']?>"><?php echo $c['c_name']?></option>

                                <?php endforeach;?>

                            </select><br />

                    <label for="name" class="label"> <?php echo lang('p_date')?> :</label>

                    <input id="name" class="textBox med" name="e_bplace" />

                    <br />

                    

                    <label for="name" class="label"> <?php echo lang('date')?> :</label>

                    <input id="name" class="textBox med" name="e_bdate" />(yyyy-mm-dd)

                    <br />

                    <label class="label"><?php echo lang('sex')?> :</label>

                            <select dir="rtl" size="1" name="sex">

                                <option value=""> -- <?php echo lang('choose')?> -- </option>

                                <option value="ذكر"><?php echo lang('male')?></option>

                                 <option value="انثى"><?php echo lang('female')?></option>

                            </select><br />

                            <label class="label"><?php echo lang('status')?> :</label>

                            <select dir="rtl" size="1" name="statues">

                                <option value=""> -- <?php echo lang('choose')?> -- </option>

                                <option value="اعزب"><?php echo lang('a3zb')?></option>

                                <option value="متزوج"><?php echo lang('married')?></option>

                                <option value="ارمل"><?php echo lang('arml')?></option>

                                <option value="مطلق"><?php echo lang('motlk')?></option>

                            </select><br />

                    <label for="name" class="label"> <?php echo lang('adrress')?> :</label>

                    <input id="name" class="textBox med" name="e_address" />

                    <br />

                    <label class="label"><?php echo lang('cv')?> :</label>

                <input type="file" class="textBox med" name="cv_file" value=""  />

                <?php echo form_error('cv_file'); ?>

                <br />

                <div class="box">



            <img src="<?= base_url()?>application/libraries/captcha/img.php" id="captcha" alt="captcha" />



            <img src="http://b.dryicons.com/images/icon_sets/coquette_icons_set/png/48x48/refresh.png" id="refresh" onclick="reload();" alt="refresh" />

<label for="captcha" class="label"><?php echo lang('captcha')?> <em>*</em>:</label>

          <input type="text" name="captcha" class="textBox" />





        </div> <?= form_error('captcha'); ?><br/>

                    <input id="submit" type="submit" value="<?php echo lang('send')?>" class="button sml" />

                </fieldset>

            </form>

        </div>

    </div>

    <!-- Form End -->

                                

</div>