Example #1
0
 function add_lightbox($event)
 {
     $currentUrl = explode('/', $_SERVER['PHP_SELF']);
     if (end($currentUrl) !== 'view.php') {
         return;
     }
     return '        <script type="text/javascript">' . 'var lightbox_display_on_img_preview = ' . plugin_config_get('display_on_img_preview') . ';' . 'var lightbox_display_on_img_link = ' . plugin_config_get('display_on_img_link') . ';' . 'var lightboxlocation = "' . plugin_file('lightbox/js/lightbox-min.js') . '";' . 'var lightboxExtensions = "' . plugin_config_get('img_extensions') . '";' . '</script>' . '<link href="' . plugin_file('lightbox/css/lightbox.css') . '" rel="stylesheet">' . '<script type="text/javascript" src="' . plugin_file('Lightbox.js') . '"></script>';
 }
Example #2
0
 /**
  * Create the resource link to load the jQuery library.
  */
 function resources($p_event)
 {
     $html = '';
     $use_cdn = plugin_config_get('use_cdn');
     if ($use_cdn) {
         $html .= '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/' . $this->version . '/jquery.min.js"></script>' . "\n";
     } else {
         $html .= '<script type="text/javascript" src="' . plugin_file('script.js') . '"</script>' . "\n";
     }
     $html .= $this->render_ready_function();
     return $html;
 }
Example #3
0
 /**
  * Create the resource link to load the jQuery library.
  */
 function resources($p_event)
 {
     return '<script type="text/javascript" src="' . plugin_file('kanban.js') . '"></script>' . '<script type="text/javascript">var kanbanAjaxUrl = "' . plugin_page('kanban_ajax_request') . '";</script>';
 }
Example #4
0
    ?>
"
				       <?php 
    if ($key == $currentSkin) {
        ?>
 checked="yes"<?php 
    }
    ?>
				       />
				<?php 
    echo $value;
    ?>
				</h3>
				<div class="skin-thumb">
					<img src="<?php 
    echo plugin_file('img/skin-' . $key . '.png');
    ?>
"/>
				</div>
			</div>
		<?php 
}
?>
		<div class="clear"></div>
	</div>
	<br/>
	
	<h2>Show company logo</h2>
	<input type="checkbox" name="showCompanyLogo" 
	       <?php 
