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


PHP javascript_link_tag函数代码示例

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


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

示例1: javascript_link_tag

\thebuggenie\core\framework\Event::createNew('core', 'project_overview_item_links', $project)->trigger();
if (!$project->isLocked() && $tbg_user->canReportIssues($project)) {
    ?>
    <?php 
    echo javascript_link_tag(__('Report an issue'), array('onclick' => "TBG.Issues.Add('" . make_url('get_partial_for_backdrop', array('key' => 'reportissue', 'project_id' => $project->getId())) . "', this);", 'class' => 'button button-green button-report-issue righthugging'));
    ?>
    <a class="dropper button button-green last lefthugging reportissue_dropdown_button" style="font-size: 0.9em; position: relative;" href="javascript:void(0);">&#x25BC;</a>
    <ul id="create_issue_<?php 
    echo $project->getID();
    ?>
" class="more_actions_dropdown popup_box" style="position: absolute; right: 0; margin-top: 25px; display: none;">
        <?php 
    foreach ($project->getIssuetypeScheme()->getReportableIssuetypes() as $issuetype) {
        ?>
            <li><?php 
        echo javascript_link_tag(image_tag($issuetype->getIcon() . '_tiny.png') . __($issuetype->getName()), array('onclick' => "TBG.Issues.Add('" . make_url('get_partial_for_backdrop', array('key' => 'reportissue', 'project_id' => $project->getId(), 'issuetype' => $issuetype->getKey())) . "', this);"));
        ?>
</li>
        <?php 
    }
    ?>
    </ul>
<?php 
}
?>
    </nav>
    <div style="margin-left: 20px; min-height: 26px">
    <b class="project_name"><?php 
echo link_tag(make_url('project_dashboard', array('project_key' => $project->getKey())), '<span id="project_name_span">' . $project->getName() . ($project->usePrefix() ? ' (' . mb_strtoupper($project->getPrefix()) . ')' : '') . '</span>');
?>
</b>
开发者ID:nrensen,项目名称:thebuggenie,代码行数:31,代码来源:_overview.inc.php

示例2: __

        }
        ?>
                                        </select>
                                    </dd>
                                </dl>
                                <br style="clear: both;">
                                <div style="text-align: right; clear: both; padding: 10px 0 0 0;" id="update_step_buttons">
                                    <input type="submit" value="<?php 
        echo __('Update step details');
        ?>
" name="edit">
                                    <?php 
        echo __('%update_step_details or %cancel', array('%update_step_details' => '', '%cancel' => ''));
        ?>
                                    <b><?php 
        echo javascript_link_tag(__('cancel'), array('onclick' => "\$('step_details_form').toggle();\$('step_details_info').toggle();"));
        ?>
</b>
                                </div>
                                <div style="text-align: right; padding: 10px 0 10px 0; display: none;" id="step_update_indicator"><span style="float: right;"><?php 
        echo image_tag('spinning_16.gif');
        ?>
</span>&nbsp;<?php 
        echo __('Please wait');
        ?>
</div>
                            </form>
                        <?php 
    }
    ?>
                    </div>
开发者ID:founderio,项目名称:thebuggenie,代码行数:31,代码来源:configureworkflowstep.html.php

示例3: link_tag

    echo link_tag(isset($project_url) ? $project_url : $url, image_tag('tab_publish.png', array(), false, 'publish') . \thebuggenie\core\framework\Context::getModule('publish')->getMenuTitle());
    ?>
        <?php 
} else {
    ?>
            <?php 
    echo link_tag($wiki_url, \thebuggenie\core\framework\Context::getModule('publish')->getMenuTitle(), array('target' => 'blank'));
    ?>
        <?php 
}
?>
        <?php 
if (count(\thebuggenie\core\entities\Project::getAll())) {
    ?>
            <?php 
    echo javascript_link_tag(image_tag('tabmenu_dropdown.png', array('class' => 'menu_dropdown')));
    ?>
        <?php 
}
?>
    </div>
    <?php 
