コード例 #1
0
ファイル: inventory.php プロジェクト: pinaraf/pasteque-server
            echo $help;
            ?>
><?php 
            echo \Pasteque\esc_html($qty);
            ?>
</td>
                 <td><?php 
            echo \Pasteque\esc_html(\i18nCurr($prdSellPrice * $qty));
            ?>
</td>
                 <td><?php 
            echo \Pasteque\esc_html(\i18nCurr($prdBuyPrice * $qty));
            ?>
</td>
                 <td><?php 
            echo \Pasteque\esc_html($security);
            ?>
</td>
                 <td><?php 
            echo \Pasteque\esc_html($max);
            ?>
</td>
		</tr>
<?php 
        }
        ?>
	</tbody>
</table>
<?php 
    }
}
コード例 #2
0
        $content[0][0] = "";
        $content[0][1] = \i18n("Product.reference");
        $content[0][2] = \i18n("Product.label");
        $i = 1;
        if (isset($archivesCat[$category->id])) {
            foreach ($archivesCat[$category->id] as $product) {
                if (!$product->visible) {
                    if ($product->hasImage) {
                        $imgSrc = \Pasteque\PT::URL_ACTION_PARAM . "=img&w=product&id=" . $product->id;
                    } else {
                        $imgSrc = \Pasteque\PT::URL_ACTION_PARAM . "=img&w=product";
                    }
                    $content[$i][0] = "<img class=\"img img-thumbnail thumbnail\" src=\"?" . $imgSrc . "\">";
                    $content[$i][1] = $product->reference;
                    $content[$i][2] = $product->label;
                    $btn_group = \Pasteque\editButton(\i18n('Edit', PLUGIN_NAME), \Pasteque\get_module_url_action(PLUGIN_NAME, 'product_edit', array("id" => $product->id)));
                    $content[$i][2] .= \Pasteque\buttonGroup($btn_group, "pull-right");
                    $i++;
                }
            }
        }
        if (sizeof($content) > 1) {
            echo \Pasteque\row(\Pasteque\secondaryTitle(\Pasteque\esc_html($category->label) . "&nbsp;-&nbsp;" . \i18n("Archived", PLUGIN_NAME)));
            echo \Pasteque\row(\Pasteque\standardTable($content));
        }
        unset($content);
    }
}
if (count($products) == 0) {
    echo \Pasteque\errorDiv(\i18n("No product found", PLUGIN_NAME));
}
コード例 #3
0
ファイル: products.php プロジェクト: booko/pasteque-server
</table>
<?php 
    }
}
if ($archive) {
    ?>
<h2><?php 
    \pi18n("Archived", PLUGIN_NAME);
    ?>
</h2>
<?php 
    foreach ($categories as $category) {
        if (isset($archivesCat[$category->id])) {
            ?>
<h3><?php 
            echo \Pasteque\esc_html($category->label);
            ?>
</h3>
<table cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th></th>
            <th><?php 
            \pi18n("Product.reference");
            ?>
</th>
            <th><?php 
            \pi18n("Product.label");
            ?>
</th>
            <th></th>
コード例 #4
0
"><?php 
\pi18n("Image", PLUGIN_NAME);
?>
</option>
			</select>
		</div>
		<div id="selector-btn" class="row actions">
			<a href="" class="btn" onClick="javascript:selected();return false;"><?php 
\pi18n("OK");
?>
</a>
		</div>
	</div>
	<div id="editor">
		<textarea cols="80" rows="30" id="text" name="content"><?php 
echo \Pasteque\esc_html($txtContent);
?>
</textarea>
		<img id="preview" name="image" src="?<?php 
echo \Pasteque\esc_attr($imgContent);
?>
" /><br />
		<input type="file" name="file" />
		<div class="row actions">
			<?php 
\Pasteque\form_save();
?>
		</div>
	</div>
</form>