F-002 fix: Remove secrets and externalize config
This commit is contained in:
27
project/web/index/new/inc/atributos.php
Normal file
27
project/web/index/new/inc/atributos.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<fieldset>
|
||||
<?php
|
||||
$atributos = mysqli_query($con," SELECT `oc_attribute_description`.`attribute_id` , `oc_attribute_description`.`language_id` , `oc_attribute_description`.`name` FROM `oc_attribute_description` WHERE `oc_attribute_description`.`language_id` = '4' ORDER BY `oc_attribute_description`.`name`");
|
||||
|
||||
$grupo = 0;
|
||||
$row_count = mysqli_num_rows($atributos);
|
||||
|
||||
//echo $row_count;
|
||||
|
||||
while ($row = mysqli_fetch_assoc($atributos))
|
||||
{
|
||||
if ($grupo == 0) {
|
||||
|
||||
echo '<div class="three columns">';
|
||||
}
|
||||
|
||||
echo '<input type="checkbox" name="atributos[]" value="'. $row['attribute_id'] .'" > ' . ucwords(str_replace("-"," ", $row['name'])) . ' <br>';
|
||||
$grupo++;
|
||||
|
||||
if ($grupo == 4) {
|
||||
|
||||
echo '</div>';
|
||||
$grupo = 0;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</fieldset>
|
||||
Reference in New Issue
Block a user