Ejemplo n.º 1
0
            </div>
        </fieldSet>
    </div>
</div>
<input type="hidden" name="subgroupData" id="subgroupData" />
        <?php 
\Pasteque\form_save();
?>
</form>

<?php 
\Pasteque\init_catalog("catalog", "catalog-picker", "productPicked", $categories, $products);
?>

<script src="<?php 
echo \Pasteque\get_module_action(PLUGIN_NAME, "control.js");
?>
" type="text/javascript"></script>

<script type="text/javascript">

var tax_rates = new Array();
<?php 
foreach ($taxes as $tax) {
    echo "\ttax_rates[\"" . \Pasteque\esc_js($tax->id) . "\"] = " . $tax->getCurrentTax()->rate . ";\n";
}
?>


    updateSellPrice = function() {
                    var sellvat = jQuery("#sellvat").val();
Ejemplo n.º 2
0
    <div id="floorDivContainer" class="row"></div>

    <div class="row actions">
        <input id="floorData" name="floorData" type="hidden" />
        <?php 
\Pasteque\form_save();
?>
    </div>
</form>

<script src="<?php 
echo \Pasteque\get_module_action(PLUGIN_NAME, "jquery-ui-1.10.3.custom.js");
?>
" type="text/javascript"></script>
<script src="<?php 
echo \Pasteque\get_module_action(PLUGIN_NAME, "moteur.js");
?>
" type="text/javascript"></script>

<script type="text/javascript">
var floorInit;
var newPlaceLabel = "<?php 
\pi18n("New place", PLUGIN_NAME);
?>
";
<?php 
// insert all floors and all places:
foreach ($floors as $floor) {
    echo "floorInit = registerFloor(\"" . $floor->id . "\", \"" . $floor->label . "\");\n";
    foreach ($floor->places as $place) {
        echo "floorInit.registerPlace(\"" . $place->id . "\", \"" . $place->label . "\", " . $place->x . ", " . $place->y . ");\n";