Separate Table Rows with Repeating Reigon
I have a template, which allows for two records to be displayed per row, to be displayed properly.
Every two records, there needs to be a closed DIV and a new DIV "Row" created, for the next two items.
How would I be able to manipulate Data Assist's Repeat Region to accomplish this?
Below is one row, with one entry shown with the recordset data, and the second with bogus data. The idea would be to have these repeat, without displaying the same record twice, next to each other.
Thanks!
<div class="row">
<div class="col-md-6">
<div class="peoplewrapper">
<div class="thumb">
<?php if(!WA_Auth_RulePasses("Allow Private Photo")){ // Begin Show Region ?>
<img src="images/photos/nothumb.png" alt="" />
<?php } // End Show Region ?>
<?php if(WA_Auth_RulePasses("Allow Private Photo")){ // Begin Show Region ?>
<img src="images/photos/<?php echo $row_GetPrivateDirectory['photo']; ?>" alt="" />
<?php } // End Show Region ?>
</div>
<div class="peopleinfo">
<h4><a href=""><?php echo $row_GetPrivateDirectory['first_name']; ?>
<?php if(WA_Auth_RulePasses("Allow Private Name")){ // Begin Show Region ?>
<?php echo $row_GetPrivateDirectory['last_name']; ?>
<?php } // End Show Region ?>
</a> <span class="on"> Active</span></h4>
<ul>
<li>
<?php if(WA_Auth_RulePasses("Allow Private Affiliation")){ // Begin Show Region ?>
<span>Affiliation:</span> <?php echo $row_GetPrivateDirectory['affilation']; ?>
<?php } // End Show Region ?>
</li>
<li>
<?php if(WA_Auth_RulePasses("Allow Private EMail")){ // Begin Show Region ?>
<span>EMail:</span> <?php echo $row_GetPrivateDirectory['email_address']; ?>
<?php } // End Show Region ?>
</li>
<li>
<?php if(WA_Auth_RulePasses("Allow Private Website")){ // Begin Show Region ?>
<span>Website:</span> <?php echo $row_GetPrivateDirectory['website']; ?>
<?php } // End Show Region ?>
</li>
</ul>
</div><!--peopleinfo-->
</div><!--peoplewrapper-->
</div><!--col-md-6-->
<div class="col-md-6">
<div class="peoplewrapper">
<div class="thumb"><img src="images/photos/thumb1.png" alt="" /></div>
<div class="peopleinfo">
<h4><a href="">Weno Carasbong</a> <span class="on"> Online</span></h4>
<ul>
<li><span>Followers:</span> 10 / <span>Following:</span> 21</li>
<li><span>Member:</span> December 2012</li>
<li><span>Skype:</span> @weno</li>
<li><span>Phone:</span> +4413 1211 431</li>
<li><span>Address:</span> Something St., Some City, Place 4023</li>
</ul>
</div><!--peopleinfo-->
</div><!--peoplewrapper-->
</div><!--col-md-6-->
</div><!--row-->