Пример #1
0
<?php

if (isset($tpl['status'])) {
    $status = __('status', true);
    switch ($tpl['status']) {
        case 2:
            pjUtil::printNotice(NULL, $status[2]);
            break;
    }
} else {
    $week_start = isset($tpl['option_arr']['o_week_start']) && in_array((int) $tpl['option_arr']['o_week_start'], range(0, 6)) ? (int) $tpl['option_arr']['o_week_start'] : 0;
    $jqDateFormat = pjUtil::jqDateFormat($tpl['option_arr']['o_date_format']);
    ?>
	<div class="ui-tabs ui-widget ui-widget-content ui-corner-all b10">
		<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
			<li class="ui-state-default ui-corner-top"><a href="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
?controller=pjAdminVouchers&amp;action=pjActionIndex"><?php 
    __('menuVouchers');
    ?>
</a></li>
			<li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active"><a href="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
?controller=pjAdminVouchers&amp;action=pjActionCreate"><?php 
    __('lblAddVoucher');
    ?>
</a></li>
		</ul>
	</div>