当前位置: 首页>>代码示例>>PHP>>正文


PHP eksyen函数代码示例

本文整理汇总了PHP中eksyen函数的典型用法代码示例。如果您正苦于以下问题:PHP eksyen函数的具体用法?PHP eksyen怎么用?PHP eksyen使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了eksyen函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: hitungpoin

function hitungpoin($nis, $idpel, $opsi)
{
    // ambil poin dari pelanggaran
    $q = mysql_query("select t.poin as poin from pelanggaran p join tata_tertib t on t.id=p.idtata where p.id='{$idpel}'");
    $d = mysql_fetch_array($q);
    $poin = $d['poin'];
    // tambah/kurangkan poin ke tabel poin berdasarkan nis
    if ($opsi == "tambah") {
        mysql_query("update poin set poin=poin+'{$poin}', ubah=now() where nis='{$nis}'");
    } elseif ($opsi == "kurang") {
        mysql_query("update poin set poin=poin-'{$poin}', ubah=now() where nis='{$nis}'");
    } else {
        eksyen('Salah Fungsi!', 'index.php');
    }
}
开发者ID:teknomatika,项目名称:monitor,代码行数:15,代码来源:fungsi.php

示例2: date

                // nomor surat
                $nomorsurat = "{$kodeunit}/{$nomorurut}/" . date('Y');
                // input ke table LETTER
                mysql_query("insert into letter(GUID,NOMOR,IR_ID,JENIS,DTMCRT,USRCRT) values(uuid(),'{$nomorsurat}','" . $rijek[$y] . "','REJECTED',now(),'" . $_SESSION['firstname'] . "')");
                // untuk email
                $_SESSION['namanya'] = data_user_detail($iduserdetail[$y], "FIRSTNAME") . " " . data_user_detail($iduserdetail[$y], "LASTNAME");
                $_SESSION['emailnya'] = data_user_detail($iduserdetail[$y], "EMAIL");
                include 'email/rejection.php';
            }
        }
    }
    // konfirmasi kalau quota sudah habis
    if ($dcq[$qw] == '0') {
        eksyen('Sorry! Your weekly quota is up', "?p=intern_pending");
    }
    eksyen('Saved!', 'home.php#internship');
}
?>
<form action="" method="post">
<table class="table table-condensed" id="tbl">
  <thead>
    <tr>
      <th class="col-md-1 text-center">No</th>
      <th class="col-md-2 text-center">Nama</th>
      <th class="col-md-2 text-center">Program</th>
      <th class="text-center">Topik/Referensi</th>
      <th class="col-md-2 text-center">Detail</th>
      <th class="col-md-1 text-center">Accept</th>
      <th class="col-md-1 text-center">Reject</th>
    </tr>
  </thead>
开发者ID:AaEzha,项目名称:Azizah,代码行数:31,代码来源:intern_pending.php

示例3: mysql_real_escape_string

	    <label class="col-sm-2 control-label">Sequence</label>
	    <div class="col-sm-2">
	      <input type="text" class="form-control" name="seq" placeholder="Sequence" maxlength="2" value="<?php 
            echo $d['SEQUENCE'];
            ?>
" required>
	    </div>
	  </div>
	  <div class="form-group">
	    <div class="col-sm-offset-2 col-sm-10">
	      <button type="submit" class="btn btn-success">Save</button>
	      <button type="reset" class="btn btn-warning">Reset</button>
	    </div>
	  </div>
	</form>
<?php 
            break;
        case 'delete':
            $guid = mysql_real_escape_string($_GET['guid']);
            if ($guid == "") {
                eksyen('', '?p=aspect');
            } else {
                mysql_query("delete from assessment_aspect where GUID='{$guid}'");
                eksyen('', '?p=aspect');
            }
            break;
        default:
            # code...
            break;
    }
}
开发者ID:AaEzha,项目名称:Azizah,代码行数:31,代码来源:aspect.php

