当前位置: 首页>>代码示例>>PHP>>正文


PHP render_context_help函数代码示例

本文整理汇总了PHP中render_context_help函数的典型用法代码示例。如果您正苦于以下问题:PHP render_context_help函数的具体用法?PHP render_context_help怎么用?PHP render_context_help使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了render_context_help函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: user_config_option

	<?php 
if ($object->isNew() || $object->canLinkObject(logged_user(), $project)) {
    ?>
		<div style="display: none" id="<?php 
    echo $genid;
    ?>
add_linked_objects_div">
		<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_upload_file_linked_objects_context_help', true, logged_user()->getId())) {
        ?>
			<div id="uploadFileContextHelp" class="contextHelpStyle">
				<?php 
        render_context_help($this, 'chelp upload file linked objects', 'upload_file_linked_objects');
        ?>
			</div>
		<?php 
    }
    ?>
			<legend><?php 
    echo lang('linked objects');
    ?>
</legend>
			<?php 
    echo render_object_link_form($object);
    ?>
		</fieldset>
		</div>
	<?php 
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:30,代码来源:add_file.php

示例2: user_config_option

merge-changes-hidden" type="hidden" name="merge-changes" value="" >
	<input id="<?php 
echo $genid;
?>
genid" type="hidden" name="genid" value="<?php 
echo $genid;
?>
" >
	
		<?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_contact_context_help', true, logged_user()->getId())) {
    ?>
			<div id="contactPanelContextHelp" class="contextHelpStyle">
				<?php 
    render_context_help($this, 'chelp add contact', 'add_contact');
    ?>
			</div>
		<?php 
}
?>
		
	<?php 
if ($all) {
    ?>
			<div id="<?php 
    echo $genid;
    ?>
add_contact_select_workspace_div" style="display:block"> 
	<?php 
} else {
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:edit_contact.php

示例3: user_config_option

<?php

$show_help_option = user_config_option('show_context_help');
if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_calendar_widget_context_help', true, logged_user()->getId())) {
    render_context_help($this, 'chelp calendar widget', 'calendar_widget');
}
require_javascript('og/EventPopUp.js');
$tags = active_tag();
//$startday = date("d",mktime()) - (date("N", mktime()) %7);
if (user_config_option("start_monday")) {
    $startday = date("j") - date("N") + 1;
    // beginning of the week, monday
} else {
    $startday = date("j") - date("w");
    // beginning of the week, sunday
}
user_config_option('show_two_weeks_calendar', null, logged_user()->getId()) ? $my_weeks = 2 : ($my_weeks = 1);
$endday = $startday + 7 * $my_weeks;
$today = DateTimeValueLib::now()->add('h', logged_user()->getTimezone());
$currentday = $today->getDay();
$currentmonth = $today->getMonth();
$currentyear = $today->getYear();
$user_comp_filter = user_config_option('pending tasks widget assigned to filter');
$exploded = explode(":", $user_comp_filter);
$user_filter_id = array_var($exploded, 1);
$user_filter = $user_filter_id > 0 ? Users::findById($user_filter_id) : null;
$date_start = new DateTimeValue(mktime(0, 0, 0, $currentmonth, $startday, $currentyear));
$date_end = new DateTimeValue(mktime(0, 0, 0, $currentmonth, $endday, $currentyear));
//FIXME $milestones = ProjectMilestones::getRangeMilestones($date_start, $date_end);
$tmp_tasks = ProjectTasks::getRangeTasksByUser($date_start, $date_end, $user_filter);
//FIXME
开发者ID:rorteg,项目名称:fengoffice,代码行数:31,代码来源:widget_calendar.php

示例4: user_config_option

<div class="card" style="padding:0px;">
	<?php 
    $show_help_option = user_config_option('show_context_help');
    if ($isUserAccount && ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_account_context_help', true, logged_user()->getId()))) {
        ?>
		<div style="padding-bottom:10px;">
		<?php 
        if ($user->getId() == logged_user()->getId()) {
            $hd_key = 'chelp personal account';
        } else {
            $hd_key = 'chelp user account';
            if (logged_user()->isAdministrator()) {
                $hd_key .= ' admin';
            }
        }
        render_context_help($this, $hd_key, 'account');
        ?>
		</div>
	<?php 
    }
    ?>
		
  <div class="cardIcon"><img src="<?php 
    echo $user->getAvatarUrl();
    ?>
