Beispiel #1
0
<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
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 
<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" 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">
\Pasteque\form_input("edit", "Customer", $cust, "addr1", "string");
?>
	<?php 
\Pasteque\form_input("edit", "Customer", $cust, "addr2", "string");
?>
	<?php 
\Pasteque\form_input("edit", "Customer", $cust, "zipCode", "string");
?>
	<?php 
\Pasteque\form_input("edit", "Customer", $cust, "city", "string");
?>
	<?php 
\Pasteque\form_input("edit", "Customer", $cust, "region", "string");
?>
	<?php 
\Pasteque\form_input("edit", "Customer", $cust, "country", "string");
?>
	</fieldset>

	<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');
    ?>
<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" 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">
Beispiel #5
0
if ($product != NULL) {
    echo 'value="' . $product->barcode . '"';
}
?>
 />
            <a class="btn" href="" onClick="javascript:generateBarcode(); return false;"><?php 
\pi18n("Generate");
?>
</a>
        </div>
    </div>
    <?php 
if ($attributes) {
    ?>
    <?php 
    \Pasteque\form_input("edit", "Product", $product, "attributeSetId", "pick", array("model" => "AttributeSet", "nullable" => true));
    ?>
    <?php 
}
?>
    </fieldset>

    <div class="row actions">
        <?php 
\Pasteque\form_save();
?>
    </div>
</form>

<script type="text/javascript">
    var tax_rates = new Array();
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form id="form" class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post" enctype="multipart/form-data">
	<?php 
\Pasteque\form_hidden("edit", $resource, "id");
?>
	<div class="row">
		<?php 
\Pasteque\form_input("edit", "Resource", $resource, "label", "string", array("required" => true));
?>
	</div>
	<div id="selector">
		<div class="row">
			<select id="type-selector">
				<option selected="true" value="<?php 
echo \Pasteque\Resource::TYPE_TEXT;
?>
"><?php 
\pi18n("Text", PLUGIN_NAME);
?>
</option>
				<option value="<?php 
echo \Pasteque\Resource::TYPE_IMAGE;
?>
</td>
			<td><?php 
        \Pasteque\tpl_js_btn("", "del('" . $value->id . "');", "", "", "delete.png");
        ?>
</td>
		</tr>
	<?php 
    }
}
?>
	<?php 
for ($i = 0; $i < 5; $i++) {
    ?>
		<tr>
			<td><?php 
    \Pasteque\form_input("new", "AttributeValue", null, "label", "string", array("nolabel" => true, "nameid" => true, "array" => true));
    ?>
</td>
			<td></td>
		</tr>
	<?php 
}
?>
		</tbody>
	</table>

	<div class="row actions">
		<?php 
\Pasteque\form_save();
?>
	</div>
            <input id="margin" type="numeric" disabled="true" />
        </div>
        <?php 
if ($discounts) {
    \Pasteque\form_input("edit", "Product", $composition, "discountEnabled", "boolean", array("default" => FALSE));
    \Pasteque\form_input("edit", "Product", $composition, "discountRate", "numeric");
}
?>
        </fieldset>
        <fieldset>
            <legend><?php 
\pi18n("Referencing", PLUGIN_NAME);
?>
</legend>
            <?php 
\Pasteque\form_input("edit", "Product", $composition, "reference", "string", array("required" => true));
?>
            <div class="row">
                <label for="barcode"><?php 
\pi18n("Product.barcode");
?>
</label>
                <div style="display:inline-block; max-width:65%;">
                    <img id="barcodeImg" src="" />
                    <input id="barcode" type="text" name="barcode" <?php 
if ($composition != NULL) {
    echo 'value="' . $composition->barcode . '"';
}
?>
 />
                    <a class="btn" href="" onClick="javascript:generateBarcode(); return false;"><?php 
Beispiel #9
0
<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" id="edit" method="post">
	<?php 
\Pasteque\form_hidden("edit", $area, "id");
?>
	<?php 
\Pasteque\form_input("edit", "TariffArea", $area, "label", "string", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "TariffArea", $area, "dispOrder", "numeric", array("required" => true));
?>

    <div id="catalog-picker"></div>

	<table cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<th></th>
				<th><?php 