示例4: mysql_real_escape_string

    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <button type="submit" class="btn btn-success">Save & Activate</button>
        <button type="reset" class="btn btn-warning">Reset</button>
      </div>
    </div>
  </form>
<?php 
            break;
        case 'delete':
            $guid = mysql_real_escape_string($_GET['guid']);
            if ($guid == "") {
                eksyen('', '?p=user');
            } else {
                $iduserdetail = data_user_detail_user($guid, 'GUID');
                // hapus member_of_group
                mysql_query("delete from member_of_group where USER_DETAIL_ID='{$iduserdetail}'");
                // hapus user_education
                mysql_query("delete from user_education where USER_DETAIL_ID='{$iduserdetail}'");
                // hapus user_detail
                mysql_query("delete from user_detail where GUID='{$iduserdetail}'");
                // hapus user
                mysql_query("delete from user where GUID='{$guid}'");
                eksyen('', '?p=user');
            }
            break;
        default:
            # code...
            break;
    }
}
开发者ID:AaEzha,项目名称:Azizah,代码行数:31,代码来源:user.php

示例5: session_start

<?php

session_start();
include "db_connection.php";
$n = $_POST['jum'];
$bulan = $_POST['bulan'];
$tahun = $_POST['tahun'];
echo "<h1>Processing data...</h1>";
for ($i = 1; $i <= $n; $i++) {
    $uid = $_POST['userid' . $i];
    $w1 = $_POST['w1' . $i];
    $w2 = $_POST['w2' . $i];
    $w3 = $_POST['w3' . $i];
    $w4 = $_POST['w4' . $i];
    $w5 = $_POST['w5' . $i];
    $q = mysql_query("update quota set WEEK1='{$w1}', WEEK2='{$w2}', WEEK3='{$w3}', WEEK4='{$w4}', WEEK5='{$w5}' where USER_DETAIL_ID='{$uid}' and MONTH='{$bulan}' and YEAR='{$tahun}'");
    if ($q) {
        echo "Data {$i} succeeded<br>";
    } else {
        echo "Data {$i} failed<br>";
    }
}
eksyen('', 'home.php?p=quota');
开发者ID:AaEzha,项目名称:Azizah,代码行数:23,代码来源:proses_quota.php

示例6: mysql_real_escape_string

        echo "Processing...";
        $nama = mysql_real_escape_string($_POST['nama']);
        $username = mysql_real_escape_string($_POST['username']);
        $level = mysql_real_escape_string($_POST['level']);
        // password
        if ($_POST['password'] != "") {
            // kalau tidak kosong, maka dijalankan
            $password = md5(mysql_real_escape_string($_POST['password']));
            $q = $db->update('users', array('password' => $password), 'username="' . $_username . '"');
        }
        // users
        $q = $db->update('users', array('nama' => $nama, 'level' => $level, 'ubah' => wkt()), 'username="' . $_username . '"');
        if ($q) {
            eksyen('Data berhasil diubah', '?hal=profil');
        } else {
            eksyen('Data gagal diubah', '?hal=profil');
        }
    }
    ?>
<div class="col-lg-12">
    <h1 class="page-header">Ubah Profil</h1>
</div>
<form action="" method="POST" class="form-horizontal" role="form" enctype="multipart/form-data">

	<div class="form-group">
		<label for="inputNama" class="col-sm-2 control-label">Nama Guru :</label>
		<div class="col-sm-10">
			<input type="text" name="nama" id="inputNama" class="form-control" value="<?php 
    echo $d[0]['nama'];
    ?>
" required="required" maxlength="50">
开发者ID:teknomatika,项目名称:monitor,代码行数:31,代码来源:profil.php

示例7: array

		<?php 
    }
    ?>
	</tbody>
</table>

<div class="alert alert-info" role="alert">Klik pada nama siswa atau NIS untuk melihat daftar peringatan.</div>

