コード例 #1
0
 static function Read()
 {
     if (self::$id <= 0) {
         return false;
     }
     self::$holidaysFields = new CSupportTableFields(CSupportHolidays::$holidays);
     $rs = CSupportHolidays::GetList(array(), array('ID' => self::$id));
     if ($arResult = $rs->Fetch()) {
         self::$holidaysFields->FromArray($arResult);
         self::$notSaved = false;
         self::$holidaysSlaFields = CSupportHolidays::GetSLAByID(self::$id, true);
     } else {
         self::$canNotRead = true;
         return false;
     }
     return true;
 }
コード例 #2
0
?>
" size="40"><?php 
echo ShowFilterLogicHelp();
?>
</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("SUP_FILTER_OPEN_TIME");
?>
:</td>
		<td>
		<select id="filter_open_time" name="filter_open_time">
		<option value=""></option>';
		<?php 
$arr = CSupportHolidays::GetOpenTimeArray();
foreach ($arr as $v => $n) {
    $ss = substr($v, 0, 3);
    if ($ss == "GB_") {
        echo '<optgroup label="' . GetMessage($n) . '">';
    } elseif ($ss == "GE_") {
        echo '</optgroup>';
    } else {
        echo '<option value="' . $v . '">' . GetMessage($n) . '</option>';
    }
}
?>
		</select>
		</td>
	</tr>