コード例 #1
0
function file_link_to_add($entity, $entity_id, $options = array())
{
    // Convert options string to option array
    if (is_string($options)) {
        $options = _convert_string_option($options);
    }
    $label = 'Add file';
    // CUSTOMIZE LABEL TEXT
    if (isset($options['label'])) {
        $label = $options['label'];
    }
    // ICON
    if (isset($options['icon']) && $options['icon'] == 'true') {
        use_helper('sfIcon');
        $label = icon_tag('folder_add') . ' ' . $label;
    }
    $url = "files/create?entity={$entity}&entity_id={$entity_id}";
    // swicth link to with or without modalBox
    if (isset($options['modalbox']) && $options['modalbox'] == 'true') {
        use_helper('ModalBox');
        return m_link_to($label, $url);
    } else {
        return link_to($label, $url);
    }
}
コード例 #2
0
function photo_link_to_add($entity, $entity_id, $options = array())
{
    // Convert options string to option array
    if (is_string($options)) {
        $options = _convert_string_option($options);
    }
    $label = 'Add photo';
    // CUSTOMIZE LABEL TEXT
    if (isset($options['label'])) {
        $label = $options['label'];
    }
    // ICON
    if (isset($options['icon']) && $options['icon'] == 'true') {
        use_helper('sfIcon');
        $label = icon_tag('image_add') . ' ' . $label;
    }
    $url = "sfPhotoGallery/create?entity={$entity}&entity_id={$entity_id}";
    $url = "@create_photo?entity={$entity}&entity_id={$entity_id}";
    // swicth link to with or without modalBox
    if (isset($options['modalbox']) && $options['modalbox'] == 'true') {
        use_helper('ModalBox');
        return m_link_to($label, $url, array('title' => 'upload photo'));
    } else {
        return link_to($label, $url);
    }
}
コード例 #3
0
use_helper('sfIcon');
?>
<div id="result" style="height:15px;">
  <?php 
if (!$sf_request->hasErrors()) {
    ?>
    <?php 
    echo icon_tag('accept');
    ?>
 The position has been successfully saved
    <?php 
} else {
    ?>
      <?php 
    echo icon_tag('remove');
    ?>
 There are errors in the form, please correct them
  <?php 
}
?>
</div>
<?php 
echo include_partial('project/edit_position_form', array('project' => $project, 'position' => $position));
?>

<?php 
if (!$positionWasNew) {
    ?>
  <?php 
    javascript_tag("\$('milestone_list').replace('<div id=\"milestone_list\">" . include_partial('project/milestone_list', array('position' => $position)) . "</div>)");
コード例 #4
0
$panel['class'] = 'panel-holder panel-size-1 float-right clear-both';
echo output_panel($panel);
include_component('messages', 'recentMessages');
?>

<div style="width:60%;">
  <h2 style="border-bottom: 2px solid #D4D4D4;">News     <?php 
echo link_to(icon_tag('rss'), 'feeds/latest?feed=' . $profile->getUuid());
?>
</h2>
  <?php 
foreach ($sf_user->getProfile()->getHistory(8) as $event) {
    ?>
  <div class="news-feed-entry">
    <h3><?php 
    echo link_to_function(icon_tag('add') . ' ' . $event->getTitle(), visual_effect('toggle_blind', 'entry_' . $event->getUuid(), array('duration' => '0.25')));
    ?>
</h3>
    <span><?php 
    echo __('By <strong>%user%</strong> of the %department% dept. on %time%', array('%user%' => $event->getSfGuardUser()->getProfile(), '%department%' => $event->getSfGuardUser()->getProfile()->getDepartment(), '%time%' => format_date($event->getCreatedAt('U'))));
    ?>
</span>
    <div id="entry_<?php 
    echo $event->getUuid();
    ?>
" style="padding: 5px 0px;display:none;"><?php 
    echo $event->getText();
    ?>
</div>
  </div>
  <?php 
コード例 #5
0
<body>
<?php 
require 'common_menu.php';
?>
<div id="mainwall">
	<div align ="center">
	<br><br><br>
	<strong>プロフィール画像</strong>
	<br><br>
  	<?php 
foreach ($getprofile as $g) {
    ?>
    <tr>
      <td>
        <?php 
    echo icon_tag($g['no']);
    ?>
      </td>
	</tr>
	<br>
	<?php 
}
?>

	<p>
	<a href="user_collection.php?user_id=<?php 
echo $user_id;
?>
"><img src="collection/tiles.png"></a>
	</p>
コード例 #6
0
ファイル: sfIconHelper.php プロジェクト: sgrove/cothinker
function icon_add_tag($size = 'small')
{
    return icon_tag('add', $size);
}
コード例 #7
0
            <?php 
    if ($counter == 3 || $counter == 1) {
        $direction = -1 * $direction;
    }
    ?>
            <?php 
    $counter = $counter + 1 * $direction;
    ?>
                <tr class="row-<?php 
    echo $counter % 3;
    ?>
">
                    <td><?php 
    echo link_to($application->getsfGuardUser()->getProfile()->getFullName(), 'user/show?user='******'users') . ' View Application', array('url' => 'applications/applicationViewer?application=' . $application->getUuid(), 'update' => array('success' => 'details'), 'loading' => "Element.show('loader')", 'complete' => "Element.hide('loader');" . visual_effect('highlight', 'details')));
    ?>
</td>
                </tr>
            <?php 
}
?>
        </tbody>
    </table>
