Exemplo n.º 1
0
</th>			
                                                                                                        <th width="15%" style="text-align: center;"><?php 
echo __('Edit');
?>
</th>
                                                                                                        <th width="15%" style="text-align: center;"><?php 
echo __('Hapus');
?>
</th>
                                                                                              </tr>
                                                                                    </thead>
                                                                                    <tbody>
                                                                                              <?php 
$c = new Criteria();
$c->add(CatalogStudentPeer::STUDENT_ID, $student->getId());
$cats = CatalogStudentPeer::doSelect($c);
$count = CatalogStudentPeer::doCount($c);
if ($count < 1) {
    ?>
                                                                                                                     <tr class="list"><td colspan="100"><div class="no_record"><?php 
    echo __('No record found');
    ?>
</div></td></tr>
                                                                                               <?php 
} else {
    ?>
                                                                                                                    <?php 
    foreach ($cats as $cat) {
        ?>
                                                                                                                            <tr class="list<?php 
        ++$i;
Exemplo n.º 2
0
 public static function retrieveByPK($id, $catalog_id, $student_id, $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(self::DATABASE_NAME);
     }
     $criteria = new Criteria();
     $criteria->add(CatalogStudentPeer::ID, $id);
     $criteria->add(CatalogStudentPeer::CATALOG_ID, $catalog_id);
     $criteria->add(CatalogStudentPeer::STUDENT_ID, $student_id);
     $v = CatalogStudentPeer::doSelect($criteria, $con);
     return !empty($v) ? $v[0] : null;
 }