<?php

ini_set('display_errors', 1);
error_reporting(E_ALL ^ E_NOTICE);
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/stdf.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/tservices/tservices_categories.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/tservices/tservices_tags.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/tservices/tservices.php';
$tservices_categories = new tservices_categories();
$result = $tservices_categories->getTitleAndSubtitle(10);
assert('$result == array("spec_title" => "Веб-программирование", "group_title" => "Разработка сайтов")');
$result = $tservices_categories->getCategoryParentId(10);
assert('$result == 7');
$tservices_tags = new tservices_tags();
$result = $tservices_tags->getsByTServiceId(39);
assert('$result == array( 0 => "альбом", 1 => "бронировать", 2 => "забронировать", 3 => "заказать", 4 => "заказывать", 5 => "зарезервировать" )');
$tservices = new tservices(2);
$result = $tservices->isExistFeedbacks(27);
assert('$result == 2');
$result = $tservices->getTotalCount();
assert('$result == array("plus" => 2, "minus" => 2)');
$result = $tservices->getNearBy('next', 38);
$result = $tservices->getNearBy('prev', 38);
$result = $tservices->getCountCompleteSbrServices();
assert('$result == 5');
$result = $tservices->deleteById(750);
assert('$result == TRUE');
$result = $tservices->isExists(749);
$result = $tservices->getFeedbacks(36);
$result = $tservices->getCard(36);
$result = $tservices->setPage(5)->getShortList();
Beispiel #2
0
                             disallow_null">
                            <input tabindex="3" class="b-combo__input-text b-combo__input-text_pointer" value="" id="days" name="days" type="text" size="80" readonly="readonly"/>
                            <label for="days" class="b-combo__label"></label>
                            <span class="b-combo__arrow"></span>
                        </div>
                    </div>
                    <?php 
echo tservices_helper::input_element_error('days', @$errors['days']);
?>
                </td>
            </tr>
            <?php 
$value = 'Выберите категорию';
if ($tservice->category_id > 0) {
    $category = new tservices_categories();
    $titles = $category->getTitleAndSubtitle($tservice->category_id);
    if ($titles) {
        $value = (!empty($titles['group_title']) ? $titles['group_title'] . ': ' : '') . $titles['spec_title'];
    }
}
?>
            <tr class="b-layout__tr">
                <td class="b-layout__td b-layout__td_padbot_30">
                   <h3 class="b-txt__h3">Категория <span class="b-txt_color_de2c2c">*</span></h3>
                   <div class="b-combo">
                      <div class="
                           b-combo__input 
                           b-combo__input_multi_dropdown 
                           b-combo__input_resize 
                           b-combo__input_width_160 
                           b-combo__input_max-width_220