Example #1
0
/**
 * Emits the html page
 */
function pageOut()
{
    global $columns, $rows, $width, $height;
    $style = array("width:{$width}" . "mm", "height:{$height}" . "mm");
    $style = implode(";", $style);
    echo "<div  class='layout' style='{$style}'>\n";
    for ($n = 0; $n < $columns * $rows; $n++) {
        echo addLabel();
    }
    echo "\n</div>";
}
Example #2
0
           SIZE <?php 
            echo $msclass->size . PHP_EOL;
        }
        ?>
           
           <?php 
        foreach ($msclass->sharedMsstyle as $msstyle) {
            addStyle($private_data_path, $msstyle);
        }
        ?>

           <?php 
        $labels = $msclass->sharedMslabel;
        if (!empty($labels)) {
            $mslabel = reset($labels);
            addLabel($mslabel);
        }
        ?>

        END
    <?php 
    }
    ?>

    END
<?php 
}
?>

END
Example #3
0
    die('Invalid query: ' . mysqli_error($db));
}
if (isset($_POST['add-product-button'])) {
    addProduct($db);
    header("Refresh:0");
}
if (isset($_POST['delete-product-button'])) {
    deleteProduct($db);
    header("Refresh:0");
}
if (isset($_POST['add-artist-button'])) {
    addArtist($db);
    header("Refresh:0");
}
if (isset($_POST['add-label-button'])) {
    addLabel($db);
    header("Refresh:0");
}
if (isset($_POST['add-genre-button'])) {
    addGenre($db);
    header("Refresh:0");
}
?>

<!DOCTYPE html>
<html lang="en">
	
	<?php 
include $root_path . "/views/_meta.php";
?>
	<body>