if ($showCompanyLogo) {
 /**
  * Create the resource link to load the jQuery Decorate plugin.
  */
 function resources($p_event)
 {
     $html = '<script type="text/javascript" src="' . plugin_file('script.js') . '"></script>' . "\n";
     return $html;
 }
Example #6
0
echo str_replace("\n", "<br>\n", $t_bug_crash_conf);
?>
            </div>

            <div id="tab4-a" class="ch-hide">
                <?php 
$t_bug_phone_build = $acra_bug_ext->phone_build;
$t_bug_phone_build = htmlentities($t_bug_phone_build);
echo str_replace("\n", "<br/>\n", $t_bug_phone_build);
?>
            </div>
        </div>
    </div>
</div>
<script src="<?php 
echo plugin_file('chico.js');
?>
"></script>
<script>
    // Tabs
    <?php 
$t_bug_text = bug_get_text_field($id, 'description');
$t_restore_file = get_restore_file_by_version_name($t_bug->version);
$t_bug_text = restore_stacktrace_by_file($t_bug_text, $t_restore_file);
$t_bug_text = str_replace("\r", "", $t_bug_text);
$packages = get_project_package_list($t_bug->project_id);
?>
    var tabs = $(".YOUR_SELECTOR_Tabs").tabs();
    var div = document.getElementById('tab1-a');
    var packages = <?php 
echo json_encode(array_keys($packages));
Example #7
0
 public function addCss()
 {
     echo '<link rel="stylesheet" type="text/css" href="', plugin_file('css/custom.css'), '"/>';
 }
Example #8
0
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# MantisBT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
$t_plugin_path = config_get('plugin_path');
require_once $t_plugin_path . 'MantisAcra' . DIRECTORY_SEPARATOR . 'BugDataAcraExt.php';
//echo $t_ids = gpc_get_string('data');
//echo $t_ids;
//echo json_encode($_REQUEST);
$ids = json_decode(gpc_get_string('data'));
$objs = array();
$img = plugin_file('acra_logo.png');
$link = "index.php?acra_page=brief.php";
//plugin_page("brief.php");
foreach ($ids as $id) {
    $id = trim($id);
    $acra_bug_ext = acra_get_bug_ext_by_issue_id($id);
    if ($acra_bug_ext !== false) {
        $objs[] = array("id" => $id, "txt" => '&nbsp;<a class="fancybox" href="#acra_' . $id . '" "><img border="0" width="18" height="16" src="' . $img . '" alt="Acra" title="Acra"></a>', "popup" => '<div class="acra_popup" id="acra_' . $id . '" ><iframe class="acra_frame" src="' . $link . "&id={$id}&hash={$acra_bug_ext->report_fingerprint}" . '"  ></iframe></div>');
    } else {
        $objs[] = array("id" => $id, "txt" => "");
    }
}
echo json_encode($objs);
Example #9
0
    function initlook($p_event)
    {
        $header = plugin_config_get('headerHeight');
        $skin = plugin_config_get('skin');
        ?>
        <link rel="stylesheet" type="text/css" href="<?php 
        echo plugin_file('main.css');
        ?>
"/>
	<link rel="stylesheet" type="text/css" href="<?php 
        echo plugin_file('header-' . $header . '.css');
        ?>
"/>
	<link rel="stylesheet" type="text/css" href="<?php 
        echo plugin_file('skin-' . $skin . '.css');
        ?>
"/>
	<link rel="stylesheet" type="text/css" href="<?php 
        echo plugin_page('css');
        ?>
"/>
        <?php 
    }
Example #10
0
    function show_acra_view_issue_plugin()
    {
        ?>
        <script type="text/javascript" src="<?php 
        echo plugin_file("fancyBox/fancybox.js");
        ?>
"></script>
        <link rel="stylesheet" type="text/css" href="<?php 
        echo plugin_file("fancyBox/fancybox.css");
        ?>
"
              media="screen"/>
        <style type="text/css">
            .acra_popup {
                width: 1200px;
                height: 400px;
                display: none;
                padding: 0px;
            }

            .acra_frame {
                width: 100%;
                height: 100%;
            }

            .fancybox {
                font-weight: normal;
            }
        </style>

        <script>
            jQuery('.fancybox').fancybox();
        </script>
    <?php 
    }
Example #11
0
//Récupération du code d'affichage de la langue si l'utilisateur est identifié
$t_pref = user_pref_get($t_user_id);
$codeLang = AgendaPlugin::getFullCalendarLocaleCode($t_pref->language);
?>
<script type='text/javascript' src='<?php 
echo plugin_file('bower/fullcalendar/dist/lang/' . $codeLang . '.js');
?>
'></script>
<!-- MantisAgenda Resources -->

<script type='text/javascript' src='<?php 
echo plugin_file('fullcalendar_init.js');
?>
'></script>
<link rel='stylesheet' type='text/css' href='<?php 
echo plugin_file('mantisagenda.css');
?>
' />

<body>
<input type="hidden" name="t_project_id" id="t_project_id" value="<?php 
echo $t_project_id;
?>
" />
<input type="hidden" name="t_user_id" id="t_user_id" value="<?php 
echo $t_user_id;
?>
" />
<input type="hidden" name="t_user_access_level" id="t_user_access_level" value="<?php 
echo $t_user_access_level;
?>
# Copyright (c) 2012 John Reese
# Licensed under the MIT license
access_ensure_global_level(plugin_config_get('view_threshold'));
require_once config_get('plugin_path') . 'Source' . DIRECTORY_SEPARATOR . 'Source.FilterAPI.php';
list($t_filter, $t_permalink) = Source_Generate_Filter();
$t_date_start = is_null($t_filter->filters['date_start']->value) ? 'start' : $t_filter->filters['date_start']->value;
$t_date_end = is_null($t_filter->filters['date_end']->value) ? 'now' : $t_filter->filters['date_end']->value;
html_page_top1(plugin_lang_get('title'));
html_page_top2();
?>

<?php 
if (plugin_is_loaded('jQuery')) {
    ?>
<script src="<?php 
    echo plugin_file('search.js');
    ?>
"></script>
<?php 
}
?>

<br/>
<form action="<?php 
echo helper_mantis_url('plugin.php');
?>
" method="get">
<input type="hidden" name="page" value="Source/search"/>
<table class="width75 SourceFilters" align="center" cellspacing="1">

<tr>
                    <a v-on:click="deleteTask(task, $event)" v-if="!readOnly" href="#"><img alt="X" title="<?php 
echo plugin_lang_get('delete_task');
?>
" class="delete-icon" src="images/delete.png"></a>
                </li>
            </ul>
            <input v-on:keydown.enter="insertTask" v-model="newTask.description" v-if="!readOnly" type="text" class="<?php 
echo plugin_get_current();
?>
-add-new" placeholder="<?php 
echo plugin_lang_get('add_new_task');
?>
" size="40" maxlength="120" />
        </form>
        <script type="text/javascript" src="<?php 
echo plugin_file('todolists.js');
?>
"></script>
        <script type="text/javascript">
        ToDoList.$set('readOnly', <?php 
echo !access_has_global_level(plugin_config_get('manage_threshold')) ? 'true' : 'false';
?>
);
        ToDoList.$set('lang', {
            enterNewDescription: "<?php 
echo plugin_lang_get('enter_new_description');
?>
",
            confirmDeletion: "<?php 
echo plugin_lang_get('confirm_deletion');
?>
Example #14
0
        $timeleft_string = sprintf(plugin_lang_get('time_weeks'), floor($time_diff / ScrumPlugin::DURATION_WEEK));
    } elseif ($time_diff >= 2 * ScrumPlugin::DURATION_DAY) {
        $timeleft_string = sprintf(plugin_lang_get('time_days'), floor($time_diff / ScrumPlugin::DURATION_DAY));
    } elseif ($time_diff > ScrumPlugin::DURATION_HOUR) {
        $timeleft_string = sprintf(plugin_lang_get('time_hours'), floor($time_diff / ScrumPlugin::DURATION_HOUR));
    } elseif ($time_diff > 0) {
        $timeleft_string = plugin_lang_get('time_1hour');
    } else {
        $timeleft_string = plugin_lang_get('time_up');
    }
}
html_page_top(plugin_lang_get('board'));
?>

<link rel="stylesheet" type="text/css" href="<?php 
echo plugin_file('scrumboard.css');
?>
"/>

<br/>
<table class="width100 scrumboard" align="center" cellspacing="1">

	<!-- Scrum Board Title and filter -->
	<tr>
		<td class="form-title" colspan="<?php 
echo count($columns);
?>
">
			<?php 
echo plugin_lang_get('board');
?>
Example #15
0
	}
	else if ($time_days > 1)
	{
		$timeleft_string = $time_days . plugin_lang_get("time_days");
	}
	else if ($time_hours > 1)
	{
		$timeleft_string = $time_hours . plugin_lang_get("time_hours");
	}
}

