Example #1
0
                      </span>
                    </div>
                  </div>
                  <div class="columns">
                    <div class="six-columns twelve-columns-mobile">
                      <label class="label" for="parent_id"><b><?php 
echo $lC_Language->get('text_parent');
?>
</b></label> 
                      <select class="select full-width" id="parent_id" name="parent_id">
                        <option value="0"><?php 
echo $lC_Language->get('text_top_category');
?>
</option>
                        <?php 
foreach ($assignedCategoryTree->getArray() as $value) {
    echo '<option value="' . $value['id'] . '"' . ($cInfo['parent_id'] == $value['id'] ? ' selected' : '') . (in_array($value['id'], lC_Categories_Admin::getChildren($_GET['categories'])) ? ' disabled' : '') . ($value['id'] == $cInfo['categories_id'] ? ' disabled' : '') . '>' . $value['title'] . '</option>' . "\n";
}
?>
                      </select>
                    </div>
                    <div class="six-columns twelve-columns-mobile small-margin-top">  
                      <?php 
echo lc_show_info_bubble($lC_Language->get('info_bubble_categories_parent'), null, 'on-left grey mid-margin-right');
?>
                      <span class="button-group" id="categories_visibility">
                        <?php 
if ($cInfo['parent_id'] == 0) {
    ?>
                        <label class="button blue-active" for="categories_visibility_nav">
                          <input type="checkbox"<?php 
Example #2
0
 public static function assignedCategoryTreeSelect($spacer = 0)
 {
     $assignedCategoryTree = new lC_CategoryTree();
     $assignedCategoryTree->setBreadcrumbUsage(false);
     $assignedCategoryTree->setSpacerString('&nbsp;', 3);
     $assignedCategoryTreeSelect = '';
     foreach ($assignedCategoryTree->getArray() as $value) {
         if ($value['mode'] == 'category') {
             $assignedCategoryTreeSelect .= '<option value="' . $value['id'] . '">' . $value['title'] . '</option>' . "\n";
         }
     }
     return $assignedCategoryTreeSelect;
 }