コード例 #8
0
ファイル: resourcesSuccess.php プロジェクト: sgrove/cothinker
                </li>
                <?php 
}
?>
            </ul>
        </li>
        <li id="entry-3">
            <?php 
echo link_to_function('General', visual_effect('toggle_blind', 'subentry-3', array('duration' => '0.5')), array('class' => 'header'));
?>
            <ul id="subentry-3" style="display: none">
                <?php 
foreach ($project->getTags() as $tag) {
    ?>
                <li><?php 
    echo link_to_remote(icon_tag('comment_edit') . ' ' . short_string($tag->getTitle(), 30), array('url' => 'files/fileBrowser?type=positions&id=' . $tag->getUuid(), 'update' => array('success' => 'resources'), 'loading' => "Element.show('loader')", 'complete' => "Element.hide('loader');" . visual_effect('highlight', 'resources')));
    ?>
                </li>
                <?php 
}
?>
        </li>
    </ul>
</div>

<div class="resource-manager-panel2" id="resources" style="height: 200px; width:65%;">
    <table style="width:100%;">
        <thead>
            <tr>
                <td>Files</td>
                <td>Size</td>
コード例 #9
0
ファイル: find_name.php プロジェクト: takumi0705/shoeconnect
	 <!-- エラー(検索欄空欄など)をはかれた時にユーザー一覧を表示する -->
	 <p align="center">
	 	 <?php 
