Location: PHPKode > projects > Template CMS > plugins/box/themes/templates/backend/ThemesEditTemplate.php
<?php
    htmlAdminHeading(lang('themes_edit_template'));
    htmlFormOpen('index.php?id=themes&action=edit_template&file='.get('file'));

    if(isset($errors['themes_empty_name'])) $error_style = 'border:1px solid #FA7660'; else $error_style = '';
    htmlFormInput(array('name'=>'themes_editor_name','style'=>$error_style,'value'=>$post_name),lang('themes_name'));
    if(isset($errors['themes_empty_name'])) echo '&nbsp;&nbsp;&nbsp;<span class="error">'.$errors['themes_empty_name'].'</span>';
    if(isset($errors['themes_template_exists'])) echo '&nbsp;&nbsp;&nbsp;<span class="error">'.$errors['themes_template_exists'].'</span>';

    htmlFormHidden('old_name',basename(get('file'),'Template.php'));

    htmlBr(2);   
    htmlMemo('themes_editor',array('style'=>'width:100%;height:400px;'),toText($template_to_edit));
    include 'ThemesSnippets.php';

    htmlFormButton(array('value'=>lang('themes_save'),'name'=>'edit_template'));
    htmlNbsp();
    htmlFormButton(array('value'=>lang('themes_save_and_exit'),'name'=>'edit_template_and_exit'));
    htmlFormClose();
    
    
?>
Return current item: Template CMS