<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$title}</title>
<link href="css/global.css" rel="stylesheet" type="text/css" />
<link href="../menu/css/dropdown/dropdown.css" media="all" rel="stylesheet" type="text/css" />
<link href="../menu/css/dropdown/themes/default/default.advanced.css" media="all" rel="stylesheet" type="text/css" />
<!--[if lt IE 7]>
<script type="text/javascript" src="../menu/js/jquery/jquery.js"></script>
<script type="text/javascript" src="../menu/js/jquery/jquery.dropdown.js"></script>
<![endif]-->
{literal}
<!-- jQuery -->
<script type="text/javascript" src="../jquery/jquery.pack.js"></script>
<!-- markItUp! -->
<script type="text/javascript" src="../jquery/markitup/jquery.markitup.pack.js"></script>
<!-- markItUp! toolbar settings -->
<script type="text/javascript" src="../jquery/markitup/sets/default/set.js"></script>
{/literal}
<!-- markItUp! skin -->
<link rel="stylesheet" type="text/css" href="../jquery/markitup/skins/simple/style.css" />
<!-- markItUp! toolbar skin -->
<link rel="stylesheet" type="text/css" href="../jquery/markitup/sets/default/style.css" />
<!-- Initialize Dojo -->
{literal}
<script src='../dojo/dojo/dojo.js' type='text/javascript'></script>
<script type='text/javascript'>
//<!--
// The following function submits the data from the 'post-form' form
// to a PHP script located at
// 'http://www.dojoforum.com/demo-0.9/xhr/parse_form.php'
// The PHP script simply outputs a string in the format of
// 'Hello $name!', which is then put in the <div> w/ the id
// of 'response'.
//
// NOTE: As with xhrGet, you can also use handleAs to accept
// JSON objects in your load() function.
//dojo.require("dojo.style");
function showPageContent(id) {
if(id==0){
}
dojo.xhrPost ({
// The page that parses the POST request
url: 'manage_content.php?action=showPageContent&page_id='+id,
// Name of the Form we want to submit
//form: 'login',
// Loads this function if everything went ok
load: function (data) {
// Put the data into the appropriate <div>
dojo.byId('content_box').innerHTML = data;
$('#page_text').markItUp(mySettings);
},
// Call this function if an error happened
error: function (error) {
console.error ('Error: ', error);
}
});
}
function updatePageList() {
dojo.xhrPost ({
// The page that parses the POST request
url: 'manage_content.php?action=updateSelectList',
// Name of the Form we want to submit
//form: 'login',
// Loads this function if everything went ok
load: function (data) {
// Put the data into the appropriate <div>
dojo.byId('content_list_select').innerHTML = data;
$('#page_text').markItUp(mySettings);
},
// Call this function if an error happened
error: function (error) {
console.error ('Error: ', error);
}
});
}
function deletePage(id) {
if(confirm("Are you sure you want to delete this page?")){
if(id==0){
}
dojo.xhrPost ({
// The page that parses the POST request
url: 'manage_content.php?action=deletePage&page_id='+id,
// Name of the Form we want to submit
//form: 'login',
// Loads this function if everything went ok
load: function (data) {
// Put the data into the appropriate <div>
dojo.byId('all_pages').innerHTML = data;
updatePageList();
},
// Call this function if an error happened
error: function (error) {
console.error ('Error: ', error);
}
});
}
}
//-->
</script>
{/literal}
</head>
<body>
{literal}
<script type="text/javascript">
<!--
$(document).ready(function() {
// Add markItUp! to your textarea in one line
// $('textarea').markItUp( { Settings }, { OptionalExtraSettings } );
$('#page_text').markItUp(mySettings);
// You can add content from anywhere in your page
// $.markItUp( { Settings } );
$('.add').click(function() {
$.markItUp( { openWith:'<opening tag>',
closeWith:'<\/closing tag>',
placeHolder:"New content"
}
);
return false;
});
// And you can add/remove markItUp! whenever you want
// $(textarea).markItUpRemove();
$('.toggle').click(function() {
if ($("#page_text.markItUpEditor").length === 1) {
$("#page_text").markItUpRemove();
$("span", this).text("get markItUp! back");
} else {
$('#page_text').markItUp(mySettings);
$("span", this).text("remove markItUp!");
}
return false;
});
});
-->
</script>
{/literal}
<div id="page_container">
<div id="admin_header">{include file='admin_header.tpl'}</div>
<div id="admin_nav">{include file='admin_navigation.tpl'}</div>
<div id="contents">
<!-- Manage category controls -->
<div id="manage_cat_box">
{include file='mini_content_nav.tpl'}
<h3>Manage Content Pages</h3>
{include file='create_content_form.tpl'}
<br />
</div>
<!-- end manage categories -->
<!----> <div id="section_info_box">
<h4>Content Pages</h4>
<p>These pages are information pages of your website. Most common pages are About us, contact us, terms and condition, legal and policy pages. </p><p>Using this section you can create and manage these pages. You can also create custom pages.</p>
</div>
<div style="clear:both;"></div>
</div>
<div id="admin_footer">{include file='admin_footer.tpl'}</div>
</div>
</body>
</html>