Changeset 84
- Timestamp:
- 01/08/06 23:19:22 (3 years ago)
- Files:
-
- devel/_weblog/view_post.php (modified) (1 diff)
- devel/content/mainindex/content_main_index.php (modified) (2 diffs)
- devel/help/mainindex/blogs_help_page.php (modified) (3 diffs)
- devel/help/mainindex/file_help_page.php (modified) (3 diffs)
- devel/help/mainindex/network_help_page.php (modified) (3 diffs)
- devel/help/mainindex/profile_help_page.php (modified) (2 diffs)
- devel/units/admin/admin_main.php (modified) (5 diffs)
- devel/units/admin/admin_userdetails.php (modified) (4 diffs)
- devel/units/admin/admin_users.php (modified) (3 diffs)
- devel/units/admin/admin_users_add.php (modified) (2 diffs)
- devel/units/admin/admin_users_panel.php (modified) (1 diff)
- devel/units/admin/display_content_flag_form.php (modified) (1 diff)
- devel/units/communities/communities_create.php (modified) (1 diff)
- devel/units/communities/communities_edit.php (modified) (3 diffs)
- devel/units/communities/communities_members.php (modified) (3 diffs)
- devel/units/communities/communities_moderator_of.php (modified) (3 diffs)
- devel/units/communities/communities_owned.php (modified) (1 diff)
- devel/units/communities/community_memberships.php (modified) (1 diff)
- devel/units/display/function_input_field_display.php (modified) (2 diffs)
- devel/units/files/default_templates.php (modified) (3 diffs)
- devel/units/files/edit_file.php (modified) (6 diffs)
- devel/units/files/files_user_info_menu.php (modified) (1 diff)
- devel/units/files/folder_view.php (modified) (2 diffs)
- devel/units/friends/friends_edit.php (modified) (3 diffs)
- devel/units/friends/friends_of_edit.php (modified) (3 diffs)
- devel/units/friends/profile_friends.php (modified) (2 diffs)
- devel/units/groups/groups_edit_display.php (modified) (2 diffs)
- devel/units/icons/function_add_icons.php (modified) (1 diff)
- devel/units/profile/profile_user_info.php (modified) (2 diffs)
- devel/units/search/search_user_info_menu.php (modified) (2 diffs)
- devel/units/templates/default_template.php (modified) (13 diffs)
- devel/units/templates/templates_view.php (modified) (4 diffs)
- devel/units/users/user_info.php (modified) (2 diffs)
- devel/units/users/userdetails_edit.php (modified) (5 diffs)
- devel/units/weblogs/default_template.php (modified) (3 diffs)
- devel/units/weblogs/function_input_field_display.php (modified) (1 diff)
- devel/units/weblogs/weblogs_posts_view.php (modified) (3 diffs)
- devel/units/weblogs/weblogs_user_info_menu.php (modified) (3 diffs)
- devel/units/weblogs/weblogs_view.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/_weblog/view_post.php
r45 r84 44 44 45 45 $time = gmdate("F d, Y",$post->posted); 46 $body = "<h2 class=\"weblog dateheader\">$time</h2>\n";46 $body = "<h2 class=\"weblog_dateheader\">$time</h2>\n"; 47 47 48 48 $body .= run("weblogs:posts:view:individual",$post); devel/content/mainindex/content_main_index.php
r45 r84 3 3 $sitename = sitename; 4 4 5 $run_result = "<h 5>" . gettext("Welcome") . "</h5>";6 $run_result .= "<p><b>" . sprintf(gettext("Why not <a href=\"%s\">create your profile</a>?"), url . "profile/edit.php") . "</b>< br />";5 $run_result = "<h3>" . gettext("Welcome") . "</h3>"; 6 $run_result .= "<p><b>" . sprintf(gettext("Why not <a href=\"%s\">create your profile</a>?"), url . "profile/edit.php") . "</b></p>"; 7 7 $run_result .= "<p>". gettext("Tell people about yourself and connect to others with similar interests and goals.") . "<br />"; 8 8 … … 36 36 $news = $news[0]; 37 37 38 $run_result .= "<div class=\"site News\">";38 $run_result .= "<div class=\"sitenews\">"; 39 39 $run_result .= "<h2>" . gettext("Latest news") . "</h2>"; 40 40 $run_result .= "<p>" . nl2br(stripslashes($news->body)) . "</p>"; devel/help/mainindex/blogs_help_page.php
r45 r84 3 3 $run_result .= <<< END 4 4 5 <div class="help Files">6 <h 5>Why would you want to have a blog?</h5>5 <div class="helpfiles"> 6 <h3>Why would you want to have a blog?</h3> 7 7 <p>Your blog can serve multiple purposes:</p> 8 8 <ul> … … 14 14 15 15 <h5>How to do it?</h5> 16 < p><b>>> Select 'Post a new entry'</b></p>16 <h4>>> Select 'Post a new entry'</h4> 17 17 <img src="/help/images/blog_start.jpg" alt="Post a blog entry" title="Post a blog entry" width="369" height="99" border="0"> 18 18 <p><b>Step one:</b> Now you will see the 'Add a new post' page. First you give your blog post a title then fill in some content.</p> … … 26 26 <img src="/help/images/blog_five.jpg" alt="Embed an image" title="Embed an image" width="485" height="67" border="0"> 27 27 <p><b>Step five:</b> Now just press 'Post' and you have created your first blog post!</p> 28 <h 5>Other functions</h5>28 <h3>Other functions</h3> 29 29 <p><b>RSS feed:</b> this is so people can follow your blog posts using an RSS aggregator. (<i>Note: only the posts you mark as public</i>)</p> 30 30 <p><b>Archive:</b> this is all your blog posts stored by month.</p> 31 31 <p><b>Friends blogs:</b> this displays all the posts made by your friends.</p> 32 32 <p><b>View all posts:</b> this will display all the blog posts in the system.</p> 33 <h 5>Troubleshooting</h5>34 < p><b>I can't find any files to embed?</b></p>33 <h3>Troubleshooting</h3> 34 <h4>I can't find any files to embed?</h4> 35 35 <p>Check you have actually uploaded some files to your file respository. You cannot upload a file from your own computer - at the moment you must first have stored it in your personal file repository.</p> 36 < p><b>Why are my keywords not working?</b></p>36 <h4>Why are my keywords not working?</h4> 37 37 <p>Your keywords will only create links if the keyword exists somewhere else in the system. If not you are the first and you will need to wait until someone else uses it. Also make sure you have separated with commas.</p> 38 < p><b>The RSS feed page is all code?</b></p>38 <h4>The RSS feed page is all code?</h4> 39 39 <p>This is what an RSS feed looks like - it is designed to be interpreted by an RSS reader.</p> 40 < p><b>Does this blog have an HTML editor?</b></p>40 <h4>Does this blog have an HTML editor?</h4> 41 41 <p>At present no - we are testing different ones just now. However, the most common request was to create links. To do this you just need to type the link, or paste it in and the system automatically turns it into an active link.</p> 42 42 devel/help/mainindex/file_help_page.php
r45 r84 4 4 $run_result .= <<< END 5 5 6 <div class="help Files">7 <h 5>Why would you want to have a file repository?</h5>6 <div class="helpfiles"> 7 <h2>Why would you want to have a file repository?</h2> 8 8 <ul> 9 9 <li>Use this to upload and store all your photos, coursework, articles to read etc.</li> … … 13 13 </ul> 14 14 15 <h 5>How to do it?</h5>16 < p><b>>> Select 'Add a file or a folder'</b></p>15 <h3>How to do it?</h3> 16 <h4>>> Select 'Add a file or a folder'</h4> 17 17 <img src="/help/images/files_one.jpg" alt="Start" title="Start" width="365" height="95" border="0"> 18 18 … … 36 36 <p><i>Note: you can create as may sub-directories as you want - just click on the folder for which you want to create a sub-directory in and then follow the instructions to 'Create a folder' above.</i></p> 37 37 <p><i>Note: to upload a file into a folder instead of the root directory just click on the folder you wish to upload the file to and then follow the instructions 'How to do it?' above.</i></p> 38 <h 5>Other functions</h5>38 <h3>Other functions</h3> 39 39 <p><b>RSS feed:</b> this is so people can follow your file uploads using an RSS aggregator. (<i>Note: only the files you mark as public</i>)</p> 40 40 <p><b>Delete:</b> once you have uploaded a file or created a folder you can also delete them - <b>warning!</b> once a file has been deleted it is gone forever.</p> 41 41 <p><b>Edit:</b> once you have uploaded a file you can edit its properties at a later date - this is handy if you want to change the description or access restriction.</p> 42 <h 5>Troubleshooting</h5>43 < p><b>Why is my file not uploading?</b></p>42 <h3>Troubleshooting</h3> 43 <h4>Why is my file not uploading?</h4> 44 44 <p>PHP has a default file size limit on files being uploaded - this is 5mb, check that your file is smaller than this. (It is worth noting that on some servers PHP's limit is 2mb - this is worth checking with your administrator) Make sure the file type is allowed, your administrator will let you know what file extensions are supported.</p> 45 45 </div> devel/help/mainindex/network_help_page.php
r45 r84 6 6 $run_result .= <<< END 7 7 8 <div class="help Files">9 <h 5>What is 'Your Network'?</h5>8 <div class="helpfiles"> 9 <h3>What is 'Your Network'?</h3> 10 10 <ul> 11 11 <li>It consists of friends you have a connection to, friends that have connected to you, communities you are a member of and communities you have set up.</li> … … 13 13 </ul> 14 14 15 <h 6>Communities:</h6>15 <h3>Communities:</h3> 16 16 <p>This menu option displays all the comunities you are a member of. If you have not joined any communities then you will get a message saying that.</p> 17 <h 6>Owned Communities:</h6>17 <h3>Owned Communities:</h3> 18 18 <p>This will list all the communities you own. These are the communities that you have set up.</p> 19 19 <p>It is here that you can create new communities</p> 20 < p><b>>> Here's how:</b></p>20 <h4>>> Here's how:</h4> 21 21 <p><b>Step 1:</b> You need to give the community a name as well as a username.</p> 22 22 <img src="/help/images/community_one.jpg" alt="Create a community" title="Create a community" width="336" height="120" border="0"> 23 23 <p><b>Step 2:</b> Click '<b>create</b>' and that is it! You have now created a new comunity.</p> 24 <h 6>Friends:</h6>24 <h3>Friends:</h3> 25 25 <p><b>Friends I have linked to</b> this page displays all the friends you have linked to. To remove a friend you just click on the small icon beside their name.</p> 26 26 <p><i>Note: To find some friends you could search on a subject you are interested in, invite some into the system or click on any keywords you may have.</i></p> 27 <h 6>Friend of:</h6>27 <h3>Friend of:</h3> 28 28 <p><b>Friends who have linked to me</b> this page displays all the people who have linked to you as a friend. If you wish to make one of them your friend just click on the small icon beside their name.</p> 29 <h 6>FOAF:</h6>29 <h3>FOAF:</h3> 30 30 <p>This is a protocol for passing information about you between systems.</p> 31 <h 6>Access controls:</h6>31 <h3>Access controls:</h3> 32 32 <p>This is one of the most important aspects of your landscape. It allows you to control who has access to your content.</p> 33 33 <ul> … … 36 36 <li>You create and control your access groups.</li> 37 37 </ul> 38 <h 6>Invite a friend:</h6>38 <h3>Invite a friend:</h3> 39 39 <p>This lets you invite in other people you think might be interested in the system.</p> 40 <h 5>Troubleshooting</h5>41 < p><b>How do I meet people to be my friends?</b></p>40 <h4>Troubleshooting</h4> 41 <h5>How do I meet people to be my friends?</h5> 42 42 <p>This can be done in a number of ways - you can use the search box and try searching on something you are interested in. You can try selecting one of your keywords and seeing who you can find. You could see if anyone has made you their friend and do the same in return</p> 43 < p><b>Can I just make people my friend or should I ask them?</b></p>43 <h5>Can I just make people my friend or should I ask them?</h5> 44 44 <p>This is up to you - if you make someone your friend it does not give you any special privilages regarding their site.</p> 45 < p><b>I can't delete a community I created</b></p>45 <h5>I can't delete a community I created</h5> 46 46 <p>This is because we are not yet sure how to handle this situation. If we let everyone just delete communities they create - what happens to the content of the community? It could be very discouraging to join a community, actively participate only to see the owner pull the plug and all your contributions and connections are lost. We are currently thinking of ways to handle this situation.</p> 47 47 <p></p> devel/help/mainindex/profile_help_page.php
r45 r84 3 3 $sitename = sitename; 4 4 $run_result .= <<< END 5 <div class="help Files">6 <h 5>Why would you want to have a profile?</h5>5 <div class="helpfiles"> 6 <h3>Why would you want to have a profile?</h3> 7 7 <p>Your profile serves two purposes:</p> 8 8 <ul> … … 12 12 <p>It not only creates links to other people but also resources - this helps you find information which could help with your studies and research!</p> 13 13 14 <h 5>How to do it?</h5>14 <h3>How to do it?</h3> 15 15 16 < p><b>>> Select 'Edit this profile'</b></p>16 <h4>>> Select 'Edit this profile'</h4> 17 17 <img src="/help/images/profile_to_do.jpg" alt="How to do it?" title="How to do it?" width="369" height="104" border="0"> 18 18 devel/units/admin/admin_main.php
r45 r84 15 15 16 16 $run_result .= run("templates:draw", array( 17 'context' => ' databox',18 'name' => sprintf(gettext("Accounts of type '%s'"), $user->user_type),19 'column1' => $user->numusers,17 'context' => 'adminTable', 18 'name' => "<h3>" . sprintf(gettext("Accounts of type '%s'"), $user->user_type) . "</h3> ", 19 'column1' => "<p>" . $user->numusers . "</p> ", 20 20 'column2' => " " 21 21 ) … … 31 31 $weblog_comments_7days = db_query("select count(ident) as numposts from weblog_comments where posted > (UNIX_TIMESTAMP() - (86400 * 7))"); 32 32 $run_result .= run("templates:draw", array( 33 'context' => ' databox',34 'name' => gettext("Weblog statistics"),35 'column1' => "< b>" . gettext("All-time:") . "</b> " . sprintf(gettext("%d weblog posts, %d comments"),$weblog_posts[0]->numposts, $weblog_comments[0]->numposts) . "<br /><b>" . gettext("Last 7 days:") . "</b> " . sprintf(gettext("%d weblog posts, %d comments"),$weblog_posts_7days[0]->numposts, $weblog_comments_7days[0]->numposts),33 'context' => 'adminTable', 34 'name' => "<h3>" . gettext("Weblog statistics") . "</h3> ", 35 'column1' => "<h4>" . gettext("All-time:") . "</h4><p>" . sprintf(gettext("%d weblog posts, %d comments"),$weblog_posts[0]->numposts, $weblog_comments[0]->numposts) . "</p><h4>" . gettext("Last 7 days:") . "</h4><p>" . sprintf(gettext("%d weblog posts, %d comments"),$weblog_posts_7days[0]->numposts, $weblog_comments_7days[0]->numposts) . "</p>", 36 36 'column2' => " " 37 37 ) … … 42 42 $files_7days = db_query("select count(ident) as numfiles, sum(size) as totalsize from files where time_uploaded > (UNIX_TIMESTAMP() - (86400 * 7))"); 43 43 $run_result .= run("templates:draw", array( 44 'context' => ' databox',45 'name' => gettext("File statistics"),46 'column1' => "< b>" . gettext("All-time:") . "</b> " . sprintf(gettext("%d files (%d bytes)"),$files[0]->numfiles, $files[0]->totalsize) . "<br /><b>" . gettext("Last 7 days:") . "</b> " . sprintf(gettext("%d files (%d bytes)"),$files_7days[0]->numfiles, $files_7days[0]->totalsize),44 'context' => 'adminTable', 45 'name' => "<h3>" . gettext("File statistics") . "</h3> ", 46 'column1' => "<h4>" . gettext("All-time:") . "</h4> <p>" . sprintf(gettext("%d files (%d bytes)"),$files[0]->numfiles, $files[0]->totalsize) . "</p><h4>" . gettext("Last 7 days:") . "</h4><p>" . sprintf(gettext("%d files (%d bytes)"),$files_7days[0]->numfiles, $files_7days[0]->totalsize) . "</p>", 47 47 'column2' => " " 48 48 ) … … 51 51 // Users online right now 52 52 53 $run_result .= "<h 5>" . gettext("Users online now") . "</h5>";53 $run_result .= "<h2>" . gettext("Users online now") . "</h2>"; 54 54 $run_result .= "<p>" . gettext("The following users have an active session and have performed an action within the past 10 minutes.") . "</p>"; 55 55 … … 58 58 $run_result .= run("templates:draw", array( 59 59 'context' => 'databox', 60 'name' => "< b>" . gettext("Username") . "</b>",61 'column1' => "< b>" . gettext("Full name") . "</b>",62 'column2' => "< b>" . gettext("Email address") . "</b>"60 'name' => "<h3>" . gettext("Username") . "</h3>", 61 'column1' => "<h3>" . gettext("Full name") . "</h3>", 62 'column2' => "<h3>" . gettext("Email address") . "</h3>" 63 63 ) 64 64 ); devel/units/admin/admin_userdetails.php
r45 r84 18 18 if ($user_details->username != "news") { 19 19 20 $run_result .= "<h 5>" . gettext("Change username:") . "</h5>";20 $run_result .= "<h3>" . gettext("Change username:") . "</h3>"; 21 21 $run_result .= run("templates:draw", array( 22 22 'context' => 'databox', … … 28 28 } 29 29 30 $run_result .= "<h 5>" . gettext("Change file quota (in bytes):") . "</h5>";30 $run_result .= "<h3>" . gettext("Change file quota (in bytes):") . "</h3>"; 31 31 $run_result .= run("templates:draw", array( 32 32 'context' => 'databox', … … 35 35 ) 36 36 ); 37 $run_result .= "<h 5>" . gettext("Change icon quota:") . "</h5>";37 $run_result .= "<h3>" . gettext("Change icon quota:") . "</h3>"; 38 38 $run_result .= run("templates:draw", array( 39 39 'context' => 'databox', … … 44 44 45 45 if ($user_details->user_type == "person") { 46 $run_result .= "<h 5>" . gettext("User flags:") . "</h5>";46 $run_result .= "<h3>" . gettext("User flags:") . "</h3>"; 47 47 // Is the user an administrator? 48 48 if (run("users:flags:get", array("admin", $page_owner))) { devel/units/admin/admin_users.php
r45 r84 18 18 $run_result .= "<form action=\"". url . "_userdetails/\" method=\"get\">"; 19 19 $run_result .= run("templates:draw", array( 20 'context' => ' databox',21 'name' => gettext("Enter username"),20 'context' => 'adminTable', 21 'name' => "<h4>" . gettext("Enter username") ."</h4>", 22 22 'column1' => "<input type=\"text\" name=\"profile_name\" value=\"\" /><input type=\"hidden\" name=\"context\" value=\"admin\" />", 23 23 'column2' => "<input type=\"submit\" value=\"".gettext("Edit user") . "\" />" … … 34 34 $run_result .= run("templates:draw", array( 35 35 'context' => 'databox', 36 'name' => "< b>" . gettext("Username") . "</b>",37 'column1' => "< b>" . gettext("Full name") . "</b>",38 'column2' => "< b>" . gettext("Email address") . "</b>"36 'name' => "<h5>" . gettext("Username") . "</h5>", 37 'column1' => "<h5>" . gettext("Full name") . "</h5>", 38 'column2' => "<h5>" . gettext("Email address") . "</h5>" 39 39 ) 40 40 ); … … 58 58 59 59 $run_result .= run("templates:draw", array( 60 'context' => ' databox',60 'context' => 'adminTable', 61 61 'name' => " ", 62 62 'column1' => $prev . " " . $next, devel/units/admin/admin_users_add.php
r45 r84 19 19 $run_result .= "<form action=\"\" method=\"post\">"; 20 20 21 $name = "< b>" . gettext("Username") . "</b><br /><br />";22 $column1 = "< b>" . gettext("Full name") . "</b><br /><br />";23 $column2 = "< b>" . gettext("Email address") . "</b><br /><br />";21 $name = "<h3>" . gettext("Username") . "</h3>"; 22 $column1 = "<h3>" . gettext("Full name") . "</h3>"; 23 $column2 = "<h3>" . gettext("Email address") . "</h3>"; 24 24 25 25 for ($i = 0; $i < 12; $i++) { … … 37 37 38 38 $run_result .= run("templates:draw", array( 39 'context' => ' databox',39 'context' => 'adminTable', 40 40 'name' => $name, 41 41 'column1' => $column1, devel/units/admin/admin_users_panel.php
r45 r84 8 8 9 9 $run_result .= run("templates:draw", array( 10 'context' => ' databox',11 'name' => stripslashes($parameter->username),10 'context' => 'adminTable', 11 'name' => "<p>" . stripslashes($parameter->username) . "</p>", 12 12 'column1' => "<a href=\"" . url . "_userdetails/?profile_id=" .$parameter->ident . "&context=admin\" >" . stripslashes($parameter->name) . "</a> [<a href=\"".url . stripslashes($parameter->username) ."/\">" . gettext("Profile") . "</a>]", 13 13 'column2' => "<a href=\"mailto:" . $parameter->email. "\" >" . $parameter->email . "</a>" devel/units/admin/display_content_flag_form.php
r45 r84 12 12 13 13 $run_result .= run("templates:draw", array( 14 'context' => ' databox',15 'name' => gettext("Flag content"),16 'column1' => gettext("To mark this content as obscene or inappropriate, click the 'Flag' button and an administrator will view it in due course."),14 'context' => 'flagContent', 15 'name' => "<h5>" . gettext("Flag content") . "</h5>", 16 'column1' => "<p>" . gettext("To mark this content as obscene or inappropriate, click the 'Flag' button and an administrator will view it in due course.") . "</p>", 17 17 'column2' => "<input type=\"submit\" value=\"" . gettext("Flag") . "\" /><input type=\"hidden\" name=\"action\" value=\"content:flag\" /><input type=\"hidden\" name=\"address\" value=\"$page_url\" />" 18 18 ) devel/units/communities/communities_create.php
r45 r84 23 23 24 24 </p> 25 <h 5>25 <h3> 26 26 $header 27 </h 5>27 </h3> 28 28 <form action="" method="post"> 29 29 END; devel/units/communities/communities_edit.php
r64 r84 14 14 15 15 $body = <<< END 16 <table class="userlist"> 16 <div class="networktable"> 17 <table> 17 18 <tr> 18 19 END; … … 40 41 $friends_menu = run("users:infobox:menu",array($info->ident)); 41 42 $body .= <<< END 42 <td align="center">43 <td> 43 44 <p> 44 45 <a href="{$url}{$friends_username}/"> … … 66 67 </tr> 67 68 </table> 69 </div> 68 70 END; 69 71 devel/units/communities/communities_members.php
r74 r84 14 14 15 15 $body = <<< END 16 <table class="userlist"> 16 <div class="networktable"> 17 <table> 17 18 <tr> 18 19 END; … … 40 41 // $friends_menu = run("users:infobox:menu",array($info->ident)); 41 42 $body .= <<< END 42 <td align="center">43 <td> 43 44 <p> 44 45 <a href="{$url}{$friends_username}/"> … … 61 62 </tr> 62 63 </table> 64 </div> 63 65 END; 64 66 devel/units/communities/communities_moderator_of.php
r74 r84 13 13 14 14 $body = <<< END 15 <table class="userlist"> 15 <div class="networktable"> 16 <table> 16 17 <tr> 17 18 END; … … 39 40 // $friends_menu = run("users:infobox:menu",array($info->ident)); 40 41 $body .= <<< END 41 <td align="center">42 <td> 42 43 <p> 43 44 <a href="{$url}{$friends_username}/"> … … 64 65 </tr> 65 66 </table> 67 </div> 66 68 END; 67 69 devel/units/communities/communities_owned.php
r45 r84 9 9 and users.user_type = 'community'"); 10 10 if (sizeof($result) > 0) { 11 $body = "< p>";11 $body = "<ul>"; 12 12 foreach($result as $row) { 13 $body .= "< a href=\"" . url . stripslashes($row->username) . "/\">" . stripslashes($row->name) . "</a><br />";13 $body .= "<li><a href=\"" . url . stripslashes($row->username) . "/\">" . stripslashes($row->name) . "</a></li>>"; 14 14 } 15 $body .= "</ p>";15 $body .= "</ul>"; 16 16 // $run_result .= $body; 17 $run_result .= "<li id=\"community_owned\">"; 17 18 $run_result .= run("templates:draw", array( 18 'context' => ' contentholder',19 'context' => 'sidebarholder', 19 20 'title' => gettext("Owned communities"), 20 'body' => $body, 21 'submenu' => '' 21 'body' => $body 22 22 ) 23 23 ); 24 $run_result .= "</li>"; 24 25 } else { 25 26 $run_result .= ""; devel/units/communities/community_memberships.php
r45 r84 13 13 14 14 if (sizeof($result) > 0) { 15 $body = "< p>";15 $body = "<ul>"; 16 16 foreach($result as $row) { 17 $body .= "< a href=\"" . url . stripslashes($row->username) . "/\">" . stripslashes($row->name) . "</a><br />";17 $body .= "<li><a href=\"" . url . stripslashes($row->username) . "/\">" . stripslashes($row->name) . "</a></li>"; 18 18 } 19 $body .= "</p>"; 19 $body .= "</ul>"; 20 $run_result .= "<li id=\"community_membership\">"; 20 21 $run_result .= run("templates:draw", array( 21 'context' => ' contentholder',22 'context' => 'sidebarholder', 22 23 'title' => gettext("Community memberships"), 23 'body' => $body, 24 'submenu' => '' 24 'body' => $body 25 25 ) 26 26 ); 27 $run_result .= "</li>"; 27 28 } else { 28 29 $run_result .= ""; devel/units/display/function_input_field_display.php
r56 r84 39 39 40 40 case "text": 41 $run_result .= "<input type=\"text\" name=\"".$parameter[0]."\" value=\"".htmlentities(stripslashes($parameter[1]))."\" style=\"width: 95%\" id=\"".$cleanid."\" />";41 $run_result .= "<input type=\"text\" name=\"".$parameter[0]."\" value=\"".htmlentities(stripslashes($parameter[1]))."\" class=\"small_textarea\" id=\"".$cleanid."\" />"; 42 42 break; 43 43 case "password": 44 $run_result .= "<input type=\"password\" name=\"".$parameter[0]."\" value=\"".htmlentities(stripslashes($parameter[1]))."\" style=\"width: 95%\" id=\"".$cleanid."\" />";44 $run_result .= "<input type=\"password\" name=\"".$parameter[0]."\" value=\"".htmlentities(stripslashes($parameter[1]))."\" class=\"password_textarea\" id=\"".$cleanid."\" />"; 45 45 break; 46 46 case "mediumtext": 47 $run_result .= "<textarea name=\"".$parameter[0]."\" id=\"".$cleanid."\" style=\"width: 95%; height: 100px\">".htmlentities(stripslashes($parameter[1]))."</textarea>";47 $run_result .= "<textarea name=\"".$parameter[0]."\" id=\"".$cleanid."\" class=\"medium_textarea\">".htmlentities(stripslashes($parameter[1]))."</textarea>"; 48 48 break; 49 49 case "keywords": … … 80 80 } 81 81 // $parameter[1] = var_export($parameter,true); 82 $run_result .= "<textarea name=\"".$parameter[0]."\" id=\"".$cleanid."\" style=\"width: 95%; height: 100px\">".htmlentities(stripslashes($parameter[1]))."</textarea>";82 $run_result .= "<textarea name=\"".$parameter[0]."\" id=\"".$cleanid."\" class=\"keywords_textarea\">".htmlentities(stripslashes($parameter[1]))."</textarea>"; 83 83 break; 84 84 case "longtext": 85 $run_result .= "<textarea name=\"".$parameter[0]."\" id=\"".$cleanid."\" style=\"width: 95%; height: 200px\">".htmlentities(stripslashes($parameter[1]))."</textarea>";85 $run_result .= "<textarea name=\"".$parameter[0]."\" id=\"".$cleanid."\" class=\"textarea\">".htmlentities(stripslashes($parameter[1]))."</textarea>"; 86 86 break; 87 87 case "richtext": devel/units/files/default_templates.php
r45 r84 19 19 20 20 $template['folder'] = <<< END 21 <div class="foldertable"> 21 22 <table> 22 23 <tr> 23 <td valign="middle">24 <td> 24 25 <a href="{{url}}"> 25 26 <img src="{{icon}}" width="93" height="90" border="0" alt="" /> 26 27 </a> 27 28 </td> 28 <td valign="middle">29 < a href="{{url}}">{{name}}</a> <small>{{menu}}</small><br />30 < small>{{keywords}}</small29 <td> 30 <p><a href="{{url}}">{{name}}</a> {{menu}}</p> 31 <p>{{keywords}}</p> 31 32 </td> 32 33 </tr> 33 34 </table> 35 </div> 34 36 END; 35 37 … … 51 53 $template['fi
