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


PHP administration_crumbs函数代码示例

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


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

示例1: set_page_title

<?php

set_page_title(lang('time manager'));
administration_tabbed_navigation(ADMINISTRATION_TAB_TIME);
administration_crumbs(lang('time manager'));
add_page_action(lang('unbilled time'), get_url('administration', 'time', array('status' => '0')));
add_page_action(lang('billed time'), get_url('administration', 'time', array('status' => '1')));
add_page_action(lang('view by user'), get_url('user', 'time'));
add_page_action(lang('view by project'), get_url('project', 'time'));
add_stylesheet_to_page('project/time.css');
?>
<div id="time">

<h2><?php 
echo $user->getDisplayName();
?>
's <?php 
echo lang('unbilled time');
?>
</h2>

<form action="<?php 
echo get_url('time', 'setstatus', array('status' => '0', 'redirect_to' => $redirect_to));
?>
" method="post">

<table class="timeLogs blank">
  <tr>
    <th></th>
    <th><?php 
echo lang('date');
开发者ID:469306621,项目名称:Languages,代码行数:31,代码来源:byuser.php

示例2: set_page_title

<?php

set_page_title(lang('delete contact'));
if ($contact->isMemberOfOwnerCompany()) {
    administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY);
} else {
    administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS);
}
administration_crumbs(lang('contacts'));
?>
<form action="<?php 
echo $contact->getDeleteUrl();
?>
" method="post">
  <?php 
tpl_display(get_template_path('form_errors'));
?>

<?php 
if ($contact->hasAvatar()) {
    ?>
  <div class="contactAvatar"><img src="<?php 
    echo $contact->getAvatarUrl();
    ?>
" alt="<?php 
    echo clean($contact->getDisplayName());
    ?>
 <?php 
    echo lang('avatar');
    ?>
" /></div>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:del_contact.php

示例3: set_page_title

<?php

// Set page title and set crumbs to index
set_page_title(lang('clients'));
administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS);
administration_crumbs(lang('clients'));
if (owner_company()->canAddClient(logged_user())) {
    add_page_action(lang('add client'), get_url('company', 'add_client'));
    add_page_action(lang('add contact'), get_url('contacts', 'add'));
}
// if
if (isset($clients) && is_array($clients) && count($clients)) {
    ?>
<table>
  <tr>
    <th><?php 
    echo lang('name');
    ?>
</th>
    <th class="medium"><?php 
    echo lang('contacts');
    ?>
</th>
    <th><?php 
    echo lang('options');
    ?>
</th>
  </tr>
<?php 
    foreach ($clients as $client) {
        ?>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:clients.php

示例4: set_page_title

<?php

set_page_title(lang('update permissions'));
administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS);
administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->getName(), $company->getViewUrl()), array(lang('update permissions'))));
if (isset($projects) && is_array($projects) && count($projects)) {
    ?>
<div id="companyPermissions">
  <div class="hint">
    <div class="header"><?php 
    echo lang('hint');
    ?>
</div>
    <div class="content"><?php 
    echo lang('update company permissions hint');
    ?>
</div>
  </div>
  <form action="<?php 
    echo $company->getUpdatePermissionsUrl();
    ?>
" method="post">
    <table class="blank">
<?php 
    foreach ($projects as $project) {
        ?>
      <tr>
        <td><?php 
        echo checkbox_field('project_' . $project->getId(), $company->isProjectCompany($project), array('id' => 'projectPermissionsCheckbox' . $project->getId(), 'disabled' => !logged_user()->isProjectUser($project)));
        ?>
</td>
开发者ID:469306621,项目名称:Languages,代码行数:31,代码来源:update_permissions.php

示例5: set_page_title

<?php

set_page_title(lang('edit company logo'));
if ($company->isOwner()) {
    administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY);
    administration_crumbs(array(array(lang('company'), get_url('administration', 'company')), array(lang('edit company logo'))));
} else {
    administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS);
    administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->getName(), $company->getViewUrl()), array(lang('edit company logo'))));
}
// if
?>
<form action="<?php 
echo $company->getEditLogoUrl();
?>
" method="post" enctype="multipart/form-data">

<?php 
tpl_display(get_template_path('form_errors'));
?>
  
  <fieldset>
    <legend><?php 