if (count(\thebuggenie\core\entities\Project::getAll())) {
    ?>
        <div id="wiki_dropdown_menu" class="tab_menu_dropdown">
            <?php 
    if (\thebuggenie\core\framework\Context::isProjectContext()) {
        ?>
            <div class="header"><?php 
        echo \thebuggenie\core\framework\Context::getCurrentProject()->getName();
        ?>
开发者ID:RTechSoft,项目名称:thebuggenie,代码行数:31,代码来源:_menustriplinks.inc.php

示例4: javascript_link_tag

if ($role instanceof TBGRole) {
    ?>
	<li class="greybox" style="padding: 3px 5px; margin-bottom: 5px;" id="role_<?php 
    echo $role->getID();
    ?>
_container">
		<div class="button-group" style="float: right; margin-right: -3px; margin-top: -1px;">
			<?php 
    echo javascript_link_tag(__('Details'), array('onclick' => "TBG.Config.Roles.getPermissions('" . make_url('configure_role', array('role_id' => $role->getID(), 'mode' => 'list_permissions')) . "', 'role_{$role->getID()}_permissions_list');", 'class' => 'button button-silver'));
    ?>
			<?php 
    if (!TBGContext::isProjectContext() || !$role->isSystemRole()) {
        ?>
				<?php 
        echo javascript_link_tag(__('Edit'), array('onclick' => "TBG.Config.Roles.getPermissionsEdit('" . make_url('configure_role', array('role_id' => $role->getID(), 'mode' => 'edit')) . "', 'role_{$role->getID()}_permissions_edit');", 'class' => 'button button-silver'));
        ?>
				<button class="button button-silver" onclick="TBG.Main.Helpers.Dialog.show('<?php 
        echo __('Delete this role?');
        ?>
', '<?php 
        echo __('Do you really want to delete this role?') . '<br>' . __('Users assigned via this role will be unassigned, and depending on other roles their project permissions may be reset.') . '<br><b>' . __('This action cannot be reverted') . '</b>';
        ?>
', {yes: {click: function() {TBG.Config.Roles.remove('<?php 
        echo make_url('configure_role', array('role_id' => $role->getID(), 'mode' => 'delete'));
        ?>
', <?php 
        print $role->getID();
        ?>
);}}, no: {click: TBG.Main.Helpers.Dialog.dismiss}});"><?php 
        echo __('Delete');
开发者ID:oparoz,项目名称:thebuggenie,代码行数:30,代码来源:_role.inc.php

示例5: link_tag

        }
        ?>
                        <?php 
        echo link_tag(make_url('client_dashboard', array('client_id' => $client->getID())), image_tag('tab_clients.png') . $client->getName());
        ?>
                    <?php 
    }
    ?>
                </div>
            </li>
        <?php 
}
?>
        <?php 
framework\Event::createNew('core', 'templates/headermainmenu::projectmenulinks', framework\Context::getCurrentProject())->trigger();
?>
    </ul>
    <?php 
if (framework\Context::isProjectContext() && !framework\Context::getCurrentProject()->isArchived() && !framework\Context::getCurrentProject()->isLocked() && ($tbg_user->canReportIssues() || $tbg_user->canReportIssues(framework\Context::getCurrentProject()->getID()))) {
    ?>
        <div class="reportissue_button_container">
        <?php 
    echo javascript_link_tag(image_tag('icon-mono-add.png') . __('Report an issue'), array('onclick' => "TBG.Issues.Add('" . make_url('get_partial_for_backdrop', array('key' => 'reportissue', 'project_id' => framework\Context::getCurrentProject()->getId())) . "');", 'class' => 'button button-lightblue', 'id' => 'reportissue_button'));
    ?>
        </div>
    <?php 
}
framework\Event::createNew('core', 'before_header_userinfo')->trigger();
?>
</nav>
开发者ID:shoreless-Limited,项目名称:thebuggenie,代码行数:30,代码来源:headermainmenu.inc.php

示例6: javascript_link_tag

<?php