<?php 
} else {
    if (isset($_POST['idtindak'])) {
        $idtindak = $db->escapeString($_POST['idtindak']);
        $status = $db->escapeString($_POST['status']);
        $db->update('tindak', array('tindak' => $status, 'ubah' => wkt(), 'idguru' => $_SESSION['userid']), "id='{$idtindak}'");
        echo "Processing...";
        eksyen('Data berhasil diubah', '?hal=penindakan');
    }
    $id = mysql_real_escape_string($_GET['detail']);
    $db->select('tindak', '*', null, "id='{$id}'");
    $res = $db->getResult();
    foreach ($res as $d) {
        ?>

<div class="col-lg-12">
    <h1 class="page-header">Detail Tindakan <small>| <a href="?hal=penindakan">Kembali</a></small></h1>
</div>
<form action="" method="post">
<fieldset <?php 
        if ($d['tindak'] == 1) {
            echo "disabled";
        }
开发者ID:teknomatika,项目名称:monitor,代码行数:31,代码来源:penindakan.php

示例8: array

    if ($_FILES['pengantar']['name'] != "") {
        $tmp_name = $_FILES['pengantar']['tmp_name'];
        //nama local temp file di server
        $file_size = $_FILES['pengantar']['size'];
        //ukuran file (dalam bytes)
        $file_type2 = $_FILES['pengantar']['type'];
        $tipe = array("application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/pdf", "image/jpeg", "image/png", "image/gif");
        if (!in_array($file_type2, $tipe)) {
            eksyen('Improper File Type for CV. Use DOC/DOCX/PDF/Image only.', 'home.php#mastersetting');
        }
        $fp = fopen($tmp_name, 'r');
        // open file (read-only, binary)
        $pengantar = fread($fp, $file_size) or die("Tidak dapat membaca source file");
        // read file
        $pengantar = mysql_real_escape_string($pengantar) or die("Tidak dapat membaca source file");
        // parse image ke string
        fclose($fp);
        // tutup file
        mysql_query("update internship_registration set COVER_LETTER='{$pengantar}' where GUID='{$guid}'");
    }
    //--------------------------cv----------------------------------//
    $iduserdetail = $_SESSION['iddetail'];
    // UPDATE into user //
    $q = mysql_query("update internship_registration set MASTER_TOPIC_ID='{$topik}', PROGRAM_ID='{$program}', INTERNSHIP_PROJECT_ID='{$projek}', START_DATE='{$mulai}', END_DATE='{$selesai}', DTMUPD=now(), USRUPD='{$usrcrt}' where GUID='{$guid}'");
    // OK
    if ($q) {
        eksyen('Pendaftaran Internship berhasil! Tunggu konfirmasinya via email Anda', 'home.php');
    } else {
        eksyen('Pendaftaran Internship gagal! Hubungi Administrator', 'index.php');
    }
}
开发者ID:AaEzha,项目名称:Azizah,代码行数:31,代码来源:act_upd_intern.php

示例9: mysql_real_escape_string

				</div>
			</div>
<?php 
            break;
        case 'save':
            if (isset($_POST['judul'])) {
                $judul = mysql_real_escape_string($_POST['judul']);
                $pesan = mysql_real_escape_string($_POST['pesan']);
                $idpesan = mysql_real_escape_string($_POST['idpesan']);
                $iduser = mysql_real_escape_string($_POST['iduser']);
                $idunit = mysql_real_escape_string($_POST['idunit']);
                $idinternt = mysql_real_escape_string($_POST['idinternt']);
                $idsender = mysql_real_escape_string($_POST['idsender']);
                if ($iduser != $idsender) {
                    $status = "Replied";
                } else {
                    $status = "Waiting reply";
                }
                $q = mysql_query("insert into message(GUID,UNIT_ID,INTERN_ID,TITLE,SENDER_ID,MESSAGE_ID,MESSAGE,DTMCRT,STATUS) values(uuid(),'{$idunit}','{$idinternt}','{$judul}','{$iduser}','{$idpesan}','{$pesan}',now(),'{$status}')");
                if ($q) {
                    eksyen('', 'inside.php#comment');
                } else {
                    eksyen('Error!', 'inside.php#comment');
                }
            }
            break;
        default:
            # code...
            break;
    }
}
开发者ID:aa-azizah,项目名称:skrps,代码行数:31,代码来源:message.php

