Esempio n. 1
0
</h2>
    <?php 
    if (is_object(Participants_Db::$validation_errors)) {
        echo Participants_Db::$validation_errors->get_error_html();
    } else {
        Participants_Db::admin_message();
    }
    ?>
    <form method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
" enctype="multipart/form-data" autocomplete="off" >
      <?php 
    PDb_FormElement::print_hidden_fields($hidden);
    // get the columns and output form
    $readonly_columns = Participants_Db::get_readonly();
    foreach (Participants_db::get_column_atts('backend') as $column) {
        $id_line = '';
        $attributes = array();
        // set a new section
        if ($column->group != $section) {
            if (!empty($section)) {
                ?>
            </table>
            <?php 
            } else {
                $id_line = '<tr><th>' . _x('ID', 'abbreviation for "identification"', 'participants-database') . '</th><td>' . (false === $participant_id ? _x('(new record)', 'indicates a new record is being entered', 'participants-database') : $participant_id) . '</td></tr>';
            }
            $section = $column->group;
            ?>
          <h3 class="field-group-title"><?php