示例#1
0
/**
 * Use widget
 *
 * @access public
 * @param string $widget_name
 * @return void
 */
function use_widget($widget_name)
{
    if (function_exists('add_javascript_to_page') && function_exists('add_stylesheet_to_page')) {
        add_javascript_to_page("widgets/{$widget_name}/widget.js");
        add_stylesheet_to_page(get_javascript_url("widgets/{$widget_name}/widget.css"));
    }
    // if
}
<?php

set_page_title(lang('forgot password'));
add_javascript_to_page('jquery/jquery.js');
$css = array();
Hook::fire('overwrite_login_css', null, $css);
foreach ($css as $c) {
    echo stylesheet_tag($c);
}
?>
<!--[if IE 7]>
<?php 
echo stylesheet_tag("og/ie7.css");
?>
<![endif]-->
<!--[if IE 8]>
<?php 
echo stylesheet_tag("og/ie8.css");
?>
<![endif]-->
<div class="header-container">
	<div class="header">
	<?php 
if (Plugins::instance()->isActivePlugin('custom_login')) {
    echo_custom_logo_url();
} else {
    ?>
		<a class="logo" href="http://www.fengoffice.com"></a>
	<?php 
}
?>
示例#3
0
    
<?php 
echo stylesheet_tag('project_website.css');
?>
 
<?php 
echo meta_tag('content-type', 'text/html; charset=utf-8', true);
?>
 
<link rel="Shortcut Icon" href="favicon.ico" type="image/x-icon" />
<?php 
echo add_javascript_to_page('yui/yahoo/yahoo-min.js');
echo add_javascript_to_page('yui/dom/dom-min.js');
echo add_javascript_to_page('yui/event/event-min.js');
echo add_javascript_to_page('yui/animation/animation-min.js');
echo add_javascript_to_page('app.js');
echo use_widget('UserBoxMenu');
echo render_page_head();
?>
  </head>
  <body>
<?php 
echo render_system_notices(logged_user());
?>
    <div id="wrapper">
    
      <!-- header -->
      <div id="headerWrapper">
        <div id="header">
          <h1><a href="<?php 
echo active_project()->getOverviewUrl();
示例#4
0
echo stylesheet_tag('project_website.css');
?>
 
<?php 
echo meta_tag('content-type', 'text/html; charset=utf-8', true);
?>
 
<link rel="Shortcut Icon" href="<?php 
echo ROOT_URL . '/favicon.ico';
?>
" type="image/x-icon" />
<?php 
add_javascript_to_page('pp.js');
add_javascript_to_page('jquery.min.js');
add_javascript_to_page('jquery.easing.min.js');
add_javascript_to_page('jquery.lavalamp.min.js');
echo render_page_head();
?>
  </head>
  <body>
<?php 
echo render_system_notices(logged_user());
?>
    <div id="wrapper">
    
      <!-- header -->
      <div id="headerWrapper">
        <div id="header">
          <h1><a href="<?php 
echo get_url('dashboard', 'index');
?>
示例#5
0
} else {
    $jss = (include "javascripts.php");
}
Hook::fire('autoload_javascripts', null, $jss);
if (defined('USE_JS_CACHE') && USE_JS_CACHE) {
    echo add_javascript_to_page(with_slash(ROOT_URL) . "public/tools/combine.php?version={$version}&type=javascript&files=" . implode(',', $jss));
} else {
    foreach ($jss as $onejs) {
        echo add_javascript_to_page($onejs);
    }
}
$ext_lang_file = get_ext_language_file(get_locale());
if ($ext_lang_file) {
    echo add_javascript_to_page("extjs/locale/{$ext_lang_file}");
}
echo add_javascript_to_page("ckeditor/ckeditor.js");
?>
	<?php 
if (config_option("show_feed_links")) {
    ?>
		<link rel="alternate" type="application/rss+xml" title="<?php 
    echo clean(owner_company()->getName());
    ?>
 RSS Feed" href="<?php 
    echo logged_user()->getRecentActivitiesFeedUrl();
    ?>
" />
	<?php 
}
?>
</head>
 
<?php 
echo meta_tag('content-type', 'text/html; charset=utf-8', true);
?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> 
<?php 
echo link_tag(ROOT_URL . 'favicon.ico', 'rel', 'Shortcut Icon', array("type" => "image/x-icon"));
echo link_tag(logged_user()->getRecentActivitiesFeedUrl(), 'rel', 'alternate', array("type" => "application/rss+xml", "title" => lang('recent activities feed')));
add_javascript_to_page('pp.js');
add_javascript_to_page('jquery.min.js');
add_javascript_to_page('jquery-ui.min.js');
add_javascript_to_page('jquery.cookie.js');
add_javascript_to_page('jquery.colorbox-min.js');
add_javascript_to_page('jquery.jeditable.mini.js');
add_javascript_to_page('jquery.imgareaselect.dev.js');
add_javascript_to_page('jquery-ui-timepicker-addon.js');
?>

