示例#1
0
文件: add.php 项目: rorteg/fengoffice
genid" type="hidden" name="genid" value="<?php 
echo $genid;
?>
" >


	<div id="<?php 
echo $genid;
?>
add_webpage_select_context_div" style="display:none">
		
		<?php 
if ($webpage->isNew()) {
    render_dimension_trees($webpage->manager()->getObjectTypeId(), $genid, null, array('select_current_context' => true));
} else {
    render_dimension_trees($webpage->manager()->getObjectTypeId(), $genid, $webpage->getMemberIds());
}
?>
	
	</div>



	<div id="<?php 
echo $genid;
?>
add_webpage_description_div" style="display: none">
		<fieldset><legend><?php 
echo label_tag(lang('description'), 'webpageFormDesc');
?>
</legend>
示例#2
0
if ($renderContext) {
    ?>
		<div id="<?php 
    echo $genid;
    ?>
add_company_select_context_div" style="display:none">
			<fieldset>
				<legend><?php 
    echo lang('context');
    ?>
</legend>
				<?php 
    if ($company->isNew()) {
        render_dimension_trees($company->manager()->getObjectTypeId(), $genid, null, array('select_current_context' => true));
    } else {
        render_dimension_trees($company->manager()->getObjectTypeId(), $genid, $company->getMemberIds());
    }
    ?>
			</fieldset>
		</div>
	<?php 
}
?>
	
	
	<div id='<?php 
echo $genid;
?>
add_custom_properties_div' style="<?php 
echo $visible_cps > 0 ? "" : "display:none";
?>
<?php

render_dimension_trees($content_object_type_id, $genid, $selected, array('select_current_context' => true));
示例#4
0
			<label>
				<?php 
    echo lang('classify mails on workspace');
    ?>
				<span class="desc"><?php 
    echo lang('classify mails on workspace desc');
    ?>
 </span>
			</label>
				<?php 
    //alert_r($mailAccount);
    // TODO context PEPE
    if ($mailAccount->isNew()) {
        render_dimension_trees(MailContents::instance()->getObjectTypeId(), $genid, null, array('select_current_context' => true));
    } else {
        render_dimension_trees(MailContents::instance()->getObjectTypeId(), $genid, $mailAccount->getMemberIds());
    }
    ?>
		</div>
		
	</fieldset>

	<fieldset id="<?php 
    echo $genid;
    ?>
smtp_settings_div">
		<legend><?php 
    echo lang('smtp settings');
    ?>
</legend>
		<div class="mail-account-item">
示例#5
0
?>
	
	<div id="<?php 
echo $genid;
?>
add_milestone_select_context_div" style="display:none">
	<fieldset>
		<legend><?php 
echo lang('context');
?>
</legend>
		<?php 
if ($milestone->isNew()) {
    render_dimension_trees($milestone->manager()->getObjectTypeId(), $genid, null, array('select_current_context' => true));
} else {
    render_dimension_trees($milestone->manager()->getObjectTypeId(), $genid, $milestone->getMemberIds());
}
?>
		
	</fieldset>
	</div>

	
	<div id="<?php 
echo $genid;
?>
add_milestone_description_div" style="display:none">
	<fieldset>
		<legend><?php 
echo lang('description');
?>
示例#6
0
?>
						</div>
					</td>
				</tr>
			</table>
			
			<div class="context-switcher">
				<div class="context-header">
					<label><?php 
echo lang("related to");
?>
</label>
				</div>
				<div class="context-body" style="display:none">
					<?php 
render_dimension_trees(Timeslots::instance()->getObjectTypeId(), $genid, array());
?>
				</div>
			</div>
			
		</div>
	</div>
	<div id="<?php 
echo $genid;
?>
TMTimespanAddNew" class="TMTimespanAddNew" style="padding: 6px 0;<?php 
echo !$draw_inputs ? "" : 'display:none;';
?>
">
		<?php 
$names = array();
        </div>
    </div>
    <div id="<?php 
echo $genid;
?>
add_mail_select_context_div" style="display:none" >
        <fieldset>
                <legend><?php 
echo lang('context');
?>
</legend>
                <?php 
if (array_var($user, 'id')) {
    render_dimension_trees(ProjectEvents::instance()->getObjectTypeId(), $genid, array_var($user, 'related_to'));
} else {
    render_dimension_trees(ProjectEvents::instance()->getObjectTypeId(), $genid, null, array('select_current_context' => true));
}
?>
        </fieldset>
    </div>
    <?php 
if (isset($user) && is_array($user) && count($user)) {
    ?>
    <div class="adminMainBlock">
        <?php 
    if (isset($calendars) && is_array($calendars) && count($calendars)) {
        ?>
        <table class="adminListing" style="min-width: 400px; margin-top: 10px;">
                <tr>
                        <th width="90%"><?php 
        echo lang('name calendar');