public function actionPikibookDelete($id) { MovieWordModel::model()->where("`id`='{$id}'")->delete(); $this->redirect("/admin/pikibook"); }
if ($sdNum == 1) { $sdIdFirst = "series-active"; $sdFirstUrl = $single->url; $sdFirstEnSub = $single->en_sub; $sdFirstRuSub = $single->ru_sub; $sdFirstSingSort = $single->sort; $sdFirstSort = $season->sort; $sdFirstSrc = $sdSrc; $sdFirstId = $single->id; $sdFirstSeasonId = $single->season_id; } else { $sdIdFirst = ""; } $explanationCount = ExplanationModel::model()->where("`movie_id`='{$movie->id}' AND `series_id`='{$single->id}'")->countAll(); $userSeriesViewsed = UserSeriesViewedModel::model()->where(" `series_id` = '{$single->id}' AND `user_id`= '{$_SESSION['user']['id']}' ")->findRow(); $sdWordCount = MovieWordModel::model()->where("`movie_id`='{$movie->id}' AND `series_id`='{$single->id}'")->countAll(); if ($user_major || $single->is_free == 1 || $_SESSION['user']['admin'] == 1) { $userSingleAdminS = 0; } else { $userSingleAdminS = 1; } $onclickSeriesPlay = "scriptNextSeriesPlayUpdate2(" . $single->id . "); scrPlayPr(); playVideo('" . $single->url . "', '" . $single->en_sub . "', '" . $single->ru_sub . "','" . $single->sort . "'," . $season->sort . ",'" . $sdSrc . "','" . $single->id . "'," . $single->season_id . "," . $movie->id . ", '" . $sdWordCount . "', '" . $explanationCount . "'," . $userSingleAdminS . "," . $user->id . ");"; ?> <div class="film-item <?php if (!empty($userSeriesViewsed->id)) { echo 'viewed'; } ?> <?php if (SeriesModel::isNewSeries($single->date) && empty($userSeriesViewsed->id)) {