本文整理匯總了PHP中DateToIndo函數的典型用法代碼示例。如果您正苦於以下問題:PHP DateToIndo函數的具體用法?PHP DateToIndo怎麽用?PHP DateToIndo使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了DateToIndo函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __
"#","<?php
echo __('Tanggal');
?>
","<?php
echo __('Status');
?>
"
<?php
$i = 0;
foreach ($pager->getResults() as $student_absence) {
++$i;
use_helper('myHelper');
?>
"<?php
echo $i + ($pager->getPage() - 1) * $pager->getMaxPerPage();
?>
","<?php
echo $student_absence->getStart() ? DateToIndo($student_absence->getStart()) : 'n/a';
?>
","<?php
if ($student_absence->getStatus() == AbsenceCourse::STATUS_SICK) {
echo __('Sakit');
} elseif ($student_absence->getStatus() == AbsenceCourse::STATUS_PERMIT) {
echo __('Izin');
} elseif ($student_absence->getStatus() == AbsenceCourse::STATUS_ABSENCE) {
echo __('Tanpa Keterangan');
}
?>
"
<?php
}
示例2: date
<?php
}
?>
</tbody>
</table>
<table border="0" width="100%">
<tr><td colspan="35" style="height: 10px;"></td></tr>
<tr>
<td width="10%"></td>
<td width="65%" align="left" style="font-size: 12px; font-weight: bold;">Mengetahui,<br />Kepala Sekolah</td><td colspan="26"></td>
<td width="25%" align="left" style="font-size: 12px; font-weight: bold;" colspan="8">
Jakarta,
<?php
$tanggal = date('Y-m-d');
echo DateToIndo($tanggal);
?>
<br />Guru Mata Pelajaran
</td>
</tr>
<tr><td colspan="25" height="70px"></td></tr>
<tr>
<td></td>
<td style="text-align: left; font-size: 12px; font-weight: bold;">
<?php
$c = new Criteria();
$c->add(EmployeePeer::DEPARTMENT_ID, $course_schedule->getAcademicCalendar()->getDepartmentId());
$c->add(EmployeePeer::STAFF_TYPE_ID, 14);
$employee = EmployeePeer::doSelectOne($c);
echo $employee->getName() ? $employee->getName() : '-';
?>
示例3: DateToIndo
?>
</td>
<td><?php
echo $value['tingkatan'];
?>
</td>
<td><?php
echo $value['aktivitas'];
?>
</td>
<td><?php
echo $value['hasil_aktivitas'];
?>
</td>
<td><?php
echo DateToIndo($value['tanggal']);
?>
</td>
<td>
<a href="<?php
echo Yii::$app->urlManager->createUrl(['human-resource/update-aktivitas', "id" => $value['id_aktivitas']]);
?>
" class="btn btn-success btn-sm"><i class="glyphicon glyphicon-pencil"></i></a>
<a href="<?php
echo Yii::$app->urlManager->createUrl(['human-resource/delete-aktivitas', "id" => $value['id_aktivitas']]);
?>
" class="btn btn-danger btn-sm"><i class="glyphicon glyphicon-trash"></i></a>
</td>
</tr>
<?php
示例4: elseif
echo "November ";
} elseif ($bln == 12) {
echo "December ";
}
if ($tgl_cetak == 1 || $tgl_cetak == 21 || $tgl_cetak == 31) {
echo $tgl_cetak . 'st';
} elseif ($tgl_cetak == 2 || $tgl_cetak == 22) {
echo $tgl_cetak . 'nd';
} elseif ($tgl_cetak == 3 || $tgl_cetak == 23) {
echo $tgl_cetak . 'rd';
} else {
echo $tgl_cetak . 'th';
}
echo ' ' . $tahun;
} else {
echo DateToIndo($time2);
}
?>
<br /><?php
if ($counseling->getEmployeeId() == 444) {
echo 'Home Teacher';
} else {
echo 'Wali Kelas';
}
?>
</b>
</td>
</tr>
<tr><td height="50"></td></tr>
<tr>
<td style="font-size: 11px;"><b>
示例5: DateToIndo
<td align="left">
<?php
echo $cir_history->getColItem() ? $cir_history->getColItem()->getCatalog() ? $cir_history->getColItem()->getCatalog()->getTitle() : '-' : '-';
?>
</td>
<td align="left">
<?php
echo $cir_history->getColItem() ? $cir_history->getColItem()->getColLocation() ? $cir_history->getColItem()->getColLocation()->getDepartment()->toString() : '-' : '-';
?>
</td>
<td align="left"><?php
echo $cir_history->getOrderDate() ? DateToIndo($cir_history->getOrderDate('Y/m/d')) : '-';
?>
</td>
<td align="left"><?php
echo $cir_history->getDueDate() ? DateToIndo($cir_history->getDueDate('Y/m/d')) : '-';
?>
</td>
<td align="left"><?php
echo $cir_history->getLateDays($now) . " " . __('days');
?>
</td>
</tr>
<?php
}
?>
<?php
}
?>
</tbody>
</table>
示例6: __
?>
</label></td>
<td style="text-align:center;">:</td>
<td><p class="detail"><b><?php
echo $employee_medical->getDepartment() ? $employee_medical->getDepartment()->toString() : '-';
?>
</b></p></td>
</tr>
<tr>
<td><label ><?php
echo __('Medical Date');
?>
</label></td>
<td style="text-align:center;">:</td>
<td><p class="detail"><b><?php
echo $employee_medical->getMedicalDate() ? DateToIndo($employee_medical->getMedicalDate()) : '-';
?>
</b></p></td>
</tr>
<tr>
<td><label ><?php
echo __('Hospital');
?>
</label></td>
<td style="text-align:center;">:</td>
<td><p class="detail"><b><?php
echo $employee_medical->getHospital() ? $employee_medical->getHospital() : '-';
?>
</b></p></td>
</tr>
<tr>
示例7: __
</td>
<td style="text-align: left;">
<?php
if ($ta_detail->getSex() == 'L') {
echo __('Laki-laki');
} elseif ($ta_detail->getSex() == 'P') {
echo __('Perempuan');
}
?>
</td>
<td style="text-align: left;"><?php
echo $ta_detail->getPob() ? $ta_detail->getPob() : '-';
?>
</td>
<td style="text-align: left;"><?php
echo $ta_detail->getDob() ? DateToIndo($ta_detail->getDob()) : '-';
?>
</td>
<td style="text-align: left;"><?php
echo $ta_detail->getReligion() ? $ta_detail->getReligion()->toString() : '-';
?>
</td>
<td style="text-align: left;"><?php
echo $ta_detail->getFather() ? $ta_detail->getFather() : '-';
?>
</td>
<td style="text-align: left;"><?php
echo $ta_detail->getMother() ? $ta_detail->getMother() : '-';
?>
</td>
示例8: DateToIndo
++$i;
if ($i % 2 == 0) {
echo ' even';
}
?>
">
<td><?php
echo $i + ($pager->getPage() - 1) * $pager->getMaxPerPage();
?>
</td>
<td class='first'><?php
echo $daily_visit->getDepartment() ? $daily_visit->getDepartment()->toString() : '-';
?>
</td>
<td align="left"><?php
echo $daily_visit->getTimein() ? DateToIndo($daily_visit->getTimein('Y/m/d')) : '-';
?>
</td>
<td align="left"><?php
echo $daily_visit->getTotal();
?>
</td>
<td align="left"><?php
$rata = $daily_visit->getRataRata() / $daily_visit->getTotal();
$rata = round($rata, 2);
$rata = $rata % (60 * 60 * 24);
$hours = str_pad(intval($rata / (60 * 60)), 1, '0', STR_PAD_LEFT);
$rata = $rata % (60 * 60);
$mins = str_pad(intval($rata / 60), 1, '0', STR_PAD_LEFT);
if ($rata > 60) {
echo $hours . ' jam ' . $mins . ' menit';
示例9: DateToIndo
?>
</td>
<td align="left"><?php
echo $ejh->getDepartmentId() ? $ejh->getDepartment()->toString() : '-';
?>
</td>
<td align="left"><?php
echo $ejh->getEmployeeLevelId() ? $ejh->getEmployeeLevel()->getCode() : '-';
?>
</td>
<td align="left"><?php
echo $ejh->getEmployeeLevelId() ? $ejh->getEmployeeLevel()->getLevel() : '-';
?>
</td>
<td align="left"><?php
echo $ejh->getStart() ? DateToIndo($ejh->getStart()) : '-';
?>
</td>
<td align="left"><?php
echo $ejh->getWorkService() ? $ejh->getWorkService() : '-';
?>
</td>
</tr>
<?php
}
?>
<?php
}
?>
</tbody>
</table>
示例10: number_format
$totalbyr = $totalbyr + $result['totalbayar'];
$totalsisa = $totalsisa + $result['sisakekurangan'];
}
$pdf->SetFont('Arial', 'B', 9);
$pdf->SetWidths(array(20.5, 2.6, 2.6, 2.6));
$pdf->Row(array("SUBTOTAL", number_format($totalsw, 0, ',', '.') . ",-", number_format($totalbyr, 0, ',', '.') . ",-", number_format($totalsisa, 0, ',', '.') . ",-"));
$pdf->SetWidths(array(28.3));
$pdf->Row(array("SEWA KENDARAAN NON RETAIL"));
$pdf->SetFont('Arial', '', 9);
$pdf->SetWidths(array(2.3, 2.5, 2.5, 2.5, 3.7, 2.2, 2.2, 2.6, 2.6, 2.6, 2.6));
$pdf->SetHeight(0.1);
$pdf->SetAligns(array('C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'));
$query_datakorporate = $getquerykorporate;
$querykorp = mysql_query($query_datakorporate) or die("Query gagal");
while ($resultkorp = mysql_fetch_array($querykorp)) {
$pdf->Row(array($resultkorp['marketing'], DateToIndoAngka($resultkorp['mulai']), $resultkorp['no_ref'], $resultkorp['kendaraan'], $resultkorp['merk'] . '-' . $resultkorp['tipekendaraan'], DateToIndoAngka($resultkorp['mulai']), DateToIndoAngka($resultkorp['sampai']), $resultkorp['nama'], number_format($resultkorp['total'], 0, ',', '.') . ",-", number_format($resultkorp['totalbayar'], 0, ',', '.') . ",-", number_format($resultkorp['sisakekurangan'], 0, ',', '.') . ",-"));
$totalswkorporate = $totalswkorporate + $resultkorp['total'];
$totalbyrkorporate = $totalbyrkorporate + $resultkorp['totalbayar'];
$totalsisakorporate = $totalsisakorporate + $resultkorp['sisakekurangan'];
}
$pdf->SetFont('Arial', 'B', 9);
$pdf->SetWidths(array(20.5, 2.6, 2.6, 2.6));
$pdf->Row(array("SUBTOTAL", number_format($totalswkorporate, 0, ',', '.') . ",-", number_format($totalbyrkorporate, 0, ',', '.') . ",-", number_format($totalsisakorporate, 0, ',', '.') . ",-"));
$pdf->SetWidths(array(28.3));
$pdf->Row(array(""));
$pdf->SetWidths(array(20.5, 2.6, 2.6, 2.6));
$pdf->SetFont('Arial', 'B', 10);
$pdf->Row(array("GRAND TOTAL", number_format($totalsw + $totalswkorporate, 0, ',', '.') . ",-", number_format($totalbyr + $totalbyrkorporate, 0, ',', '.') . ",-", number_format($totalsisa + $totalsisakorporate, 0, ',', '.') . ",-"));
$pdf->Ln();
$pdf->Output('Laporan Hasil Sewa Cabang ' . $gudang . ' Periode ' . DateToIndo($mulai) . " - " . DateToIndo($akhir) . '.pdf', 'D');
示例11: __
echo '2. ' . __('Sex');
?>
</td>
<td>: <?php
echo $ng_test_applicant->getSex() ? $key[$ng_test_applicant->getSex()] : '';
?>
</td>
</tr>
<tr>
<td class="label"><?php
echo '3. ' . __('Pob') . ', ' . __('Dob');
?>
</td>
<td>: <?php
echo $ng_test_applicant->getPob() ? $ng_test_applicant->getPob() . ', ' : '';
echo $ng_test_applicant->getDob() ? DateToIndo($ng_test_applicant->getDob()) : '-';
?>
</td>
</tr>
</table>
<table width="95%" class="detail">
<tr>
<td class="label_up" colspan="2"><?php
echo 'II. ' . __('Home Detail');
?>
</td>
</tr>
<tr>
<td class="label"><?php
echo '1. ' . __('Address');
示例12: link_to_remote
if ($can_remove) {
echo link_to_remote(__('delete'), array('url' => 'ng_reg_detail/deleteDetail?id=' . $ng_reg_test_detail->getId() . '&ng_reg_period_id=' . $ng_reg_period->getId(), 'confirm' => __('Are you sure?'), 'update' => 'content', 'script' => 'true', 'before' => "this.blur();showIndicator('content', 'snakebig_black');", 'complete' => "hideIndicator()"), array('class' => 'red'));
}
?>
</p>
</td>
<td><?php
echo $ng_reg_test_detail->getTitle() ? $ng_reg_test_detail->getTitle() : '-';
?>
</td>
<td><?php
echo $ng_reg_test_detail->getStart() ? DateToIndo($ng_reg_test_detail->getStart()) . ', Pkl. ' . substr($ng_reg_test_detail->getStart(), 11, 5) : '-';
?>
</td>
<td><?php
echo $ng_reg_test_detail->getEnd() ? DateToIndo($ng_reg_test_detail->getEnd()) . ', Pkl. ' . substr($ng_reg_test_detail->getEnd(), 11, 5) : '-';
?>
</td>
</tr>
<?php
}
?>
<?php
}
?>
</tbody>
</table>
<?php
if ($pager->getNbResults() > 1) {
echo include_partial('global/pager', array('position' => 'bottom', 'pager' => $pager, 'module' => 'NgRegPeriod'));
}
示例13: __
<td style="vertical-align:middle;">
<p class="detail" style="font-weight: bold;"><?php
echo $schedule->getLocation() ? $schedule->getLocation()->toString() : '-';
?>
</p>
</td>
</tr>
<tr>
<td style="vertical-align:middle;"><label><?php
echo __('Tanggal Ujian');
?>
</label></td>
<td width="2%" style="text-align:center; vertical-align:middle;">:</td>
<td style="vertical-align:middle;">
<p class="detail"><?php
echo $schedule->getDate() ? DateToIndo($schedule->getDate()) : '-';
?>
</p>
</td>
</tr>
<tr>
<td style="vertical-align:middle;"><label><?php
echo __('Day');
?>
</label></td>
<td width="2%" style="text-align:center; vertical-align:middle;">:</td>
<td style="vertical-align:middle;"><p class="detail"><?php
echo $schedule->getDayString();
?>
</p></td>
</tr>
示例14: number_format
$pdf->SetFont('Arial', 'B', 9);
$pdf->SetWidths(array(14.5, 2.2, 2.6, 2.3, 2.6, 2.6, 2.6, 2.6, 2.6));
$pdf->Row(array("SUBTOTAL", number_format($totalangsuran, 0, ',', '.') . ",-", number_format($totaluangmuka, 0, ',', '.') . ",-", "0,-", "0,-", number_format($totaltunai, 0, ',', '.') . ",-", number_format($totaltrasfer, 0, ',', '.') . ",-", number_format($totaloperasional, 0, ',', '.') . ",-", number_format($total, 0, ',', '.') . ",-"));
$pdf->SetWidths(array(34.6));
$pdf->Row(array("SEWA KENDARAAN NON RETAIL (CORPORATE)"));
$pdf->SetFont('Arial', '', 9);
$pdf->SetWidths(array(2.3, 2.5, 2.5, 2.5, 2.5, 2.2, 2.2, 2.6, 2.3, 2.6, 2.6, 2.6, 2.6, 2.6));
$pdf->SetHeight(0.1);
$pdf->SetAligns(array('C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'));
$query_datakorporate = $getquerykorporate;
$querykorp = mysql_query($query_datakorporate) or die("Query gagal");
while ($resultkorp = mysql_fetch_array($querykorp)) {
$pdf->Row(array($resultkorp['user'], $resultkorp['customer'], $resultkorp['no_ref'], DateToIndoAngka($resultkorp['periodeawal']), DateToIndoAngka($resultkorp['periodeakhir']), $resultkorp['kendaraan'], number_format($resultkorp['angsuran'], 0, ',', '.') . ",-", number_format($resultkorp['uangmuka'], 0, ',', '.') . ",-", "0,-", "0,-", number_format($resultkorp['tunai'], 0, ',', '.') . ",-", number_format($resultkorp['transfer'], 0, ',', '.') . ",-", number_format($resultkorp['operasional'], 0, ',', '.') . ",-", number_format($resultkorp['total'], 0, ',', '.') . ",-"));
$totalangsurankorporate += $resultkorp['angsuran'];
$totaluangmukakorporate += $resultkorp['uangmuka'];
$totaltrasferkorporate += $resultkorp['transfer'];
$totaltunaikorporate += $resultkorp['tunai'];
$totaloperasionalkorporate += $resultkorp['operasional'];
$totalkorporate += $resultkorp['total'];
}
$pdf->SetFont('Arial', 'B', 9);
$pdf->SetWidths(array(14.5, 2.2, 2.6, 2.3, 2.6, 2.6, 2.6, 2.6, 2.6));
$pdf->Row(array("SUBTOTAL", number_format($totalangsurankorporate, 0, ',', '.') . ",-", number_format($totaluangmukakorporate, 0, ',', '.') . ",-", "0,-", "0,-", number_format($totaltunaikorporate, 0, ',', '.') . ",-", number_format($totaltrasferkorporate, 0, ',', '.') . ",-", number_format($totaloperasionalkorporate, 0, ',', '.') . ",-", number_format($totalkorporate, 0, ',', '.') . ",-"));
$pdf->SetWidths(array(34.6));
$pdf->Row(array(""));
$pdf->SetWidths(array(14.5, 2.2, 2.6, 2.3, 2.6, 2.6, 2.6, 2.6, 2.6));
$pdf->SetFont('Arial', 'B', 10);
$pdf->Row(array("GRAND TOTAL", number_format($totalangsuran + $totalangsurankorporate, 0, ',', '.') . ",-", number_format($totaluangmuka + $totaluangmukakorporate, 0, ',', '.') . ",-", "0,-", "0,-", number_format($totaltunai + $totaltunaikorporate, 0, ',', '.') . ",-", number_format($totaltrasfer + $totaltrasferkorporate, 0, ',', '.') . ",-", number_format($totaloperasional + $totaloperasionalkorporate, 0, ',', '.') . ",-", number_format($total + $totalkorporate, 0, ',', '.') . ",-"));
$pdf->Ln();
$pdf->Output('Laporan Penerimaan Hasil Sewa Cabang ' . $row_data['gudang'] . ' Periode ' . DateToIndo($mulai) . " - " . DateToIndo($akhir) . '.pdf', 'D');
示例15: DateToIndo
++$i;
if ($i % 2 == 0) {
echo ' even';
}
?>
">
<td><?php
echo $i + ($pager->getPage() - 1) * $pager->getMaxPerPage();
?>
</td>
<td class='first'><?php
echo $employee_absence->getAcademicCalendarId() ? $employee_absence->getAcademicCalendar()->toString() : '-';
?>
</td>
<td align="left"><?php
echo $employee_absence->getStart() ? DateToIndo($employee_absence->getStart()) . ' ' . $employee_absence->getStart('h:i') : '-';
?>
</td>
<td align="left">
<?php
if ($employee_absence->getStatus() == EmployeeAbsence::STATUS_COME) {
echo __('EMP_COME');
} elseif ($employee_absence->getStatus() == EmployeeAbsence::STATUS_HOME) {
echo __('EMP_HOME');
} elseif ($employee_absence->getStatus() == EmployeeAbsence::STATUS_SICK) {
echo __('EMP_SICK');
} elseif ($employee_absence->getStatus() == EmployeeAbsence::STATUS_ABSENT) {
echo __('EMP_ABSENT');
} elseif ($employee_absence->getStatus() == EmployeeAbsence::STATUS_LATE) {
echo __('EMP_LATE');
}