Subversion Repositories oidplus

Rev

Rev 1138 | Rev 1143 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1138 Rev 1141
Line 1037... Line 1037...
1037
                }
1037
                }
1038
                $output .= '         <th>'._L('Created').'</th>';
1038
                $output .= '         <th>'._L('Created').'</th>';
1039
                $output .= '         <th>'._L('Updated').'</th>';
1039
                $output .= '         <th>'._L('Updated').'</th>';
1040
                $output .= '    </tr>';
1040
                $output .= '    </tr>';
1041
                $output .= '</thead>';
1041
                $output .= '</thead>';
1042
                $output .= '<tbody>';
-
 
1043
 
1042
 
-
 
1043
                $output .= '<tbody>';
1044
                foreach ($rows as list($obj,$row)) {
1044
                foreach ($rows as list($obj,$row)) {
1045
                        $items_total++;
1045
                        $items_total++;
1046
                        if (!$obj->userHasReadRights()) {
1046
                        if (!$obj->userHasReadRights()) {
1047
                                $items_hidden++;
1047
                                $items_hidden++;
1048
                                continue;
1048
                                continue;
Line 1105... Line 1105...
1105
                                $output .= '     <td>'.$date_created.'</td>';
1105
                                $output .= '     <td>'.$date_created.'</td>';
1106
                                $output .= '     <td>'.$date_updated.'</td>';
1106
                                $output .= '     <td>'.$date_updated.'</td>';
1107
                        }
1107
                        }
1108
                        $output .= '</tr>';
1108
                        $output .= '</tr>';
1109
                }
1109
                }
-
 
1110
                $output .= '</tbody>';
1110
 
1111
 
1111
                $parent_ra_email = $objParent->getRaMail() ;
1112
                $parent_ra_email = $objParent->getRaMail() ;
1112
 
1113
 
1113
                // "Create OID" row
1114
                // "Create OID" row
1114
                if ($objParent->userHasWriteRights()) {
1115
                if ($objParent->userHasWriteRights()) {
-
 
1116
                        $output .= '<tfoot>';
1115
                        $output .= '<tr>';
1117
                        $output .= '<tr>';
1116
                        $prefix = $objParent->crudInsertPrefix();
1118
                        $prefix = $objParent->crudInsertPrefix();
1117
 
1119
 
1118
                        $suffix = $objParent->crudInsertSuffix();
1120
                        $suffix = $objParent->crudInsertSuffix();
1119
                        foreach (OIDplus::getObjectTypePlugins() as $plugin) {
1121
                        foreach (OIDplus::getObjectTypePlugins() as $plugin) {
Line 1151... Line 1153...
1151
                        $output .= '     <td><button type="button" name="insert" id="insert" class="btn btn-success btn-xs update" onclick="OIDplusPagePublicObjects.crudActionInsert('.js_escape($parent).')">'._L('Insert').'</button></td>';
1153
                        $output .= '     <td><button type="button" name="insert" id="insert" class="btn btn-success btn-xs update" onclick="OIDplusPagePublicObjects.crudActionInsert('.js_escape($parent).')">'._L('Insert').'</button></td>';
1152
                        $output .= '     <td></td>';
1154
                        $output .= '     <td></td>';
1153
                        $output .= '     <td></td>';
1155
                        $output .= '     <td></td>';
1154
                        $output .= '     <td></td>';
1156
                        $output .= '     <td></td>';
1155
                        $output .= '</tr>';
1157
                        $output .= '</tr>';
1156
                        $output .= '</tbody>';
1158
                        $output .= '</tfoot>';
1157
                } else {
1159
                } else {
1158
                        $output .= '</tbody>';
-
 
1159
                        if ($items_total-$items_hidden == 0) {
1160
                        if ($items_total-$items_hidden == 0) {
1160
                                $cols = ($parentNS == 'oid') ? 7 : 5;
1161
                                $cols = ($parentNS == 'oid') ? 7 : 5;
1161
                                if ($enable_weid_presentation && ($parentNS == 'oid') && !$objParent->isRoot()) {
1162
                                if ($enable_weid_presentation && ($parentNS == 'oid') && !$objParent->isRoot()) {
1162
                                        $cols++;
1163
                                        $cols++;
1163
                                }
1164
                                }