Esempio n. 1
0
        print $item['title_6'];
        ?>
"/>
				<span id="label">Descrição</span>
				<?php 
        print returnEditor("content_6", $item['content_6']);
        ?>
				<div class="separator30"></div>
			</div>

			<span id="label">Categoria</span>
			<select name="category">
				<option value="null">Selecione uma Categoria</option>
			<?php 
        $category = new category();
        foreach ($category->returnAllCategories() as $cat) {
            $selected = null;
            if ($cat["id"] === $item["category_id"]) {
                $selected = "selected=\"\"";
            }
            if ($cat['category_type'] === 'products') {
                printf("<option value=\"%s\" %s>%s</option>", $cat["id"], $selected, $cat["name_1"]);
            }
        }
        ?>
			</select>

			<div class="separator30"></div>

			<span id="label">Lista de ficheiros</span>
			<?php 
Esempio n. 2
0
<?php

$object_category = new category();
$category_list = $object_category->returnAllCategories();
?>
<div class="category-list">
	<div class="button-area">
		<button onclick="goTo('./backoffice.php?pg=category-add');" class="green"><?php 
print $language["template"]["add"];
?>
</button>
		<button onclick="buttonAction ('<?php 
print $language["template"]["are-you-sure"];
?>
','category-edit');" class="orange"><?php 
print $language["template"]["edit"];
?>
</button>
		<button onclick="buttonAction ('<?php 
print $language["template"]["are-you-sure"];
?>
','category-del');" class="red"><?php 
print $language["template"]["del"];
?>
</button>
	</div>

	<table class="db-list">
		<tr>
			<th>#</th>
			<th>Categoria</th>