{*********************************************************
* Copyright (c) 2009 PHPLDTemplates.com
* Theme Author: http://www.PHPLDTemplates.com
* Theme URL: http://www.phpldtemplates.com/2009/07/free-phpld-template-dbs-3/
* 
* Report bug: Please email contact @ PHPLDTemplates.com
* License: Free, provided user keeps the footer links intake. Not to be resold.
* More free phpld templates are available at http://www.PHPLDTemplates.com
* 
**********************************************************}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/formtool/formtool.js"></script>
    <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/prototype/prototype.js"></script>
    <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/scriptaculous/scriptaculous.js"></script>
    
    <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/jquery.js"></script>
     
    <script type="text/javascript">
    {literal}jQuery.noConflict();{/literal}
    </script>
    <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/categ_selection/categ_selection.js"></script>
    <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/tiny_mce/tiny_mce.js"></script>     
    <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/tiny_mce/tiny_mce.js"></script>

    {* CSS Style file *}
    <link rel="stylesheet" type="text/css" href="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/style/main.css" />   
</head>
<body style="background: #ffffff;">
    <form action="{$smarty.const.DOC_ROOT}/inplace_editcat.php" method="post">
    <h3 style="color: red">{$error_message}</h3>
    <table>
        <tr>
            <td colspan="2" style="text-align: center; font-weight: bold;">{l}Edit Category{/l}</td>
        </tr>
        <tr>
            <td>{l}Title{/l}</td>
            <td><input type="text" name="TITLE" value="{$category.TITLE}"/></td>
        </tr>
        <tr>
            <td>{l}Description{/l}</td>
            <td>
                {if isset ($useRTE) and $useRTE eq 1}
                {literal}
                <script type="text/javascript">
                //<![CDATA[
                tinyMCE.init({
              
                  mode : "exact",
                  elements: "DESCRIPTION",
                  theme : "advanced",
                  plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
          
                  theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect",
                  theme_advanced_buttons2 : ",fontselect,fontsizeselect,|,cut,copy,paste,pastetext,pasteword,|,outdent,indent,|,undo,redo",
                  theme_advanced_toolbar_location : "top",
                  theme_advanced_toolbar_align : "left",
                  theme_advanced_statusbar_location : "bottom",
                  theme_advanced_resizing : true,
          
                  content_css : "css/content.css"
                });
                //]]>
                </script>
                {/literal}
                <textarea id="DESCRIPTION" name="DESCRIPTION" rows="10" cols="10" style="width: 100%">{$category.DESCRIPTION}
                </textarea> 
                {else}
                <textarea name="DESCRIPTION" rows="10" cols="40" class="text">{$category.DESCRIPTION}</textarea>
                {/if}
            </td>
        </tr>
        {if $categs|@count > 0}
        <tr>
            <td>{l}Category Parent{/l}</td>
            <td>
                {*html_options options=$categs selected=$PARENT_ID name="PARENT_ID" id="PARENT_ID"*}
                {*include file="category_select.tpl"*}
         
              
                {html_options options=$categs selected=$category.PARENT_ID name="PARENT_ID"}
              
            </td>
        </tr>
        {/if}
        <tr>
            <td>{l}RSS feed{/l}</td>
            <td><input type="text" name="RSS_URL" value="{$category.RSS_URL}"/></td>
        </tr>
        <tr>
           <td>{l}Status{/l}</td>
           <td>
              {html_options options=$stats selected=$category.STATUS name="STATUS" id="STATUS"}
           </td>
        </tr>
        {if $smarty.const.ENABLE_META_TAGS eq 1}
        <tr>
            <td>{l}META Keywords{/l}:</td>
            <td>
                <input type="text" name="META_KEYWORDS" value="{$category.META_KEYWORDS|escape|trim}" size="40" maxlength="2000"/>
                <p>{l}Separate keywords by comma.{/l}</p>
            </td>
        </tr>
        <tr>
            <td>{l}META Description{/l}:</td>
            <td>
                {if isset ($useRTE) and $useRTE eq 1}
                {literal}
                <script type="text/javascript">
                //<![CDATA[
                tinyMCE.init({
              
                  mode : "exact",
                  elements: "META_DESCRIPTION",
                  theme : "advanced",
                  plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
          
                  theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect",
                  theme_advanced_buttons2 : ",fontselect,fontsizeselect,|,cut,copy,paste,pastetext,pasteword,|,outdent,indent,|,undo,redo",
                  theme_advanced_toolbar_location : "top",
                  theme_advanced_toolbar_align : "left",
                  theme_advanced_statusbar_location : "bottom",
                  theme_advanced_resizing : true,
          
                  content_css : "css/content.css"
                });
                //]]>
                </script>
                {/literal}
                <textarea name="META_DESCRIPTION" rows="3" cols="30" style="width: 100%">{$category.META_DESCRIPTION|escape|trim}</textarea>
                {else}
                <textarea name="META_DESCRIPTION" rows="3" cols="30">{$category.META_DESCRIPTION|escape|trim}</textarea>
                {/if}
            </td>
        </tr>
        {/if}
        <tr>
            <td>{l}Page Title{/l}</td>
            <td>
                <textarea name="TDESCRIPTION" id="TDESCRIPTION" rows="6" cols="50">{$category.TDESCRIPTION|trim|escape}</textarea>
            </td>
        </tr>
        <tr>
            <td>{l}Main area Content for the Category{/l}:</td>
            <td>
                {if isset ($useRTE) and $useRTE eq 1}
                {literal}
                <script type="text/javascript">
                //<![CDATA[
                tinyMCE.init({
                    mode : "exact",
                    elements: "CATCONTENT",
                    theme : "advanced",
                    plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
            
                    theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect",
                    theme_advanced_buttons2 : ",fontselect,fontsizeselect,|,cut,copy,paste,pastetext,pasteword,|,outdent,indent,|,undo,redo",
                    theme_advanced_toolbar_location : "top",
                    theme_advanced_toolbar_align : "left",
                    theme_advanced_statusbar_location : "bottom",
                    theme_advanced_resizing : true,
            
                    content_css : "css/content.css"
                });
                //]]>
                </script>
                {/literal}
                <textarea id="CATCONTENT" name="CATCONTENT" rows="10" cols="10" style="width: 100%">{$category.CATCONTENT}
                </textarea> 
                {else}  
                <textarea name="CATCONTENT" id="CATCONTENT" rows="6" cols="50" class="text" >{$category.CATCONTENT}</textarea>{/if}
            </td>
        </tr> 
        <!-- 
        <tr>
           <td>{l}Enter the code shown{/l}:</td>
           <td>
              <input id="IMAGEHASH" name="IMAGEHASH" type="hidden" value="{$imagehash}" />
              <input id="CAPTCHA" name="CAPTCHA" type="text" value="" class="text" />
              <p class="small">{l}This helps prevent automated registrations.{/l}</p>
              <img src="{$smarty.const.DOC_ROOT}/captcha.php?imagehash={$imagehash}" class="captcha" alt="{l}Visual Confirmation Security Code{/l}" title="{l}Visual Confirmation Security Code{/l}" />
           </td>
        </tr>
        -->
        <tr>
            <td colspan="2"><input type="submit" name="submit" value="{l}Save{/l}" class="btn" /></td>
        </tr>
    </table>
    <input type="hidden" name="action" value="submit" />
    <input type="hidden" name="ID" value="{$category.ID}" />
    </form>
</body>
</html>