當前位置: 首頁>>代碼示例>>PHP>>正文


PHP nav_tabs函數代碼示例

本文整理匯總了PHP中nav_tabs函數的典型用法代碼示例。如果您正苦於以下問題:PHP nav_tabs函數的具體用法?PHP nav_tabs怎麽用?PHP nav_tabs使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了nav_tabs函數的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: use_helper

<?php

// auto-generated by sfPropelCrud
// date: 2008/02/18 03:11:47
use_helper('Global', 'Object', 'Form', 'Javascript');
?>

<?php 
echo nav_tabs('messages', 'compose');
?>

    <?php 
if ($sf_request->hasErrors()) {
    ?>
      <div>
        <span>Something seems to be wrong with your message. Please correct these errors and resend it:</span>
        <ul>
        <?php 
    foreach ($sf_request->getErrors() as $name => $error) {
        ?>
          <li><?php 
        echo $error;
        ?>
</li>
        <?php 
    }
    ?>
        </ul>
      </div>
    <?php 
}
開發者ID:sgrove,項目名稱:cothinker,代碼行數:31,代碼來源:composeSuccess.php

示例2: use_helper

<?php

use_helper('Date', 'Number', 'I18N', 'Form', 'Javascript', 'Star', 'Global', 'sfFileGallery');
?>

<?php 
echo nav_tabs('project', $tab, $project);
?>

<div style="border: 1px solid #72BE44;background-color: #D9E1FF;padding: 4px;margin-bottom: 10px;">
  <p style="float:right;text-align:right;">
    Task belongs to <?php 
echo $task->getSingleUser('user')->getProfile()->getFullName();
?>
<br />
    Assigned by <?php 
echo link_to($task->getSfGuardUser()->getProfile(), '@show_user?user=' . $task->getSfGuardUser()->getProfile()->getUuid());
?>
 on <?php 
echo format_date($task->getCreatedAt());
?>
<br />
    <a href="#comments"><?php 
echo icon_tag('comment') . ' ' . $task->getNbComments() . ' Comments';
?>
</a>
    <?php 
echo icon_tag('folder') . ' ' . get_nb_files('Task', $task->getId()) . ' Files ';
if ($sf_user->isAuthenticated() && $project->hasPermission('create-task', $sf_user->getId())) {
    echo icon_tag('notes_edit') . ' ' . link_to('Edit Task', '@edit_project_task?project=' . $project->getSlug() . '&task=' . $task->getUuid());
}
開發者ID:sgrove,項目名稱:cothinker,代碼行數:31,代碼來源:showTaskSuccess.php

示例3: nav_tabs

if (!isset($tab)) {
    ?>
  <?php 
    if ($sf_user->isAuthenticated()) {
        $tab = 'personal';
    } else {
        $tab = 'profile';
    }
}
if ($tab == 'personal' && !$sf_user->isAuthenticated() || $tab == 'personal' && $sf_user->isAuthenticated() && $profile->getUserId() != $sf_user->getId()) {
    $tab = 'profile';
}
?>

<?php 
echo nav_tabs('profile', $tab, $profile);
?>

