echo yes_no_widget('user[createPersonalProject]', 'user[createPersonalProject]', false, lang('use an existing workspace'), lang('create personal workspace'), '1500'); ?> <br /><span class="desc"><?php echo lang('use previous personal workspace desc'); ?> </span> <div class="ico-color0" style="padding-left:18px" id="newWsName"></div> <div id="<?php echo $genid; ?> selectPersonalProject" style="display:none"> <?php echo label_tag(lang('select personal workspace'), null, true); ?> <?php echo select_project2('user[personal_project]', $user->getPersonalProject() ? $user->getPersonalProject()->getId() : 0, $genid); ?> </div> <script> og.determinePersonalwsName = function (input, template) { div = document.getElementById("newWsName"); div.innerHTML = template.replace('{0}', input.value); }; og.showSelectPersonalWS = function(genid) { check = document.getElementById("user[createPersonalProject]Yes"); div = document.getElementById(genid + "selectPersonalProject"); div2 = document.getElementById("newWsName"); if (check.checked == true) { div.style.display = ""; div2.style.display = "none";
?> <?php echo select_company('user[company_id]', array_var($user_data, 'company_id'), $attributes, false); ?> </div> <div class="formBlock"> <?php echo label_tag(lang('personal project'), $genid . 'userPersonalProject', true); ?> <div class="desc"><?php echo lang('personal project desc'); ?> </div> <?php echo select_project2('user[personal_project_id]', $user->getPersonalProjectId(), $genid, false, null, Projects::getActiveProjects()); ?> </div> <!-- user type --> <div class="formBlock"> <?php echo label_tag(lang('user type'), null, true); ?> <?php echo simple_select_box('user[type]', array(array('admin', lang('admin user')), array('normal', lang('normal user')), array('guest', lang('guest user'))), array_var($user_data, 'type', 'normal')); ?> </div> <input type="hidden" name="user[auto_assign]" value="0" />
?> " name="params[<?php echo $condition->getId(); ?> ]" /> <?php } } ?> </td> <?php } else { //if is a tag selection or a workspace selection $val = $condition->getValue(); if ($condition->getFieldName() == 'workspace') { echo select_project2('params[workspace]', isset($val) ? $val : 0, $genid, true); } if ($condition->getFieldName() == 'tag') { echo autocomplete_tags_field("params[tag]", null, null, 40); } } ?> </tr> <?php } //else unset($cp); } //foreach ?> </table>
echo lang('days'); ?> </div> <div> <label> <?php echo lang('classify mails on workspace'); ?> <span class="desc"><?php echo lang('classify mails on workspace desc'); ?> </span> </label> <?php echo select_project2('mailAccount[workspace]', $mailAccount_data['workspace'] ? $mailAccount_data['workspace'] : 0, $genid, true, null); ?> </div> </fieldset> <fieldset id="<?php echo $genid; ?> smtp_settings_div"> <legend><?php echo lang('smtp settings'); ?> </legend> <div class="mail-account-item"> <label for="mailSmtpServer">
$options[] = option_tag('-- ' . lang('anyone') . ' --', 0, array_var($report_data, "user") == null ? array('selected' => 'selected') : null); foreach ($users as $user) { $options[] = option_tag($user->getDisplayName(), $user->getId(), array_var($report_data, "user") == $user->getId() ? array('selected' => 'selected') : null); } echo select_box('report[user]', $options); ?> </td> </tr> <tr style='height:30px;'> <td><b><?php echo lang("workspace"); ?> : </b></td> <td align='left'><table><tr><td> <?php echo select_project2('report[project_id]', $project_id, $genid, true); ?> </td><td style="padding-left:25px"> <?php echo checkbox_field('report[include_subworkspaces]', array_var($report_data, "include_subworkspaces", true), array('id' => 'report[include_subworkspaces]')); ?> <label for="<?php echo 'report[include_subworkspaces]'; ?> " class="checkbox"><?php echo lang('include subworkspaces'); ?> </label> </td></tr></table> </td> </tr>
<?php echo text_field('chart[title]', array_var($chart_data, 'title'), array('id' => 'chartFormTitle', 'class' => 'title', 'tabindex' => '1')) ?> </div> <div style="padding-top:5px"> <a href="#" class="option" onclick="og.toggleAndBolden('add_chart_select_context_div',this)"><?php echo lang('context') ?></a> - <a href="#" class="option" onclick="og.toggleAndBolden('add_chart_add_tags_div', this)"><?php echo lang('tags') ?></a> - <a href="#" class="option" onclick="og.toggleAndBolden('add_chart_display_div', this)"><?php echo lang('display') ?></a> </div> </div> <div class="coInputSeparator"></div> <div class="coInputMainBlock"> <div id="add_chart_select_context_div" style="display:none"> <fieldset><legend><?php echo lang('workspace')?></legend> <?php echo select_project2('chart[project_id]', ($project instanceof Project)? $project->getId():0, $genid) ?> </fieldset> </div> <div id="add_chart_add_tags_div" style="display:none"> <fieldset><legend><?php echo lang('tags')?></legend> <?php echo autocomplete_tags_field("chart[tags]", array_var($chart_data, 'tags')); ?> </fieldset> </div> <div id="add_chart_display_div" style="display:none"> <fieldset><legend><?php echo lang('display')?></legend> <div class="objectOption"> <div class="optionLabel"><label><?php echo lang('show in project') ?>:</label></div> <div class="optionControl"><?php echo yes_no_widget('chart[show_in_project]', 'chartFormShowInProject', array_var($chart_data, 'show_in_project'), lang('yes'), lang('no')) ?></div> <div class="optionDesc"><?php echo lang('show in project desc') ?></div>
?> <?php if (!$project->isNew() && $project->getParentWorkspace() instanceof Project && !logged_user()->isProjectUser($project->getParentWorkspace())) { ?> <div class="tasksPanelWarning ico-warning32" style="font-size:10px;color:#666;background-repeat:no-repeat;padding-left:40px;max-width:600px;border:1px solid #E3AD00;background-color:#FFF690;background-position:4px 4px;"> <div style="font-weight:bold;width:99%;text-align:center;padding:4px;color:#AF8300;"><?php echo lang('cannot change parent workspace'); ?> <br/><?php echo lang('cannot change parent workspace description'); ?> </div> </div> <?php } else { echo select_project2('project[parent_id]', $project->isNew() ? active_project() ? active_project()->getId() : 0 : $project->getParentId(), $genid, true); } ?> </fieldset> <div id="trap1"><fieldset id="fs1" style="height:0px;border:0px;padding:0px;display:none"><span style="color:#FFFFFF;"></span></fieldset></div> <?php } ?> <?php if (can_manage_contacts(logged_user())) { ?> <div id="<?php echo $genid; ?>
<legend><?php echo lang('workspace'); ?> </legend> <?php if (!$milestone->isNew()) { ?> <div class="desc" style="margin-bottom:5px"><?php echo lang('add milestone change workspace warning'); ?> </div> <?php } ?> <?php echo select_project2('ws_ids', $milestone->getProjectId(), $genid); ?> </fieldset> </div> <div id="<?php echo $genid; ?> add_milestone_tags_div" style="display:none"> <fieldset> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_add_milestone_tags_context_help', true, logged_user()->getId())) { ?> <div id="milestonePanelContextHelp" class="contextHelpStyle"> <?php
<a href="#" class="option" onclick="og.toggleAndBolden('add_chart_display_div', this)"><?php echo lang('display'); ?> </a> </div> </div> <div class="coInputSeparator"></div> <div class="coInputMainBlock"> <div id="add_chart_select_context_div" style="display:none"> <fieldset><legend><?php echo lang('workspace'); ?> </legend> <?php echo select_project2('chart[project_id]', $project instanceof Project ? $project->getId() : 0, $genid); ?> </fieldset> </div> <div id="add_chart_add_tags_div" style="display:none"> <fieldset><legend><?php echo lang('tags'); ?> </legend> <?php echo autocomplete_tags_field("chart[tags]", array_var($chart_data, 'tags')); ?> </fieldset> </div>
?> </a> </div> </div> <div class="coInputMainBlock"> <div id="<?php echo $genid; ?> parameters_select_workspace_div" style="display:none"> <fieldset> <legend><?php echo lang('workspace'); ?> </legend> <?php echo select_project2('project_id', active_or_personal_project()->getId(), $genid); ?> </fieldset> </div> <div id="<?php echo $genid; ?> parameters_tags_div" style="display:none"> <fieldset> <legend><?php echo lang('tags'); ?> </legend> <?php echo autocomplete_tags_field('tags', '', 'tags');
?> '})"><?php echo $email_workspace->getPath(); ?> </a></li> <?php } ?> </ul> <br /> </div> <?php } ?> <?php echo '<div style="float:left;">' . select_project2('ws_ids', $project instanceof Project ? $project->getId() : 0, $genid) . '</div>'; ?> <?php if (!$task->isNew()) { ?> <div style="float:left; padding:5px;"><?php echo checkbox_field('task[apply_ws_subtasks]', array_var($task_data, 'apply_ws_subtasks', false), array("id" => "{$genid}-checkapplyws")); ?> <label class="checkbox" for="<?php echo "{$genid}-checkapplyws"; ?> "><?php echo lang('apply workspace to subtasks'); ?> </label></div>
function render_initial_workspace_chooser($name, $value) { return select_project2($name, "'{$value}'", gen_id(), true, array(array('id' => 'remember', 'name' => lang('remember last'), 'color' => 'remember', 'parent' => 'root'))); }
<td style="padding-right: 10px; width:95%; margin-top: 0px;vertical-align:bottom"> <?php echo label_tag(lang('description')); ?> </td> <td style="padding-left: 10px;text-align:right; vertical-align: middle;"> </td> </tr><tr> <td style="padding-right: 10px; width:140px;"> <?php echo pick_date_widget2('timeslot[date]', DateTimeValueLib::now(), $genid, 100, false); ?> </td> <td style="padding-right:10px; width:140px;"> <?php echo select_project2('timeslot[project_id]', active_or_personal_project()->getId(), $genid); ?> </td> <?php if (logged_user()->isAdministrator()) { ?> <td style="padding-right: 10px; width:140px;"> <?php echo user_select_box("timeslot[user_id]", logged_user()->getId(), array('id' => $genid . 'tsUser', 'tabindex' => '150')); ?> </td><?php } else { ?> <td style="padding-right: 10px"> <input type="hidden" id="<?php echo $genid;