if ($milestone instanceof \thebuggenie\core\entities\Milestone) {
    ?>
    <div class="milestone_details" id="milestone_details_<?php 
    echo $milestone->getID();
    ?>
">
        <h3>
            <span id="milestone_name" class="milestone_name"><?php 
    echo $milestone->getName();
    ?>
</span>&nbsp;
            <?php 
    echo javascript_link_tag(image_tag('icon_edit.png'), array('onclick' => "TBG.Main.Helpers.Backdrop.show('" . make_url('get_partial_for_backdrop', array('key' => 'milestone', 'project_id' => $milestone->getProject()->getId(), 'milestone_id' => $milestone->getID())) . "');", 'class' => 'button button-icon button-silver'));
    ?>
            <br>
        </h3>
        <span class="milestone_date">
            <?php 
    if ($milestone->getStartingDate() && $milestone->isScheduled()) {
        ?>
                (<?php 
        echo tbg_formatTime($milestone->getStartingDate(), 22, true, true);
        ?>
 - <?php 
        echo tbg_formatTime($milestone->getScheduledDate(), 22, true, true);
        ?>
)
            <?php 
    } elseif ($milestone->getStartingDate() && !$milestone->isScheduled()) {
开发者ID:founderio,项目名称:thebuggenie,代码行数:31,代码来源:_milestonedetails.inc.php

示例7: link_tag

                                    <li><?php 
                        echo link_tag(make_url('publish_article_new'), __('Create new article'));
                        ?>
</li>
                                <?php 
                    }
                    ?>
                            <?php 
                }
                ?>
                            <li class="separator"></li>
                            <?php 
                if ($article->canDelete()) {
                    ?>
                                <li><?php 
                    echo javascript_link_tag(__('Delete this article'), array('onclick' => "TBG.Main.Helpers.Dialog.show('" . __('Please confirm') . "', '" . __('Do you really want to delete this article?') . "', {yes: {click: function () { TBG.Main.deleteArticle('" . make_url('publish_article_delete', array('article_name' => $article->getName())) . "') }}, no: {click: TBG.Main.Helpers.Dialog.dismiss}})"));
                    ?>
</li>
                            <?php 
                }
                ?>
                        <?php 
            }
            ?>
                    </ul>
                <?php 
        }
        ?>
            </div>
        <?php 
    }
开发者ID:nrensen,项目名称:thebuggenie,代码行数:31,代码来源:_header.inc.php

示例8: switch

<?php

switch ($notification->getNotificationType()) {
    case \thebuggenie\modules\vcs_integration\Vcs_integration::NOTIFICATION_COMMIT_MENTIONED:
        ?>
            <h1>
                <time><?php 
        echo tbg_formatTime($notification->getCreatedAt(), 20);
        ?>
</time>
                <?php 
        echo __('%user_name mentioned you in commit %rev', array('%user_name' => get_component_html('main/userdropdown', array('user' => $notification->getTriggeredByUser())), '%rev' => javascript_link_tag($notification->getTarget()->getRevisionString(), array('onclick' => "TBG.Main.Helpers.Backdrop.show('" . make_url('get_partial_for_backdrop', array('key' => 'vcs_integration_getcommit', 'commit_id' => $notification->getTarget()->getID())) . "');"))));
        ?>
            </h1>
            <div class="notification_content"><?php 
        echo $notification->getTarget()->getLog();
        ?>
</div>
            <?php 
        break;
}
开发者ID:pkdevboxy,项目名称:thebuggenie,代码行数:21,代码来源:_notification_view.inc.php

