Skip to content

Instantly share code, notes, and snippets.

@ano
Created September 26, 2017 16:52
Show Gist options
  • Save ano/2536be4646504ee3a068a6222e142ca3 to your computer and use it in GitHub Desktop.
Save ano/2536be4646504ee3a068a6222e142ca3 to your computer and use it in GitHub Desktop.
Empty Machform template for adding custom pages
<?php
/********************************************************************************
MachForm
Copyright 2007-2016 Appnitro Software. This code cannot be redistributed without
permission from http://www.appnitro.com/
More info at: http://www.appnitro.com/
********************************************************************************/
require('includes/init.php');
require('config.php');
require('includes/db-core.php');
require('includes/helper-functions.php');
require('includes/check-session.php');
require('includes/entry-functions.php');
require('includes/users-functions.php');
$header_data =<<<EOT
<link type="text/css" href="js/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" />
<link type="text/css" href="css/pagination_classic.css" rel="stylesheet" />
<link type="text/css" href="css/dropui.css" rel="stylesheet" />
<link type="text/css" href="js/datepick/smoothness.datepick.css" rel="stylesheet" />
<style>
#footer {
display: none;
}
.features {
color: #333;
border-bottom-color: rgb(211, 212, 228);
border-bottom-style: none;
border-bottom-width: 0px;
border-image-outset: 0px;
border-image-repeat: stretch;
border-image-slice: 100%;
border-image-source: none;
border-image-width: 1;
border-left-color: rgb(211, 212, 228);
border-left-style: none;
border-left-width: 0px;
border-right-color: rgb(211, 212, 228);
border-right-style: none;
border-right-width: 0px;
border-top-color: rgb(211, 212, 228);
border-top-style: none;
border-top-width: 0px;
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
font-family: "Open Sans", Helvetica, sans-serif;
font-size: 20px;
font-stretch: normal;
font-style: normal;
font-variant-caps: normal;
font-variant-ligatures: normal;
font-variant-numeric: normal;
font-weight: normal;
height: 1065px;
justify-content: center;
letter-spacing: 1.5px;
line-height: 33px;
list-style-image: none;
list-style-position: outside;
list-style-type: none;
margin-bottom: 40px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
padding-top: 0px;
text-align: center;
text-size-adjust: 100%;
vertical-align: baseline;
width: 1200px;
-webkit-margin-after: 40px;
-webkit-margin-before: 0px;
-webkit-margin-end: 0px;
-webkit-margin-start: 0px;
-webkit-padding-start: 0px;
}
.features li {
background-color: rgba(0, 0, 0, 0.035);
border-bottom-color: rgb(211, 212, 228);
border-bottom-style: none;
none.iconmain.css: 1873 initialhtml, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, videomain.css: 12 border-bottom-width: 0px;
border-image-outset: 0px;
border-image-repeat: stretch;
initialhtml, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, videomain.css: 12 border-image-slice: 100%;
border-image-source: none;
border-image-width: 1;
border-left-color: rgb(211, 212, 228);
border-left-style: none;
border-left-width: 0px;
border-right-color: rgb(211, 212, 228);
border-right-style: none;
border-right-width: 0px;
border-top-color: rgb(211, 212, 228);
border-top-left-radius: 3px;
border-top-style: none;
border-top-width: 0px;
box-sizing: border-box;
color: rgb(211, 212, 228);
display: block;
font-family: "Open Sans", Helvetica, sans-serif;
font-size: 20px;
font-stretch: normal;
font-style: normal;
font-variant-caps: normal;
font-variant-ligatures: normal;
font-variant-numeric: normal;
font-weight: normal;
height: 355px;
letter-spacing: 1.5px;
line-height: 33px;
list-style-image: none;
list-style-position: outside;
list-style-type: none;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
padding-bottom: 40px;
padding-left: 120px;
padding-right: 80px;
padding-top: 80px;
position: relative;
text-align: left;
text-decoration-color: rgb(211, 212, 228);
text-decoration-line: none;
text-decoration-style: solid;
text-size-adjust: 100%;
vertical-align: baseline;
width: 600px;
color: #333;
}
</style>
EOT;
$current_nav_tab = 'manage_forms';
require('includes/header.php');
?>
<div style="position: relative;">
<div style="position: relative; top: 100%; height: 0px;">
<div style="position: relative;"> </div>
</div>
<div id="content" class="full" style="width: 100%;">
<div class="post manage_entries">
<div class="content_body">
<div id="entries_manager_empty">
<section id="three" class="wrapper style3 special">
<div class="inner">
<ul class="features">
<li class="icon fa-paper-plane-o">
<h3>Arcu accumsan</h3>
<p>Augue consectetur sed interdum imperdiet et ipsum. Mauris lorem tincidunt nullam amet leo Aenean ligula consequat consequat.</p>
</li>
<li class="icon fa-laptop">
<h3>Ac Augue Eget</h3>
<p>Augue consectetur sed interdum imperdiet et ipsum. Mauris lorem tincidunt nullam amet leo Aenean ligula consequat consequat.</p>
</li>
<li class="icon fa-code">
<h3>Mus Scelerisque</h3>
<p>Augue consectetur sed interdum imperdiet et ipsum. Mauris lorem tincidunt nullam amet leo Aenean ligula consequat consequat.</p>
</li>
<li class="icon fa-headphones">
<h3>Mauris Imperdiet</h3>
<p>Augue consectetur sed interdum imperdiet et ipsum. Mauris lorem tincidunt nullam amet leo Aenean ligula consequat consequat.</p>
</li>
<li class="icon fa-heart-o">
<h3>Aenean Primis</h3>
<p>Augue consectetur sed interdum imperdiet et ipsum. Mauris lorem tincidunt nullam amet leo Aenean ligula consequat consequat.</p>
</li>
<li class="icon fa-flag-o">
<h3>Tortor Ut</h3>
<p>Augue consectetur sed interdum imperdiet et ipsum. Mauris lorem tincidunt nullam amet leo Aenean ligula consequat consequat.</p>
</li>
</ul>
</div>
</section>
</div>
</div>
<!-- /end of content_body -->
</div>
</div>
<?php
$footer_data =<<<EOT
<script type="text/javascript">
$(function(){
{$jquery_data_code}
});
</script>
<script type="text/javascript" src="js/jquery-ui/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="js/jquery-ui/ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="js/jquery-ui/ui/jquery.ui.tabs.js"></script>
<script type="text/javascript" src="js/jquery-ui/ui/jquery.ui.mouse.js"></script>
<script type="text/javascript" src="js/jquery-ui/ui/jquery.ui.sortable.js"></script>
<script type="text/javascript" src="js/jquery-ui/ui/jquery.ui.draggable.js"></script>
<script type="text/javascript" src="js/jquery-ui/ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="js/jquery-ui/ui/jquery.ui.dialog.js"></script>
<script type="text/javascript" src="js/datepick/jquery.datepick.js"></script>
<script type="text/javascript" src="js/manage_entries.js"></script>
EOT;
require('includes/footer.php');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment