Ticket #421: cert_and_forum_prefs_form_patch.patch
File cert_and_forum_prefs_form_patch.patch, 8.5 KB (added by , 17 years ago) |
---|
-
cert1.php
21 21 $credit = credit_string($user, false); 22 22 23 23 echo " 24 <table width= 900 height=650 border=$border cellpadding=20><tr><td>24 <table width=\"900\" height=\"650\" border=\"$border\" cellpadding=\"20\"><tr><td> 25 25 <center> 26 <table width=700 border=0><tr><td> 27 <center> 28 <font style=\"font-size: 52\" face=\"Old English Text MT,ZapfChancery\">Certificate of Computation 29 30 31 <font face=\"Lucida Bright,Times New Roman\" style=\"font-size:24\"> 26 <table width=\"700\" border=\"0\"><tr><td> 27 <font style=\"font-size: 52\" face=\"Old English Text MT,ZapfChancery\">Certificate of Computation</font> 32 28 <br><br><br> 33 This certifies that 29 <font style=\"font-size:24; font-family:Lucida Bright,Times New Roman\"> 30 This certifies that</font> 34 31 <p> 35 <font face=\"Lucida Bright,Times New Roman\" style=\"font-size:32\">32 <font style=\"font-size:32; font-family:Lucida Bright,Times New Roman\"> 36 33 $user->name 37 38 <font face=\"Lucida Bright,Times New Roman\" style=\"font-size:16\">34 </font> 35 <font style=\"font-size:16; font-family:Lucida Bright,Times New Roman\"> 39 36 <p> 40 37 has participated in ".PROJECT." since $join, 41 38 and has contributed $credit 42 39 to ".PROJECT.". 43 40 </font> 44 41 <br><br><br> 45 </td>< tr></table>46 <table width= 100%><tr>47 <td width= 40><br></td>48 <td align= left>49 <font face=\"Lucida Bright,Times New Roman\" style=\"font-size:16\">50 <img src= images/SIGNATURE>42 </td></tr></table> 43 <table width=\"100%\"><tr> 44 <td width=\"40\"><br></td> 45 <td align=\"left\"> 46 <font style=\"font-size:16; font-family:Lucida Bright,Times New Roman\"> 47 <img src=\"images/SIGNATURE\"> 51 48 <br> 52 49 PROJECT DIRECTOR NAME 53 50 <br>Director, ".PROJECT." 54 51 <br><br> 55 52 $today 56 53 </td> 57 <td align= center valign=center> <img src=PROJECT_LOGO><td>58 <td align= center width=30% valign=center><img src=images/INSTITUTION_LOGO></td>54 <td align=\"center\" valign=\"center\"><img src=\"PROJECT_LOGO\"><td> 55 <td align=\"center\" width=\"30%\" valign=\"center\"><img src=\"images/INSTITUTION_LOGO\"></td> 59 56 60 </td>< tr></table>57 </td></tr></table> 61 58 "; 62 ?> 59 ?> 60 No newline at end of file -
edit_forum_preferences_form.php
12 12 db_init(); 13 13 $user = re_get_logged_in_user(); 14 14 15 16 15 page_head("Edit message board preferences"); 17 16 echo "<script type=\"text/javascript\"> 18 17 function textCounter(field, countfield, maxlimit) … … 31 30 32 31 start_table(); 33 32 row1("Reset preferences"); 34 row2("<font size= -2>Use this button to reset preferences to the defaults</font>",33 row2("<font size=\"-2\">Use this button to reset preferences to the defaults</font>", 35 34 "<form method=\"post\" action=\"edit_forum_preferences_action.php\"><input type=\"submit\" value=\"Reset preferences\"><input type=\"hidden\" name=\"action\" value=\"reset\"></form>"); 36 35 echo "<form method=\"post\" action=\"edit_forum_preferences_action.php\" enctype=\"multipart/form-data\">"; 37 36 if ($user->hasAvatar()){ … … 40 39 $zero_select="checked=\"true\""; 41 40 } 42 41 row1("Avatar"); 43 row2("<font size= -2>The virtual representation of you on the message boards<br/>Note: Forced size of 100x100 pixels<br>format: jpg/png - size: at most 4k</font>",42 row2("<font size=\"-2\">The virtual representation of you on the message boards<br>Note: Forced size of 100x100 pixels<br>format: jpg/png - size: at most 4k</font>", 44 43 " 45 44 <table> 46 45 <tr><td><input type=\"radio\" name=\"avatar_select\" value=\"0\" ".$zero_select.">Don't use an avatar</td><td></td></tr> … … 49 48 " 50 49 ); 51 50 if ($user->hasAvatar()){ 52 row2("Avatar preview<br><font size= -2>This is how your avatar will look</font>",51 row2("Avatar preview<br><font size=\"-2\">This is how your avatar will look</font>", 53 52 "<img src=\"".$user->getAvatar()."\" width=\"100\" height=\"100\">"); 54 53 } 55 54 56 55 row1("Sort styles"); 57 row2("<font size= -2>How to sort the replies in the message board and Q&A areas</font>",56 row2("<font size=\"-2\">How to sort the replies in the message board and Q&A areas</font>", 58 57 " 59 58 <table> 60 59 <tr><td>Message threadlist:</td><td>".select_from_array("forum_sort", $forum_sort_styles, $user->getForumSortStyle())."</td></tr> … … 72 71 73 72 row1("Display and Behavior"); 74 73 row2( 75 "<br><font size= -2>How to treat links and images in the forum<br>and how to act on unread posts</font>",74 "<br><font size=\"-2\">How to treat links and images in the forum<br>and how to act on unread posts</font>", 76 75 "<table><tr><td> 77 76 <input type=\"checkbox\" name=\"forum_images_as_links\" ".$forum_image_as_link."> Show images as links<br> 78 77 <input type=\"checkbox\" name=\"forum_link_externally\" ".$forum_link_externally."> Open links in new window/tab<br> 79 78 <input type=\"checkbox\" name=\"forum_jump_to_unread\" ".$forum_jump_to_unread."> Jump to first new post in thread automatically<br> 80 79 <input type=\"checkbox\" name=\"forum_ignore_sticky_posts\" ".$forum_ignore_sticky_posts.">Do not reorder sticky posts<br> 81 80 <br /> 82 <input type=\"text\" name=\"forum_minimum_wrap_postcount\" style=\"width: 30px;\" value=\"".$forum_minimum_wrap_postcount."\"> If a thread contains more than this number of posts<br />83 <input type=\"text\" name=\"forum_display_wrap_postcount\" style=\"width: 30px;\" value=\"".$forum_display_wrap_postcount."\"> only display the first one and this many of the last ones<br />81 <input type=\"text\" name=\"forum_minimum_wrap_postcount\" style=\"width: 30px;\" value=\"".$forum_minimum_wrap_postcount."\"> If a thread contains more than this number of posts<br> 82 <input type=\"text\" name=\"forum_display_wrap_postcount\" style=\"width: 30px;\" value=\"".$forum_display_wrap_postcount."\"> only display the first one and this many of the last ones<br> 84 83 85 84 </td></tr></table>" 86 85 ); … … 97 96 98 97 row1("Filtering"); 99 98 row2( 100 "<br><font size= -2>What to display<br>If you set both your high and low thresholds to 0 or<br>empty they will reset to the default values</font>",99 "<br><font size=\"-2\">What to display<br>If you set both your high and low thresholds to 0 or<br>empty they will reset to the default values</font>", 101 100 "<table><tr><td> 102 101 <input type=\"checkbox\" name=\"forum_hide_avatars\" ".$forum_hide_avatars."> Hide avatar images<br> 103 102 <input type=\"checkbox\" name=\"forum_hide_signatures\" ".$forum_hide_signatures."> Hide signatures<br> … … 120 119 } 121 120 } 122 121 row2("Filtered users". 123 "<br><font size= -2>Ignore specific users<br>You can define a list of users to ignore.<br>These users will have to write posts with very high<br> rating in order to not be filtered.</font>",122 "<br><font size=\"-2\">Ignore specific users<br>You can define a list of users to ignore.<br>These users will have to write posts with very high<br> rating in order to not be filtered.</font>", 124 123 "<table><tr><td> 125 124 $forum_filtered_userlist 126 125 </td></tr></table> 127 126 <table width=\"380\"> 128 127 <tr><td width=\"32\"><input type=\"text\" name=\"forum_filter_user\" style=\"width: 80px;\"></td><td>Userid (For instance: 123456789)</td></tr> 129 128 <tr><td colspan=\"2\"><input type=\"submit\" name=\"add_user_to_filter\" value=\"Add user to filter\"></td></tr> 130 <tr><td colspan= 2>129 <tr><td colspan=\"2\"> 131 130 Please note that you can only filter a limited number of users. 132 131 </td></tr> 133 132 </table> … … 139 138 $maxlen=250; 140 139 row1("Signature"); 141 140 row2(html_info(). 142 "<font size= -2><br>Max length (including newlines) is $maxlen chars.</font>",141 "<font size=\"-2\"><br>Max length (including newlines) is $maxlen chars.</font>", 143 142 "<table><tr><td> 144 143 <textarea name=\"signature\" rows=4 cols=50 id=\"signature\" onkeydown=\"textCounter(this.form.signature, this.form.remLen,$maxlen);\" 145 144 onkeyup=\"textCounter(this.form.signature, this.form.remLen,250);\">".$signature."</textarea> … … 148 147 </td></tr></table>"); 149 148 if ($user->getSignature()!=""){ 150 149 row2("Signature preview". 151 "<br><font size= -2>This is how your signature will look in the forums</font>",150 "<br><font size=\"-2\">This is how your signature will look in the forums</font>", 152 151 output_transform($user->getSignature()) 153 152 ); 154 153 } 155 154 row1(" "); 156 row2("", "<input type= submit value='Update info'>");155 row2("", "<input type=\"submit\" value=\"'Update info'\">"); 157 156 echo "</form>\n"; 158 157 end_table(); 159 158 page_tail();