示例9: javascript_link_tag

 ?>
     <?php 
 if ($can_remove) {
     ?>
         <div class="removelink">
             <?php 
     if ($mode == 'issue') {
         ?>
                 <?php 
         echo javascript_link_tag(image_tag('action_delete.png'), array('id' => $base_id . '_' . $file_id . '_remove_link', 'onclick' => "TBG.Main.Helpers.Dialog.show('" . __('Do you really want to detach this file?') . "', '" . __('If you detach this file, it will be deleted. This action cannot be undone. Are you sure you want to remove this file?') . "', {yes: {click: function() {TBG.Issues.File.remove('" . make_url('issue_detach_file', array('issue_id' => $issue->getID(), 'file_id' => $file_id)) . "', " . $file_id . "); }}, no: { click: TBG.Main.Helpers.Dialog.dismiss }});"));
         ?>
             <?php 
     } elseif ($mode == 'article') {
         ?>
                 <?php 
         echo javascript_link_tag(image_tag('action_delete.png'), array('id' => $base_id . '_' . $file_id . '_remove_link', 'onclick' => "TBG.Main.Helpers.Dialog.show('" . __('Do you really want to detach this file?') . "', '" . __('If you detach this file, it will be deleted. This action cannot be undone. Are you sure you want to remove this file?') . "', {yes: {click: function() {TBG.Main.detachFileFromArticle('" . make_url('article_detach_file', array('article_id' => $article->getID(), 'file_id' => $file_id)) . "', " . $file_id . ", " . $article->getID() . "); }}, no: { click: TBG.Main.Helpers.Dialog.dismiss }});"));
         ?>
             <?php 
     }
     ?>
             <?php 
     echo image_tag('spinning_16.gif', array('id' => $base_id . '_' . $file_id . '_remove_indicator', 'style' => 'display: none;'));
     ?>
         </div>
     <?php 
 }
 ?>
     <div class="upload_details">
         <?php 
 echo __('%filename uploaded %date by %username', array('%filename' => '<span class="filename">' . $file->getOriginalFilename() . '</span>', '%date' => tbg_formatTime($file->getUploadedAt(), 23), '%username' => $file->getUploadedBy() instanceof \thebuggenie\core\entities\User ? '<a href="javascript:void(0);" onclick="TBG.Main.Helpers.Backdrop.show(\'' . make_url('get_partial_for_backdrop', array('key' => 'usercard', 'user_id' => $file->getUploadedBy()->getID())) . '\');" class="faded_out">' . $file->getUploadedBy()->getNameWithUsername() . '</a>' : __('unknown user')));
 ?>
开发者ID:nrensen,项目名称:thebuggenie,代码行数:31,代码来源:_attachedfile.inc.php

示例10: make_url

    if ($issue->isEditable() && $issue->canEditReproductionSteps()) {
        ?>
                                <div id="reproduction_steps_change" style="display: none;" class="editor_container">
                                    <form id="reproduction_steps_form" action="<?php 
        echo make_url('issue_setfield', array('project_key' => $issue->getProject()->getKey(), 'issue_id' => $issue->getID(), 'field' => 'reproduction_steps'));
        ?>
" method="post" onSubmit="TBG.Issues.Field.set('<?php 
        echo make_url('issue_setfield', array('project_key' => $issue->getProject()->getKey(), 'issue_id' => $issue->getID(), 'field' => 'reproduction_steps'));
        ?>
', 'reproduction_steps'); return false;">
                                        <?php 
        include_component('main/textarea', array('area_name' => 'value', 'target_type' => 'issue', 'target_id' => $issue->getID(), 'area_id' => 'reproduction_steps_form_value', 'syntax' => \thebuggenie\core\framework\Settings::getSyntaxClass($issue->getReproductionStepsSyntax()), 'height' => '250px', 'width' => '100%', 'value' => htmlentities($issue->getReproductionSteps(), ENT_COMPAT, \thebuggenie\core\framework\Context::getI18n()->getCharset())));
        ?>
                                        <div class="textarea_save_container">
                                            <?php 
        echo __('%cancel or %save', array('%save' => '<input class="button button-silver" type="submit" value="' . __('Save') . '">', '%cancel' => javascript_link_tag(__('Cancel'), array('onclick' => "\$('reproduction_steps_change').hide();" . ($issue->getReproductionSteps() != '' ? "\$('reproduction_steps_name').show();" : "\$('no_reproduction_steps').show();") . "return false;"))));
        ?>
                                        </div>
                                    </form>
                                    <?php 
        echo image_tag('spinning_16.gif', array('style' => 'display: none; float: left; margin-right: 5px;', 'id' => 'reproduction_steps_spinning'));
        ?>
                                    <div id="reproduction_steps_change_error" class="error_message" style="display: none;"></div>
                                </div>
                            <?php 
    }
    ?>
                        </fieldset>
                        <?php 
    include_component('main/issuemaincustomfields', array('issue' => $issue));
    ?>
开发者ID:shoreless-Limited,项目名称:thebuggenie,代码行数:31,代码来源:viewissue.html.php

示例11: make_url

        if ($issue->canEditColor()) {
            ?>
onclick="TBG.Project.Scrum.Story.setColor('<?php 
            echo make_url('project_scrum_story_setcolor', array('project_key' => $issue->getProject()->getKey(), 'story_id' => $issue->getID()));
            ?>
', <?php 
            echo $issue->getID();
            ?>
, '<?php 
            echo $color;
            ?>
', event);" <?php 
        }
        ?>
class="story_color_selector_item" style="background-color: <?php 
        echo $color;
        ?>
;">&nbsp;</div>
            <?php 
    }
    ?>
        </div>
        <br style="clear: both;">
        <div style="margin: 5px;">
            <?php 
    echo javascript_link_tag(__('%color_list or keep the current color', array('%color_list' => '')), array('onclick' => "\$('color_selector_{$issue->getID()}').toggle()"));
    ?>
        </div>
    </div>