<?php 
$content = 'These widgets over here don\'t do much now, but we have plenty of useful things planned for them. If you\'re really anxious to get these things going, head over to the <strong>' . link_to('suggestions page', 'features/list?tab=mostpopular#70') . '</strong> and vote for #70! Better yet, tell us what interested ideas you have for Cothink widgets!';
$panel = array();
$panel['title'] = "Forgetful widgets";
$panel['content'] = $content;
$panel['id'] = 'panel-user-forgetful';
$panel['class'] = 'panel-holder panel-size-1 float-right clear-both';
echo output_panel($panel);
$content = '';
$events = $sf_user->getProfile()->getHistory(5);
$counter = 0;
foreach ($events as $event) {
    $counter++;
開發者ID:sgrove,項目名稱:cothinker,代碼行數:31,代碼來源:showPersonalSuccess.php

示例4: use_helper

<?php

myToolkit::prependPageTitle(sfConfig::get('app_title_create_project'));
use_helper('Object', 'Global', 'Project', 'nifty');
?>

<?php 
include_partial("home/storage_div");
?>

<?php 
echo nav_tabs('projects', $tab);
?>

  <ul style="list-style:horizontal;">
    <li style="float:left;margin-right:5px;">1. Description</li>
    <li style="float:left;margin-right:5px;">2. Details</li>
    <li style="float:left;margin-right:5px;">3. Timeline</li>
  </ul>
  <hr class="clear" />

  <h1>Creating a project on Cothink . . .</h1>
  <div id="project-information" style="width:70%;float:left;background-color:#87B94D;color:white;padding:4px;">
    <h2>Here are a few things you should know...</h2>
    <p>
      Projects on Cothink have to meet certain requirements.<br />
      <span>1. As the project manager, you'll have to show how your proposal will benefit your community, and explain why student work will be a good fit for you.</span><br />
      <span>2. When you create your first project, we take a few extra steps to verify your identity. You might be required to upload a photo of yourself, or fill in extra fields for your profile.</span><br />
      Also, creating a project can be difficult, especially if you're not familiar with the subject area - you know what you want, but you don't know what it involves. At every step of the process, you can flag your application for help. The Cothink community, made up of experts from every field, will then be shown the page of the application you've requested help for. Everyone will make comments, and guide you, offering suggestions on setting reasonable guidelines. Only you can actually make the changes though, so no worries. Take the suggestions you like, and politely decline the ones you don't.
  </div>
開發者ID:sgrove,項目名稱:cothinker,代碼行數:30,代碼來源:createSuccess.php

示例5: display_tabbed_panel_box

function display_tabbed_panel_box($portal_id, $topic_id, $sub_topic_1_id, $sub_topic_2_id, $sub_topic_3_id, $sub_topic_4_id, $category_id)
{
    $output = "<div class=\"row\"><!-- row ? - tabbed pannel content box row -->";
    $output .= "<div class=\"section-box\">";
    $output .= "<div class=\"bs-example\">";
    echo $output;
    nav_tabs($portal_id, $topic_id, $sub_topic_1_id, $sub_topic_2_id, $sub_topic_3_id, $sub_topic_4_id, $category_id);
    tab_content($portal_id, $topic_id, $sub_topic_1_id, $sub_topic_2_id, $sub_topic_3_id, $sub_topic_4_id, $category_id);
    $output = "<br class=\"clearfloat\" />";
    $output .= "<!-- end .bs-example--></div>";
    $output .= "<br class=\"clearfloat\" />";
    $output .= "<!-- end .section-box --></div>";
    $output .= "<!-- end section-box .row --></div>";
    echo $output;
}
開發者ID:kamalrazalatif,項目名稱:razaweb,代碼行數:15,代碼來源:display_functions.php

示例6: use_helper

// auto-generated by sfPropelCrud
// date: 2008/06/07 23:07:24
use_helper('Javascript', 'Date', 'sfIcon', 'Global', 'Object');
?>

<?php 
$tab = $sf_params->get('tab');
if (!isset($tab)) {
    ?>
  <?php 
    $tab = 'mostrecent';
}
?>
	<?php 
echo nav_tabs('features', $tab);
?>

<?php 
if ($sf_user->isAuthenticated()) {
    echo link_to_function('Hide Suggestion Form', visual_effect('toggle_blind', 'new_feature', array("duration" => 0.5)));
    $new_feature = new SuggestedFeature();
    ?>
<div id="new_feature">
  <div class="blue-shadow"><div class="blue-title blue-content">Tell us what's up!</div></div>
  <div class="blue-shadow">
    <div class="blue-content">
      <?php 
    echo form_tag('features/saveNew');
    ?>
      
開發者ID:sgrove,項目名稱:cothinker,代碼行數:29,代碼來源:listSuccess.php

示例7: use_helper

<?php

use_helper('I18N');
?>
  <?php 
$tab = $sf_params->get('tab');
?>
  <?php 
if (!isset($tab)) {
    ?>
    <?php 
    $tab = 'inbox';
    ?>
  <?php 
}
?>

  <div id="project-tabs">
    <ul>
	<?php 
echo nav_tabs('messages', $tab);
?>
    </ul>
  </div>
開發者ID:sgrove,項目名稱:cothinker,代碼行數:24,代碼來源:_mailNavigation.php

示例8: use_helper

<?php

// auto-generated by sfPropelCrud
// date: 2008/04/07 23:35:01
use_helper('Object', 'Global');
?>

<?php 
echo nav_tabs('project', 'tasks', $task->getProject());
?>
  
<div id="form-holder-blue" style="margin-bottom:10px;margin-top:25px;float:none;" class="form-holder-blue">
  <div class="blue-shadow"><div class="blue-title blue-content">Edit task for your project</div></div>
  <div class="blue-shadow">
    <div class="blue-content">
      <?php 
echo form_tag('tasks/update');
?>
        <fieldset id="task-details" style="vertical-align:top;">
          <?php 
echo input_hidden_tag('task', $task->getUuid(), array());
?>
          <ul>
            <li style="float:left;width:50%;margin-right:5px;">
                <?php 
echo label_for('name', 'Task Name'), object_input_tag($task, 'getName', array('style' => 'width:100%;'));
?>
<br />
            </li>
            <li style="float:left;margin-right:5px;">
                <?php 
開發者ID:sgrove,項目名稱:cothinker,代碼行數:31,代碼來源:editSuccess.php

示例9: use_helper

<?php

// auto-generated by sfPropelCrud
// date: 2008/04/04 15:24:10
use_helper('I18N', 'Global');
?>

<?php 
echo nav_tabs('members', $tab);
?>

  <h1><?php 
echo format_number_choice('[0]0 Members|[1]1 Member|(1,+Inf]%1% Members', array('%1%' => $users->getNbResults()), $users->getNbResults());
?>
</h1>
  <?php 
include_partial('list_filter');
?>
<div id="pager-holder">
  <?php 
//echo include_partial('user_pager', array('users' => $users));
?>
</div>
開發者ID:sgrove,項目名稱:cothinker,代碼行數:23,代碼來源:listSuccess.php

示例10: use_helper

<?php

use_helper('Date', 'Number', 'I18N', 'Form', 'Javascript', 'Star', 'Global');
?>
  <div id="project-tabs">
    <ul>
	<?php 
echo nav_tabs('profile', 'blog', $profile);
?>
    </ul>
  </div>

<h1>Blog Entry</h1>
<?php 
echo form_tag('user/blogEntry', array('class' => 'blog-form'));
?>
	<ul>
	<li><?php 
echo label_for('title', __('Title')), input_tag('title');
?>
</li>
	<li><?php 
echo label_for('body', __('Body')), textarea_tag('body');
?>
</li>
	<li><?php 
echo label_for('image', 'Upload Image'), input_file_tag('image', array());
?>
</li>
	<li><?php 
echo submit_tag('Post', array('class' => 'btn'));
開發者ID:sgrove,項目名稱:cothinker,代碼行數:31,代碼來源:blogEntrySuccess.php

示例11: use_helper

<?php

use_helper('Global', 'sfIcon');
?>

<?php 
echo nav_tabs('network', $tab);
?>

<?php 
foreach ($connections as $connection) {
    $user = $connection->getOtherUser($sf_user->getId())->getProfile();
    ?>
<div class="member-connection">
  <?php 
    echo image_tag($user->getPhoto('medium'));
    ?>
  <ul>
    <li><?php 
    echo link_to($user->getFullName(), 'user/show?user=' . $user->getUuid());
    ?>
</li>
    <li><?php 
    echo 'A ' . $user->getDepartment() . ' ' . $user->getTitle() . ' at ' . $user->getCampus();
    ?>
</li>
    <li><?php 
    echo link_to(image_tag('sendmessage') . ' Message', 'messages/compose?recipient=' . $user->getUuid());
    ?>
<li>
    <?php 
開發者ID:sgrove,項目名稱:cothinker,代碼行數:31,代碼來源:indexSuccess.php


注:本文中的nav_tabs函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。