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


PHP project_tabbed_navigation函数代码示例

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


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

示例1: trace

<?php

trace(__FILE__, 'begin');
set_page_title(lang('project links'));
project_tabbed_navigation(PROJECT_TAB_LINKS);
project_crumbs(array(array(lang('links'), get_url('links', 'index')), array(lang('index'))));
if (ProjectLink::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add link'), get_url('links', 'add_link'));
}
// if
add_stylesheet_to_page('project/files.css');
$counter = 0;
?>
<div id="files">
<?php 
if (isset($links) && is_array($links) && count($links)) {
    ?>
<div class="filesList">
<?php 
    foreach ($links as $link) {
        $counter++;
        ?>
  <div class="listedFile <?php 
        echo $counter % 2 ? 'even' : 'odd';
        ?>
">
  <div class="fileInfo">
      <div class="fileName"><a href="<?php 
        echo $link->asUrl();
        ?>
" title="<?php 
开发者ID:469306621,项目名称:Languages,代码行数:31,代码来源:index.php

示例2: set_page_title

<?php

set_page_title(lang('search results'));
project_tabbed_navigation();
project_crumbs(lang('search results'));
add_stylesheet_to_page('project/search_results.css');
?>
<div id="searchForm">
  <form action="<?php 
echo active_project()->getSearchUrl();
?>
" method="get">
    <?php 
echo input_field('search_for', array_var($_GET, 'search_for'));
?>
    <input type="hidden" name="c" value="project" />
    <input type="hidden" name="a" value="search" />
    <input type="hidden" name="active_project" value="<?php 
echo active_project()->getId();
?>
" />
    <?php 
echo submit_button(lang('search'));
?>
    <?php 
echo lang('search hint');
?>
  </form>
</div>

<?php 
开发者ID:bahmany,项目名称:PythonPurePaperless,代码行数:31,代码来源:search.php

示例3: set_page_title

<?php

set_page_title(lang('tags'));
project_tabbed_navigation('tags');
project_crumbs(array(array(lang('tags'), get_url('project', 'tags')), array($tag)));
if (isset($tagged_objects) && is_array($tagged_objects) && count($tagged_objects)) {
    ?>
<p><?php 
    echo lang('total objects tagged with', $total_tagged_objects, clean($tag));
    ?>
:</p>

<?php 
    if (isset($tagged_objects['messages']) && is_array($tagged_objects['messages']) && count($tagged_objects['messages'])) {
        ?>
<h2><?php 
        echo lang('messages');
        ?>
</h2>
<ul>
<?php 
        foreach ($tagged_objects['messages'] as $message) {
            ?>
  <li><a href="<?php 
            echo $message->getViewUrl();
            ?>
"><?php 
            echo clean($message->getTitle());
            ?>
</a>
<?php 
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:project_tag.php

示例4: set_page_title

<?php

  set_page_title(lang('milestones'));
  project_tabbed_navigation(PROJECT_TAB_MILESTONES);
  project_crumbs(lang('milestones'));
  if(ProjectMilestone::canAdd(logged_user(), active_context())) {
    add_page_action(lang('add milestone'), get_url('milestone', 'add'), 'ico-milestone');
  } // if

?>
<?php if($late_milestones || $today_milestones || $upcoming_milestones) { ?>
<div id="milestones">
<?php if(is_array($late_milestones) && count($late_milestones)) { ?>
  <div id="lateMilestones">
  <h2><?php echo lang('late milestones') ?></h2>
<?php 
  foreach($late_milestones as $milestone) {
    $this->assign('milestone', $milestone);
    $this->includeTemplate(get_template_path('view_milestone', 'milestone'));
  } // foreach 
?>
  </div>
<?php } // if ?>

<?php if(is_array($today_milestones) && count($today_milestones)) { ?>
  <div id="todayMilestones">
  <h2><?php echo lang('today milestones') ?></h2>
<?php 
  foreach($today_milestones as $milestone) {
    $this->assign('milestone', $milestone);
    $this->includeTemplate(get_template_path('view_milestone', 'milestone'));
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:index.php

示例5: require_javascript

<?php
  require_javascript("og/modules/addProjectForm.js");
  set_page_title($project_form->isNew() ? lang('add form') : lang('edit form'));
  project_tabbed_navigation(PROJECT_TAB_FORMS);
  project_crumbs(array(
    array(lang('forms'), get_url('form')),
    array($project_form->isNew() ? lang('add form') : lang('edit form'))
  ));
  //add_stylesheet_to_page('project/forms.css');
  
?>
<form class="internalForm" action="<?php echo $project_form->isNew() ? get_url('form', 'add') : $project_form->getEditUrl() ?>" method="post">


<?php tpl_display(get_template_path('form_errors')) ?>

  <div>
    <?php echo label_tag(lang('name'), 'projectFormName', true) ?>
    <?php echo text_field('project_form[name]', array_var($project_form_data, 'name'), array('id' => 'projectFormName', 'class' => 'long')) ?>
  </div>
  
  <div>
    <?php echo label_tag(lang('description'), 'projectFormDescription') ?>
    <?php echo textarea_field('project_form[description]', array_var($project_form_data, 'description'), array('id' => 'projectFormDescription', 'class' => 'short')) ?>
  </div>
  
  <div>
    <?php echo label_tag(lang('success message'), 'projectFormSuccessMessage',true) ?>
    <?php echo textarea_field('project_form[success_message]', array_var($project_form_data, 'success_message'), array('id' => 'projectFormSuccessMessage', 'class' => 'short')) ?>
  </div>
  
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:30,代码来源:add_project_form.php

示例6: set_page_title

<?php

/**
 * @author ALBATROS INFORMATIQUE SARL - CARQUEFOU FRANCE - Damien HENRY
 * @licence Honest Public License
 * @package ProjectPier Gantt
 * @version $Id$
 * @access public
 */
set_page_title(lang('reports'));
project_tabbed_navigation(PROJECT_TAB_REPORTS);
project_crumbs(array(array(lang('reports'))));
//object height
$ObjHeight = '500px';
$urlMindMap = externalUrl(html_entity_decode(get_url('reports', 'mindmap')));
$urlGantt = externalUrl(html_entity_decode(get_url('reports', 'Gantt_Chart')));
//$urlMindMap = html_entity_decode('http://freemind.sourceforge.net/wiki/images/a/a5/FreemindFlash.mm&startCollapsedToLevel=5&mm_title=FreemindFlash.mm');
add_page_action(lang('gantt'), 'javascript:show_gantt();');
add_page_action(lang('mindmap'), 'javascript:show_mindmap();');
?>
<script>
show_gantt = function() {
  document.getElementById('MM').style.display = 'none';
  document.getElementById('GANTT').style.display = 'block';
  document.getElementById('GRAPH').style.display = 'block';
  var now = new Date();
  document.getElementById('GRAPH').src = '<?php 
echo $urlGantt;
?>
&'+ now.valueOf();
}
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:index.php

示例7: set_page_title

<?php

set_page_title($message->getTitle());
project_tabbed_navigation('messages');
project_crumbs(array(array(lang('messages'), get_url('message', 'index')), array(lang('view message'))));
if (ProjectMessage::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add message'), get_url('message', 'add'));
}
// if
add_stylesheet_to_page('project/messages.css');
$createdBy = $message->getCreatedBy();
?>
<div class="message block">
  <div class="header">
<?php 
if ($message->isPrivate()) {
    ?>
    <div class="private" title="<?php 
    echo lang('private message');
    ?>
"><span><?php 
    echo lang('private message');
    ?>
</span></div>
<?php 
}
// if
if ($message->getCreatedBy() instanceof User) {
    ?>
    <div class="author"><?php 
    echo lang('posted on by', format_datetime($message->getCreatedOn()), $message->getCreatedBy()->getCardUrl(), clean($message->getCreatedBy()->getDisplayName()));
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:view.php

示例8: set_page_title

<?php

set_page_title(lang('tags'));
project_tabbed_navigation(PROJECT_TAB_TAGS);
project_crumbs(array(array(lang('tags'), get_url('project', 'tags')), array($tag)));
if (isset($tagged_objects) && is_array($tagged_objects) && count($tagged_objects)) {
    ?>
<p><?php 
    echo lang('total objects tagged with', $total_tagged_objects, clean($tag));
    ?>
:</p>

<?php 
    if (isset($tagged_objects['messages']) && is_array($tagged_objects['messages']) && count($tagged_objects['messages'])) {
        ?>
<h2><?php 
        echo lang('messages');
        ?>
</h2>
<ul>
<?php 
        foreach ($tagged_objects['messages'] as $message) {
            ?>
  <li><a class="internalLink" href="<?php 
            echo $message->getViewUrl();
            ?>
"><?php 
            echo clean($message->getTitle());
            ?>
</a>
<?php 
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:project_tag.php

示例9: set_page_title

<?php

// Set page title and set crumbs to index
set_page_title(lang('add ticket'));
project_tabbed_navigation(PROJECT_TAB_TICKETS);
project_crumbs(array(array(lang('tickets'), get_url('tickets')), array(lang('add ticket'))));
add_stylesheet_to_page('project/tickets.css');
?>
<h2><?php 
echo lang('ticket #', $ticket->getId());
?>
</h2>

<form action="<?php 
echo get_url('tickets', 'add_ticket');
?>
" method="post" enctype="multipart/form-data">

<?php 
tpl_display(get_template_path('form_errors'));
?>


  <div>
    <?php 
echo label_tag(lang('summary'), 'ticketFormSummary', true);
?>
    <?php 
echo text_field('ticket[summary]', array_var($ticket_data, 'summary'), array('id' => 'ticketFormSummary', 'class' => 'title'));
?>
  </div>
开发者ID:469306621,项目名称:Languages,代码行数:31,代码来源:add_ticket.php

示例10: set_page_title

<?php

set_page_title($message->getTitle());
project_tabbed_navigation(PROJECT_TAB_MESSAGES);
project_crumbs(array(array(lang('messages'), get_url('message')), array(lang('view message'))));
if (ProjectMessage::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add message'), get_url('message', 'add'));
}
// if
add_stylesheet_to_page('project/messages.css');
?>
<div class="message">
  <div class="messageDetails">
<?php 
if ($message->isPrivate()) {
    ?>
    <div class="private" title="<?php 
    echo lang('private message');
    ?>
"><span><?php 
    echo lang('private message');
    ?>
</span></div>
<?php 
}
// if
if ($message->getCreatedBy() instanceof User) {
    ?>
    <div class="messageAuthor"><?php 
    echo lang('posted on by', format_datetime($message->getCreatedOn()), $message->getCreatedBy()->getCardUrl(), clean($message->getCreatedBy()->getDisplayName()));
    ?>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:view.php

示例11: set_page_title

<?php

set_page_title($milestone->isNew() ? lang('add milestone') : lang('edit milestone'));
project_tabbed_navigation('milestones');
project_crumbs(array(array(lang('milestones'), get_url('milestone')), array($milestone->isNew() ? lang('add milestone') : lang('edit milestone'))));
if ($milestone->isNew()) {
    ?>
<form action="<?php 
    echo get_url('milestone', 'add');
    ?>
" method="post">
<?php 
} else {
    ?>
<form action="<?php 
    echo $milestone->getEditUrl();
    ?>
" method="post">
<?php 
}
// if
?>

<?php 
tpl_display(get_template_path('form_errors'));
?>

  <div>
    <?php 
echo label_tag(lang('name'), 'milestoneFormName', true);
?>
开发者ID:federosky,项目名称:ProjectPier-Core,代码行数:31,代码来源:add_milestone.php

示例12: set_page_title

<?php

set_page_title($comment->isNew() ? lang('add comment') : lang('edit comment'));
project_tabbed_navigation(PROJECT_TAB_OVERVIEW);
project_crumbs(array($comment->isNew() ? lang('add comment') : lang('edit comment')));
// project_crumbs
if ($comment->isNew()) {
    ?>
<form action="<?php 
    echo Comment::getAddUrl($comment_form_object);
    ?>
" method="post">
<?php 
} else {
    ?>
<form action="<?php 
    echo $comment->getEditUrl();
    ?>
" method="post">
<?php 
}
// if
?>

<?php 
tpl_display(get_template_path('form_errors'));
?>

<?php 
if ($comment_form_object->columnExists('comments_enabled') && !$comment_form_object->getCommentsEnabled() && logged_user()->isAdministrator()) {
    ?>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:add_comment.php

示例13: set_page_title

<?php

set_page_title(lang('settings'));
project_tabbed_navigation('settings');
project_crumbs(lang('settings'));
?>
<div id="configuration">
<?php 
if (logged_user()->isAdministrator() || active_project()->canEdit(logged_user())) {
    ?>
  <h2><a href="<?php 
    echo $project->getEditUrl();
    ?>
"><?php 
    echo lang('edit project');
    ?>
</a></h2>
<?php 
}
// if
if (logged_user()->isAdministrator() || active_project()->canChangePermissions(logged_user())) {
    ?>
  <h2><a href="<?php 
    echo get_url('project_settings', 'users');
    ?>
"><?php 
    echo lang('users');
    ?>
</a></h2>
<?php 
}
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:index.php

示例14: require_javascript

<div style="padding:10px">
<?php 
require_javascript('og/modules/updatePermissionsForm.js');
set_page_title(lang('permissions'));
project_tabbed_navigation(PROJECT_TAB_PEOPLE);
project_crumbs(array(array(lang('people'), get_url('project', 'people')), array(lang('permissions'))));
//add_stylesheet_to_page('project/permissions.css');
$quoted_permissions = array();
foreach ($permissions as $permission_id => $permission_text) {
    $quoted_permissions[] = "'{$permission_id}'";
}
// foreach
?>
<script>
  App.modules.updatePermissionsForm.owner_company_id = <?php 
echo owner_company()->getId();
?>
;
  App.modules.updatePermissionsForm.project_permissions = new Array(<?php 
echo implode(', ', $quoted_permissions);
?>
);
</script>

<label><b><?php 
echo lang('edit permissions');
?>
</b></label>
<label><i><?php 
echo lang('edit permissions explanation');
?>
开发者ID:pnagaraju25,项目名称:fengoffice,代码行数:31,代码来源:permissions.php

示例15: set_page_title

<?php

set_page_title($file->getObjectName());
project_tabbed_navigation(PROJECT_TAB_FILES);
$files_crumbs = array(0 => array(lang('files'), get_url('files')));
// array
if ($folder instanceof ProjectFolder) {
    $files_crumbs[] = array($folder->getName(), $folder->getBrowseUrl());
}
// if
$files_crumbs[] = lang('file details');
project_crumbs($files_crumbs);
if (ProjectFile::canAdd(logged_user(), active_project())) {
    if ($folder instanceof ProjectFolder) {
        add_page_action(lang('add file'), $folder->getAddFileUrl());
    } else {
        add_page_action(lang('add file'), get_url('files', 'add_file'));
    }
    // if
}
// if
if (ProjectFolder::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add folder'), get_url('files', 'add_folder'));
}
// if
add_stylesheet_to_page('project/files.css');
?>
<div id="fileDetails" class="block">
<?php 
if ($file->isPrivate()) {
    ?>
开发者ID:bahmany,项目名称:PythonPurePaperless,代码行数:31,代码来源:file_details.php


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