这是我的代码
PHP
<?php
$count1 = $obj->getDatef();
$as1 = $count1 + 6;
$startdate = date('d/m/Y', strtotime($count1 . ' days'));
$enddate = date('d/m/Y', strtotime($as1 . ' days'));
echo "<script type='text/javascript'>";
echo "alert('Current Timesheet period($startdate (Mon) ~ $enddate (Sun)) of
$pcode has been successfully Updated....!')";
echo "</script>";
echo "<script type='text/javascript'>";
echo "window.location='my_tm.php'";
echo "</script>";
?>
在这里它必须像这样打印......
当前时间表期间
$pcode 的 $startdate (Mon) ~ $enddate (Sun)
已成功更新......!