예제 #1
0
    <div class="wrapper">
    <h4>' . $p->t('coodle/laufendeUmfragen') . '</h4>
    <table id="myTableFiles" class="tablesorter">
    <thead>
        <tr>
            <th>' . $p->t('coodle/titel') . '</th>
            <th>' . $p->t('coodle/letzterStatus') . '</th>
            <th>' . $p->t('coodle/ersteller') . '</th>
            <th>' . $p->t('coodle/endedatum') . '</th>
            <th>' . $p->t('coodle/aktion') . '</th>
        </tr>
    </thead><tbody>';
$beendeteUmfragen = '';
$datum = new datum();
$coodle = new coodle();
$coodle->loadStatus();
$coodle->getCoodleFromUser($uid);
foreach ($coodle->result as $c) {
    $benutzer = new benutzer();
    $benutzer->load($c->ersteller_uid);
    $ersteller = $benutzer->nachname . ' ' . $benutzer->vorname;
    $row = '<tr>
            <td>' . $coodle->convert_html_chars($c->titel) . '</td>
            <td>' . $coodle->convert_html_chars($coodle->status_arr[$c->coodle_status_kurzbz]) . '</td>
            <td>' . $coodle->convert_html_chars($ersteller) . '</td>
            <td>' . $coodle->convert_html_chars($datum->formatDatum($c->endedatum, 'd.m.Y')) . '</td>
            <td nowrap>
            ';
    // Bearbeiten Button
    if ($c->coodle_status_kurzbz == 'neu' && $uid == $c->ersteller_uid) {
        $row .= '<a href="stammdaten.php?coodle_id=' . $c->coodle_id . '">