" alt="<?php 
    echo clean($user->getDisplayName());
    ?>
 avatar" /></div>
  <div class="cardData">
    
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:30,代码来源:user_card.php

示例5: user_config_option

<?php 
$show_help_option = user_config_option('show_context_help'); 
if ($show_help_option == 'always' || ($show_help_option == 'until_close' && user_config_option('show_emails_widget_context_help', true, logged_user()->getId()))) {
		render_context_help($this, 'chelp emails widget', 'emails_widget');
	}?>
	
<div style="padding:10px">
<table id="dashTableEmails" style="width:100%">
<?php $c = 0;
	
	$emails = array();
	if (is_array($unread_emails)) {
		$emails = $unread_emails;
	}
	foreach ($emails as $email){ 
		if (!$email->getIsDeleted()) {
			$c++;?>
			<tr class="<?php echo $c % 2 == 1? '':'dashAltRow'; echo ' ' . ($c > 5? 'dashSMUC':''); ?>" style="<?php echo $c > 5? 'display:none':'' ?>">
			<td><div class="db-ico ico-email" /></td>
			<td style="padding-left:5px">
			<?php 
				$mws = $email->getWorkspaces(logged_user()->getWorkspacesQuery());
				$projectLinks = array();
				foreach ($mws as $ws) {
					$projectLinks[] = $ws->getId();
				}
				echo  '<span class="project-replace">' . implode(',',$projectLinks) . '</span>';  //Commented as unread emails are not yet assignable to workspaces*/?>
			<a class="internalLink" style="font-weight:bold" href="<?php echo get_url('mail','view', array('id' => $email->getId()))?>"
				title="">
			<?php echo clean($email->getSubject()) ?>
			</a><br/><table width="100%" style="color:#888"><tr><td><?php echo clean($email->getFrom())?></td><td align=right><?php echo $email->getSentDate() instanceof DateTimeValue ? ($email->getSentDate()->isToday() ? format_time($email->getSentDate()) : format_date($email->getSentDate()) ) : lang("n/a")?></td></tr></table></td></tr>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:widget_emails.php

示例6: lang

</div>
  </div>
  <div class="adminSeparator"></div>
  <div class="adminMainBlock">
    <?php 
echo lang('welcome to administration info');
?>
    <br/>
    <br/>
    <?php 
$show_help_option = user_config_option('show_context_help');
if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_administration_context_help', true, logged_user()->getId())) {
    ?>
		<div id="administrationPanelContextHelp" style="padding-left:7px;padding:15px;background-color:white;">
			<?php 
    render_context_help($this, 'chelp administrator panel', 'administration');
    ?>
		</div>
	<?php 
}
?>
<div style="width:100%;max-width:700px; text-align:center;position:relative">

<?php 
// print administration icons
if (count($icons > 0)) {
    ?>
<table><tr>
<?php 
    $count = 0;
    foreach ($icons as $icon) {
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:index.php

示例7: user_config_option

<?php

$show_help_option = user_config_option('show_context_help');
if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_pending_tasks_widget_context_help', true, logged_user()->getId())) {
    render_context_help($this, 'chelp pending tasks widget', 'pending_tasks_widget');
}
?>
<script>//ogTasks.loadStatusList();</script>

<div style="padding:10px">
<table id="dashTablePT" style="width:100%">
<?php 
$genid = gen_id();
$c = 0;
foreach ($dashtasks as $task) {
    $stCount = $task->countAllSubTasks();
    $c++;
    $text = $task->getText();
    if ($text != '') {
        $text = ": " . $text;
    }
    if (strlen_utf($text) > 100) {
        $text = substr_utf($text, 0, 100) . " ...";
    }
    $text = clean($text);
    ?>
		<tr class="<?php 
    echo $c % 2 == 1 ? '' : 'dashAltRow';
    echo ' ' . ($c > 5 ? 'dashSMTC' : '');
    ?>
" style="<?php 
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:widget_pending_tasks.php

示例8: user_config_option

<?php
$show_help_option = user_config_option('show_context_help'); 
if ($show_help_option == 'always' || ($show_help_option == 'until_close' && user_config_option('show_active_tasks_widget_context_help', true, logged_user()->getId()))) { 
	render_context_help($this, 'chelp active tasks widget', 'active_tasks_widget');
} ?>

<div style="padding:10px">
<table id="dashTableTIP" style="width:100%;">
<?php
$c = 0;
foreach ($tasks_in_progress as $task) {
	$stCount = $task->countAllSubTasks();
	$c++;
	$text = $task->getText();
	if ($text != '')
		$text = ": " . $text;
	if(strlen_utf($text)>100)
		$text = substr_utf($text,0,100) . " ...";
	$text = clean($text);
	?>
		<tr class="<?php echo $c % 2 == 1? '':'dashAltRow'?>"><td><div class="db-ico ico-task">&nbsp;></div></td><td style="padding-left:5px;padding-bottom:2px">
	<?php $dws = $task->getWorkspaces(logged_user()->getWorkspacesQuery());
	$projectLinks = array();
	foreach ($dws as $ws) {
		$projectLinks[] = $ws->getId();
	}
	echo '<span class="project-replace">' . implode(',',$projectLinks) . '</span>';?>
	<a class='internalLink' href='<?php echo $task->getViewUrl() ?>'><?php echo clean($task->getTitle())?><?php echo $text ?></a></td>
	<?php /*<td align="right"><?php $timeslot = Timeslots::getOpenTimeslotByObject($task,logged_user());
		if ($timeslot) { 
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:30,代码来源:widget_active_tasks.php

示例9: user_config_option

?>
 colspan=2 style="background-color:white">

<div style="padding:10px">
<?php 
// MAIN PAGES
$show_help_option = user_config_option('show_context_help');
if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_reporting_panel_context_help', true, logged_user()->getId())) {
    $hd_key = 'chelp reporting panel';
    if (can_manage_reports(logged_user())) {
        $hd_key .= ' manage';
        if (logged_user()->isAdministrator() && can_manage_security(logged_user())) {
            $hd_key .= ' admin';
        }
    }
    render_context_help($this, $hd_key, 'reporting_panel');
    echo '<br/>';
}
foreach ($reportPages as $pageTitle => $pageInfo) {
    ?>
<div class="inner_report_menu_div" id="<?php 
    echo $genid . $pageTitle;
    ?>
" style="display:<?php 
    echo $pageTitle == $selectedPage ? 'block' : 'none';
    ?>
">

<?php 
    // Show default (non-custom) reports
    $hasNonCustomReports = true;
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:index.php

示例10: user_config_option

<?php

if (isset($company) && $company instanceof Company) {
    ?>
<div class="card">

<?php 
    $show_help_option = user_config_option('show_context_help');
    if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_company_context_help', true, logged_user()->getId())) {
        ?>
		<div style="padding-bottom:10px;">
		<?php 
        render_context_help($this, 'chelp company card', 'company');
        ?>
		</div>
	<?php 
    }
    ?>

  <div class="cardIcon"><img src="<?php 
    echo $company->getLogoUrl();
    ?>
" alt="<?php 
    echo clean($company->getName());
    ?>
 logo" /></div>
  <div class="cardData">
    
    <div class="cardBlock">
      <div class="link-ico ico-email" style="padding-bottom:3px;"><span><?php 
    echo lang('email address');
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:company_content.php

示例11: user_config_option

	<?php 
if ($object->isNew() || $object->canLinkObject(logged_user(), $project)) {
    ?>
	<div style="display:none" id="<?php 
    echo $genid;
    ?>
add_linked_objects_div">
	<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_task_linked_objects_context_help', true, logged_user()->getId())) {
        ?>
			<div id="tasksPanelContextHelp" class="contextHelpStyle">
				<?php 
        render_context_help($this, 'chelp add new task linked object', 'add_task_linked_objects');
        ?>
			</div>
		<?php 
    }
    ?>
		<legend><?php 
    echo lang('linked objects');
    ?>
</legend>
		<?php 
    $pre_linked_objects = null;
    if (isset($from_email) && $from_email instanceof MailContent) {
        $pre_linked_objects = array($from_email);
        $attachments = $from_email->getLinkedObjects();
        foreach ($attachments as $att) {
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:30,代码来源:add_task.php

示例12: format_descriptive_date

        echo format_descriptive_date($task_list->getDueDate(), 0);
        ?>
</div>
	<?php 
    }
    // if
}
// if
?>
		<?php 
$show_help_option = user_config_option('show_context_help');
if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_list_task_context_help', true, logged_user()->getId())) {
    ?>
					<div id="tasksCardContextHelp" class="contextHelpStyle">
						<?php 
    render_context_help($this, 'chelp task card', 'list_task');
    ?>
					</div>
		<?php 
}
?>
		
<?php 
if ($task_list->getObjectSubtype() > 0) {
    $subType = ProjectCoTypes::findById($task_list->getObjectSubtype());
    if ($subType instanceof ProjectCoType) {
        echo "<div><b>" . lang('object type') . ":</b> " . $subType->getName() . "</div>";
    }
}
?>
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:30,代码来源:task_list.php

示例13: user_config_option

<?php

$show_help_option = user_config_option('show_context_help');
if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_documents_widget_context_help', true, logged_user()->getId())) {
    render_context_help($this, 'chelp documents widget', 'documents_widget');
}
?>
  
<div style="padding:10px">
<table id="dashTableDocuments" style="width:100%">
<?php 
$c = 0;
foreach ($documents as $document) {
    $c++;
    ?>
	<tr class="<?php 
    echo $c % 2 == 1 ? '' : 'dashAltRow';
    echo ' ' . ($c > 5 ? 'dashSMDC' : '');
    ?>
" style="<?php 
    echo $c > 5 ? 'display:none' : '';
    ?>
">
	<td width=18>
		<div class="db-ico ico-unknown ico-<?php 
    echo str_replace(".", "_", str_replace("/", "-", $document->getTypeString()));
    ?>
 ico-ext-<?php 
    echo pathinfo($document->getFilename(), PATHINFO_EXTENSION);
    ?>
"></div>
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:widget_documents.php

示例14: user_config_option

<?php

$show_help_option = user_config_option('show_context_help');
if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_dashboard_info_widget_context_help', true, logged_user()->getId())) {
    render_context_help($this, 'chelp dashboard info widget', 'dashboard_info_widget');
}
$date_format = user_config_option('date_format');
?>

<div style="padding:10px">
<?php 
$project = active_project();
$contacts = ProjectContacts::getContactsByProject($project);
//if (can_manage_contacts(logged_user())){
if (count($contacts) > 0) {
    ?>
<div class='endSeparatorDiv'>
			<b><?php 
    echo lang('workspace contacts');
    ?>
:</b>
				<div style='padding-left:15px'><?php 
    $c = 0;
    foreach ($contacts as $contact) {
        if ($c != 0) {
            echo '<br/>';
        }
        $c++;
        if ($contact->canView(logged_user())) {
            ?>
<span><a href="<?php 
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:widget_dashboard_info.php

示例15: lang

<div class="adminUsersList" style="height:100%;background-color:white">
  <div class="adminHeader">
  	<div class="adminTitle"><?php 
echo lang('users') . (config_option('max_users') ? ' (' . Users::count() . ' / ' . config_option('max_users') . ')' : '');
?>
</div>
  </div>
  <div class="adminSeparator"></div>
  <div class="adminMainBlock">
  		<?php 
$show_help_option = user_config_option('show_context_help');
if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_member_context_help', true, logged_user()->getId())) {
    ?>
			<div id="membersPanelContextHelp" style="padding-left:7px;padding:15px;background-color:white;">
				<?php 
    render_context_help($this, 'chelp members page', 'member');
    ?>
			</div>
		<?php 
}
?>
  <?php 
foreach ($users_by_company as $company_row) {
    $company = $company_row['details'];
    $users = $company_row['users'];
    tpl_assign('users', $users);
    tpl_assign('company', $company);
    ?>
<div style='padding-bottom:20px;max-width:700px'>
<div style="padding:10px;padding-bottom:13px;background-color:#D7E5F5">
	<h1 style="font-size:140%;font-weight:bold"><a class="internalLink" href="<?php 
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:members.php


注:本文中的render_context_help函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。