Changeset 85
- Timestamp:
- 29/05/05 20:29:44 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
admin.lib.php
r83 r85 128 128 echo "<ul class=\"side-menu\">\n"; 129 129 echo "<li><a href=\"".$this->adminPath."newentry"."\">Add a new entry</a></li>\n"; 130 echo "<li><a href=\"",$this->adminPath."settings"."\">Edit Blog settings</a></li>\n";130 echo "<li><a href=\"",$this->adminPath."settings"."\">Edit blog settings</a></li>\n"; 131 131 echo "</ul>\n"; 132 132 } … … 142 142 { 143 143 echo "<div class=\"login\">\n"; 144 echo "<h2> Login<a id=\"cmt\"></a></h2>\n";144 echo "<h2>"._("Login")."</h2>\n"; 145 145 echo "<div class=\"td\">\n"; 146 146 if ($this->sessionError != "") { … … 150 150 echo "<p>\n"; 151 151 echo "<input type=\"text\" name=\"username\" id=\"username\" value=\"" . (($this->commentError != "") ? strip_tags(trim($_POST['username'])) : "") . "\" size=\"22\" maxlength=\"50\" tabindex=\"1\" />\n"; 152 echo "<label for=\"username\"> Username</label>\n";152 echo "<label for=\"username\">"._("Username")."</label>\n"; 153 153 echo "</p>\n"; 154 154 echo "<p>\n"; 155 155 echo "<input type=\"password\" name=\"password\" id=\"password\" size=\"22\" maxlength=\"128\" tabindex=\"2\" />\n"; 156 echo "<label for=\"password\"> Password</label>\n";156 echo "<label for=\"password\">"._("Password")."</label>\n"; 157 157 echo "</p>\n"; 158 158 echo "<p>\n"; … … 247 247 if ($this->inputError) { 248 248 //check to see this post exists 249 $sql = db_query("SELECT id from entries where id = ".$id." ';");249 $sql = db_query("SELECT id from entries where id = ".$id.";"); 250 250 $sqlNum = db_num_rows($sql); 251 251 //yes?, we can update it then.. … … 253 253 $sql = db_query("UPDATE entries SET (category, subject, body) = ({$category},'{$subject}','{$body}') WHERE id = '{$id}';"); 254 254 if (!$sql) { 255 error(2, "Database commit failed- ".db_error());255 error(2,_("Database commit failed")." - ".db_error()); 256 256 } 257 257 else { … … 262 262 //cant update non-existant entrys 263 263 else { 264 error(2,_("Cannot update entry, as it does not exist." .db_error()));264 error(2,_("Cannot update entry, as it does not exist.")." - ".db_error()); 265 265 } 266 266 } … … 414 414 error(2,_("Database Insertion failed.")); 415 415 } else { 416 print(_(" OK. New user '{$username}' added.\nPlease enable the account.")); //pleh?416 print(_("New user added:")." ".$username); //pleh? 417 417 } 418 418 } else { admin.php
r84 r85 25 25 <div id="toppanel"> 26 26 <h1><a href="<? echo $admin->adminPath;?>">Blog Admin</a></h1> 27 <h2>Blog management</h2> 28 </div> 27 <h2>Blog management</h2> 28 <h3> </h3> 29 </div> 29 30 <div id="content"> 30 31 <div id="sidepanel"> … … 36 37 <div id="maincontent"><? 37 38 if($_SESSION['userName'] or $_POST['submit']) { 38 if ($_SESSION['userName']) echo "< p>"._("Hello")." {$admin->realName} (<a href=\"{$admin->adminPath}/logout\">"._("Logout")."</a>)</p>";39 if ($_SESSION['userName']) echo "<div class=\"login\"><h3>"._("Hello")." {$admin->realName} (<a href=\"{$admin->adminPath}logout\">"._("Log out")."</a>)</h3></div>"; 39 40 switch (array_shift($request)) { 40 41 case "newentry": … … 55 56 default: 56 57 //Should display blog entries here 57 58 //temporary - to force box to be big enough for menu to display 59 echo "<p> </p><p> </p><p> </p>\n"; 58 echo "<div class=\"entry\">\n"; 59 echo "<h2>"._("Blog Management")."</h2>\n"; 60 echo "<div class=\"td\">\n"; 61 echo "<p>"._("Use the links on the left to manage your blog")."</p>\n"; 62 echo "</div>\n"; 63 echo "<p> </p><p> </p>\n"; // To allow the menu to display properly 64 echo "</div>\n"; 60 65 61 66 break; blog.css
r83 r85 59 59 #sidepanel { 60 60 margin: 0.5em; 61 padding: 0;62 width: 10em;61 padding: 1em 0.5em; 62 width: 8em; 63 63 float: left; 64 font-size: 14px; 64 65 } 65 66 #maincontent { 66 67 margin: 0; 67 68 padding: 0 1.5em; 68 margin-left: 1 2em;69 margin-left: 10em; 69 70 background-color: #FFF; 70 71 border-left: 1px #AFAFAF dotted; … … 81 82 82 83 #listofblogs { 84 font-size: 12px; 83 85 padding: 1em 0; 84 font-size: 14px;85 86 } 86 87 … … 142 143 /* Style for the actual entries */ 143 144 144 .entry {145 .entry, .login { 145 146 padding: 1em 0; 146 147 } 147 148 148 .entry h2 { 149 .login { 150 padding-bottom: 0; 151 } 152 153 .entry h2, .login h2, .login h3 { 149 154 color: #258; 150 155 margin: 0; … … 155 160 } 156 161 157 .entry h2 a { 162 .login h3 { 163 text-align: right; 164 font-size: 14px; 165 } 166 .entry h2 a, .login h3 a { 158 167 color: #258; 159 168 text-decoration: none; … … 161 170 } 162 171 163 .entry h2 a:hover {172 .entry h2 a:hover, .login h3 a:hover { 164 173 color: #00F; 165 174 } … … 176 185 } 177 186 178 .td a {179 text-decoration: none; 180 color: # 00F;181 } 182 183 .td a:hover {187 .td a, #listofblogs a, #sidepanel a { 188 text-decoration: none; 189 color: #25B; 190 } 191 192 .td a:hover, #listofblogs a:hover, #sidepanel a:hover { 184 193 border-bottom: 1px #25B dotted; 185 194 } … … 205 214 .bname, .btitle, .bupdated { 206 215 font-weight: bold; 216 color: #258; 217 border-bottom: 1px #69E solid; 218 padding: 0.1em; 207 219 } 208 220