<?php 
echo render_page_head();
?>
  </head>
  <body>
<?php 
include 'inlinejs.php';
include dirname(__FILE__) . '/memo.php';
trace(__FILE__, 'body begin');
echo render_system_notices(logged_user());
?>
    <div id="wrapper">   
      <!-- header -->
示例#7
0
if ($ext_lang_file) {
    echo add_javascript_to_page("extjs/locale/{$ext_lang_file}");
}
echo add_javascript_to_page("ckeditor/ckeditor.js");
// Include plguin specif js
foreach (Plugins::instance()->getActive() as $p) {
    /* @var $p Plugin */
    $js_file = PLUGIN_PATH . "/" . $p->getSystemName() . "/public/assets/javascript/" . $p->getSystemName() . ".js";
    if (is_file($js_file)) {
        add_javascript_to_page(get_public_url("assets/javascript/" . $p->getSystemName() . ".js", $p->getSystemName()));
        echo "\n";
    }
}
?>
	<?php 
echo add_javascript_to_page(get_url('dimension', 'dimensions_js'));
// loaded first because it's needed for translating
?>
	<style>
		#loading {
		    font-size: 20px;
		    left: 45%;
		    position: absolute;
		    top: 45%;
			color: #333333;
			font-family: verdana,arial,helvetica,sans-serif;
    		line-height: 150%;
		}
	</style>
</head>
<body id="body" <?php 
示例#8
0
?>
 
<?php 
echo meta_tag('content-type', 'text/html; charset=utf-8', true);
?>
 
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<?php 
echo link_tag(ROOT_URL . 'favicon.ico', 'rel', 'Shortcut Icon', array("type" => "image/x-icon"));
echo link_tag(logged_user()->getRecentActivitiesFeedUrl(), 'rel', 'alternate', array("type" => "application/rss+xml", "title" => lang('recent activities feed')));
add_javascript_to_page('pp.js');
add_javascript_to_page('jquery.min.js');
add_javascript_to_page('jquery-ui.min.js');
add_javascript_to_page('jquery.colorbox-min.js');
add_javascript_to_page('jquery.imgareaselect.dev.js');
add_javascript_to_page('jquery.jeditable.mini.js');
echo render_page_head();
?>
</head>
  <body id="body">
<?php 
include 'inlinejs.php';
echo render_system_notices(logged_user());
?>
    <div id="wrapper">
    
      <!-- header -->
      <div id="headerWrapper">
        <div id="header">
          <h1><a href="<?php 
echo get_url('dashboard', 'index');
示例#9
0
		echo add_javascript_to_page("extjs/locale/$ext_lang_file");
	}
	echo add_javascript_to_page("ckeditor/ckeditor.js");
	
	// Include plguin specif js
	foreach (Plugins::instance()->getActive() as $p) {
		/* @var $p Plugin */
		$js_file =	PLUGIN_PATH ."/".$p->getSystemName()."/public/assets/javascript/".$p->getSystemName().".js" ;
		if (is_file($js_file)) {
			add_javascript_to_page(get_public_url("assets/javascript/".$p->getSystemName().".js", $p->getSystemName()));
			echo "\n";
		}
	}
	
	?>
	<?php echo add_javascript_to_page(get_url('dimension', 'dimensions_js')); // loaded first because it's needed for translating?>
	<style>
		#loading {
		    font-size: 20px;
		    left: 45%;
		    position: absolute;
		    top: 45%;
			color: #333333;
			font-family: verdana,arial,helvetica,sans-serif;
    		line-height: 150%;
		}
	</style>
</head>
<body id="body" <?php echo render_body_events() ?>>

<iframe name="_download" style="display:none"></iframe>
示例#10
0
 
<?php 
echo stylesheet_tag('colorbox/colorbox.css');
?>
 
<?php 
echo meta_tag('content-type', 'text/html; charset=utf-8', true);
?>
 
<?php 
echo link_tag(ROOT_URL . 'favicon.ico', 'rel', 'Shortcut Icon', array("type" => "image/x-icon"));
add_javascript_to_page('pp.js');
add_javascript_to_page('jquery.min.js');
add_javascript_to_page('jquery-ui.min.js');
add_javascript_to_page('jquery.colorbox-min.js');
add_javascript_to_page('jquery.imgareaselect.dev.js');
echo render_page_head();
?>
  </head>
  <body>
