예제 #1
0
">
				<!-- List of existing relations -->
				<?php 
    if (is_object($this->item)) {
        $fathers = $this->item->getFathers();
        $mothers = $this->item->getMothers();
        $parents = array_merge($fathers, $mothers);
        if (count($parents)) {
            $k = 4;
            for ($i = 0, $n = count($parents); $i < $n; $i++) {
                $parent =& $parents[$i];
                $parent->orderNumber = $i + 1;
                ?>
							<!-- Row for one existing relation -->
							<?php 
                echo FormHelper::getRelationRow($parent, 'parents', $this->form);
                ?>
							
							<!-- End: Row for one existing relation -->
														
				<?php 
                $k = 7 - $k;
            }
        }
    }
    ?>
				<!-- End: List of existing relations -->
			</tbody>	
			<!-- End: tabel body for relations -->
		</table>
		<!-- End: Relations -->
예제 #2
0
                        $tabRelId = 're' . $j . '_';
                        ?>
			
								<tbody id="<?php 
                        echo $tabRelId;
                        ?>
">
		<?php 
                        // loop through the children and filter on the correct parent
                        $k = 4;
                        for ($i = 0, $n = count($children); $i < $n; $i++) {
                            if ($children[$i]->secondParent_id == $partners[$j]->id) {
                                $child =& $children[$i];
                                $child->orderNumber = $orderNumber++;
                                // Row for one existing relation
                                echo FormHelper::getRelationRow($child, 'children', $this->form);
                                //End: Row for one existing relation
                                $k = 7 - $k;
                            }
                        }
                        ?>
								</tbody><!-- End: List of children -->	
							</table><!-- End: tabel body for relations -->
		<?php 
                    }
                    // end counter > 0 (children for specific partner)
                }
                // end looping through partners
            }
            // end else-branch
        }
예제 #3
0
    echo $tabRelId;
    ?>
">
				<!-- List of existing relations -->
				<?php 
    if (is_object($this->item)) {
        $partners = $this->item->getPartners();
        if (count($partners)) {
            $k = 4;
            for ($i = 0, $n = count($partners); $i < $n; $i++) {
                $partner =& $partners[$i];
                $partner->orderNumber = $i + 1;
                ?>
							<!-- Row for one existing relation -->
							<?php 
                echo FormHelper::getRelationRow($partner, 'partners', $this->form);
                ?>
							
							<!-- End: Row for one existing relation -->
														
				<?php 
                $k = 7 - $k;
            }
        }
    }
    ?>
				<!-- End: List of existing relations -->
			</tbody>	
			<!-- End: tabel body for relations -->
		</table>
		<!-- End: Relations -->