示例10: str_shuffle

<?php 
if (isset($_POST['username'])) {
    $username = $db->escapeString($_POST['username']);
    $nama = $db->escapeString($_POST['nama']);
    $jurusan = $db->escapeString($_POST['jurusan']);
    $db->select('users', '*', NULL, "username='{$username}' and nama='{$nama}' and jurusan='{$jurusan}'", null);
    $data = $db->getResult();
    if ($data) {
        $str = 'abcdef1234567890';
        $shuffled = str_shuffle($str);
        $md5pass = md5($shuffled);
        $db->update('users', array('password' => $md5pass), "username='{$username}' and nama='{$nama}' and jurusan='{$jurusan}'");
        echo 'Selamat, Anda berhasil mengubah password Anda. Password baru Anda adalah ' . $shuffled;
    } else {
        eksyen('Maaf, data tidak ditemukan', 'index.php');
    }
}
?>

<form action="" method="POST" class="form-horizontal" role="form">
		<div class="form-group">
			<label for="inputUsername" class="col-sm-2 control-label">Username:</label>
			<div class="col-sm-10">
				<input type="text" name="username" id="inputUsername" class="form-control" value="" required="required">
			</div>
		</div>

		<div class="form-group">
			<label for="inputNama" class="col-sm-2 control-label">Nama:</label>
			<div class="col-sm-10">
开发者ID:teknomatika,项目名称:monitor,代码行数:30,代码来源:lupa.php

示例11: eksyen

 />
    						<label for="wil2">Wilayah II</label></p>
						</div>
					</div>
					<button type="submit" class="btn waves-effect waves-light">Simpan</button>
				</form>
			</div>
<?php 
            break;
        case 'hapus':
            if (!isset($_GET['i']) or $_GET['i'] == '') {
                eksyen('', '?hal=daerah');
            }
            $id = $_GET['i'];
            // cek anggota kelurahan
            $qkel = $db->query("select id from kelurahan where idkecamatan='{$id}'");
            $dkel = $qkel->fetch_array();
            $idkel = $dkel['id'];
            // hapus desa berdasarkan id kelurahan
            $db->query("delete from desa where idkelurahan='{$idkel}'");
            // hapus kelurahan berdasarkan id kecamatan
            $db->query("delete from kelurahan where idkecamatan='{$id}'");
            // hapus kecamatannya
            $db->query("delete from kecamatan where id='{$id}'");
            eksyen('', '?hal=daerah');
            break;
        default:
            # code...
            break;
    }
}
开发者ID:AaEzha,项目名称:agus-aetra,代码行数:31,代码来源:daerah.php

示例12: eksyen

			<div class="row">
				<form class="col s12" action="" method="post">
					<div class="row">
						<div class="input-field col s12">
							<input id="teks" name="teks" type="text" class="validate" value="<?php 
            if ($a == 'ubah') {
                echo $d['nama'];
            }
            ?>
" required>
								<label for="teks">Nama Desa</label>
						</div>
					</div>
					<button type="submit" class="btn waves-effect waves-light">Simpan</button>
				</form>
			</div>
<?php 
            break;
        case 'hapus':
            if (!isset($_GET['i']) or $_GET['i'] == '') {
                eksyen('', '?hal=desa');
            }
            $id = $_GET['i'];
            $db->query("delete from desa where id='{$id}'");
            eksyen('Data berhasil dihapus', '?hal=desa&kel=' . $kel . '&kec=' . $_SESSION['kec']);
            break;
        default:
            # code...
            break;
    }
}
开发者ID:AaEzha,项目名称:agus-aetra,代码行数:31,代码来源:desa.php