echo lang('current logo');
?>
</legend>
<?php 
if ($company->hasLogo()) {
    ?>
    <img src="<?php 
    echo $company->getLogoUrl();
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:edit_logo.php

示例6: set_page_title

<?php

set_page_title(lang('update permissions'));
if ($user->getCompany()->isOwner()) {
    administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY);
    administration_crumbs(array(array(lang('company'), $user->getCompany()->getViewUrl()), array($user->getDisplayName(), $user->getCardUrl()), array(lang('update permissions'))));
} else {
    administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS);
    administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($user->getCompany()->getName(), $user->getCompany()->getViewUrl()), array($user->getDisplayName(), $user->getCardUrl()), array(lang('update permissions'))));
}
// if
if ($user->canUpdateProfile(logged_user())) {
    add_page_action(array(lang('update profile') => $user->getEditProfileUrl(), lang('change password') => $user->getEditPasswordUrl(), lang('update avatar') => $user->getUpdateAvatarUrl()));
}
// if
if ($user->canUpdatePermissions(logged_user())) {
    add_page_action(array(lang('permissions') => $user->getUpdatePermissionsUrl()));
}
// if
add_stylesheet_to_page('admin/user_permissions.css');
$quoted_permissions = array();
foreach ($permissions as $permission_id => $permission_text) {
    $quoted_permissions[] = "'{$permission_id}'";
}
// foreach
?>
<script type="text/javascript" src="<?php 
echo get_javascript_url('modules/updateUserPermissions.js');
?>
"></script>
<script type="text/javascript">
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:update_permissions.php

示例7: set_page_title

<?php

set_page_title($company->getName());
if ($company->isOwner()) {
    administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY);
    administration_crumbs(lang('company'));
} else {
    administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS);
    administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->getName())));
}
// if
if ($company->canEdit(logged_user())) {
    add_page_action(lang('edit company'), $company->getEditUrl());
    add_page_action(lang('edit company logo'), $company->getEditLogoUrl());
    if (!$company->isOwner()) {
        add_page_action(lang('update permissions'), $company->getUpdatePermissionsUrl());
    }
    // if
}
// if
if (User::canAdd(logged_user(), $company)) {
    add_page_action(lang('add user'), $company->getAddUserUrl());
}
// if
$this->includeTemplate(get_template_path('company_card', 'company'));
?>

<h2><?php 
echo lang('users');
?>
</h2>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:view_company.php

示例8: set_page_title

<?php