<?php 
include 'inlinejs.php';
echo render_system_notices(logged_user());
?>
    <div id="wrapper">
    
      <!-- header -->
      <div id="headerWrapper">
        <div id="header">
          <h1><a href="<?php 
echo get_url('dashboard', 'index');
示例#11
0
 
    <link rel="Shortcut Icon" href="<?php 
echo ROOT_URL . '/favicon.ico';
?>
" type="image/x-icon" />
    <link rel="alternate" title="<?php 
echo lang('recent activities feed');
?>
" type="application/rss+xml" href="<?php 
echo logged_user()->getRecentActivitiesFeedUrl(active_project());
?>
" />
<?php 
add_javascript_to_page('pp.js');
add_javascript_to_page('jquery.min.js');
add_javascript_to_page('jquery-ui.min.js');
echo render_page_head();
?>
  </head>
  <body>
<script>
//$.datepicker.setDefaults($.datepicker.regional[<?php 
echo 'nl';
//lang('language_code')
?>
]);
$(function() {
  $('input.datepicker').datepicker({
    showOn: 'button',
    buttonImage: '<?php 
echo get_image_url('icons/calendar.png');
示例#12
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
  <head>
    <title><?php echo get_page_title() ?></title>
<?php echo stylesheet_tag('dialog.css') ?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<?php echo add_javascript_to_page('login.js') ?> 
<?php echo meta_tag('content-type', 'text/html; charset=utf-8', true) ?> 
<link rel="Shortcut Icon" href="<?php echo ROOT_URL ?>/favicon.ico?086" type="image/x-icon" />
<?php echo render_page_head() ?>
  </head>
  <body>
    <div style="margin: 150px auto; width: 414px; 1text-align: center;">
      <img src="public/files/logo.png" style="margin: 0 auto 10px;" />
      <div id="dialog">
        <h1><?php echo get_page_title() ?></h1>
        <?php foreach (array('success', 'error') as $message_type): if (!is_null(flash_get($message_type))): ?>
        <div class="flash-message" id="<?php echo $message_type ?>">
          <p><?php echo clean(flash_get($message_type)) ?></p>
          <div class="hide-flash">x</div>
          <div class="clear"></div>
        </div>
        <?php endif; endforeach; ?>
        <?php echo $content_for_layout ?>
      </div>
    </div>
  </body>
</html>
示例#13
0
<?php

set_page_title(lang('documents'));
//project_tabbed_navigation(PROJECT_TAB_FILES);
$files_crumbs = array(0 => array(lang('files'), get_url('files')));
// array
/*if($current_folder instanceof ProjectFolder) {
		$files_crumbs[] = array($current_folder->getName(), $current_folder->getBrowseUrl($order));
	} // if
*/
$files_crumbs[] = array(lang('index'));
project_crumbs($files_crumbs);
//add_stylesheet_to_page('file/files.css');
add_javascript_to_page('file/slideshow.js');
?>

<div id="file-manager"></div>

<script>
	var fm = new og.FileManager({
		<?php 
if ($projectParam) {
    echo "project: " . $projectParam . ",";
}
?>
		<?php 
if ($userParam) {
    echo "user: "******",";
}
?>
		<?php 
示例#14
0
// Include plguin specif templates
foreach (Plugins::instance()->getActive() as $p) {
    $templates_file = PLUGIN_PATH . "/" . $p->getSystemName() . "/application/views/html_templates.php";
    if (is_file($templates_file)) {
        $plugins_html_templates = (include $templates_file);
        foreach ($plugins_html_templates as $pl_template) {
            include PLUGIN_PATH . "/" . $p->getSystemName() . "/application/views/" . $pl_template;
        }
    }
}
// Include plguin specif js
foreach (Plugins::instance()->getActive() as $p) {
    /* @var $p Plugin */
    $js_file = PLUGIN_PATH . "/" . $p->getSystemName() . "/public/assets/javascript/" . $p->getSystemName() . ".js";
    if (is_file($js_file)) {
        add_javascript_to_page(get_public_url("assets/javascript/" . $p->getSystemName() . ".js", $p->getSystemName()));
        echo "\n";
    }
}
?>
	<style>
		#loading {
		    font-size: 20px;
		    left: 45%;
		    position: absolute;
		    top: 45%;
			color: #333333;
    		line-height: 150%;
		}
	</style>
</head>