PHP Classes

File: template/newfile.php

Recommend this page to a friend!
  Classes of Ganesh Kandu   Palette PHP CMS System   template/newfile.php   Download  
File: template/newfile.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Palette PHP CMS System
Manage content site edited visually in the browser
Author: By
Last change:
Date: 2 years ago
Size: 1,595 bytes
 

Contents

Class file image Download
<h1 class="text-light"><?php echo $tpl['lang']['cnp']; ?><span class="mif-palette place-right"></span></h1>
<hr class="thin bg-grayLighter"/>
<div class="input-control text full-size">
    <table style="width:100%" id="tbl_createfile" >
    <tr><td><?php echo $tpl['lang']['File_Name']; ?></td></tr>
    <tr><td><input type="text" id="file" placeholder="index" value="index" /></td></tr>
    <tr><td><?php echo $tpl['lang']['Title']; ?></td></tr>
    <tr><td><input type="text" id="title" placeholder="Palette" value="Palette" /></td></tr>
    <tr><td>Robots</td></tr>
    <tr><td><input type="text" id="robots" placeholder="" value="NOINDEX, NOFOLLOW" /></td></tr>
    <tr><td><?php echo $tpl['lang']['Description']; ?></td></tr>
    <tr><td><input type="text" id="description" placeholder="" /></td></tr>
    <tr><td><?php echo $tpl['lang']['Keywords']; ?></td></tr>
    <tr><td><input type="text" id="keywords" placeholder="" /></td></tr>
    <tr><td><?php echo $tpl['lang']['Icon']; ?></td></tr>
    <tr><td><input type="text" id="icon" placeholder="favicon.ico" value="favicon.ico" /></td></tr>
    <tr><td>
<button class="button primary" id="createfile" style="position:unset" ><span class="mif-plus"></span> <?php echo $tpl['lang']['Create']; ?>...</button>
</td></tr>
    </table>
    <input type="hidden" id="directory" value="<?php echo $tpl['project']['path']; ?>" />
    <input type="hidden" id="baseurl" value="<?php echo (count(explode(DS,$tpl['project']['relatpath']))-1); ?>" />
</div>
<script>
    document.getElementById("file").addEventListener('keydown', function(e) {
        if(e.keyCode == 13){
            createfile();
        }
    });
</script>