示例#1
0
    public static function DialogEditSection($Params)
    {
        $id = $Params['id'];
        $arTabs = array(array('name' => GetMessage('EC_SECT_BASE_TAB'), 'id' => $id . "sect-tab-0", 'active' => true), array('name' => GetMessage('EC_SECT_ACCESS_TAB'), 'id' => $id . "sect-tab-1"));
        ?>

<div id="bxec_sect_d_<?php 
        echo $id;
        ?>
" class="bxec-popup">
	<div style="width: 500px; height: 1px;"></div>
	<div class="bxec-d-tabs" id="<?php 
        echo $id;
        ?>
_editsect_tabs">
		<?php 
        foreach ($arTabs as $tab) {
            ?>
			<div class="bxec-d-tab <?php 
            if ($tab['active']) {
                echo 'bxec-d-tab-act';
            }
            ?>
" title="<?php 
            echo isset($tab['title']) ? $tab['title'] : $tab['name'];
            ?>
" id="<?php 
            echo $tab['id'];
            ?>
" <?php 
            if ($tab['show'] === false) {
                echo 'style="display:none;"';
            }
            ?>
>
				<b></b><div><span><?php 
            echo $tab['name'];
            ?>
</span></div><i></i>
			</div>
		<?php 
        }
        ?>
	</div>
	<div class="bxec-d-cont">
<?php 
        /* ####### TAB 0 : MAIN ####### */
        ?>
<div id="<?php 
        echo $id;
        ?>
sect-tab-0-cont" class="bxec-d-cont-div" style="display: block;">
	<!-- Title -->
	<div class="bxec-popup-row">
		<span class="bxec-field-label-2"><label for="<?php 
        echo $id;
        ?>
_edcal_name"><?php 
        echo GetMessage('EC_T_NAME');
        ?>
:</label></span>
		<span  class="bxec-field-val-2"><input type="text" id="<?php 
        echo $id;
        ?>
_edcal_name" style="width: 290px;"/></span>
	</div>
	<!-- Description -->
	<div class="bxec-popup-row">
		<span class="bxec-field-label-2"><label for="<?php 
        echo $id;
        ?>
_edcal_desc"><?php 
        echo GetMessage('EC_T_DESC');
        ?>
:</label></span>
		<span  class="bxec-field-val-2"><textarea cols="32" id="<?php 
        echo $id;
        ?>
_edcal_desc" rows="2" style="width: 290px; resize: none;"></textarea></span>
	</div>
	<!-- Color -->
	<div class="bxec-popup-row">
		<span class="bxec-field-label-2"><label for="<?php 
        echo $id;
        ?>
-sect-color-inp"><?php 
        echo GetMessage('EC_T_COLOR');
        ?>
:</label></span>
		<span  class="bxec-field-val-2" style="width: 300px;">
		<?php 
        CCalendarSceleton::DisplayColorSelector($id, 'sect', $Params['colors']);
        ?>
		</span>
	</div>

	<?php 
        /*if($Params['type'] == 'user' && $Params['inPersonalCalendar']):?>
        	<div class="bxec-popup-row" style="width: 480px;">
        		<input id="<?=$id?>_bxec_meeting_calendar" type="checkbox" value="Y"><label for="<?=$id?>_bxec_meeting_calendar"><?=GetMessage('EC_MEETING_CALENDAR')?></label>
        	</div>
        	<?endif;*/
        ?>

	<div class="bxec-popup-row">
		<input id="<?php 
        echo $id;
        ?>
_bxec_cal_exp_allow" type="checkbox" value="Y"><label for="<?php 
        echo $id;
        ?>
_bxec_cal_exp_allow"><?php 
        echo GetMessage('EC_T_ALLOW_CALEN_EXP');
        ?>
</label>
		<div id="<?php 
        echo $id;
        ?>
_bxec_calen_exp_div" style="margin-top: 4px;">
		<?php 
        echo GetMessage('EC_T_CALEN_EXP_SET');
        ?>
:
		<select id="<?php 
        echo $id;
        ?>
_bxec_calen_exp_set">
			<option value="all"><?php 
        echo GetMessage('EC_T_CALEN_EXP_SET_ALL');
        ?>
</option>
			<option value="3_9"><?php 
        echo GetMessage('EC_T_CALEN_EXP_SET_3_9');
        ?>
</option>
			<option value="6_12"><?php 
        echo GetMessage('EC_T_CALEN_EXP_SET_6_12');
        ?>
</option>
		</select>
		</div>
	</div>

	<?php 
        if ($Params['bExchangeConnected'] && CCalendar::IsExchangeEnabled() && $Params['type'] == 'user' && $Params['inPersonalCalendar']) {
            ?>
	<div class="bxec-popup-row">
		<input id="<?php 
            echo $id;
            ?>
_bxec_cal_exch" type="checkbox" value="Y" checked="checked"><label for="<?php 
            echo $id;
            ?>
_bxec_cal_exch"><?php 
            echo GetMessage('EC_CALENDAR_TO_EXCH');
            ?>
</label>
	</div>
	<?php 
        }
        ?>

	<?php 
        if ($Params['bShowSuperpose'] && $Params['inPersonalCalendar']) {
            ?>
	<div class="bxec-popup-row" id="<?php 
            echo $id;
            ?>
_bxec_cal_add2sp_cont">
		<input id="<?php 
            echo $id;
            ?>
_bxec_cal_add2sp" type="checkbox" value="Y"><label for="<?php 
            echo $id;
            ?>
_bxec_cal_add2sp"><?php 
            echo GetMessage('EC_T_ADD_TO_SP');
            ?>
</label>
	</div>
	<?php 
        }
        ?>
</div>
<?php 
        /* ####### END TAB 0 ####### */
        ?>

<?php 
        /* ####### TAB 1 : ACCESS ####### */
        ?>
<div id="<?php 
        echo $id;
        ?>
sect-tab-1-cont" class="bxec-d-cont-div">
	<?php 
        /*
        <?=GetMessage('EC_CAL_STATUS')?>:
        <select id="<?=$id?>_cal_priv_status" style="width: 230px">
        	<option value="private" title="<?=GetMessage('EC_CAL_STATUS_PRIVATE')?>"><?=GetMessage('EC_CAL_STATUS_PRIVATE')?></option>
        	<option value="time" title="<?=GetMessage('EC_CAL_STATUS_TIME')?>"><?=GetMessage('EC_CAL_STATUS_TIME')?></option>
        	<option value="title" title="<?=GetMessage('EC_CAL_STATUS_TITLE')?>"><?=GetMessage('EC_CAL_STATUS_TITLE')?></option>
        	<option value="full" selected="selected" title="<?=GetMessage('EC_CAL_STATUS_FULL')?>"><?=GetMessage('EC_CAL_STATUS_FULL')?></option>
        </select>
        */
        ?>

	<div class="bxec-popup-row">
		<div class="bxec-popup-row-title"><?php 
        echo GetMessage('EC_SECT_ACCESS_TAB');
        ?>
</div>
		<div class="bxec-access-cont-row">
			<div id="<?php 
        echo $id;
        ?>
access-values-cont" class="bxec-access-cont"></div>
			<?php 
        self::GetAccessHTML('calendar_section');
        ?>
			<div class="bxec-access-link-cont"><a href="javascript:void(0);" id="<?php 
        echo $id;
        ?>
access-link" class="bxec-access-link"><?php 
        echo GetMessage('EC_T_ADD');
        ?>
</a></div>
		</div>
	</div>
</div>
<?php 
        /* ####### END TAB 1 ####### */
        ?>
	</div>
</div>
<?php 
    }
示例#2
0
?>
_bxec_color" type="hidden" value="" name="color" />
				<input id="<?php 
echo $id;
?>
_bxec_text_color" type="hidden" value="" name="text_color" />
				<label class="bxec-color-label" for="<?php 
echo $id;
?>
-event-color-inp"><?php 
echo GetMessage('EC_T_COLOR');
?>
:</label>
				<div class="bxec-color-selector-cont">
				<?php 
CCalendarSceleton::DisplayColorSelector($id, 'event');
?>
				</div>
			</div>

			<!-- Userfields -->
			<?php 
if (isset($UF['UF_CRM_CAL_EVENT'])) {
    ?>
			<div id="<?php 
    echo $id;
    ?>
bxec_uf_group" class="bxec-popup-row-bordered">
				<?php 
    $crmUF = $UF['UF_CRM_CAL_EVENT'];
    ?>