can add a playlist to the schedule table in a show. basic, need to make better.
This commit is contained in:
parent
1b3186af50
commit
1d9aa778a6
17 changed files with 974 additions and 178 deletions
|
@ -48,10 +48,10 @@ class Show {
|
|||
}
|
||||
|
||||
$show = new CcShow();
|
||||
$show->setDbName($data['name']);
|
||||
$show->setDbRepeats($data['repeats']);
|
||||
$show->setDbDescription($data['description']);
|
||||
$show->save();
|
||||
$show->setDbName($data['name']);
|
||||
$show->setDbRepeats($data['repeats']);
|
||||
$show->setDbDescription($data['description']);
|
||||
$show->save();
|
||||
|
||||
$showId = $show->getDbId();
|
||||
|
||||
|
@ -127,9 +127,18 @@ class Show {
|
|||
}
|
||||
|
||||
foreach($res as $row) {
|
||||
|
||||
$sql = "SELECT date '{$show["first_show"]}' + interval '{$deltaDay} day'";
|
||||
$f_show = $CC_DBC->GetOne($sql);
|
||||
//get a timestamp back only need a date.
|
||||
$tmp = spliti(" ", $f_show);
|
||||
$f_show = $tmp[0];
|
||||
|
||||
$show = CcShowDaysQuery::create()->findPK($row["id"]);
|
||||
$show->setDbStartTime($s_time);
|
||||
$show->setDbEndTime($e_time);
|
||||
$show->setDbFirstShow($f_show);
|
||||
$show->setDbDay($row['day'] + $deltaDay);
|
||||
$show->save();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue