Changeset 27294 for main/trunk/greenstone2/macros/document.dm
- Timestamp:
- 2013-05-02T19:18:38+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/macros/document.dm
r27293 r27294 124 124 ####################################################################### 125 125 126 # The div that loads the user comments that were already submitted 126 127 # associated javascript function loadUserComments is in style.dm's _globalscripts_ macro 127 128 _usercomments_ { … … 131 132 } 132 133 133 134 134 # Display the add-user-comment form on actual document pages and not when browsing/searching 135 135 # This means the form should only be displayed on pages where the _cgiargd_ (the docid) is set 136 137 # If the user's logged in, show the comment form, else show the link to the login page 138 _addusercomment_ { 139 _If_(_cgiargd_, 140 _If_(_cgiargun_,_usercommentform_,_loginlink_) 141 ) 142 } 143 144 _doc-url_ {_gwcgi_?e=_compressedoptions_&a=_cgiarga_&c=_cgiargc_&cl=_cgiargcl_&d=_cgiargd_} 145 146 _loginlink_ { 147 <div id="usercommentlink"><a href="_doc-url_&uan=1">_textaddusercomment_</a></div> 148 } 136 149 137 150 # For getting the submitbutton to make Ajax calls, see … … 139 152 # http://stackoverflow.com/questions/8869341/ajax-form-submit-with-submit-button 140 153 141 _addusercomment_ { 142 143 _If_(_cgiargd_, 144 154 _usercommentform_ { 145 155 <form name="AddUserCommentForm"> 146 <p>_textcommentusername_ <input type="text" name="username"></p> 156 <!--<p>_textcommentusername_ <input type="text" name="username"></p>--> 157 <input type=hidden name="username" value="_cgiargun_"> 147 158 <p> 148 159 _textaddusercomment_ … … 154 165 <label id="usercommentfeedback"></label> 155 166 </form> 156 ) 167 157 168 158 169 <script type="text/javascript"> … … 656 667 </div> <!-- document:footer --> 657 668 658 <div class="navarrowsbottom">659 _navarrowsbottom_660 </div>661 669 662 670 <center> … … 669 677 </td></tr></table> 670 678 </center> 679 680 <div class="navarrowsbottom"> 681 _navarrowsbottom_ 682 </div> 683 671 684 672 685 _endspacer__htmlfooter_
Note:
See TracChangeset
for help on using the changeset viewer.