html_page_top(plugin_lang_get("board"));

?>

<link rel="stylesheet" type="text/css" href="<?php echo plugin_file("scrumboard.css") ?>"/>

<br/>
<table class="width100 scrumboard" align="center" cellspacing="1">

<tr>
<td class="form-title" colspan="<?php echo count($columns) ?>">
<?php echo plugin_lang_get("board") ?>
<form action="<?php echo plugin_page("board") ?>" method="get">
<input type="hidden" name="page" value="Scrum/board"/>
<select name="version">
<option value=""><?php echo plugin_lang_get("all") ?></option>
<?php foreach ($versions as $version): ?>
<option value="<?php echo string_attribute($version) ?>" <?php if ($version == $target_version) echo 'selected="selected"' ?>><?php echo string_display_line($version) ?></option>
<?php endforeach ?>
</select>
Example #16
0
<link rel="stylesheet" type="text/css" href="<?php 
echo plugin_file('taskodrome.css');
?>
"/>
<script type="text/javascript" src="./plugins/Taskodrome/scripts/easeljs-0.8.2.min.js"></script>
<script type="text/javascript" src="./plugins/Taskodrome/scripts/grid_common_utils.js"></script>
<script type="text/javascript" src="./plugins/Taskodrome/scripts/grid_draw_utils.js"></script>
<script type="text/javascript" src="./plugins/Taskodrome/scripts/devs_grid.js"></script>
<script type="text/javascript" src="./plugins/Taskodrome/scripts/status_grid.js"></script>
<script type="text/javascript" src="./plugins/Taskodrome/scripts/on_load_opening.js"></script>

<?php 
html_page_top(plugin_lang_get('board'));
$f_page_number = gpc_get_int('page_number', 1);
$t_per_page = null;
$t_bug_count = null;
$t_page_count = null;
$rows = filter_get_bug_rows($f_page_number, $t_per_page, $t_page_count, $t_bug_count, null, null, null, true);
function write_bug_rows($p_rows)
{
    $user_array = get_user_array();
    $alive_user_ids = array();
    $issues_array_html = '';
    $allowed_statuses_html = '';
    print '<div id="taskodrome_data" hidden="true">
    ';
    $users = '';
    $user_number = count($user_array);
    for ($i = 0; $i != $user_number; $i++) {
        $users .= '<p hidden="true" class="user_data" ';
        $users .= 'name="' . $user_array[$i]->name . '" ';
 function resources()
 {
     return '<script type="text/javascript" src="' . plugin_file('customer-management.js') . '"></script>' . '<link rel="stylesheet" type="text/css" href="' . plugin_file('customer-management.css') . '"></link>';
 }
Example #18
0
 function resources($p_event)
 {
     return '<link rel="stylesheet" type="text/css" href="' . plugin_file('worklog.css') . '"/>' . '<script type="text/javascript" src="' . plugin_file('worklog.js') . '"></script>';
 }
Example #19
0
 /**
  * Create the resource link to load the jQuery library.
  */
 function resources($p_event)
 {
     return '<script type="text/javascript" src="' . plugin_file('jquery-min.js') . '"></script>' . '<script type="text/javascript">jQuery.noConflict();</script>';
 }
Example #20
0
 function css()
 {
     return '<link rel="stylesheet" type="text/css" href="' . plugin_file('style.css') . '"/>';
 }
 /**
  * @param  string   $event
  * @return string
  */
 public function resources($event)
 {
     return '<link rel="stylesheet" type="text/css" href="' . plugin_file('todolists.css') . '" />' . '<script type="text/javascript" src="' . plugin_file('vue-min.js') . '"></script>' . '<script type="text/javascript" src="' . plugin_file('vue-resource-min.js') . '"></script>';
 }