<!-- Start right content -->
<div class="content-page" xmlns="http://www.w3.org/1999/html">
    <!-- ============================================================== -->
    <!-- Start Content here -->
    <!-- ============================================================== -->
    <div class="content">
        <!-- Page Heading Start -->
        <?php /*<div class="page-heading">
            <h1><i class='fa fa-file'></i> <?php echo $viewTitle;?></h1>
            <h3><?php echo $viewTitle;?></h3>
        </div>*/?>
        <!-- Page Heading End-->

        <div class="row">

            <div class="col-sm-12 portlets">

                <div class="widget">
                    <div class="data-table-toolbar">
                        <div class="row">
                            <div class="col-md-4">
                                <h4><strong> Yeni <?php echo $viewTitle;?> 
                            </strong> ekliyorsunuz...</h4>
                            </div>
                            <div class="col-md-8">
                                <div class="toolbar-btn-action">
                                    <a href="<?php echo base_url("backend/kullanicilar");?>" class="btn btn-red-1"><i class="fa fa-list"></i> <?php echo $viewTitle;?> Liste</a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="widget-content padding">
                        <div id="basic-form">

                            <?php
                            if (isset($form_hatasi))
                            {
                            ?>
                                <div class="alert alert-danger alert-dismissable">
                                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                                    <?php 
                                        echo form_error("username")."<br />";
                                        echo form_error("userpass")."<br />";
                                        echo form_error("adsoyad")."<br />";
                                        echo form_error("eposta")."<br />";
                                    ?>
                                </div>
                        <?php }?>

                            <form role="form" action="<?php echo base_url("backend/kullanicilar/formKaydet");?>" method="post">
                                <div class="form-group">
                                    <h4><strong>Kullanıcı Adı</strong> </h4>
                                    <input type="text" class="form-control" placeholder="Kullanıcı Adı" name="username" value="<?php echo isset($form_hatasi) ? set_value("username") : "";?>" />
                                </div>

                                <div class="form-group">
                                    <h4><strong>Şifre</strong> </h4>
                                    <input type="password" class="form-control" placeholder="Şifre" name="userpass">
                                </div>                                

                                <div class="form-group">
                                    <h4><strong>Ad Soyad</strong> </h4>
                                    <input type="text" class="form-control" placeholder="Ad Soyad" name="adsoyad" value="<?php echo isset($form_hatasi) ? set_value("adsoyad") : "";?>">
                                </div>

                                <div class="form-group">
                                    <h4><strong>E-Posta Adresi</strong> </h4>
                                    <input type="email" class="form-control" placeholder="E-Posta Adresi" name="eposta" value="<?php echo isset($form_hatasi) ? set_value("eposta") : "";?>">
                                </div>

                               
                                <div class="form-group pull-right">
                                    <button type="submit" class="btn btn-info">Kaydet</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>

        </div>
        <?php $this->load->view("includes/footer");?>
    </div>
    <!-- ============================================================== -->
    <!-- End content here -->
    <!-- ============================================================== -->

</div>
<!-- End right content -->