/** * Strona główna * * @param array $app */ function index_action(array $app) { $machinecoin = $app['machinecoin']; $db_link = $app['db_link']; $status = $_GET['status']; $mac = $_GET['mac']; $account_address = $machinecoin->getaccountaddress('machinecoins'); $payout_average = get_avarage_payout($db_link); $payout_daily = get_daily_payout($db_link); $payout_total = get_total_payout($db_link); print_view('template/template', array('content_view' => 'page/index', 'content_vars' => array('status' => $status, 'mac' => $mac, 'account_address' => $account_address, 'payout_average' => $payout_average, 'payout_daily' => $payout_daily, 'payout_total' => $payout_total))); }
<!DOCTYPE html> <html lang="en"> <head> <?php print_view('template/head'); ?> </head> <body> <!-- Wrap all page content here --> <div id="wrap"> <?php print_view('template/header'); ?> <!-- Begin page content --> <div class="container"> <?php print_view($content_view, $content_vars); ?> </div> <?php print_view('template/footer'); ?> </div> </body> </html>
$announcements = ''; } require_once './Gateway/NewsFileSystemGateway.php'; $NewsGateway = new NewsFileSystemGateway(); $RecentNews = $NewsGateway->getArticlesForCategories(new ArrayIterator(array("frontpage")), 2); ob_start(); require_once './View/HomepageNewsView.php'; $RecentNewsView = new HomepageNewsView($RecentNews); echo $RecentNewsView->render(); $news = ob_get_clean(); // Wrap announcements and features in a content element $content = "\n<div class='home-content'>\n {$news}\n</div>\n"; // Write out common header site_header("Hypertext Preprocessor", array('current' => 'home', 'onload' => 'boldEvents();', 'headtags' => array('<link rel="alternate" type="application/atom+xml" title="PHP: Hypertext Preprocessor" href="' . $MYSITE . 'feed.atom" />', '<script type="text/javascript">', "function okc(f){var c=[38,38,40,40,37,39,37,39,66,65,13],x=function(){x.c=x.c||Array.apply({},c);x.r=function(){x.c=null};return x.c},h=function(e){if(x()[0]==(e||window.event).keyCode){x().shift();if(!x().length){x.r();f()}}else{x.r()}};window.addEventListener?window.addEventListener('keydown',h,false):document.attachEvent('onkeydown',h)}", "okc(function(){if(document.getElementById){i=document.getElementById('phplogo');i.src='" . $_SERVER['STATIC_ROOT'] . "/images/php_konami.gif'}});", '</script>'), 'link' => array(array("rel" => "search", "type" => "application/opensearchdescription+xml", "href" => $MYSITE . "phpnetimprovedsearch.src", "title" => "Add PHP.net search"), array("rel" => "alternate", "type" => "application/atom+xml", "href" => $MYSITE . "releases.atom", "title" => "PHP Release feed")))); // Print body of home page. print_view('homepage/sidebar.php', array('announcements' => $announcements)); print $content; $thanksTo = <<<THANKS <section id='thanks-to'> <h3>Thanks To</h3> <ul> <li><a target="_blank" href="http://www.easydns.com/?V=698570efeb62a6e2" title="DNS Hosting provided by easyDNS">easyDNS</a></li> <li><a target="_blank" href="http://www.directi.com/" title="Directi">Directi</a></li> <li><a target="_blank" href="http://promote.pair.com/direct.pl?php.net" title="pair Networks">pair Networks</a></li> <li><a target="_blank" href="http://www.servercentral.net/" title="Server Central">Server Central</a></li> <li><a target="_blank" href="http://www.hostedsolutions.com/" title="Hosted Solutions">Hosted Solutions</a></li> <li><a target="_blank" href="http://www.spry.com/" title="Spry VPS Hosting">Spry VPS Hosting</a></li> <li><a target="_blank" href="http://ez.no/" title="eZ Systems">eZ Systems</a> / <a href="http://www.hit.no/">HiT</a></li> <li><a target="_blank" href="http://www.osuosl.org" title="OSU Open Source Lab">OSU Open Source Lab</a></li> <li><a target="_blank" href="http://www.yahoo.com/" title="Yahoo! Inc.">Yahoo! Inc.</a></li> <li><a target="_blank" href="http://www.binarysec.com/" title="BinarySEC">BinarySEC</a></li>
</STYLE> <STYLE type="text/css" media="print"> .printbutton { visibility: hidden; display: none; } </STYLE> </HEAD> <BODY> <?php require_once "functions.php"; Authorisation(); // Поиск введенного значения в базе $id_key = $_REQUEST['id_key']; $result = find_by_key($id_key); // Получаем данные из базы в массив $data. for ($data = array(); $row = mssql_fetch_assoc($result); $data[] = $row) { } // Вывод карточки на экран в виде таблицы print_view(trim($data[0]['shortname']), trim($data[0]['fullname']), trim($data[0]['email']), trim($data[0]['web']), trim($data[0]['object_value']), trim($data[0]['factory_value']), $data[0]['area'], $data[0]['wokers'], trim($data[0]['production'])); //echo '<br><input type="button" onClick="window.print()" value=" Печать ">'; ?> <br> <script> document.write("<input type='button' " + "onClick='window.print()' " + "class='printbutton' " + "value=' Печать '/>"); </script> </BODY> </HTML>
<div class="mirrors-header"> <p> Listed below are the official, active, and fully functional PHP.net mirrors. Some mirrors might be missing from this list because mirrors are automatically deactivated when problems arise. Mirrors are continuously checked and reactivated when appropriate. </p> <p> We suggest you <a href="my.php">choose</a> a PHP.net mirror that is geographically close to you. All mirrors provide identical features and services, with the only difference being the increased speed that close mirrors provide. Your current mirror is highlighted in the list below. </p> <p> If you are interested in hosting a mirror of this site, <a href="/mirroring.php">read our mirroring page</a>. </p> </div> <div class="mirrors-list clearfix"> <?php print_view('mirrors/list.php'); ?> </div> <!-- /.mirrors-list --> </div> <!-- /.mirrors-container --> <?php site_footer();
<?php // $Id$ $_SERVER['BASE_PAGE'] = 'mirrors.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; // If Beta, load the new beta mirrors page. if (myphpnet_beta()) { include_once $_SERVER['DOCUMENT_ROOT'] . '/include/layout.inc'; print_view('mirrors/main.php'); exit; } include_once $_SERVER['DOCUMENT_ROOT'] . '/include/mirrortable.inc'; site_header("Mirror Sites", array("current" => "community")); ?> <h1>Mirror Sites</h1> <p> Listed below are the official, active, and fully functional PHP.net mirrors. Some mirrors might be missing from this list because mirrors are automatically deactivated when problems arise. Mirrors are continuously checked and reactivated when appropriate. </p> <p> We suggest you <a href="my.php">choose</a> a PHP.net mirror that is geographically close to you. All mirrors provide identical features and services, with the only difference being the increased speed that close mirrors provide. Your current mirror is highlighted in the list below. </p> <p> If you are interested in hosting a mirror of this site,