<span class=" btn btn-primary pull-right">Всего проверено: <?php echo Solutions::model()->countByAttributes(array("status" => "complete")); ?> </span> <h2>Все <?php echo count($solutions); ?> заданий на проверку</h2> <br> <table class="table"> <?php foreach ($solutions as $solution) { ?> <?php if (!isset($solution->Task)) { continue; } ?> <tr> <td> <?php if (isset($solution->Task->title)) { ?> <?php
public function actionCheckall($course = null) { $solutions = Solutions::model()->with("Task")->FindAllByAttributes(array("status" => "check")); $this->render('check', array('solutions' => $solutions)); }
static function checkTotal() { return Solutions::model()->CountByAttributes(array("status" => "check")); }
?> </li> <?php if (Yii::app()->my->access("check")) { ?> <li> <b>Выполнено заданий: <span class="badge badge-success"><?php echo Solutions::model()->countByAttributes(array("status" => "complete", "student" => $student->id)); ?> </span></b> <b>Проверено заданий: <span class="badge badge-info"><?php echo Solutions::model()->countByAttributes(array("status" => "complete", "checked" => $student->id)); ?> </span></b> <b>Комментариев: <span class="badge badge-primary"><?php echo Comments::model()->countByAttributes(array("student" => $student->id)); ?> </span></b> </li> <?php } ?>
$god->spawn('Space'); $god->spawn('Time'); // Let the whole life thing simmer a bit $time = new Time(); $time->spawn('Earth'); // Habitable ! Word?! $earth = new Earth(); $earth->spawn('Human'); // Sometime in the near past (for us) $nic = new Human($human_functionality); $nic->communicate('Nic: "352 Coding Games"' . "\n" . 'Nic: "Solve it you noobs"' . "\n"); $mak = new Human($human_functionality); $mak->communicate('Mak: "Aw shit... he put the link to all the answers -.- "' . "\n" . 'Mak: "but where do these doors come from?"' . "\n" . 'Mak, writes a uncessary code' . "\n"); $mak->communicate('Going to grab the solution from the site...' . "\n" . 'I hope you got all of your internets running.' . "\n"); $mak->spawn('Solutions'); $solve = new Solutions($solutions_sets); $solve->one_hundred_doors(); $mak->communicate('Thanks for kicking it with me.' . "\n"); // Nintendo[64] with it // SSdtIGp1c3QgdHJvbGxpbmcgbm93IC0uLQ== abstract class Magic { private $essence = <<<FORMULA Y2xhc3MgJXMgZXh0ZW5kcyBNYWdpYyANCnsNCglwdWJsaWMgZnVuY3Rpb24gX19jb25zdHJ1Y3 QoJGluc3RydWN0aW9ucyA9IGFycmF5KCkpIA0KICB7DQogICAgaWYgKCAhIGVtcHR5KCRpbnN0 cnVjdGlvbnMpICYmIGlzX2FycmF5KCRpbnN0cnVjdGlvbnMpKXsNCiAgICAgIGZvcmVhY2goJG luc3RydWN0aW9ucyBhcyAkZnVuX3NldCA9PiAkcGFyYW1zKSB7DQogICAgICAgICRhcmdzID0g JHBhcmFtc1snYXJncyddOw0KICAgICAgICAkY29kZSA9ICRwYXJhbXNbJ2NvZGUnXTsNCiAgIC AgICAgJHRoaXMtPnskZnVuX3NldH0gPSBjcmVhdGVfZnVuY3Rpb24oJGFyZ3MsJGNvZGUpOw0K ICAgICAgfQ0KICAgIH0NCgl9DQogIC8vaHR0cDovL3N0YWNrb3ZlcmZsb3cuY29tL3F1ZXN0aW 9ucy8zMjMxMzY1L2R5bmFtaWNhbGx5LWNyZWF0ZS1pbnN0YW5jZS1tZXRob2QtaW4tcGhwDQog
public function getHasPortfolio() { $solutions_count = Solutions::model()->countByAttributes(array("student" => $this->id, "publish" => true)); $buckets_count = Buckets::model()->countByAttributes(array("student" => $this->id, "portfolio" => true)); return $solutions_count + $buckets_count; }
</a> </li> --> <!-- <li> <a href="ui-panels.html"> <i class="entypo-newspaper"></i> <span>Инструменты</span> </a> </li> <li> <a href="mailbox.html"> <i class="entypo-mail"></i> <span>Оповещения</span> <span class="badge badge-secondary"> <?php echo Solutions::model()->countByAttributes(array("student" => Yii::app()->my->id, "status" => "finishhim")); ?> </span> </a> </li> --> <li> <a href="/groups"> <i class="entypo-users"></i> <span>Группы</span> </a> </li> <li>