pages/purchasing.php

Code: DEV-3C8E12E6 Size: 1.3 KB Lines: 17 Path: /home/prodconfig.wenesthosting.com/dev.solargroup.wenest.se/pages/purchasing.php

Task / Comment

Open report form
<?php
ob_start();
include __DIR__ . '/inkop.php';
$html = ob_get_clean();

$strip = '<div class="page-file-strip">'
    . '<a class="page-file-pill" href="/maps/view.php?file=pages/purchasing.php" target="_blank" rel="noreferrer">purchasing.php <span class="page-file-code">DEV-' . strtoupper(substr(sha1('pages/purchasing.php'), 0, 8)) . '</span></a>'
    . '<a class="page-file-pill" href="/maps/view.php?file=js/purchasing.js" target="_blank" rel="noreferrer">purchasing.js <span class="page-file-code">DEV-' . strtoupper(substr(sha1('js/purchasing.js'), 0, 8)) . '</span></a>'
    . '<a class="page-file-pill" href="/maps/view.php?file=css/purchasing.css" target="_blank" rel="noreferrer">purchasing.css <span class="page-file-code">DEV-' . strtoupper(substr(sha1('css/purchasing.css'), 0, 8)) . '</span></a>'
    . '</div>';

$html = preg_replace('/(<p class="page-subtitle".*?<\/p>)/s', '$1' . $strip, $html, 1);
$html = preg_replace('/<h1 class="page-title" style="margin-bottom:2px">Inköp<\/h1>/', '<h1 class="page-title" style="margin-bottom:2px">Purchasing</h1>', $html, 1);
$html = preg_replace('/<p class="page-subtitle" style="margin:0">Inköpsordrar och materialbeställningar<\/p>/', '<p class="page-subtitle" style="margin:0">Purchase orders and material planning</p>', $html, 1);

echo $html;