if ($error) {
    echo "<br>ユーザー一覧";
    foreach ($getusers as $g2) {
        ?>
	</p>
    <tr>
    <div class="sen"></div>
    <td>
    <p><a href="find_new_name.php?user_id=<?php 
        echo $g2['no'];
        ?>
"><?php 
        echo icon_tag($g2['no']);
        ?>
</a>
    <a href="find_new_name.php?user_id=<?php 
        echo $g2['no'];
        ?>
"><?php 
        echo $g2['name'];
        ?>
</a>
    &nbsp;&nbsp;&nbsp;好きな靴:<?php 
        echo $g2['fv'];
        ?>
    </p>
    
    </td>
コード例 #10
0
ファイル: viewSuccess.php プロジェクト: sgrove/cothinker
      <?php 
    if ($message->getsfGuardUserRelatedBySenderId()->getId() == $sf_user->getId()) {
        echo "You<br />";
    } else {
        echo link_to($message->getsfGuardUserRelatedBySenderId()->getProfile(), 'user/show?user='******'<br />';
    }
    ?>
      <?php 
    if ($message->getsfGuardUserRelatedByRecipientId()->getId() == $sf_user->getId()) {
        echo "You <br />";
    } else {
        echo link_to($message->getsfGuardUserRelatedByRecipientId()->getProfile(), 'user/show?user='******'<br />';
    }
    ?>
      <?php 
    echo $message->getSubject();
    ?>
<br />
      <?php 
    echo span_button(icon_tag('mail_remove') . ' ' . ucwords(__('delete')), 'messages/delete?message=' . $message->getUUID());
    ?>
    </li>
  </ul>
  <br />
  <div class="msg-body"><?php 
    echo $message->getFormattedBody();
    ?>
</div>
</div>
<?php 
}
コード例 #11
0
ファイル: showSuccess.php プロジェクト: sgrove/cothinker
<?php 
echo nav_tabs('features', $tab);
?>

<div style="border: 1px solid #72BE44;background-color: #D9E1FF;padding: 4px;margin-bottom: 10px;">
  <p style="float:right;text-align:right;">
    <?php 
echo __('A %type% Suggested by %1% %2% ago', array('%1%' => link_to($feature->getsfGuardUser()->getProfile(), 'user/show?user='******'%2%' => distance_of_time_in_words($feature->getCreatedAt('U')), '%type%' => format_number_choice('[' . sfConfig::get('app_feature_type_bug') . ']Bug Report|[' . sfConfig::get('app_feature_type_feature') . ']Feature Request', array(), $feature->getType())));
?>
    <a href="#comments"><?php 
echo icon_tag('comment') . ' ' . $feature->getNbComments() . ' Comments';
?>
</a>
    <?php 
echo icon_tag('folder') . ' ' . get_nb_files('feature', $feature->getId()) . ' Files ';
?>
  </p>
  <p style="float:left;">
    <h4><?php 
echo $feature->getTitle();
?>
</h4>
    <?php 
echo nl2br($feature->getDescription());
?>
  </p>
  <hr class="clear" />
</div>

<div id='files-holder' style='padding:4px;width:48%;float:right;'>
コード例 #12
0
ファイル: showTasksSuccess.php プロジェクト: sgrove/cothinker
      &nbsp;
    </td>
    <td colspan="5">
  		<p>
  		  <?php 
    echo ucfirst($task->getPriorityInWords());
    ?>
 Priority<br />
  		</p>
  		<p>
  		    <?php 
    echo short_string(strip_tags($task->getDescription()), 320);
    ?>
  		</p>
  		<p>
          <?php 
    echo icon_tag('comment') . ' ' . $task->getNbComments() . ' Comments ', icon_tag('folder') . ' ' . get_nb_files('Task', $task->getId()) . ' Files ';
    if ($sf_user->isAuthenticated() && $project->hasPermission('create-task', $sf_user->getId())) {
        echo icon_tag('note_edit') . ' ' . link_to('Edit Task', '@edit_project_task?project=' . $project->getSlug() . '&task=' . $task->getUuid()) . ' ' . icon_tag('note_remove') . ' ' . link_to('Delete Task', '@delete_project_task?project=' . $project->getSlug() . '&task=' . $task->getUuid(), 'post=true&confirm=Are you sure you want to delete the task "' . $task->getName() . '"?');
    }
    ?>
  		</p>
  	</td>
  </tr>
<?php 
}
?>
</tbody>
</table>
</div>
コード例 #13
0
ファイル: editSuccess.php プロジェクト: sgrove/cothinker
    ?>
              <td>
                <div style="padding: 3px; margin: 3px;" id="photo_<?php 
    echo $photo->getUuid();
    ?>
">
                <?php 
    echo light_image('/' . sfConfig::get('sf_upload_dir_name') . '/thumbnails/medium/' . $photo->getRealName(), '/' . sfConfig::get('sf_upload_dir_name') . '/thumbnails/large/' . $photo->getRealName(), array());
    ?>
<br />
                <?php 
    echo link_to(icon_tag('accept') . __(' Set as project picture'), 'project/setProfilePhoto?photo=' . $photo->getUuid() . '&project=' . $project->getUuid());
    ?>
<br />
                <?php 
    echo link_to(icon_tag('remove') . ' ' . __('Delete'), 'project/removePhoto?photo=' . $photo->getUuid() . '&project=' . $project->getUuid());
    ?>
                </div>
              </td>
              <?php 
    $counter++;
    ?>
              <?php 
    if ($counter == 3) {
        $counter = 0;
        echo "</tr>";
    }
    ?>
            <?php 
}
?>
コード例 #14
0
?>

<?php 
if ($sf_request->getMethod() == sfRequest::POST) {
    ?>
  <?php 
    if ($sf_request->hasErrors()) {
        ?>
    <?php 
        echo icon_tag('remove') . __(' Woops! Seems there were some errors!');
        ?>
  <?php 
    } else {
        ?>
    <?php 
        echo icon_tag('accept') . __(' Great, seems like we got everything!');
        ?>
  <?php 
    }
}
?>

<?php 
$es = $profile->getExternalServices();
?>

  <?php 
echo label_for('twitter_username', __('Twitter Username'), array('style' => 'display:block;')), input_tag('twitter_username', $es->getTwitterUsername());
if ($sf_request->hasError('twitter_username')) {
    echo '<span class="form-error">' . $sf_request->getError('twitter_username') . '</span>';
}
コード例 #15
0
      &nbsp;
    </td>
    <td colspan="5">
  		<p>
  		  <?php 
    echo ucfirst($task->getPriorityInWords());
    ?>
 Priority<br />
  		</p>
  		<p>
  		    <?php 
    echo short_string(strip_tags($task->getDescription()), 320);
    ?>
  		</p>
  		<p>
          <?php 
    echo icon_tag('comment') . ' ' . $task->getNbComments() . ' Comments ', icon_tag('folder') . ' ' . get_nb_files('Task', $task->getId()) . ' Files ';
    if ($sf_user->isAuthenticated() && $project->hasPermission('create-task', $sf_user->getId())) {
        echo icon_tag('note_edit') . ' ' . link_to('Edit Task', 'tasks/edit?task=' . $task->getUuid()) . ' ' . icon_tag('note_remove') . ' ' . link_to('Delete Task', 'tasks/delete?task=' . $task->getUuid(), 'post=true&confirm=Are you sure you want to delete the task "' . $task->getName() . '"?');
    }
    ?>
  		</p>
  	</td>
  </tr>
<?php 
}
?>
</tbody>
</table>
</div>
コード例 #16
0
ファイル: indexJsSuccess.php プロジェクト: sgrove/cothinker
" <?php 
    echo !$selectedCategory || $selectedCategory->getId() != $category->getId() ? 'style="display: none;"' : '';
    ?>
>
		
			<div class="question_separator"><?php 
    echo sfConfig::get('app_sfFaqPlugin_question_separator', '<hr />');
    ?>
</div>

			<?php 
    foreach ($category->getsfFaqFaqs() as $key_faq => $faq) {
        ?>
				<div class="question">
					<?php 
        echo icon_tag('help');
        ?>
 <?php 
        echo link_to_function($faq->getQuestion(), "show_hide_element('div_answer_category_" . $category->getId() . '_' . $key_faq . "')");
        ?>
				</div>

				<div id="div_answer_category_<?php 
        echo $category->getId() . '_' . $key_faq;
        ?>
" class="answer" <?php 
        echo sfConfig::get('app_sfFaqPlugin_first_question_by_default', false) && $key_faq == 0 || $selectedFaq && $selectedFaq->getId() == $faq->getId() ? '' : 'style="display: none"';
        ?>
>
					<?php 
        echo nl2br($faq->getAnswer());
コード例 #17
0
ファイル: main.php プロジェクト: takumi0705/shoeconnect
echo $name;
?>
    <br><br>
    <a id="css_button" href="myprofile.php">確認する</a>
    <br><br>
    </div>
    <br>
    <div align = "center">
    <c style="color:#6495ED"><br>マイページ</c>
    </div>
    <div id ="mainwall">
    <div align="center">
    <br>
    <div id ="profile_content2" align="center">
    <a href="myprofile.php"><?php 
echo icon_tag($no);
?>
</a>
    <br>
    <a href="myprofile.php"><?php 
echo $name;
?>
</a>
    <br><br>
    </div>
    <div class="tree_menu">
    <a id="toukou_button" href="javascript:;" onclick="simple_tree(this);" title="新たに投稿する">
    新たに投稿する。</a><br><br>
    <div class="tree">
    <form action="upmemo.php" method="post" enctype="multipart/form-data">
    <br>
コード例 #18
0
ファイル: _commentView.php プロジェクト: sgrove/cothinker
<?php

use_helper('Date', 'sfIcon');
?>
<div class="sf_comment" id="sf_comment_<?php 
echo $comment['Id'];
?>
">
  <p class="sf_comment_info">
      <?php 
echo icon_tag('comment') . ' ';
?>
      <?php 
if (!is_null($comment['AuthorId'])) {
    ?>
        <?php 
    $user_config = sfConfig::get('app_sfPropelActAsCommentableBehaviorPlugin_user');
    $class = $user_config['class'];
    $toString = $user_config['toString'];
    $peer = sprintf('%sPeer', $class);
    $author = call_user_func(array($peer, 'retrieveByPk'), $comment['AuthorId']);
    echo __('Posted by %1%', array('%1%' => '<span class="sf_comment_author">' . link_to($author->getProfile()->getFullName(), 'user/show?user='******'</span>'));
} else {
    echo $comment['AuthorName'];
}
?>
,
    <?php 
echo __('%1% ago', array('%1%' => distance_of_time_in_words(strtotime($comment['CreatedAt']))));
?>
  </p>
コード例 #19
0
ファイル: _profile_edit.php プロジェクト: sgrove/cothinker
    ?>
                <td>
                  <div style="padding: 3px; margin: 3px;" id="photo_<?php 
    echo $photo->getUuid();
    ?>
">
                  <?php 
    echo light_image('/' . sfConfig::get('sf_upload_dir_name') . '/thumbnails/medium/' . $photo->getRealName(), '/' . sfConfig::get('sf_upload_dir_name') . '/photos/' . $photo->getRealName(), array());
    ?>
<br />
                  <?php 
    echo link_to(icon_tag('accept') . __(' Set as profile'), 'user/setProfilePhoto?photo=' . $photo->getUuid());
    ?>
<br />
                  <?php 
    echo link_to(icon_tag('remove') . ' ' . __('Delete'), 'user/removePhoto?photo=' . $photo->getUuid());
    ?>
                  </div>
                </td>
                <?php 
    $counter++;
    ?>
                <?php 
    if ($counter == 3) {
        $counter = 0;
        echo "</tr>";
    }
    ?>
              <?php 
}
?>
コード例 #20
0
ファイル: showTeamSuccess.php プロジェクト: sgrove/cothinker
<?php

use_helper('Global', 'Date', 'I18N', 'Number', 'sfFileGallery', 'Object', 'Javascript', 'sfIcon');
?>

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

<?php 
echo link_to(icon_tag('add') . ' Add a new position', '@edit_project_position?project=' . $project->getSlug());
$counter = 0;
foreach ($project->getPositions() as $position) {
    ?>
  <?php 
    /*
    <div class="project-position">
          <a id="position_<?php echo $position->getUuid() ?>" /></a>
            <?php echo image_tag($position->getThumbnail(), array('class' => 'primary')) ?>
            <div style="">
                  <h1><?php echo $position->getTitle() ?></h1>
                  <p>
                    <?php echo $position->getDescription() ?><br />
                    <?php echo $position->getQualifications() ?>
                  </p>
                  <p>Filled by: <?php if ($position->isFilled()) { echo link_to($position->getUser()->getProfile(), 'user/show?user='******'Available ('.link_to('Apply', 'project/applyForm?position='.$position->getUuid()).')'; } elseif (!$position->isFilled() && $sf_user->isAuthenticated() && $position->isApplicant($sf_user->getId())) { echo 'Available (Application Received)'; }?></p>
                 <?php if($sf_user->isAuthenticated() && $project->hasPermission('handle-applications', $sf_user->getId()) && !$position->isFilled()): ?>
                  <p><?php echo link_to(__('Remove Positions'), 'project/removePosition?position='.$position->getUuid().'&slug='.$project->getSlug()) ?></p>
                 <?php endif; ?>
            </div>
    </div>
コード例 #21
0
ファイル: _project_members.php プロジェクト: sgrove/cothinker
    echo link_to('Application Manager', 'project/applications?slug=' . $project->getSlug());
    ?>
</li>
        </ul>
        <hr class="clear" />
</div>
<?php 
}
?>
<div class="project-positions">
<h1>Positions</h1>
  <?php 
if ($sf_user->isAuthenticated() && $project->hasPermission('handle-applications', $sf_user->getId())) {
    ?>
        <?php 
    echo link_to_function(icon_tag('add') . ' Add a position', visual_effect('toggle_blind', 'member-new-holder', array('duration' => 0.5)));
    ?>
            <div id="member-new-holder" style="display:none;margin-bottom:10px;margin-top:5px;">
                <div class="blue-shadow"><div class="blue-title blue-content">Add a team position to your project</div></div>
                <div class="blue-shadow">
                    <div class="blue-content">
                        <?php 
    echo form_tag('project/addPosition');
    ?>
                          <fieldset id="task-details" style="vertical-align:top;border: medium none;">
                            <?php 
    echo input_hidden_tag('slug', $project->getSlug(), array());
    ?>
                            <?php 
    echo input_hidden_tag('tab', 'team');
    ?>
コード例 #22
0
ファイル: GlobalHelper.php プロジェクト: sgrove/cothinker
function link_to_feed($name, $uri)
{
    return link_to(icon_tag('feed.gif', array('alt' => $name, 'title' => $name, 'align' => 'absmiddle')), $uri);
}
コード例 #23
0
  </div>
  <div style="float: right; right:10px; bottom: 10px;display:inline;">
    <?php 
if ($sf_user->isAuthenticated()) {
    ?>
      <span>Favorite <?php 
    echo link_to_favorite($project, array());
    ?>
</span> |
      <?php 
    if ($sf_user->getProfile()->isSubscribedToHistoryGroup($project->getHistoryGroup()) == false) {
        ?>
        <span>Subscribe <?php 
        echo link_to(icon_tag('rss'), 'user/subscribeToFeed?feed=' . $project->getHistoryGroup()->getUuid());
        ?>
</span>
      <?php 
    } else {
        ?>
        <span>Unsubscribe <?php 
        echo link_to(icon_tag('rss'), 'user/unsubscribeToFeed?feed=' . $project->getHistoryGroup()->getUuid());
        ?>
</span>
      <?php 
    }
    ?>
    <?php 
}
?>
 
  </div>
コード例 #24
0
ファイル: _profile_main.php プロジェクト: sgrove/cothinker
    ?>
</span><?php 
}
?>
	<div style="float: left; margin-right: 10px;">
		Status:<br />
		Department:<br />
		Campus:<br />
		Last Signed In:<br />
                <?php 
if ($sf_user->isAuthenticated()) {
    $message = __("Message Member");
    if ($sf_user->getId() == $profile->getUserId()) {
        $message = __('Message yourself');
    }
    echo icon_tag('mail') . link_to(' ' . $message, 'messages/compose?recipient=' . $profile->getUuid());
}
?>
<br />
	</div>
	<div>
		<?php 
echo ucwords($profile->getTitle());
?>
<br />
		<?php 
echo $profile->getDepartment();
?>
<br />
		<?php 
echo $profile->getCampus();
コード例 #25
0
ファイル: _user_pager.php プロジェクト: sgrove/cothinker
<div class="project-listing">
	<ul class="description">
                <li class="panels" >
                        <?php 
        echo link_to(image_tag($user->getThumbnail('large')), '@show_user_profile?user='******'@show_user_profile?user='******'mail') . ' Message', '@compose_message?recipient=' . $user->getUuid());
        }
        ?>
		</li>

		<li class="panels" style="width:30%;border-left: 1px dotted #D8D8D8;padding-left:10px;">
			<ul style="float:left;">
                          <li><?php 
        echo __('School');
        ?>
:</li>
                          <li><?php 
        echo __('Dept.');
        ?>
:</li>
                          <li><?php 
コード例 #26
0
<br>

<?php 
        $user_id = $g['user_id'];
        $com_id = $g['comment_id'];
        $st_name = $dbh->query("SELECT name FROM dbusers WHERE no = '{$user_id}'");
        $getname = $st_name->fetchAll();
        foreach ($getname as $g2) {
        }
        ?>
<a href="sample_find_name.php?user_id=<?php 
        echo $g['user_id'];
        ?>
">
<?php 
        echo icon_tag($g['user_id']);
        echo "&nbsp;" . $g2['name'] . "さん";
        ?>
</a>
<p>
<?php 
        echo $g['time'];
        ?>
</p>
</td>

<?php 
        $comment = $g['comment'];
        // パターン urlが貼られた時に、識別して自動でリンク化する処理である
        $pattern = '/((?:https?|ftp):\\/\\/[-_.!~*\'()a-zA-Z0-9;\\/?:@&=+$,%#]+)/u';
        // 置換後の文字列
コード例 #27
0
?>
</em></h2>
Step 1. Select the position to review applications for
<div class="resource-manager-panel1" style="width:30%;float:left;">
    <div id="indicator" style="display: none"></div>
    <ul>
        <li id="entry-1">
            <?php 
echo link_to_function('Positions', visual_effect('toggle_blind', 'subentry-1', array('duration' => '0.5')), array('class' => 'header'));
?>
            <ul id="subentry-1" style="">
                <?php 
foreach ($project->getPositions() as $position) {
    ?>
                <li><?php 
    echo link_to_remote(icon_tag('users') . ' ' . short_string($position->getTitle(), 30), array('url' => 'applications/applicationBrowser?position=' . $position->getUuid(), 'update' => array('success' => 'resources'), 'loading' => "Element.show('loader')", 'complete' => "Element.hide('loader');" . visual_effect('highlight', 'resources')));
    ?>
                </li>
                <?php 
}
?>
            </ul>
        </li>
    </ul>
</div>

<div class="resource-manager-panel2" id="resources" style="height: 200px; width:65%;">
    Step 2. After selecting a position on the left, the applications will appear here.
</div>
<hr class="clear" />
<div class="resource-manager-application" id="details" style="border: 2px solid black; clear:both;margin-top:15px;">
コード例 #28
0
ファイル: showTaskSuccess.php プロジェクト: sgrove/cothinker
<br />
    Assigned by <?php 
echo link_to($task->getSfGuardUser()->getProfile(), '@show_user?user='******'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());
}
?>
  </p>
  <p style="float:left;">
    <h2><?php 
echo link_to($task->getName(), '@show_project_task?project=' . $project->getSlug() . '&task=' . $task->getUuid());
?>
</h2>
    <?php 
echo nl2br($task->getDescription());
?>
  </p>
  <p style="clear: both;">&nbsp;</p>
</div>
コード例 #29
0
ファイル: indexSuccess.php プロジェクト: sgrove/cothinker
    echo link_to($user->getFullName(), 'user/show?user='******'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 
    if ($connection->isPending() && $connection->isRequested($sf_user->getId())) {
        ?>
<li><?php 
        echo link_to(icon_tag('add') . 'Accept request', 'networks/acceptConnection?socon=' . $connection->getUuid());
        ?>
<br /><?php 
        echo link_to(image_tag('greenminus') . 'decline request', 'networks/declineConnection?socon=' . $connection->getUuid());
        ?>
</li><?php 
    }
    ?>
    <?php 
    if ($connection->isPending() && $connection->isRequester($sf_user->getId())) {
        ?>
<li>Waiting for approval</li><?php 
    }
    ?>
    <?php 
    if (!$connection->isPending()) {