D
D
Dmitry Largovich2014-09-03 15:20:08
PHP
Dmitry Largovich, 2014-09-03 15:20:08

How to ($arElem['SECTION'] == 1369) make it bold (the created infoblock is a section, make the section title bold?

Hello.
An infoblock has been created in Bitrix (this is a table that employees fill in, and it calculates/shows the results). There are sections in the infoblock.
Please tell me how to make the section title displayed in bold? This is done both in the template.php code and in the
style.css file. In style.css I
entered a line .firstCol {font-weight:bold;}
, as a result, in the form all lines became bold . Insurance premiums for VHI 2 but it is necessary that only a separate line, for example, "Insurance premiums for VHI" - ID 1368 becomes bold. Please tell me how to do this, what needs to be added in the style.css file?



As I understand it, you probably need to highlight ID 1368 in a separate class, and then specify this class in style.css?
those. how to make ($arElem['SECTION'] == 1369) bold?

<?if($arResult['LAST'][$id] && $arElem['SECTION']==1368 || $arResult['LAST'][$id] && $arElem['SECTION']==1368 || $arResult['LAST'][$id] && $arElem['SECTION']==2610 || $arResult['LAST'][$id] && $arElem['SECTION']==2611){
            $arResult['FACT'][$id]=$arResult['LAST'][$id];
          }?>

CONTENT OF style.css FILE:
.kpiIndicatorsTable{border-collapse: collapse;width: 100%;clear:both;}
.kpiIndicatorsTable tr th{border: 1px solid #B4B4B4;padding: 5px;}
.kpiIndicatorsTable tr td{border: 1px solid #B4B4B4;padding: 5px;text-align:center;}
.kpiIndicatorsTable .firstCol{text-align:left;}
.kpiIndicatorsTable .smallInp{width:50px;text-align: center;}
.kpiIndicatorsTable .planInput{text-align: center;}
.kpiIndicatorsTable .small{font-size:9px !important;}
.kpiIndicatorsTable input{width:90px;}
.departmentFilter{margin:0 0 30px 0;}
.departmentFilter select{/*float:right;*/ margin:0 0 0px 30px; }
.ui-datepicker-calendar{display:none;}
.ui-datepicker{padding-bottom:.2em !important;width: 20em !important;}
.kpiIndicatorsTable.edited .first{width:200px;}
.kpiIndicatorsTable.edited .forth{width:200px;}
.KPIh2{margin:0px 0 0;}
.period p{margin:8px 0;}
.tableEdit{padding-top:10px;float:left;}
.period{float:right;}
.period input{width:70px;}
#saveKpiInfo{margin-top:10px;}

My comment 09/05/2014
Thank you very much.
As I understood an element without a class.
registered as html but nothing has changed, separate lines have not become bold.
Here is what I wrote in the code:
<html>
<a class="Численность застрахованных лиц по ОМС"</a>
<html>

in css
.Численность застрахованных{font-weight:bold;}
But it seems to me that I'm doing it wrong.
How to find an element in the code, as it is usually denoted?
PS: 1sbitrix, these fields are created using the "add section", i.e. "Number of insured..." is the section.
3accdc16e745491c918ad27348910737.JPG8a2238c2fc8549bbb614f2bf1a216720.JPG

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgeny Demin, 2014-09-04
@tlatypov

UPD:
- try it like this, just write the exact name of the line you want to make bold so that the logic works. Of course, it is difficult for you to give an exact and correct answer, because you need to experiment and look for a working solution. If you want, give access through TeamViewer, I'll help.
Find which class the element belongs to (developer tools - F12 in Chrome), find this class in the style file and set the font-weight: bold property to it; . You can try changing the styles directly in chrome to make sure it works. If the element is without any class, look for it in the template file, and write a new class in the html code.
What you're quoting is not the template element, but the element's output data.
Look for the output of the html element itself next to it.

V
Vitaly Kirenkov, 2014-09-03
@DeLaVega

On - hang the class bold, for example.
And in css write
.bold { font-weight: bold;}

D
Dmitry Largovich, 2014-09-03
@tlatypov

no it doesn't work. everything becomes bold and you only need one line (element)
from this <?if($arResult['LAST'][$id] && $arElem['SECTION']==1368 || $arResult['LAST'][$ id] && $arElem['SECTION']==1368 || $arResult['LAST'][$id] && $arElem['SECTION']==2610 || $arResult['LAST'][$id] && $arElem['SECTION']==2611){
$arResult['FACT'][$id]=$arResult['LAST'][$id];
this should be made bold arElem['SECTION']==1368

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question