0
개별 이벤트의 배경색을 변경하고 싶습니다. 코드는 이벤트에 데이터를 보내는 방법입니다. textColor가 변경되는 것처럼 보이지만 backgroundColor 또는 borderColor의 색상은 변경되지 않습니다. 무엇이 잘못되었거나 색을 바꿀 수 있습니까? 난 당신이 맞춤법이 V 1개별 이벤트에서 backgroundColor 변경
include("connect.php");
require_once("function.php");
$pid = $_SESSION['pid'];
$events = array();
foreach($db->query("SELECT * FROM `signings` WHERE `pid` = '$pid' AND `done`= 0") as $row) {
$notaryid = $row['notayid'];
$title = $row['fname'].' '.$row['lname'] . ' ' . $row['coname'] . ' ' . $row['city'] . ' ' . $row['state'];
$signstart = $row['signstart'] . ' ' . $row['starttime'];
$id = $row['id'];
$ordern = $row['ordern'];
$address = $row['street1'] . ' ' . $row['street2'] . ' ' . $row['city'] . ', ' . $row['state'] . ', ' . $row['zip'];
$hphone = 'Home Phone ' . $row['hphone'];
$cphone = 'Cell Phone ' . $row['cphone'];
$wphone = 'Work Phone ' . $row['wphone'];
$custid = $row['custid'];
$sql1 = "Select name from customers WHERE custid = '$custid'";
$stmt1 = $db->query($sql1);
$row1 = $stmt1->fetchObject();
$name = $row1->name;
$sql2 = "Select firstname,lastname,color from notarys WHERE nid = '$notaryid'";
$stmt2 = $db->query($sql2);
$row2 = $stmt2->fetchObject();
$colors = $row2->color;
$notary = $row2->firstname . " " . $row2->lastname;
$eventsArray['id'] = $id;
$eventsArray['ordern'] = $ordern;
$eventsArray['title'] = $title . ' ' . $name;
$eventsArray['start'] = $signstart;
$eventsArray['date1'] = phpdatetimeam($signstart);
$eventsArray['address'] = $address;
$eventsArray['hphone'] = $hphone;
$eventsArray['cphone'] = $cphone;
$eventsArray['wphone'] = $wphone;
$eventsArray['notary'] = $notary;
$eventsArray['allDay'] = "";
$eventsArray['color'] = $colors; <-- This is were I change the color
$eventsArray['textColor'] = "#FFFFFF"; I have tried backgroundColor and
BorderColor but now of them work
$events[] = $eventsArray;
}
echo json_encode($events);
이 코드에서 배경색이 텍스트 코드 바로 위에 있습니다. 색상 바도 있습니다. backgroundColor도 사용했습니다. – Richard
맞춤법 오류가 수정되었으며 현재 작동합니다. 나는 그것을 놓쳤다는 것을 믿을 수 없다. 1 주일 동안 코드의 평화를 살펴 보았지만 그것을 보지 못했습니다. – Richard