示例13: mysql_real_escape_string

	    <label class="col-sm-2 control-label">Program Name</label>
	    <div class="col-sm-4">
	      <input type="text" class="form-control" name="code" placeholder="Program Name" maxlength="100" value="<?php 
            echo $d['PROGRAM'];
            ?>
" autofocus>
	    </div>
	  </div>
	  <div class="form-group">
	    <div class="col-sm-offset-2 col-sm-10">
	      <button type="submit" class="btn btn-success">Save</button>
	      <button type="reset" class="btn btn-warning">Reset</button>
	    </div>
	  </div>
	</form>
<?php 
            break;
        case 'delete':
            $guid = mysql_real_escape_string($_GET['guid']);
            if ($guid == "") {
                eksyen('', '?p=internprogram');
            } else {
                mysql_query("delete from internship_program where guid='{$guid}'");
                eksyen('', '?p=internprogram');
            }
            break;
        default:
            # code...
            break;
    }
}
开发者ID:AaEzha,项目名称:Azizah,代码行数:31,代码来源:internprogram.php

示例14: mysql_query

    }
    if (isset($_POST['rijek'])) {
        $rijek = $_POST['rijek'];
        for ($y = 0; $y < count($rijek); $y++) {
            mysql_query("update internship_registration set DTMUPD=now(), USRUPD='" . $_SESSION['username'] . "', STATUS='REJECTED', UNIT_ID='{$unitid}' where GUID='" . $rijek[$y] . "'");
        }
    }
    /*
    	foreach ($_POST['intern'] as $intern) {
    		mysql_query("update internship_registration set STATUS='APPROVED', UNIT_ID='$unitid' where GUID='$intern'");
    	}
    	foreach ($_POST['iduserdetail'] as $iduserdetail) {
    		mysql_query("update user_detail set UNIT_ID='$unitid' where GUID='$iduserdetail'");
    	}
    */
    eksyen('Saved!', 'inside.php#internship');
}
?>
<form action="" method="post">
<table class="table table-condensed" id="tbl">
  <thead>
    <tr>
      <th class="col-md-1 text-center">No</th>
      <th class="col-md-2 text-center">Nama</th>
      <th class="col-md-2 text-center">Program</th>
      <th class="text-center">Topik/Referensi</th>
      <th class="col-md-2 text-center">Periode</th>
      <th class="col-md-1 text-center">Accept</th>
      <th class="col-md-1 text-center">Reject</th>
    </tr>
  </thead>
开发者ID:aa-azizah,项目名称:skrps,代码行数:31,代码来源:intern_pending.php

示例15: isNumber

	    <label class="col-sm-1 control-label">End</label>
	    <div class="col-sm-2">
	      <input type="text" class="form-control" name="end" placeholder="Year" maxlength="4" onkeypress="return isNumber(event)" value="<?php 
            echo $dx['END'];
            ?>
" required>
	    </div>
	  </div>
	  <div class="form-group">
	    <div class="col-sm-offset-2 col-sm-10">
	      <button type="submit" class="btn btn-success">Save</button>
	      <button type="reset" class="btn btn-warning">Reset</button>
	    </div>
	  </div>
	</form>
<?php 
            break;
        case 'delete':
            $guid = mysql_real_escape_string($_GET['guid']);
            if ($guid == "") {
                eksyen('', '?p=unit');
            } else {
                mysql_query("delete from unit where guid='{$guid}'");
                eksyen('', '?p=unit');
            }
            break;
        default:
            # code...
            break;
    }
}
开发者ID:AaEzha,项目名称:Azizah,代码行数:31,代码来源:unit.php


注:本文中的eksyen函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。