<?php 
}
开发者ID:founderio,项目名称:thebuggenie,代码行数:31,代码来源:_colorpicker.inc.php

示例12: javascript_link_tag

                <li><?php 
        echo javascript_link_tag(__('Delete this user'), array('onclick' => "TBG.Main.Helpers.Dialog.show('" . __e('Permanently delete this user?') . "', '" . __e('Are you sure you want to remove this user? This will remove the users login data, as well as memberships in (and data in) any scopes the user is a member of.') . "', {yes: {click: function() {TBG.Config.User.remove('" . make_url('configure_users_delete_user', array('user_id' => $user->getID())) . "', " . $user->getID() . "); TBG.Main.Helpers.Dialog.dismiss(); } }, no: {click: TBG.Main.Helpers.Dialog.dismiss}});"));
        ?>
</li>
            <?php 
    } elseif ($user->isScopeConfirmed()) {
        ?>
                <li><?php 
        echo javascript_link_tag(__('Remove user from this scope'), array('onclick' => "TBG.Main.Helpers.Dialog.show('" . __e('Remove this user?') . "', '" . __e('Are you sure you want to remove this user from the current scope? The users login is kept, and you can re-add the user later.') . "', {yes: {click: function() {TBG.Config.User.remove('" . make_url('configure_users_delete_user', array('user_id' => $user->getID())) . "', " . $user->getID() . "); TBG.Main.Helpers.Dialog.dismiss(); } }, no: {click: TBG.Main.Helpers.Dialog.dismiss}});"));
        ?>
</li>
            <?php 
    } else {
        ?>
                <li><?php 
        echo javascript_link_tag(__('Cancel invitation'), array('onclick' => "TBG.Main.Helpers.Dialog.show('" . __e('Cancel membership in this scope?') . "', '" . __e('If you cancel the invitation to this scope, then this user will be notified and the unconfirmed membership removed from this scope.') . "', {yes: {click: function() {TBG.Config.User.remove('" . make_url('configure_users_delete_user', array('user_id' => $user->getID())) . "', " . $user->getID() . "); TBG.Main.Helpers.Dialog.dismiss(); } }, no: {click: TBG.Main.Helpers.Dialog.dismiss}});"));
        ?>
</li>
            <?php 
    }
    ?>
        <?php 
} else {
    ?>
            <li class="disabled"><a href="javascript:void(0);" onclick="TBG.Main.Helpers.Message.error('<?php 
    echo __e('This user cannot be removed');
    ?>
', '<?php 
    echo __e('This is a system user which cannot be removed');
    ?>
');" class="disabled"><?php 
开发者ID:pkdevboxy,项目名称:thebuggenie,代码行数:31,代码来源:_finduser_row.inc.php

示例13: image_tag

    echo image_tag('spinning_30.gif');
    ?>
</div>
                <div class="project_save_container" id="project_planning_action_strip">
                    <?php 
    echo javascript_link_tag(__('New milestone'), array('class' => 'button button-silver', 'onclick' => "TBG.Main.Helpers.Backdrop.show('" . make_url('get_partial_for_backdrop', array('key' => 'milestone', 'project_id' => $selected_project->getId())) . "');"));
    ?>
                    <?php 
    echo image_tag('spinning_16.gif', array('id' => 'retrieve_indicator', 'class' => 'indicator', 'style' => 'display: none;'));
    ?>
                    <?php 
    echo image_tag('icon-mono-settings.png', array('class' => 'dropper dropdown_link planning_board_settings_gear', 'id' => 'planning_board_settings_gear'));
    ?>
                    <ul class="more_actions_dropdown popup_box">
                        <li><?php 
    echo javascript_link_tag(__('Sort milestones'), array('onclick' => "TBG.Project.Planning.toggleMilestoneSorting();"));
    ?>
</li>
                    </ul>
                </div>
                <div class="project_save_container" id="milestone-sort-actions">
                    <button class="button button-silver" id="milestone_sort_toggler_button" onclick="TBG.Project.Planning.toggleMilestoneSorting();"><?php 
    echo __('Done sorting');
    ?>
</button>
                </div>
            <?php 
}
?>
            <div id="project_roadmap" style="<?php 