set_page_title(lang('configuration'));
administration_tabbed_navigation(ADMINISTRATION_TAB_CONFIGURATION);
administration_crumbs(lang('configuration', 'index'));
?>
<div id="configuration">
<?php 
if (isset($config_categories) && is_array($config_categories) && count($config_categories)) {
    foreach ($config_categories as $config_category) {
        if (!$config_category->isEmpty()) {
            ?>

  <div class="configCategory" id="category_<?php 
            echo $config_category->getName();
            ?>
">
    <h2><a href="<?php 
            echo $config_category->getUpdateUrl();
            ?>
"><?php 
            echo clean($config_category->getDisplayName());
            ?>
</a></h2>
<?php 
            if (trim($config_category->getDisplayDescription())) {
                ?>
    <div class="configCategoryDescription"><?php 
                echo do_textile($config_category->getDisplayDescription());
                ?>
</div>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:configuration.php

示例9: set_page_title

<?php

set_page_title(lang('configuration'));
administration_tabbed_navigation(ADMINISTRATION_TAB_CONFIGURATION);
administration_crumbs(lang('configuration'));
?>
<div id="configuration">
<?php 
if (isset($config_categories) && is_array($config_categories) && count($config_categories)) {
    foreach ($config_categories as $config_category) {
        if (!$config_category->isEmpty()) {
            ?>

  <div class="configCategory" id="category_<?php 
            echo $config_category->getName();
            ?>
">
    <h2><a href="<?php 
            echo $config_category->getUpdateUrl();
            ?>
"><?php 
            echo clean($config_category->getDisplayName());
            ?>
</a></h2>
<?php 
            if (trim($config_category->getDisplayDescription())) {
                ?>
    <div class="configCategoryDescription"><?php 
                echo do_textile($config_category->getDisplayDescription());
                ?>
</div>
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:configuration.php

示例10: set_page_title

<?php

  set_page_title($user->isNew() ? lang('add user account') : lang('edit user account'));
  if ($company->isOwner()) {
    administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY);
    administration_crumbs(array(
      array(lang('company'), $company->getViewUrl()),
      array($contact->getDisplayName(), $contact->getCardUrl()),
      array($user->isNew() ? lang('add user account') : lang('edit user account'))
    ));
  } else {
    administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS);
    administration_crumbs(array(
      array(lang('clients'), get_url('administration', 'clients')),
      array($company->getName(), $company->getViewUrl()),
      array($contact->getDisplayName(), $contact->getCardUrl()),
      array($user->isNew() ? lang('add user account') : lang('edit user account'))
    ));
  } // if
  
  add_stylesheet_to_page('admin/user_permissions.css');

?>
<?php if ($contact->hasAvatar()) { ?>
  <span class="icon"><img src="<?php echo $contact->getAvatarUrl() ?>" alt="<?php echo clean($contact->getDisplayName()) ?> <?php echo lang('avatar') ?>" /></span>
<?php } ?>
<?php echo lang('contact').': '.$contact->getDisplayName() ?>
<div class="clear"></div>
  
<form action="<?php if ($user->isNew()) { echo $contact->getAddUserAccountUrl(); } else { echo $contact->getEditUserAccountUrl(); }?>" method="post">
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:30,代码来源:add_user_to_contact.php

示例11: set_page_title

<?php

set_page_title(lang('delete user'));
administration_tabbed_navigation(ADMINISTRATION_TAB_PROJECTS);
administration_crumbs(lang('users'));
?>
<form action="<?php 
echo $user->getDeleteUrl();
?>
" method="post">
  <?php 
tpl_display(get_template_path('form_errors'));
?>

  <div><?php 
echo lang('about to delete');
?>
 <b><?php 
echo clean($user->getDisplayName());
?>
</b></div>

  <div>
    <label><?php 
echo lang('confirm delete user');
?>
</label>
    <?php 
echo yes_no_widget('deleteUser[really]', 'deleteUserReallyDelete', false, lang('yes'), lang('no'));
?>
  </div>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:del_user.php

示例12: set_page_title

<?php

// Set page title and set crumbs to index
set_page_title(lang('administration'));
administration_tabbed_navigation();
administration_crumbs(lang('index'));
?>
<div class="hint">
  <div class="header"><?php 
echo lang('welcome to administration');
?>
</div>
  <div class="content" style="overflow: hidden;">
    <div><?php 
echo lang('welcome to administration info');
?>
</div>
    <div><ul style="float: left; width: 12em; height: auto;">
      <li><a href="<?php 
echo get_url('administration', 'company');
?>
"><?php 
echo lang('company');
?>
</a></li>
      <li><a href="<?php 
echo get_url('administration', 'clients');
?>
"><?php 
echo lang('clients');
?>
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:index.php

示例13: set_page_title

<?php

set_page_title(lang('plugins'));
administration_tabbed_navigation(ADMINISTRATION_TAB_PLUGINS);
administration_crumbs(lang('plugins'), 'index');
add_stylesheet_to_page('project/messages.css');
if (isset($plugins) && is_array($plugins) && count($plugins)) {
    ?>
<script language="JavaScript">
  function toggleVisibility(me) {
    if (me.style.visibility=="hidden") {
      me.style.visibility="visible";
    } else {
      me.style.visibility="hidden";
    }
  }
  function toggleDisplay(me) {
    if (me.style.display=="none") {
      me.style.display="block";
    } else {
      me.style.display="none";
    }
  }
</script>
<div id="plugins">
  <form action="<?php 
    echo get_url('administration', 'update_plugins');
    ?>
" method="post">
  <fieldset>
    <legend><?php 
开发者ID:469306621,项目名称:Languages,代码行数:31,代码来源:plugins.php

示例14: set_page_title

<?php

if ($project->isNew()) {
    set_page_title(lang('add project'));
    administration_tabbed_navigation(ADMINISTRATION_TAB_PROJECTS);
    administration_crumbs(array(array(lang('projects'), get_url('administration', 'projects')), array(lang('add project'))));
} else {
    set_page_title(lang('edit project'));
    administration_tabbed_navigation(ADMINISTRATION_TAB_PROJECTS);
    administration_crumbs(array(array(lang('projects'), get_url('administration', 'projects')), array(lang('edit project'))));
}
// if
if ($project->isNew()) {
    ?>
<form action="<?php 
    echo get_url('project', 'add');
    ?>
" method="post">
<?php 
} else {
    ?>
<form action="<?php 
    echo $project->getEditUrl();
    ?>
" method="post">
<?php 
}
// if
?>

<?php 
开发者ID:ukd1,项目名称:Project-Pier,代码行数:31,代码来源:add_project.php

示例15: set_page_title

<?php

if ($user->getId() == logged_user()->getId()) {
    set_page_title(lang('update profile'));
    account_tabbed_navigation();
    account_crumbs(lang('update profile'));
} else {
    set_page_title(lang('update profile'));
    if ($company->isOwner()) {
        administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY);
        administration_crumbs(array(array(lang('company'), $company->getViewUrl()), array(lang('update profile'))));
    } else {
        administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS);
        administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->getName(), $company->getViewUrl()), array($user->getDisplayName(), $user->getCardUrl()), array(lang('update profile'))));
    }
    // if
}
// if
if ($user->canUpdateProfile(logged_user())) {
    add_page_action(array(lang('update profile') => $user->getEditProfileUrl(), lang('change password') => $user->getEditPasswordUrl(), lang('update avatar') => $user->getUpdateAvatarUrl()));
}
// if
if ($user->canUpdatePermissions(logged_user())) {
    add_page_action(array(lang('permissions') => $user->getUpdatePermissionsUrl()));
}
// if
?>
<form action="<?php 
echo $user->getEditProfileUrl($redirect_to);
?>
" method="post">
开发者ID:bklein01,项目名称:Project-Pier,代码行数:31,代码来源:edit_profile.php


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