Beispiel #1
0
}
// show directory level
$url = $this->url_alphacontent;
switch (@$this->currentdirectorylevel) {
    case 'directory':
        if ($this->params->get('showdirectory')) {
            $n = $this->numsections;
            $p = $this->percent;
            $directory = $this->directory;
            $c = $this->numcols;
            $cs = $this->colspan;
            show_directory($n, $p, $c, $cs, $url, $directory, $this->params, $this->menuid);
        }
        break;
    case 'section':
        show_section($url, $this->directory, $this->params, $this->menuid);
        break;
    case 'category':
        show_category($url, $this->directory, $this->params, $this->menuid, $this->pagination);
        break;
}
if ($this->contentdescriptiondirectory && $this->params->get('positiondescription') == '1' && @$this->currentdirectorylevel == 'directory') {
    ?>
	<div id="descriptiondirectory">
		<p>
		<?php 
    echo JHTML::_('content.prepare', $this->contentdescriptiondirectory);
    ?>
		</p>
	</div>
<?php 
Beispiel #2
0
</section>
<?php 
/**
 * The template used for displaying page content
 *
 * @package WordPress
 * @subpackage Twenty_Fifteen
 * @since Twenty Fifteen 1.0
 */
// check if the flexible content field has rows of data
if (have_rows('flexible')) {
    // loop through the rows of data
    while (have_rows('flexible')) {
        the_row();
        ?>
	<section class="flex-section" style="background-color:<?php 
        the_sub_field('color');
        ?>
">
		<?php 
        if (get_row_layout() == 'slider') {
            show_slider();
        } elseif (get_row_layout() == 'section') {
            show_section();
        }
        ?>
	</section>
	<?php 
    }
} else {
}
            show_section($dbh);
        }
        break;
    case 'del':
        if ($id) {
            $total = 0;
            $total = pmb_mysql_result(pmb_mysql_query("select count(1) from empr where empr_categ ='" . $id . "' ", $dbh), 0, 0);
            if ($total == 0) {
                $test = pmb_mysql_result(pmb_mysql_query("select count(1) from search_persopac_empr_categ where id_categ_empr ='" . $id . "' ", $dbh), 0, 0);
                if ($test == 0) {
                    $requete = "DELETE FROM empr_categ WHERE id_categ_empr='{$id}' ";
                    $res = pmb_mysql_query($requete, $dbh);
                    $requete = "OPTIMIZE TABLE empr_categ ";
                    $res = pmb_mysql_query($requete, $dbh);
                    $requete = "delete from search_persopac_empr_categ where id_categ_empr = {$id}";
                    $res = pmb_mysql_query($requete, $dbh);
                    show_section($dbh);
                } else {
                    error_message($msg[294], $msg['empr_categ_cant_delete_search_perso'], 1, 'admin.php?categ=empr&sub=categ&action=');
                }
            } else {
                error_message($msg[294], $msg[1708], 1, 'admin.php?categ=empr&sub=categ&action=');
            }
        } else {
            show_section($dbh);
        }
        break;
    default:
        show_section($dbh);
        break;
}