content.php (customindex mod) 3Column: Revision

Last updated by steven

<?php
    $form_body = "<p><label>" . elgg_echo('username') . "<br />" . elgg_view('input/text', array('internalname' => 'username', 'class' => 'login-textarea')) . "</label>";
    $form_body .= "<br />";
    $form_body .= "<label>" . elgg_echo('password') . "<br />" . elgg_view('input/password', array('internalname' => 'password', 'class' => 'login-textarea')) . "</label><br />";
    $form_body .= elgg_view('input/submit', array('value' => elgg_echo('login'))) . "</p>";
    $form_body .= "<p>";
    $form_body .= (!isset($CONFIG->disable_registration) || !($CONFIG->disable_registration)) ? "<a href=\"{$vars['url']}account/register.php\">" . elgg_echo('register') . "</a> | " : "";
    $form_body .= "<a href=\"{$vars['url']}account/forgotten_password.php\">" . elgg_echo('user:password:lost') . "</a></p>"; ?>
 
<?php
    if (!isloggedin()) {
    // Default Breite in CSS 998
    ?>
<table width="950" border="0" cellspacing="5" cellpadding="5">
    <tr>
    <td width="215">
    <div align="left">
    <div id="login-box">
    <h2><?php echo elgg_echo('login'); ?></h2>
    <?php echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/login")); ?>
    </div>
    </div>
<?php
    } if (isloggedin()) {
?>


<table width="950" border="0" cellspacing="5" cellpadding="5">
    <tr>
    <td width="215">
    <div align="left">
    Herzlich Willkommen, Du bist jetzt eingeloggt! Dein Leben hat in naher Zukunft ein j&auml;hes Ende :-)
    und falls du das glaubst bist a weng .......
    </div>
</td>
<?php
    }
?>

<td width="620">
    <div align="center">
    <div id="message">
    <div id="nupelogo"><img src="THIS IS WHERE YOU PLACE YOUR LINK TO IMAGE FILE"/></div>
    <p align="justify">
    <br>
    Es ist Sommer, die Temperaturen sind ertr&auml;glich und in Mei&szet;endorf, der Dropzone des
    Fallschirmsportvereins Hannover wird ein Wasserlandungsseminar angeboten. Flugs
    angemeldet und schon stehe ich Samstag um 9 Uhr in Meido. Kalte 12 Grad, wie sollte
    es auch anders sein wenn ein Warmduscher wie ich im Wasser landen will.
    Theorieunterricht mit den Besonderheiten einer Wasserlandung, Einweisung in die
    gestellten Systeme , kein Cypres und kein H&ouml;henmesser.
    </div>
    </div>
</td>


<table width="950" border="0" cellspacing="5" cellpadding="5">
<tr>

<td width="215">
<div id="newest-members">
    <div align="left">
    <h3><?php echo elgg_echo('user:latest'); ?></h3>
    <?php $users = get_entities('user', '', 0, '', 25, 0, false, 0, null);
    if($users){
        foreach($users as $user){
            echo "<div class=\"member_icon\">" . elgg_view("profile/icon",array('entity' => $user, 'size' => 'tiny')) . "</div>";
        }
    }
    ?>
    </div>
</td>

<td width="300">
<div id="newest-members">
    <div align="left">
    <h3><?php echo elgg_echo('user:latest'); ?></h3>
    <?php $users = get_entities('user', '', 0, '', 25, 0, false, 0, null);
    if($users){
        foreach($users as $user){
            echo "<div class=\"member_icon\">" . elgg_view("profile/icon",array('entity' => $user, 'size' => 'small')) . "</div>";
        }
    }
    ?>
    </div>
</td>

<td width="20">
</td>

<td width="300">   
<div id="latest-groups">
    <div align="">
    <h3><?php echo elgg_echo('groups:latest'); ?></h3>
    <?php $groups = get_entities('group', '', 0, '', 10, 0, false, 0, null);
    if($groups){
        foreach($groups as $group){
            echo "<div class=\"member_icon\">" . elgg_view("profile/icon",array('entity' => $group, 'size' => 'small')) . "</div>";
        }
    }
    ?>
    </div>
</td>


<table width="950" border="0" cellspacing="5" cellpadding="5">
<tr>

<td width="215">   
<div id="latest-groups">
    <div align="">
    <h3><?php echo elgg_echo('groups:latest'); ?></h3>
    <?php $groups = get_entities('group', '', 0, '', 10, 0, false, 0, null);
    if($groups){
        foreach($groups as $group){
            echo "<div class=\"member_icon\">" . elgg_view("profile/icon",array('entity' => $group, 'size' => 'small')) . "</div>";
        }
    }
    ?>
    </div>
</td>

<td width="300">
<div id="latest-activity">
    <div align="left">
    <h3><?php echo elgg_echo('elgg:latest'); ?></h3>
    <?php set_context('search');
    $content = list_registered_entities(0,8,true,false,array('object','group'));
    $content = elgg_view_layout('', '', $title . $content);
    echo $content;?>
    </div>
    </div>
<p>
</td>

<td width="20">
</td>

<td width="300">
<div id="latest_discussion_widget">
    <div align="left">
    <h3><?php echo elgg_echo('groups:latestdiscussion'); ?></h3>
    <?php set_context('search');
    $content = list_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 4, 0, 0, false, true);
    //$content = list_entities_from_annotations(0,8,true,false,array('object','groupforumtopic','group_topic_post'));
    $content = elgg_view_layout('', '', $title . $content);
    echo $content;?>
    </div>
    </div>
<p>


<br class="clearfloat" />

</td>
</tr>
</table>
</body>
</html>