if (isset($selected_milestone) && $selected_milestone instanceof \thebuggenie\core\entities\Milestone) {
开发者ID:JonathanRH,项目名称:thebuggenie,代码行数:31,代码来源:roadmap.html.php

示例14: __

);return false;" id="copy_workflow_scheme_<?php 
    echo $scheme->getID();
    ?>
_form">
                <label for="copy_scheme_<?php 
    echo $scheme->getID();
    ?>
_new_name"><?php 
    echo __('New name');
    ?>
</label>
                <input type="text" name="new_name" id="copy_scheme_<?php 
    echo $scheme->getID();
    ?>
_new_name" value="<?php 
    echo __('Copy of %old_name', array('%old_name' => addslashes($scheme->getName())));
    ?>
" style="width: 300px;">
                <div style="text-align: right;">
                    <?php 
    echo image_tag('spinning_16.gif', array('style' => 'margin-right: 5px; display: none;', 'id' => 'copy_workflow_scheme_' . $scheme->getID() . '_indicator'));
    ?>
                    <?php 
    echo __('%copy_workflow_scheme or %cancel', array('%copy_workflow_scheme' => '<input type="submit" value="' . __('Copy worfklow scheme') . '">', '%cancel' => javascript_link_tag(__('cancel'), array('onclick' => "\$('copy_scheme_{$scheme->getID()}_popup').toggle();"))));
    ?>
                </div>
            </form>
        </div>
    </li>
<?php 
}
开发者ID:founderio,项目名称:thebuggenie,代码行数:31,代码来源:_workflowscheme.inc.php

示例15: include_component

} else {
    ?>
                    <div class="project_commits_box">
                        <div id="commits">
                            <?php 
    include_component('vcs_integration/projectcommits', array('selected_project' => $selected_project, 'commits' => $commits));
    ?>
                        </div>

                        <div class="commits_next">
                            <input id="commits_offset" value="40" type="hidden">
                            <?php 
    echo image_tag('spinning_16.gif', array('id' => 'commits_indicator', 'style' => 'display: none; float: left; margin-right: 5px;'));
    ?>
                            <?php 
    echo javascript_link_tag(__('Show more') . image_tag('action_add_small.png', array('style' => 'float: left; margin-right: 5px;')), array('onclick' => "TBG.Project.Commits.update('" . make_url('vcs_commitspage', array('project_key' => $selected_project->getKey())) . "');", 'id' => 'commits_more_link'));
    ?>
                        </div>
                    </div>
                    <?php 
}
?>
            </div>
        </div>
    </div>
    <div class="project_left_container">
        <div class="project_left">
        </div>
    </div>
    <br style="clear: both;">
</div>
开发者ID:RTechSoft,项目名称:thebuggenie,代码行数:31,代码来源:projectcommits.html.php


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