本文整理汇总了PHP中astercrm::updateField方法的典型用法代码示例。如果您正苦于以下问题:PHP astercrm::updateField方法的具体用法?PHP astercrm::updateField怎么用?PHP astercrm::updateField使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类astercrm
的用法示例。
在下文中一共展示了astercrm::updateField方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: updateBillingtime
function updateBillingtime($id, $billingtime)
{
$objResponse = new xajaxResponse();
global $locate;
astercrm::updateField("accountgroup", "billingtime", $billingtime, $id);
astercrm::updateField("accountgroup", "addtime", date("Y-m-d H:i:s"), $id);
$objResponse->addScript("xajax_edit('" . $id . "')");
return $objResponse;
}
示例2: unlink
$filename = 'callshoplogo_' . $_REQUEST['group_id'] . '.' . $file_ext;
$filepath = $config['system']['upload_file_path'] . '/callshoplogo/';
if (!is_dir($filepath)) {
if (!mkdir($filepath)) {
echo "<script>alert('" . $locate->Translate("Logo upload faild please check your upload directory") . "');</script>";
exit;
}
}
if (!move_uploaded_file($_FILES['callshopLogo']['tmp_name'], $filepath . $filename)) {
echo "<script>alert('" . $locate->Translate("Logo upload faild1") . "');</script>";
} else {
echo "<script>alert('" . $locate->Translate("Logo upload success") . "');</script>";
$group_row = astercrm::getRecord($_REQUEST['group_id'], 'accountgroup');
if ($group_row['grouplogo'] != $filename) {
unlink($filepath . $group_row['grouplogo']);
astercrm::updateField('accountgroup', 'grouplogo', $filename, $_REQUEST['group_id'], 'id');
}
//echo "<script>window.parent.location.reload();</script>";
}
} else {
echo "<script>alert('" . $locate->Translate("Logo file must be a image file") . "');</script>";
}
}
exit;
}
//for import
if (isset($_POST['CHECK']) && trim($_POST['CHECK']) == '1') {
$upload_msg = '';
$is_vaild = 0;
if ($_FILES['excel']['name'] != '') {
//上传的文件
示例3: setSurveyEnable
function setSurveyEnable($surveyid, $surveyenable = 1, $groupid = 0)
{
//$table,$field,$value,$id
if ($surveyid == 0) {
global $db;
$sql = "UPDATE survey SET enable = 0 WHERE groupid = {$groupid}";
$res = $db->query($sql);
} else {
$res = astercrm::updateField('survey', 'enable', $surveyenable, $surveyid);
}
return;
}