\pi18n("Product.reference");
?>
</th>
				<th><?php 
\pi18n("Product.label");
?>
Beispiel #10
0
\Pasteque\form_input("edit", "Currency", $currency, "symbol", "string", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "Currency", $currency, "decimalSeparator", "string");
?>
	<?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">
Beispiel #11
0
		</tr>
	<?php 
    }
}
?>
		<tr>
			<td><?php 
\Pasteque\form_input("new", "Tax", null, "label", "string", array("nolabel" => true, "nameid" => true));
?>
</td>
			<td><?php 
\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) {
Beispiel #12
0
">
			<td><?php 
        \Pasteque\form_input("attr", "Attribute", $value, "id", "pick", array("model" => "Attribute", "nullable" => true, "nolabel" => true, "array" => true, "nameid" => true));
        ?>
</td>
		</tr>
	<?php 
    }
}
?>
	<?php 
for ($i = 0; $i < 5; $i++) {
    ?>
		<tr>
			<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>
	
Beispiel #13
0
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<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">
Beispiel #14
0
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post">
    <?php 
\Pasteque\form_hidden("edit", $role, "id");
?>
	<?php 
\Pasteque\form_input("edit", "Role", $role, "name", "string", array("required" => true));
?>
	<h2><?php 
\pi18n("Permissions", PLUGIN_NAME);
?>
</h2>
    <?php 
foreach ($ALL_PERMS as $perm) {
    ?>
    <?php 
    $checked = isset($role) && $role->hasPermission($perm) ? ' checked="true"' : "";
    ?>
    <div class="row">
    	<input id="perm-<?php 
    echo \Pasteque\esc_attr($perm);
    ?>
Beispiel #15
0
<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
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 
Beispiel #16
0
?>
" method="post" enctype="multipart/form-data">
    <?php 
\Pasteque\form_hidden("edit", $category, "id");
?>
	<?php 
\Pasteque\form_input("edit", "Category", $category, "label", "string", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "Category", $category, "reference", "string", array("required" => false));
?>
	<?php 
\Pasteque\form_input("edit", "Category", $category, "parentId", "pick", array("model" => "Category", "nullable" => TRUE));
?>
	<?php 
\Pasteque\form_input("edit", "Category", $category, "dispOrder", "numeric");
?>
	<div class="row">
		<label for="image"><?php 
\pi18n("Image", PLUGIN_NAME);
?>
</label>
		<div style="display:inline-block">
			<input type="hidden" id="clearImage" name="clearImage" value="0" />
		<?php 
if ($category !== null && $category->hasImage) {
    ?>
			<img id="img" class="image-preview" src="?<?php 
    echo \Pasteque\PT::URL_ACTION_PARAM;
    ?>
=img&w=category&id=<?php 
Beispiel #17
0
\Pasteque\form_input("edit", "Provider", $provider, "zipCode", "string");
?>
	<?php 
\Pasteque\form_input("edit", "Provider", $provider, "city", "string");
?>
	<?php 
\Pasteque\form_input("edit", "Provider", $provider, "region", "string");
?>
	<?php 
\Pasteque\form_input("edit", "Provider", $provider, "country", "string");
?>
	<?php 
\Pasteque\form_input("edit", "Provider", $provider, "notes", "text");
?>
	<?php 
\Pasteque\form_input("edit", "Provider", $provider, "visible", "boolean");
?>
	</fieldset>

	<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');
    ?>
Beispiel #18
0
<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" id="edit" method="post">
	<?php 
\Pasteque\form_hidden("edit", $area, "id");
?>
	<?php 
\Pasteque\form_input("edit", "TariffArea", $area, "label", "string", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "TariffArea", $area, "dispOrder", "numeric", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "TariffArea", $area, "notes", "text");
?>

    <div id="catalog-picker"></div>

	<table cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<th></th>
				<th><?php 
\pi18n("Product.reference");
?>
</th>
				<th><?php 
\pi18n("Product.label");
?>