/** * Prepare standard page templates */ function tpl_page($help = '', $title = '') { tpl_language(); tpl_header($help, $title); tpl_footer(); }
" /> <p><img id="cropme" src="<?php echo $_GET['image']; ?> ?rnd=<?php echo rand(0, 999999); ?> " /></p> <p><input type="submit" value="CROP" /></p> </form> <script type="text/javascript" src="/admin/_resources/MooCrop.js"></script> <script type="text/javascript"> $(window).addEvent('load', function() { window.cropper = new MooCrop($('cropme'), { aspectRatio: <?php echo $_GET['tw']; ?> /<?php echo $_GET['th']; ?> }); }); </script> <?php tpl_footer();
tpl_nav($authCharName, $pNav); tpl_map(); tpl_footer(array('js/intel_settings.js', 'js/intel_map.js', 'js/intel_map_poll.js', 'js/intel_map_draw.js', 'js/intel_map_reports.js', 'js/intel_map_logs.js')); return; } if ($pNav == "settings") { tpl_header(); tpl_nav($authCharName, $pNav); tpl_settings(); tpl_footer(array('js/intel_settings.js')); return; } if ($pNav == "help") { tpl_header(); tpl_nav($authCharName, $pNav); tpl_help(); tpl_footer(array('js/intel_settings.js')); return; } if ($pNav == "uploader") { tpl_header(); tpl_nav($authCharName, $pNav); tpl_uploader(); tpl_footer(array('js/intel_settings.js')); return; } tpl_header(); tpl_nav_empty(); tpl_error(); tpl_footer(array()); }
function app_display_download($tp_table, $cond, $download, $filename) { global $SCHEMA; $tp = _db_temporal($tp_table, $table); $data = _app_getdata($table, $cond); $data["FILENAME"] = $filename; if ($filename) { if ($cb = @$SCHEMA[$table]["FIELDS"][$download]["CB_DOWNLOAD"]) { $data = $cb($data); } tpl_header_download($data); print $data["DATA"][0][$download]; exit(0); } else { tpl_header($data); tpl_body_start($data); print "<tt>" . _tpl_format_ascii($data["DATA"][0][$download]) . "</tt>"; tpl_body_end($data); tpl_footer($data); } }
// shutup php warnings require_once $BASEDIR . "/../common/db/db.php"; require_once $BASEDIR . "/../common/app.php"; app_get_templates(); /////////////////////////////////////////////////////////////////////////// // call the "app stuff" for generic table management if (!$download) { $data = array("TITLE" => "inspect_{$table}", "ACTION" => $_SERVER["PHP_SELF"] . "?table={$table}"); tpl_header($data); tpl_body_start($data); app_links(); if (@$debug) { print_r($_REQUEST); echo "<br>\n"; } } if (isset($_REQUEST["primary"])) { $cond = app_get_id($table, $_REQUEST["primary"]); if ($download) { app_display_download($table, $cond, $download, @$_REQUEST["filename"]); } else { app_display_record($table, $cond); } } else { app_input_record($table); app_display_table($tp_table); } if (!$download) { tpl_body_end(null); tpl_footer(null); }
} else { echo $_["search"]; } ?> " onclick=" if(this.value == '<?php echo $_["search"]; ?> ') { this.value = ''; }" /> </form> </td> </tr> </thead> <tfoot> <tr> <td class="total" colspan="3"><?php echo tpl_footer(); ?> </td> </tr> <tr> <td class="copyright" colspan="3" style="font-size:9px;"> Powered by <a href="http://jframework.info" style="font-size:9px;color:black;text-decoration:none;outline:none;border:0px solid;" title="jFramework 2">jFramework <img src="http://jframework.info/img.jlogo.png" width="12" height="12" style="border:0px solid;"/></a> </td> </tr> </tfoot> <tbody> <?php
function fail() { echo tpl(T_FAIL); tpl_footer(); die; }