<h1><?php 
\pi18n("Inventory", PLUGIN_NAME);
?>
</h1>

<?php 
if ($multilocations) {
    // Location picker
    ?>
<form class="edit" action="<?php 
    echo \Pasteque\get_current_url();
    ?>
" method="post">
	<div class="row">
		<?php 
    \Pasteque\form_select("location", \i18n("Location"), $locIds, $locNames, $currLocation);
    ?>
	</div>
	<div class="row actions">
		<?php 
    \Pasteque\form_send();
    ?>
	</div>
</form>
<?php 
}
$par = false;
foreach ($categories as $category) {
    if (isset($prdCat[$category->id])) {
        // Category header
        ?>
Exemple #2
0
<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" id="move" method="post" enctype="multipart/form-data">
	<?php 
if ($multilocations) {
    \Pasteque\form_select("location", \i18n("Location"), $locIds, $locNames, null);
}
?>
	<?php 
\Pasteque\form_select("reason", \i18n("Operation", PLUGIN_NAME), $reasonIds, $reasonNames, null);
?>
	<?php 
if ($multilocations) {
    \Pasteque\form_select("destination", \i18n("Destination"), $locIds, $locNames, null);
}
?>
	<div class="row">
		<label for="date"><?php 
\pi18n("Date", PLUGIN_NAME);
?>
</label>
		<input type="text" class="dateinput" name="date" id="date" value="<?php 
echo $dateStr;
?>
" />
	</div>

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