Changeset 16 for trunk/admin
- Timestamp:
- 12/29/05 03:45:14 (3 years ago)
- Files:
-
- 1 modified
-
trunk/admin/index.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/index.php
r1 r16 419 419 <div class="log_body"> 420 420 <span class="log_contents"> 421 <?= $row["desc"]?>421 <?=nl2br($row["desc"])?> 422 422 </span> 423 423 </div> … … 470 470 <div class="log_body"> 471 471 <span class="log_contents"> 472 <? 473 $sBasePath = $_SERVER["PHP_SELF"] ; 474 $sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "admin" ) )."fckeditor/" ; 475 476 $oFCKeditor = new FCKeditor("cat[FCKeditor]") ; 477 $oFCKeditor->BasePath = $sBasePath ; 478 $oFCKeditor->Value = $cat["desc"]; 479 $oFCKeditor->Height = "400"; 480 $oFCKeditor->Config["CustomConfigurationsPath"] = substr($_SERVER["PHP_SELF"], 0, strpos($_SERVER["PHP_SELF"], "admin"))."common/fckeditor_conf.js"; 481 $oFCKeditor->ToolbarSet = "MvBlog"; 482 $oFCKeditor->Create(); 483 484 ?> 472 <textarea name="cat[description]" style="width: 200px; height: 100px;"><?=$cat["desc"]?></textarea> 485 473 </span> 486 474 <input type="submit" value="save" /> … … 504 492 $query = "UPDATE categories SET "; 505 493 $query .= "\"name\"='".$cat["name"]."'"; 506 $query .= ", \"desc\"='".$cat[" FCKeditor"]."'";494 $query .= ", \"desc\"='".$cat["description"]."'"; 507 495 $query .= ($cat["active"]=="on")?", active=1":", active=0"; 508 496 $query .= ($cat["public"]=="on")?", public=1":", public=0"; … … 511 499 $query = "INSERT INTO categories (\"name\", \"desc\", active, public) VALUES ("; 512 500 $query .= "'".$cat["name"]."'"; 513 $query .= ", '".$cat[" FCKeditor"]."'";501 $query .= ", '".$cat["description"]."'"; 514 502 $query .= ($cat["active"]=="on")?", 1":", 0"; 515 503 $query .= ($cat["public"]=="on")?", 1":", 0"; … … 807 795 <a class="if_menu_item<? if ($_REQUEST["action"] == "show_settings") { echo "_act"; } ?>" href="./index.php?action=show_blogsettings"> blogsettings</a> 808 796 --> 809 <a class="if_menu_item <? if ($_REQUEST["action"] == "show_cats") { echo "_act"; } ?>" href="./login.php?action=logout"> logout</a> 797 <a class="if_menu_item" href="./login.php?action=logout"> logout</a> 810 798 </div> 811 799 <div id="if_bar1"></div>
