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


PHP date::dateEnglishMinus方法代码示例

本文整理汇总了PHP中date::dateEnglishMinus方法的典型用法代码示例。如果您正苦于以下问题:PHP date::dateEnglishMinus方法的具体用法?PHP date::dateEnglishMinus怎么用?PHP date::dateEnglishMinus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在date的用法示例。


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

示例1: image

require $dir_libraries . "image.php";
$image = new image();
require $dir_libraries . "date.php";
$date = new date();
require $dir_libraries . "form.php";
$form = new form();
require $dir_libraries . "number.php";
$number = new number();
if (isset($_POST['save'])) {
    $nama = $form->input('nama');
    $id_tipe = $form->input('id_tipe');
    $id_no = $form->input('id_no');
    $jabatan = $form->input('jabatan');
    $aktif = $form->input('aktif');
    $tempat = $form->input('tempat');
    $tgl_lahir = $date->dateEnglishMinus($form->input('tgl_lahir'));
    $jns_kelamin = $form->input('jns_kelamin');
    $agama = $form->input('agama');
    $pernikahan = $form->input('pernikahan');
    $pekerjaan_id = $form->input('pekerjaan_id');
    $pendidikan = $form->input('pendidikan');
    $alamat = $form->input('alamat');
    $rt = $form->input('rt');
    $rw = $form->input('rw');
    $propinsi_id = $form->input('propinsi_id');
    $kota_id = $form->input('kota_id');
    $kecamatan_id = $form->input('kecamatan_id');
    $desa_id = $form->input('desa_id');
    $hp = $form->input('hp');
    $telp_rumah = $form->input('telp_rumah');
    $telp_kantor = $form->input('telp_kantor');
开发者ID:horirevens2nd,项目名称:absensi_posnganjuk,代码行数:31,代码来源:process.php

示例2: custom

require "../../../libraries/start.php";
require $dir_libraries . "custom.php";
$custom = new custom();
require $dir_libraries . "date.php";
$date = new date();
require $dir_libraries . "form.php";
$form = new form();
require $dir_libraries . "number.php";
$number = new number();
if (isset($_POST['save'])) {
    $nama = $form->input('nama');
    $user_level_id = $form->input('user_level_id');
    $aktif = $form->input('aktif');
    $username = $form->input('username');
    $tgl1 = $date->dateEnglishMinus($form->input('tgl1'));
    $tgl2 = $date->dateEnglishMinus($form->input('tgl2'));
    $action = $form->input('action');
    $user = $_SESSION['nama'];
    $datetime = date('Y-m-d H:i:s');
    // START INSERT DATA ==============================>
    if ($action == "insert") {
        $id = $number->id('user_login', 5);
        $sql = "INSERT INTO user_login\n                        (id, nama, user_level_id, aktif, username, password, tgl1, tgl2, crt, crt_date) \n                    VALUES \n                        ('{$id}','{$nama}','{$user_level_id}','{$aktif}','{$username}',PASSWORD('{$username}'),'{$tgl1}','{$tgl2}','{$user}','{$datetime}')";
        if (!$database->query($sql)) {
            die($sql);
        } else {
            $_SESSION['success'] = "<b>Berhasil!</b> Anda telah menambah data baru";
            header("Location: create.php");
            exit;
        }
开发者ID:horirevens2nd,项目名称:absensi_posnganjuk,代码行数:30,代码来源:process.php


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