Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c96faae998 | |||
| c30b50a588 | |||
| 616a6f6f26 | |||
| 6509a7518d | |||
| d2023ad8c6 |
@ -33,8 +33,8 @@
|
||||
DEFINE("EMAIL_SENDERNAME","");
|
||||
DEFINE("EMAIL_SENDERALIAS","Telkomcel");
|
||||
DEFINE("EMAIL_SUBJECT","Info Telkomcel");
|
||||
// DEFINE("DB_HOST_NAME","172.17.12.21");
|
||||
DEFINE("DB_HOST_NAME","192.168.1.4");
|
||||
DEFINE("DB_HOST_NAME","172.17.12.21");
|
||||
// DEFINE("DB_HOST_NAME","192.168.1.4");
|
||||
//DEFINE("DB_HOST_NAME","172.17.12.71");
|
||||
// DEFINE("DB_USER_NAME","ssotcel");
|
||||
DEFINE("DB_USER_NAME","appaportil");
|
||||
|
||||
@ -172,8 +172,8 @@
|
||||
|
||||
public function FN_GETMONTHNAME($i)
|
||||
{
|
||||
$arrmonth=array("1"=>"Januari","2"=>"Februari","3"=>"Maret","4"=>"April","5"=>"Mei","6"=>"Juni","7"=>"Juli",
|
||||
"8"=>"Agustus","9"=>"September","10"=>"Oktober","11"=>"November","12"=>"Desember");
|
||||
$arrmonth=array("1"=>"January","2"=>"February","3"=>"March","4"=>"April","5"=>"May","6"=>"June","7"=>"July",
|
||||
"8"=>"August","9"=>"September","10"=>"October","11"=>"November","12"=>"December");
|
||||
return $arrmonth[$i];
|
||||
}
|
||||
|
||||
|
||||
@ -368,6 +368,14 @@
|
||||
sectionname='$sectionname',iddept='$iddept',deptname='$departmentname',uby='".$_SESSION['nik']."',udt=now()
|
||||
where id='$id'";
|
||||
}
|
||||
else{
|
||||
$qrychk="select id from ".DB_APORTIL.".tbl_employee where nik='$nik' and isdeleted=0 order by id asc limit 1";
|
||||
if($this->fn_row_isexists($qrychk))
|
||||
{
|
||||
echo "failed|Error Found : Nik <b>$nik</b> already exists";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if($this->executequery($qry)){echo "ok|";return true;}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user