<!DOCTYPE html>
<?
//***************************************************
// http://www.niadesain.com
// Solusi Hemat Script Bisnis Online Anda
// Menerima Jasa Pembuatan Website & Template Website
//***************************************************
?>

<? //Random Number Generation
$rand=substr(rand(),0,4); //only show 4 numbers
$rand2=substr(rand(),0,4); //only show 4 numbers
?>

<style type="text/css">
.captcha
{
width:75px;
height: 35px;
background-image:url(images/cat.png);
font-size:23px;
font-weight: bold;
border: 1px solid;
border-radius: 3px;
text-align: center;
}
.color
{
color:#FF0000;
}
</style>


<script type="text/javascript">
                        //Validasi untuk Login Username :
			function validasicontact1(form){
				if (form.username.value == ""){ alert("Anda belum mengisikan : Usernama"); form.username.focus(); return (false); }
                                var mincar_un = 4;
                                if (form.username.value.length < mincar_un){ alert("Username minimal 4 digit. silahkan coba lagi..."); form.username.focus(); return (false); }

                                if (form.password.value == ""){ alert("Anda belum mengisikan : Password"); form.password.focus(); return (false); }
                                var mincar = 6;
                                if (form.password.value.length < mincar){ alert("Password minimal 6 digit. silahkan coba lagi..."); form.password.focus(); return (false); }

                                if (form.kode.value == ""){ alert("Anda belum menuliskan kode angka 'Security Code' sebagai validasi"); form.kode.focus(); return (false); }
                                if (form.kode.value.trim() != form.ran.value.trim()){ alert("Kode angka 'Security Code' yang Anda ketik salah. silahkan coba lagi... "); form.kode.focus(); return false; }

                        return (true);
			}

                        //Validasi untuk Login Email :
			function validasicontact2(form){
                                if (form.email.value == ""){ alert("Anda belum mengisikan : Email"); form.email.focus(); return (false); }
                                pola_email=/^.+@.+..+$/;
                                if (!pola_email.test(form.email.value)){
                                      alert ('Email yang Anda ketik tidak valid. silahkan coba lagi...');
                                      form.email.focus();
                                      return false;
                                   }

                                if (form.password.value == ""){ alert("Anda belum mengisikan : Password"); form.password.focus(); return (false); }
                                var mincar = 6;
                                if (form.password.value.length < mincar){ alert("Password minimal 6 digit. silahkan coba lagi..."); form.password.focus(); return (false); }

                                if (form.kode2.value == ""){ alert("Anda belum menuliskan kode angka 'Security Code' sebagai validasi"); form.kode2.focus(); return (false); }
                                if (form.kode2.value.trim() != form.ran2.value.trim()){ alert("Kode angka 'Security Code' yang Anda ketik salah. silahkan coba lagi... "); form.kode2.focus(); return false; }

                        return (true);
			}

                        //Validasi Angka Saja
                        function validAngka(a)
                        {
                                if(!/^[0-9.]+$/.test(a.value))
                                {
                                a.value = a.value.substring(0,a.value.length-1000);
                                }
                        }



</script>






<script type="text/javascript">
//Javascript Referesh Random String
function captch() {
    var x = document.getElementById("ran")
    x.value = Math.floor((Math.random() * 10000) + 1);
}
//Javascript Captcha validation

//Javascript Referesh Random String
function captch2() {
    var x = document.getElementById("ran2")
    x.value = Math.floor((Math.random() * 10000) + 1);
}
//Javascript Captcha validation

