Location: PHPKode > projects > Template CMS > plugins/box/blocks/templates/backend/BlocksAddTemplate.php
<?php
    htmlAdminHeading(lang('blocks_creating'));
    htmlFormOpen('index.php?id=themes&sub_id=blocks&action=add_block');

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

    htmlBr(2);
    htmlMemo('blocks_editor',array('style'=>'width:100%;height:400px;'),$blocks_data);
    htmlBr(1);

    htmlFormButton(array('value'=>lang('blocks_save'),'name'=>'add_blocks'));
    htmlNbsp();
    htmlFormButton(array('value'=>lang('blocks_save_and_exit'),'name'=>'add_blocks_and_exit'));

    htmlFormClose();
?>
Return current item: Template CMS