Subversion Repositories oidplus

Rev

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

Rev 1285 Rev 1288
Line 951... Line 951...
951
                                // $description is the description in the OID table (which the user edits)
951
                                // $description is the description in the OID table (which the user edits)
952
                                // $desc is the thing that is shown (it can be a title if no description is there, or an MCE editor if the user has write rights)
952
                                // $desc is the thing that is shown (it can be a title if no description is there, or an MCE editor if the user has write rights)
953
 
953
 
954
                                if ($obj->userHasWriteRights()) {
954
                                if ($obj->userHasWriteRights()) {
955
                                        $rand = ++self::$crudCounter;
955
                                        $rand = ++self::$crudCounter;
956
                                        $desc = '<noscript><p><b>'._L('You need to enable JavaScript to edit title or description of this object.').'</b></p>'.$desc.'</noscript>';
956
                                        $desc = '<noscript><p><font color="red">'._L('You need to enable JavaScript to edit title or description of this object.').'</font></p>'.$desc.'</noscript>';
957
                                        $desc .= '<div class="container box" style="display:none" id="descbox_'.$rand.'">';
957
                                        $desc .= '<div class="container box" style="display:none" id="descbox_'.$rand.'">';
958
                                        $desc .= _L('Title').': <input type="text" name="title" id="titleedit" value="'.htmlentities($title).'"><br><br>'._L('Description').':<br>';
958
                                        $desc .= _L('Title').': <input type="text" name="title" id="titleedit" value="'.htmlentities($title).'"><br><br>'._L('Description').':<br>';
959
                                        $desc .= self::showMCE('description', $description);
959
                                        $desc .= self::showMCE('description', $description);
960
                                        $desc .= '<button type="button" name="update_desc" id="update_desc" class="btn btn-success btn-xs update" onclick="OIDplusPagePublicObjects.updateDesc()">'._L('Update description').'</button>';
960
                                        $desc .= '<button type="button" name="update_desc" id="update_desc" class="btn btn-success btn-xs update" onclick="OIDplusPagePublicObjects.updateDesc()">'._L('Update description').'</button>';
961
                                        $desc .= '</div>';
961
                                        $desc .= '</div>';