Example #1
0
      <th>Whiteboard Chat Id</th>
      <th>Date</th>
      <th>Tutor Name</th>
      <th>Audio/Video Quality</th>
      <th>Whiteboard Usability</th>
      <th>Overall Session Experience</th>
      <th>Feedback</th>
      <th>View</th>

    </tr>
  </thead>
  <tbody>

<?php 
$adjacents = 1;
$total_pages = WhiteboardTutorFeedbackPeer::doCount(new Criteria());
$targetpage = "/admin.php/whiteboardsession/tutor";
$limit = 50;
$page = @$_GET['page'];
if ($page) {
    $start = ($page - 1) * $limit;
} else {
    $start = 0;
}
$criteria = new Criteria();
$criteria->setOffset($start);
$criteria->setLimit($limit);
$criteria->addDescendingOrderByColumn(WhiteboardTutorFeedbackPeer::CREATED_AT);
$wtfS = WhiteboardTutorFeedbackPeer::doSelect($criteria);
if ($page == 0) {
    $page = 1;
Example #2
0
 /**
  * Returns the number of related WhiteboardTutorFeedback objects.
  *
  * @param      Criteria $criteria
  * @param      boolean $distinct
  * @param      PropelPDO $con
  * @return     int Count of related WhiteboardTutorFeedback objects.
  * @throws     PropelException
  */
 public function countWhiteboardTutorFeedbacks(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
 {
     if ($criteria === null) {
         $criteria = new Criteria(WhiteboardChatPeer::DATABASE_NAME);
     } else {
         $criteria = clone $criteria;
     }
     if ($distinct) {
         $criteria->setDistinct();
     }
     $count = null;
     if ($this->collWhiteboardTutorFeedbacks === null) {
         if ($this->isNew()) {
             $count = 0;
         } else {
             $criteria->add(WhiteboardTutorFeedbackPeer::WHITEBOARD_CHAT_ID, $this->id);
             $count = WhiteboardTutorFeedbackPeer::doCount($criteria, $con);
         }
     } else {
         // criteria has no effect for a new object
         if (!$this->isNew()) {
             // the following code is to determine if a new query is
             // called for.  If the criteria is the same as the last
             // one, just return count of the collection.
             $criteria->add(WhiteboardTutorFeedbackPeer::WHITEBOARD_CHAT_ID, $this->id);
             if (!isset($this->lastWhiteboardTutorFeedbackCriteria) || !$this->lastWhiteboardTutorFeedbackCriteria->equals($criteria)) {
                 $count = WhiteboardTutorFeedbackPeer::doCount($criteria, $con);
             } else {
                 $count = count($this->collWhiteboardTutorFeedbacks);
             }
         } else {
             $count = count($this->collWhiteboardTutorFeedbacks);
         }
     }
     return $count;
 }