diff options
author | Ludovic Pouzenc <lpouzenc@gmail.com> | 2013-10-29 18:42:08 +0100 |
---|---|---|
committer | Ludovic Pouzenc <lpouzenc@gmail.com> | 2013-10-29 18:42:08 +0100 |
commit | c98515883097467896a3f46b755c8cb892fe8961 (patch) | |
tree | be2e4f5450e9bc9cf692e8dfac7c9780eaa7019b /code/admin/index.php | |
download | editablesite-c98515883097467896a3f46b755c8cb892fe8961.tar.gz editablesite-c98515883097467896a3f46b755c8cb892fe8961.tar.bz2 editablesite-c98515883097467896a3f46b755c8cb892fe8961.zip |
Import initial avec une arbrescence éclatée
Diffstat (limited to 'code/admin/index.php')
-rw-r--r-- | code/admin/index.php | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/code/admin/index.php b/code/admin/index.php new file mode 100644 index 0000000..ddb95b3 --- /dev/null +++ b/code/admin/index.php @@ -0,0 +1,111 @@ +<?php + require_once('utils.php'); + need_auth(); + + // Config loading + $site_conf = load_ini_site_conf("content/site_conf.ini"); + if ( ! is_array($site_conf) ) trigger_error("Error parsing site_conf.ini", E_USER_ERROR); + + // Localization Init + l10n_init($site_conf['site_admin_lang']); +?> +<!DOCTYPE html> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<link rel="stylesheet" href="treeview.css"> +<link rel="stylesheet" href="admin.css"> +<script type="text/javascript" src="microajax.minified.js"></script> +<script type="text/javascript" src="admin.js"></script> +<title><?=_('Admin')?></title> +</head> +<body> +<form> + +<fieldset> +<legend><?=_('Page tree')?></legend> +<input id="page_add" class="tree_add" type="button" value="<?=_('Add page')?>" onclick="go_add_form('page');"> +<div class="css-treeview"> +<?php + $page_tree=find_all('./content', 'page'); + //echo '<pre>' . print_r($page_tree,true) . '</pre>' . "\n"; + php_array_to_tree($page_tree, '', 'load_page_props', '', 'pagedir-0'); +?> +</div> +</fieldset> + +<fieldset> +<legend><?=_('Selected page')?></legend> +<label for="page_path"><?=_('Page path')?></label> +<input id="page_path" name="page_path" readonly="readonly" value="<?=_('(choose a page in the tree)')?>"><br> + +<label for="page_edit"><?=_('Actions')?></label> +<input id="page_edit" type="button" value="<?=_('Edit page')?>" onclick="go_edit_page();"> +<input id="page_delete" type="button" value="<?=_('Delete page')?>" onclick="go_delete_page();"> + +<br><br> + +<label for="page_title"><?=_('Page title')?></label> +<input id="page_title" name="page_title" value=""><br> + +<label for="page_description"><?=_('Page description')?></label> +<input id="page_description" name="page_description" value=""><br> + +<label for="page_keywords"><?=_('Page keywords')?></label> +<input id="page_keywords" name="page_keywords" value=""><br> + +<label for="page_submit"></label> +<input id="page_submit" type="button" value="<?=_('Save properties')?>" onclick="save_page_props();"><br> +</fieldset> + +<fieldset> +<legend><?=_('Media tree')?></legend> +<input id="media_add" class="tree_add" type="button" value="<?=_('Add media')?>" onclick="go_add_form('media');"> +<div class="css-treeview"> +<?php + $media_tree=find_all('../media', 'media'); + //echo '<pre>' . print_r($media_tree,true) . '</pre>' . "\n"; + php_array_to_tree($media_tree, '', 'load_media_props', '', 'mediadir-0'); +?> +</div> +</fieldset> + +<fieldset> +<legend><?=_('Selected Media')?></legend> +<label for="media_path"><?=_('Media path')?></label> +<input id="media_path" name="media_path" readonly="readonly" value="<?=_('(choose a media in the tree)')?>"><br> + +<label for="media_edit"><?=_('Actions')?></label> +<!--<input id="media_edit" type="button" value="Edit media">--> +<input id="media_delete" type="button" value="<?=_('Delete media')?>" onclick="go_delete_media();"> + +<br><br> + +<label for="media_title"><?=_('Media title')?></label> +<input id="media_title" name="media_title" value=""><br> + +<label for="media_description"><?=_('Media description')?></label> +<input id="media_description" name="media_description" value=""><br> +<!-- +<label for="media_keywords">Media keywords</label> +<input id="media_keywords" name="media_keywords" value=""><br> +--> +<label for="media_submit"></label> +<input id="media_submit" type="button" value="<?=_('Save properties')?>" onclick="save_media_props();"><br> +</fieldset> + +<fieldset> +<legend><?=_('Site properties')?></legend> +<label for="site_admin_lang"><?=_('Admin lang')?></label> +<input id="site_admin_lang" name="site_admin_lang" value="<?=$site_conf['site_admin_lang']?>"><br> + +<label for="site_default_page"><?=_('Default page')?></label> +<input id="site_default_page" name="site_default_page" value="<?=$site_conf['site_default_page']?>"><br> + +<label for="site_submit"></label> +<input id="site_submit" type="button" value="<?=_('Save properties')?>" onclick="save_site_props();"><br> +</fieldset> + +</form> +</body> +</html> |