Lupa Password
Download File Pendukung
Tombol Link Lupapassword.php
<a href='?mnu=forgot'><input type="button" name="Login" class="tombol_login" value="FORGOT"></a>
Lupapassword.php
<?php
if(isset($_POST["Login"])){
$email=$_POST["email"];
$sql1="select * from `$tbuser` where `email`='$email'";
if(getJum($conn,$sql1)>0){
$d=getField($conn,$sql1);
$kode=$d["id_user"];
$nama=$d["nama_user"];
$username=$d["username"];
$password=$d["password"];
$to_email = $email;
$subject = "Info Akun / Login";
$body = "Yth ".$nama." Akun Anda Adalah : Username:$username , Password: $password";
$headers = "From: admin@aplikasi.com";
//mail($to_email, $subject, $body, $headers);
include "classes/class.phpmailer.php";
$mail = new PHPMailer;
$mail->IsSMTP();
$mail->SMTPSecure = 'tls';
$mail->Host = "sarjanacode.com"; //hostname masing-masing provider email // mail.sarjanacode.com // smtp.sarjanacode.com
$mail->SMTPDebug = 0;
$mail->Port = 587; //465
$mail->SMTPAuth = true;
$mail->Username = "inventaris@sarjanacode.com"; //user email
$mail->Password = "inventaris123456789"; //password email
$mail->SetFrom("inventaris@sarjanacode.com","Admin Inventarisasi Yarsi "); //set email pengirim
$mail->Subject = "Info Account Aplikasi Inventarisasi Yarsi"; //subyek email
$mail->AddAddress("$to_email","Nama penerima yang muncul"); //tujuan email
$mail->MsgHTML($body);
$mail->Send();
echo "<script>alert('Yth ".$nama." Akun Anda sudah dikirimkan ke mail: $email ....');
document.location.href='index.php?mnu=login';</script>";
}
else{
echo "<script>alert('Maaf Mail $email Tidak teregistrasi di sistem Kami');
document.location.href='index.php?mnu=forgot';</script>";
}
}
?>
Monday, September 16, 2019
Tuesday, September 3, 2019
Link ke Web
Link ke Web
txtweb = (EditText) findViewById(R.id.txtweb);txtweb.setEnabled(true);
txtweb.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
// Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("https://maps.google.com/maps?saddr="+txtlatitude.getText().toString()+","+txtlongitude.getText().toString()+"&daddr="+latitude+","+longitude));
// startActivity(intent);
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://www."+txtweb.getText().toString()));
startActivity(intent);
}});
txtweb = (EditText) findViewById(R.id.txtweb);txtweb.setEnabled(true);
txtweb.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
// Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("https://maps.google.com/maps?saddr="+txtlatitude.getText().toString()+","+txtlongitude.getText().toString()+"&daddr="+latitude+","+longitude));
// startActivity(intent);
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://www."+txtweb.getText().toString()));
startActivity(intent);
}});
Link Ke Email
Link Ke Email
txtemail= (EditText) findViewById(R.id.txtemail);txtemail.setEnabled(false);
txtlatitude = (EditText) findViewById(R.id.txtlatitude);txtlatitude.setEnabled(false);
txtlatitude .setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("https://maps.google.com?q="+txtlatitude.getText().toString()));
startActivity(intent);
}});
Link Ke Koordinat
Link Ke Koordinat
XML
<EditText
android:background="#dddddd"
android:id="@+id/txttelepon"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#000000" />
<!-- Email Label -->
<TextView
android:id="@+id/tkoor"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Koordinat"
android:textColor="#000000"
android:textSize="20sp"
android:textStyle="bold"/>
JAVA
txtkoor= (TextView) findViewById(R.id.tkoor);
txtkoor.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("https://maps.google.com/?="+txtlatitude.getText().toString()));
startActivity(intent);
}});
XML
<EditText
android:background="#dddddd"
android:id="@+id/txttelepon"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#000000" />
<!-- Email Label -->
<TextView
android:id="@+id/tkoor"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Koordinat"
android:textColor="#000000"
android:textSize="20sp"
android:textStyle="bold"/>
JAVA
txtkoor= (TextView) findViewById(R.id.tkoor);
txtkoor.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("https://maps.google.com/?="+txtlatitude.getText().toString()));
startActivity(intent);
}});
Link Ke Telepon
Link Ke Telepon
XML
<TextView
android:id="@+id/ttelp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="telepon"
android:textColor="#000000"
android:textSize="20sp"
android:textStyle="bold"/>
<!-- Name TextField -->
<EditText
android:background="#dddddd"
android:id="@+id/txttelepon"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#000000" />
JAVA
txttelepon.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
startActivity(new Intent(Intent.ACTION_DIAL,Uri.parse(txttelepon.getText().toString())));
}});
txttelp= (TextView) findViewById(R.id.ttelp);
txttelp.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
startActivity(new Intent(Intent.ACTION_DIAL,Uri.parse(txttelepon.getText().toString())));
}});
XML
<TextView
android:id="@+id/ttelp"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="telepon"
android:textColor="#000000"
android:textSize="20sp"
android:textStyle="bold"/>
<!-- Name TextField -->
<EditText
android:background="#dddddd"
android:id="@+id/txttelepon"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#000000" />
JAVA
txttelepon.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
startActivity(new Intent(Intent.ACTION_DIAL,Uri.parse(txttelepon.getText().toString())));
}});
txttelp= (TextView) findViewById(R.id.ttelp);
txttelp.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
startActivity(new Intent(Intent.ACTION_DIAL,Uri.parse(txttelepon.getText().toString())));
}});
Button Add
Button Add
public boolean onCreateOptionsMenu(Menu menu) {
menu.add(0, 1, 0, "Add New").setIcon(R.drawable.add);
return true;
}
+ ------------------------------------------------------------------------------------------------------------- +
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case 1:
Intent i = new Intent(getApplicationContext(), Add_rumahmakan.class);
i.putExtra("pk", "");
startActivityForResult(i, 100);
return true;
}
return false;
}
Marquee
Marquee
void callMarquee(){
Calendar cal = Calendar.getInstance();
int jam = cal.get(Calendar.HOUR);
int menit= cal.get(Calendar.MINUTE);
int detik= cal.get(Calendar.SECOND);
int tgl= cal.get(Calendar.DATE);
int bln= cal.get(Calendar.MONTH)+1;
int thn= cal.get(Calendar.YEAR);
String stgl=String.valueOf(tgl)+"-"+String.valueOf(bln)+"-"+String.valueOf(thn);
String sjam=String.valueOf(jam)+":"+String.valueOf(menit)+":"+String.valueOf(detik);
TextView txtMarquee=(TextView)findViewById(R.id.txtMarquee);
txtMarquee.setSelected(true);
String kata="Selamat Datang @lp2maray.com Aplikasi Android "+stgl+"/"+sjam+" #";
String kalimat=String.format("%1$s",TextUtils.htmlEncode(kata));
txtMarquee.setText(Html.fromHtml(kalimat+kalimat+kalimat));
}
void callMarquee(){
Calendar cal = Calendar.getInstance();
int jam = cal.get(Calendar.HOUR);
int menit= cal.get(Calendar.MINUTE);
int detik= cal.get(Calendar.SECOND);
int tgl= cal.get(Calendar.DATE);
int bln= cal.get(Calendar.MONTH)+1;
int thn= cal.get(Calendar.YEAR);
String stgl=String.valueOf(tgl)+"-"+String.valueOf(bln)+"-"+String.valueOf(thn);
String sjam=String.valueOf(jam)+":"+String.valueOf(menit)+":"+String.valueOf(detik);
TextView txtMarquee=(TextView)findViewById(R.id.txtMarquee);
txtMarquee.setSelected(true);
String kata="Selamat Datang @lp2maray.com Aplikasi Android "+stgl+"/"+sjam+" #";
String kalimat=String.format("%1$s",TextUtils.htmlEncode(kata));
txtMarquee.setText(Html.fromHtml(kalimat+kalimat+kalimat));
}
Subscribe to:
Posts (Atom)
Mengganti Icon Marker Di Maps
Creating an icon https://leafletjs.com/examples.html var greenIcon = ...
-
Permission Internet < uses-permission android :name ="android.permission.ACCESS_FINE_LOCATION" /> < uses-permission a...
-
Button Add public boolean onCreateOptionsMenu(Menu menu) { menu.add(0, 1, 0, "Add New").setIcon(R.drawable.add); ...
-
Link Ke Koordinat XML <EditText android:background="#dddddd" android:id="@+id/txttelepon...