<?php
// J:\awww\www\fwphp\glomodul\mkd\home.php
// L I S T OF D I R S & T X T S TO M K D E D I T
if(''){ echo '<h2>' .'lin='. __LINE__ .' *** '.__FILE__ .' SAYS *** ?????</h2>';
echo '<pre>$pp1='; print_r($pp1); echo '</pre>';
//echo '<br />'.'$ctr_ ordno='.$ctr_ ordno .'=...' ;
//if (isset($_GET)) {print '<br />$_GET='; echo '<pre>'; print_r($_GET); echo '</pre>';
} echo '<br />';
/**
* 1. H D R - D I S P L A Y T O P L I N K S (none here)
*/
?>
<!DOCTYPE html>
<html lang="hr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1 shrink-to-fit=no">
<title><?=$title?></title>
<!--link rel="stylesheet" h ref="/z inc/themes/bootstrap/css/bootstrap.min.css"-->
<link rel="stylesheet" href="/vendor/b12phpfw/themes/flex_2cols.css">
</head>
<body>
<!--
2. m a i n - container for a r t i c l e & a s i d e (flex_2cols.css)
-->
<main>
<!--
2.1 m a i n . a r t i c l e
-->
<article>
<?php
/**
* D I S P L A Y M O D E L D A T A - DIRS AND FILES
* (GUI BLOCK) - LIST OF FILES LIKE IN lsweb M O D U L E
*/
include_once $pp1->module_path . '/model.php';
if (isset($data)) {
foreach($data as $htmlline) { echo $htmlline; }
} ?>
<?php include $pp1->wsroot_path . '/vendor/b12phpfw/ftr.php'; ?>
</article><!-- e n d m a i n . a r t i c l e -->
<!--
2.2 m a i n . a s i d e right column for links...
J:\awww\www\readme.md
-->
<aside>
Side mnu important links (modules)...
<!-- http://sspc2:8083/fwphp/glomodul/mkd/?i/edit/path/J:\awww\www\readme.md -->
<br /><br /><a target="_blank" href="<?=$pp1->edit . $pp1->readme_path?>"
title="<?=$pp1->edit . $pp1->readme_path?> = SimpleMDE edit"
>Edit readme.md
</a>
<!-- http://sspc2:8083/fwphp/glomodul/mkd/?i/showhtml/path/J:\awww\www\readme.md -->
<a target="_blank" href="<?=$pp1->showhtml . $pp1->readme_path?>"
title="<?=$pp1->showhtml . $pp1->readme_path?> = Parsedown markdown txt to html"
>HTML</a>
<br /><br /><br /><hr />
<b>Path key-value</b> - <b>example below</b>) MUST BE <u>Windows path</u>, which, where needed, code changes to Linux path.
<br /><br />
<pre>
You can <b>EDIT</b> any markdown txt using URL query "i/edit/path/J:\awww\www\readme.md" like this:
<br />http://sspc2:8083/fwphp/glomodul/mkd/?i/edit/<b>path</b>/J:\awww\www\readme.md
You can <b>DISPLAY</b> any markdown txt using URL like this:
<br />http://sspc2:8083/fwphp/glomodul/mkd/?i/showhtml/<b>path</b>/J:\awww\www\readme.md
</pre>
<p>
</p>
<pre>
_.-'''''-._
.' _ _ '.
/ (o) (o) \
| © |
| Slavko Srako?i? |
\ '. Zagreb.' /
'. ''---'' .'
'-._____.'
</pre>
</aside><!-- e n d m a i n . a s i d e right column for links -->
</main><!-- e n d m a i n - container for a r t i c l e & a s i d e -->
</body>
</html
|