?> " method="post" enctype="multipart/form-data"> <?php \Pasteque\form_hidden("edit", $cashReg, "id"); ?> <?php \Pasteque\form_input("edit", "CashRegister", $cashReg, "label", "string", array("required" => true)); ?> <?php \Pasteque\form_input("edit", "CashRegister", $cashReg, "locationId", "pick", array("model" => "Location")); ?> <div class="row actions"> <?php \Pasteque\form_save(); ?> </div> </form> <?php if ($cashReg !== NULL) { ?> <form action="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'cashregisters'); ?> " method="post"> <?php \Pasteque\form_delete("cashreg", $cashReg->id); ?> </form> <?php }
<div class="row actions"> <?php \Pasteque\form_save(); ?> </div> </form> <?php if ($cust !== NULL) { ?> <form action="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'customers'); ?> " method="post"> <?php \Pasteque\form_delete("customer", $cust->id); ?> </form> <?php } ?> <script type="text/javascript"> updateBarcode = function() { var barcode = jQuery("#barcode").val(); var src = "?<?php echo \Pasteque\PT::URL_ACTION_PARAM; ?> =img&w=custcard&code=" + barcode; jQuery("#barcodeImg").attr("src", src); }
echo $par ? 'par' : 'odd'; ?> "> <td><?php echo $set->label; ?> </td> <td class="edition"> <?php \Pasteque\tpl_btn("edition", \Pasteque\get_module_url_action(PLUGIN_NAME, 'set_edit', array("id" => $set->id)), "", 'img/edit.png', \i18n('Edit'), \i18n('Edit')); ?> <form action="<?php echo \Pasteque\get_current_url(); ?> " method="post"><?php \Pasteque\form_delete("set", $set->id, \Pasteque\get_template_url() . 'img/delete.png'); ?> </form> </td> </tr> <?php } ?> </tbody> </table> <?php if (count($sets) == 0) { ?> <div class="alert"><?php \pi18n("No attribute set found", PLUGIN_NAME); ?>
?> " method="post" enctype="multipart/form-data"> <?php \Pasteque\form_hidden("edit", $profile, "id"); ?> <?php \Pasteque\form_input("edit", "DiscountProfile", $profile, "label", "string", array("required" => true)); ?> <?php \Pasteque\form_input("edit", "DiscountProfile", $profile, "rate", "float", array("required" => true)); ?> <div class="row actions"> <?php \Pasteque\form_save(); ?> </div> </form> <?php if ($profile !== NULL) { ?> <form action="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'discountprofiles'); ?> " method="post"> <?php \Pasteque\form_delete("profile", $profile->id); ?> </form> <?php }
echo $par ? 'par' : 'odd'; ?> "> <td><img class="thumbnail" src="?<?php echo $imgSrc; ?> " /> <td><?php echo $composition->label; ?> </td> <td class="edition"> <?php \Pasteque\tpl_btn("edition", \Pasteque\get_module_url_action(PLUGIN_NAME, 'composition_edit', array("productId" => $composition->id)), "", 'img/edit.png', \i18n('Edit'), \i18n('Edit')); ?> <form action="<?php echo \Pasteque\get_current_url(); ?> " method="post"><?php \Pasteque\form_delete("comp", $composition->id, \Pasteque\get_template_url() . 'img/delete.png'); ?> </form> </td> </tr> <?php } } ?> </tbody> </table> <?php
function printCategory($printCategory, $level, &$par) { $par = !$par; if ($printCategory->hasImage) { $imgSrc = \Pasteque\PT::URL_ACTION_PARAM . "=img&w=category&id=" . $printCategory->id; } else { $imgSrc = \Pasteque\PT::URL_ACTION_PARAM . "=img&w=category"; } ?> <tr class="row-<?php echo $par ? 'par' : 'odd'; ?> "> <td> <?php for ($i = 0; $i < $level; $i++) { echo " "; } ?> <img class="thumbnail" src="?<?php echo $imgSrc; ?> " /> <td><?php echo $printCategory->label; ?> </td> <td class="edition"> <?php \Pasteque\tpl_btn("edition", \Pasteque\get_module_url_action(PLUGIN_NAME, 'category_edit', array("id" => $printCategory->id)), "", 'img/edit.png', \i18n('Edit'), \i18n('Edit')); ?> <form action="<?php echo \Pasteque\get_current_url(); ?> " method="post"><?php \Pasteque\form_delete("cat", $printCategory->id, \Pasteque\get_template_url() . 'img/delete.png'); ?> </form> </td> </tr> <?php $categories = \Pasteque\CategoriesService::getChildren($printCategory->id); $level++; foreach ($categories as $childCategory) { printCategory($childCategory, $level, $par); } }
\Pasteque\form_input("new", "Tax", null, "rate", "float", array("nolabel" => true, "nameid" => true)); ?> </td> <td><?php \Pasteque\form_input("new", "Tax", null, "startDate", "date", array("nolabel" => true, "nameid" => true)); ?> </td> </tr> </tbody> </table> <div class="row actions"> <?php \Pasteque\form_save(); ?> </div> </form> <?php if ($taxCat !== null) { ?> <form action="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'taxes'); ?> " method="post"> <?php \Pasteque\form_delete("taxcat", $taxCat->id); ?> </form> <?php }
echo $currency->label; ?> </td> <td><?php if ($currency->isMain) { \pi18n("Main", PLUGIN_NAME); } else { echo $currency->rate; } ?> </td> <td class="edition"> <?php \Pasteque\tpl_btn("edition", \Pasteque\get_module_url_action(PLUGIN_NAME, 'currency_edit', array("id" => $currency->id)), "", 'img/edit.png', \i18n('Edit'), \i18n('Edit')); ?> <form action="<?php echo \Pasteque\get_current_url(); ?> " method="post"><?php \Pasteque\form_delete("currency", $currency->id, \Pasteque\get_template_url() . 'img/delete.png'); ?> </form> </td> </tr> <?php } ?> </tbody> </table> <?php
<td><?php \Pasteque\form_input("attr", "Attribute", null, "id", "pick", array("model" => "Attribute", "nullable" => true, "nolabel" => true, "array" => true, "nameid" => true)); ?> </td> </tr> <?php } ?> </tbody> </table> <div class="row actions"> <?php \Pasteque\form_save(); ?> </div> </form> <?php if ($set !== null) { ?> <form action="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'sets'); ?> " method="post"> <?php \Pasteque\form_delete("set", $set->id); ?> </form> <?php }
\Pasteque\form_input("edit", "Currency", $currency, "thousandsSeparator", "string"); ?> <?php \Pasteque\form_input("edit", "Currency", $currency, "format", "string", array("required" => true)); ?> <?php \Pasteque\form_input("edit", "Currency", $currency, "isMain", "boolean"); ?> <?php \Pasteque\form_input("edit", "Currency", $currency, "isActive", "boolean"); ?> <div class="row actions"> <?php \Pasteque\form_save(); ?> </div> </form> <?php if ($currency->id !== NULL) { ?> <form action="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'currencies'); ?> " method="post"> <?php \Pasteque\form_delete("cat", $currency->id); ?> </form> <?php }
<form class="edit" action="<?php echo \Pasteque\get_current_url(); ?> " method="post" enctype="multipart/form-data"> <?php \Pasteque\form_hidden("edit", $location, "id"); ?> <?php \Pasteque\form_input("edit", "Location", $location, "label", "string", array("required" => true)); ?> <div class="row actions"> <?php \Pasteque\form_save(); ?> </div> </form> <?php if ($location !== NULL) { ?> <form action="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'locations'); ?> " method="post"> <?php \Pasteque\form_delete("location", $location->id); ?> </form> <?php }
?> </td> <td class="edition"> <a href="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'cust_tax_edit', array('id' => $custTax->id)); ?> "><img src="<?php echo \Pasteque\get_template_url(); ?> img/edit.png" alt="<?php \pi18n('Edit'); ?> " title="<?php \pi18n('Edit'); ?> "></a> <form action="<?php echo \Pasteque\get_current_url(); ?> " method="post"><?php \Pasteque\form_delete("custtax", $custTax->id, \Pasteque\get_template_url() . 'img/delete.png'); ?> </form> </td> </tr> <?php } ?> </tbody> </table> <?php
foreach ($attributes as $attr) { ?> <tr> <td><?php echo $attr->label; ?> </td> <td class="edition"> <?php \Pasteque\tpl_btn("edition", \Pasteque\get_module_url_action(PLUGIN_NAME, 'attribute_edit', array("id" => $attr->id)), "", 'img/edit.png', \i18n('Edit'), \i18n('Edit')); ?> <form action="<?php echo \Pasteque\get_current_url(); ?> " method="post"><?php \Pasteque\form_delete("attribute", $attr->id, \Pasteque\get_template_url() . 'img/delete.png'); ?> </form> </td> </tr> <?php } ?> </tbody> </table> <?php if (count($attributes) == 0) { ?> <div class="alert"><?php \pi18n("No attribute found", PLUGIN_NAME); ?>
function printprovider($printprovider, $level, &$par) { $par = !$par; if ($printprovider->hasImage) { $imgSrc = \Pasteque\PT::URL_ACTION_PARAM . "=img&w=provider&id=" . $printprovider->id; } else { $imgSrc = \Pasteque\PT::URL_ACTION_PARAM . "=img&w=provider"; } ?> <tr class="row-<?php echo $par ? 'par' : 'odd'; ?> "> <td> <?php for ($i = 0; $i < $level; $i++) { echo " "; } ?> <img class="thumbnail" src="?<?php echo $imgSrc; ?> " /> <td><?php echo $printprovider->label; ?> </td> <td class="edition"> <?php \Pasteque\tpl_btn("edition", \Pasteque\get_module_url_action(PLUGIN_NAME, 'provider_edit', array("id" => $printprovider->id)), "", 'img/edit.png', \i18n('Edit'), \i18n('Edit')); ?> <form action="<?php echo \Pasteque\get_current_url(); ?> " method="post"><?php \Pasteque\form_delete("prov", $printprovider->id, \Pasteque\get_template_url() . 'img/delete.png'); ?> </form> </td> </tr> <?php }
foreach ($areas as $area) { ?> <tr> <td><?php echo $area->label; ?> </td> <td class="edition"> <?php \Pasteque\tpl_btn("edition", \Pasteque\get_module_url_action(PLUGIN_NAME, 'area_edit', array("id" => $area->id)), "", 'img/edit.png', \i18n('Edit'), \i18n('Edit')); ?> <form action="<?php echo \Pasteque\get_current_url(); ?> " method="post"><?php \Pasteque\form_delete("area", $area->id, \Pasteque\get_template_url() . 'img/delete.png'); ?> </form> </td> </tr> <?php } ?> </tbody> </table> <?php if (count($areas) == 0) { ?> <div class="alert"><?php \pi18n("No area found", PLUGIN_NAME); ?>
echo \Pasteque\get_current_url(); ?> " method="post"> <?php \Pasteque\form_hidden("edit", $user, "id"); ?> <?php \Pasteque\form_input("edit", "User", $user, "name", "string", array("required" => true)); ?> <?php \Pasteque\form_input("edit", "User", $user, "roleId", "pick", array("model" => "Role")); ?> <div class="row actions"> <?php \Pasteque\form_save(); ?> </div> </form> <?php if ($user !== null) { ?> <form action="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'users'); ?> " method="post"> <?php \Pasteque\form_delete("user", $user->id); ?> </form> <?php }
<div class="row actions"> <?php \Pasteque\form_save(); ?> </div> </form> <?php if ($category !== NULL) { ?> <form action="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'categories'); ?> " method="post"> <?php \Pasteque\form_delete("cat", $category->id); ?> </form> <?php } ?> <script type="text/javascript"> clearImage = function() { jQuery("#img").hide(); jQuery("#clear").hide(); jQuery("#restore").show(); jQuery("#clearImage").val(1); } restoreImage = function() { jQuery("#img").show();
echo \Pasteque\get_current_url(); ?> " method="post"> <?php \Pasteque\form_hidden("edit", $custTax, "id"); ?> <?php \Pasteque\form_input("edit", "CustTaxCat", $custTax, "label", "string", array("required" => true)); ?> <?php \Pasteque\form_input("edit", "CustTaxCat", $custTax, "taxCatId", "pick", array("model" => "Tax", "nullable" => true)); ?> <div class="row actions"> <?php \Pasteque\form_save(); ?> </div> </form> <?php if ($custTax !== NULL) { ?> <form action="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'cust_taxes'); ?> " method="post"> <?php \Pasteque\form_delete("custtax", $custTax->id); ?> </form> <?php }
</tbody> </table> <div class="row actions"> <?php \Pasteque\form_save(); ?> </div> </form> <?php if ($attribute !== null) { ?> <form action="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'attributes'); ?> " method="post"> <?php \Pasteque\form_delete("attribute", $attribute->id); ?> </form> <?php } ?> <script type="text/javascript"> del = function(id) { jQuery("#line-" + id).remove(); jQuery("form.edit").append("<input type=\"hidden\" name=\"delete[]\" value=\"" + id + "\" />"); } </script> <?php
<div class="row actions"> <?php \Pasteque\form_save(); ?> </div> </form> <?php if ($provider !== NULL) { ?> <form action="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'providers'); ?> " method="post"> <?php \Pasteque\form_delete("prov", $provider->id); ?> </form> <?php } ?> <script type="text/javascript"> clearImage = function() { jQuery("#img").hide(); jQuery("#clear").hide(); jQuery("#restore").show(); jQuery("#clearImage").val(1); } restoreImage = function() { jQuery("#img").show();
<label for="perm-<?php echo \Pasteque\esc_attr($perm); ?> "><?php echo \pi18n($perm, PLUGIN_NAME); ?> </label> </div> <?php } ?> <div class="row actions"> <?php \Pasteque\form_save(); ?> </div> </form> <?php if ($role !== NULL) { ?> <form action="<?php echo \Pasteque\get_module_url_action(PLUGIN_NAME, 'roles'); ?> " method="post"> <?php \Pasteque\form_delete("role", $role->id); ?> </form> <?php }