</script>

    <!--Head Website-->
    <? include "headwebsite.php"; ?>



    <section id="middle">
        <div class="container">
            <div class="row">
                <div class="col-sm-6 wow fadeInDown">
                    <div class="skill" align="left">
                        <font size="5"><strong><font color="#ff6700">Login</font> <font color="#333333">Member</font></strong></font><hr />
                        <p align="justify">Silahkan login dengan <strong>username</strong> atau <strong>email</strong> Anda terlebih dahulu untuk melanjutkan proses dan masuk ke fasilitas member area website replika promosi bisnis <strong><font color="#ff6700"><?= strtolower(trim($set_bisnis)) ?></font></strong> di <a href="./<?= $id ?>"><font color="0000ff"><strong><?= $cs_domain ?></strong></font></a>, Jika belum menjadi member bisnis <strong><font color="#ff6700"><?= strtolower(trim($set_bisnis)) ?></font></strong> silahkan anda mendaftar terlebih dahulu.</p>
                        <hr />
                        <div class="bingkai-slide1"><!--bingkai-foto-6 awrev18-->
                                <!--<strong><font color="#FFFF00" size="3"><?= ucwords($set_title1); ?> <?= ucwords($set_title2); ?></font></strong> <img src="images/blog/panah_kecil_putih.png"> <br /><br />-->
                                        <br />
                                        <div class="pull-left">
                                                <div style='padding-left:0px; padding-right:15px'>
                                                    <i><img class="img-responsive" src="images/login.png"></i>
                                                </div>                                            
                                        </div>
                                        <strong><font color="#FFFF00" size="3"><?= ucwords($set_title1); ?> <?= ucwords($set_title2); ?></font></strong> <img src="images/blog/panah_kecil_putih.png"><br />
                                        <font color="#ffffff"><?= strtolower(trim($set_ketlogin)) ?></font>
                                        <br /><br />
                        </div>

                        
                        <p align="left"><a href="./?scrindo=join&id=<?= $id ?>"><button type="submit" name="submit" class="btn btn-primary btn-lg"> Daftar Sekarang </button></a></p>
                        <br />
                    </div>
                </div><!--/.col-sm-6-->

                <div class="col-sm-6 wow fadeInDown">
                    <div class="accordion">
                        <div class="panel-group" id="accordion1">

                          <!-- Login Username -->
                          <div class="panel panel-default">
                            <div class="panel-heading active">
                              <h3 class="panel-title">
                                <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion1" href="#collapseOne1">
                                  <strong><font color="#ff6700">Login</font></strong> dengan <strong><font color="#ff6700">Username</font></strong>
                                  <i class="fa fa-angle-right pull-right"></i>
                                </a>
                              </h3>
                            </div>

                            <div id="collapseOne1" class="panel-collapse collapse in">
                              <div class="panel-body">
                                  <div class="media accordion-inner">

                                        <div class="media-body" align="justify">
                                                    
                                                    <div class="row contact-wrap">
                                                        <div class="status alert alert-success" style="display: none"></div>
                                                        <form id="" class="contact-form" name="contact-form" method="post" action="loginprocess.php" onSubmit="return validasicontact1(this)">
                                                            <div class="col-sm-5-aw col-sm-offset-1-aw">
                                                                <div class="form-group">
                                                                    <input type="text" name="idhide" class="form-control" value="<?=$id?>" style="display: none">
                                                                    <input type="text" name="cs_domain" class="form-control" value="<?=$cs_domain?>" style="display: none">
                                                                    <input type="text" name="cs_nm" class="form-control" value="<?=$cs_nm?>" style="display: none">
                                                                    <input type="text" name="cs_email" class="form-control" value="<?=$cs_email?>" style="display: none">
                                                                    <input type="text" name="cs_bank" class="form-control" value="<?=$cs_bank?>" style="display: none">
                                                                    <input type="text" name="cs_bank1" class="form-control" value="<?=$cs_bank1?>" style="display: none">
                                                                    <input type="text" name="cs_bank3" class="form-control" value="<?=$cs_bank3?>" style="display: none">
                                                                    <input type="text" name="cs_bank4" class="form-control" value="<?=$cs_bank4?>" style="display: none">
                                                                    <input type="text" name="cs_hp" class="form-control" value="<?=$cs_hp?>" style="display: none">
                                                                    <input type="text" name="cs_ym" class="form-control" value="<?=$cs_ym?>" style="display: none">
																	<input type="text" name="cs_potpph" class="form-control" value="<?=$cs_potpph?>" style="display: none">
																	<input type="text" name="cs_potadmin" class="form-control" value="<?=$cs_potadmin?>" style="display: none">
																	<input type="text" name="cs_minwd" class="form-control" value="<?=$cs_minwd?>" style="display: none">
                                                                    <input type="text" name="set_bisnis" class="form-control" value="<?=$set_bisnis?>" style="display: none">
                                                                    <input type="text" name="set_weblogin" class="form-control" value="<?=$set_weblogin?>" style="display: none">
                                                                    <input type="text" name="set_title1" class="form-control" value="<?=$set_title1?>" style="display: none">
                                                                    <input type="text" name="set_title2" class="form-control" value="<?=$set_title2?>" style="display: none">
                                                                    <input type="text" name="set_caption" class="form-control" value="<?=$set_caption?>" style="display: none">
                                                                    <input type="text" name="set_pt" class="form-control" value="<?=$set_pt?>" style="display: none">

                                                                </div>
                                                                <div class="form-group">
                                                                    <label>Username *</label>
                                                                    <input type="text" name="username" class="form-control" maxlength="50" placeholder="Masukkan username ..." autofocus>
                                                                </div>
                                                                <div class="form-group">
                                                                    <label>Password *</label>
                                                                    <input type="password" name="password" class="form-control" maxlength="50" placeholder="Masukkan password ...">
                                                                </div>
                                                                <div class="form-group">
                                                                    <label>Kode Angka : </label>
                                                                    <input type="" name="ran" value="<?=$rand?>" id="ran" readonly="readonly" class="captcha">&nbsp;&nbsp;<input type="button" value=" Refresh " onclick="captch()" />
                                                                </div>
                                                                <div class="form-group">
                                                                    <input type="text" name='kode' id="c_kode" class="form-control" maxlength="4" placeholder="Ketik kode angka keamanan diatas ..." onkeyup="validAngka(this);"  />
                                                                </div>
                                                                <div class="form-group">
                                                                    <button type="submit" name="submit" class="btn btn-primary btn-lg">Login</button> &nbsp;&nbsp; <button type="reset" name="reset" class="btn btn-primary btn-lg">Reset</button>                                                                    
                                                                </div>

                                                                <p>* Lupa password ? ... <a href="./?scrindo=losspass&id=<?= $id ?>"><font color="#0000FF"> Klik disini</font></a></p>
                                                            </div>
                                                        </form>
                                                    </div>
                                        </div>
                                  </div>
                              </div>
                            </div>
                          </div>
                          <!-- //Login Username -->








                          <!-- Login Email -->
                          <div class="panel panel-default">
                            <div class="panel-heading">
                              <h3 class="panel-title">
                                <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion1" href="#collapseTwo1">
                                  <strong><font color="#ff6700">Login</font></strong> dengan <strong><font color="#ff6700">Email</font></strong>
                                  <i class="fa fa-angle-right pull-right"></i>
                                </a>
                              </h3>
                            </div>
                              
                            <div id="collapseTwo1" class="panel-collapse collapse">
                              <div class="panel-body">
                                  <div class="media accordion-inner">

                                            <div class="media-body" align="justify">

                                                    <div class="row contact-wrap">
                                                        <div class="status alert alert-success" style="display: none"></div>
                                                        <form id="" class="contact-form" name="contact-form" method="post" action="loginprocess.php" onSubmit="return validasicontact2(this)">
                                                            <div class="col-sm-5-aw col-sm-offset-1-aw">
                                                                <div class="form-group">
                                                                    <input type="text" name="idhide" class="form-control" value="<?=$id?>" style="display: none">
                                                                    <input type="text" name="cs_domain" class="form-control" value="<?=$cs_domain?>" style="display: none">
                                                                    <input type="text" name="cs_nm" class="form-control" value="<?=$cs_nm?>" style="display: none">
                                                                    <input type="text" name="cs_email" class="form-control" value="<?=$cs_email?>" style="display: none">
                                                                    <input type="text" name="cs_bank" class="form-control" value="<?=$cs_bank?>" style="display: none">
                                                                    <input type="text" name="cs_bank1" class="form-control" value="<?=$cs_bank1?>" style="display: none">
                                                                    <input type="text" name="cs_bank3" class="form-control" value="<?=$cs_bank3?>" style="display: none">
                                                                    <input type="text" name="cs_bank4" class="form-control" value="<?=$cs_bank4?>" style="display: none">
                                                                    <input type="text" name="cs_hp" class="form-control" value="<?=$cs_hp?>" style="display: none">
                                                                    <input type="text" name="cs_ym" class="form-control" value="<?=$cs_ym?>" style="display: none">
																	<input type="text" name="cs_potpph" class="form-control" value="<?=$cs_potpph?>" style="display: none">
																	<input type="text" name="cs_potadmin" class="form-control" value="<?=$cs_potadmin?>" style="display: none">
																	<input type="text" name="cs_minwd" class="form-control" value="<?=$cs_minwd?>" style="display: none">
                                                                    <input type="text" name="set_bisnis" class="form-control" value="<?=$set_bisnis?>" style="display: none">
                                                                    <input type="text" name="set_weblogin" class="form-control" value="<?=$set_weblogin?>" style="display: none">
                                                                    <input type="text" name="set_title1" class="form-control" value="<?=$set_title1?>" style="display: none">
                                                                    <input type="text" name="set_title2" class="form-control" value="<?=$set_title2?>" style="display: none">
                                                                    <input type="text" name="set_caption" class="form-control" value="<?=$set_caption?>" style="display: none">
                                                                    <input type="text" name="set_pt" class="form-control" value="<?=$set_pt?>" style="display: none">
                                                                    
                                                                </div>
                                                                <div class="form-group">
                                                                    <label>Email *</label>
                                                                    <input type="text" name="email" class="form-control" maxlength="75" placeholder="Masukkan email ...">
                                                                </div>
                                                                <div class="form-group">
                                                                    <label>Password *</label>
                                                                    <input type="password" name="password" class="form-control" maxlength="50" placeholder="Masukkan password ...">
                                                                </div>
                                                                <div class="form-group">
                                                                    <label>Kode Angka : </label>
                                                                    <input type="" name="ran2" value="<?=$rand2?>" id="ran2" readonly="readonly" class="captcha">&nbsp;&nbsp;<input type="button" value=" Refresh " onclick="captch2()" />
                                                                </div>
                                                                <div class="form-group">
                                                                    <input type="text" name='kode2' id="c_kode2" class="form-control" maxlength="4" placeholder="Ketik kode angka keamanan diatas ..." onkeyup="validAngka(this);"  />
                                                                </div>
                                                                <div class="form-group">
                                                                    <button type="submit" name="submit" class="btn btn-primary btn-lg">Login</button> &nbsp;&nbsp; <button type="reset" name="reset" class="btn btn-primary btn-lg">Reset</button>
                                                                </div>

                                                                <p>* Lupa password ? ... <a href="./?scrindo=losspass&id=<?= $id ?>"><font color="#0000FF"> Klik disini</font></a></p>
                                                            </div>
                                                        </form>
                                                    </div>

                                            </div>
                                  </div>
                              </div>
                            </div>
                          </div>
                          <!-- //Login Email -->
                          

                          
                        </div><!--/#accordion1-->
                    </div>
                </div>

            </div><!--/.row-->
        </div><!--/.container-->
    </section><!--/#middle-->

    <!--Website Support-->
    <? include "websitesupport.php"; ?>