Changeset 16 for trunk/admin

Show
Ignore:
Timestamp:
12/29/05 03:45:14 (3 years ago)
Author:
michiel
Message:

removed last reference to fckeditor.
Categories admin now doesn't have a html editor anymore
Fixes #13

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/index.php

    r1 r16  
    419419                        <div class="log_body"> 
    420420                                <span class="log_contents"> 
    421                                         <?=$row["desc"]?> 
     421                                        <?=nl2br($row["desc"])?> 
    422422                                </span> 
    423423                        </div> 
     
    470470                <div class="log_body"> 
    471471                        <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> 
    485473                        </span> 
    486474                        <input type="submit" value="save" /> 
     
    504492                $query  = "UPDATE categories SET "; 
    505493                $query .= "\"name\"='".$cat["name"]."'"; 
    506                 $query .= ", \"desc\"='".$cat["FCKeditor"]."'"; 
     494                $query .= ", \"desc\"='".$cat["description"]."'"; 
    507495                $query .= ($cat["active"]=="on")?", active=1":", active=0"; 
    508496                $query .= ($cat["public"]=="on")?", public=1":", public=0"; 
     
    511499                $query  = "INSERT INTO categories (\"name\", \"desc\", active, public) VALUES ("; 
    512500                $query .= "'".$cat["name"]."'"; 
    513                 $query .= ", '".$cat["FCKeditor"]."'"; 
     501                $query .= ", '".$cat["description"]."'"; 
    514502                $query .= ($cat["active"]=="on")?", 1":", 0"; 
    515503                $query .= ($cat["public"]=="on")?", 1":", 0"; 
     
    807795                        &nbsp;<a class="if_menu_item<? if ($_REQUEST["action"] == "show_settings") { echo "_act"; } ?>" href="./index.php?action=show_blogsettings">&nbsp;blogsettings</a>&nbsp; 
    808796--> 
    809                         &nbsp;<a class="if_menu_item<? if ($_REQUEST["action"] == "show_cats") { echo "_act"; } ?>" href="./login.php?action=logout">&nbsp;logout</a>&nbsp; 
     797                        &nbsp;<a class="if_menu_item" href="./login.php?action=logout">&nbsp;logout</a>&nbsp; 
    810798                </div> 
    811799                <div id="if_bar1"></div>