/** * Generates a HTML CSS Tag, refering to our amazon bucketde * * @author Christian Weyand * @param string $pFilename * @param array() $pOptions * @return unknown_type */ function cdn_stylesheet_tag($pFilename, $pOptions = array()) { if (sfConfig::get("sf_environment") != "dev") { $pFilename = concatNameWithRevision($pFilename, 'css'); } return stylesheet_tag($pFilename, $pOptions); }
/** * Returns <link> tags with the url toward all stylesheets configured in view.yml or added to the response object. * * You can use this helper to decide the location of stylesheets in pages. * By default, if you don't call this helper, symfony will automatically include stylesheets before </head>. * Calling this helper disables this behavior. * * @return string <link> tags */ function get_combined_stylesheets() { if (!sfConfig::get('app_sfCombinePlugin_enabled', false)) { return get_stylesheets(); } $response = sfContext::getInstance()->getResponse(); sfConfig::set('symfony.asset.stylesheets_included', true); $configSfCombinePlugin['css'] = sfConfig::get('app_sfCombinePlugin_css', array()); $html = ''; $cssFiles = $include_tags = array(); foreach (array('first', '', 'last') as $position) { foreach ($response->getStylesheets($position) as $files => $options) { if (!in_array($files, $configSfCombinePlugin['css']['online']) && !in_array($files, $configSfCombinePlugin['css']['offline'])) { if (!is_array($files)) { $files = array($files); } $cssFiles = array_merge($cssFiles, $files); } else { $include_tags[] = stylesheet_tag(url_for($files)); } } } $key = _get_key($cssFiles); $include_tags[] = str_replace('.css', '', stylesheet_tag(url_for('sfCombine/css?key=' . $key))); return implode("", $include_tags); }
function renderMenu() { echo javascript_include_tag('sfShowHideMenu/ClickShowHideMenu.js'); echo stylesheet_tag('sfShowHideMenu/ClickShowHideMenu.css'); echo $this->buildMenuData(); $menu_js = "var clickMenu1 = new ClickShowHideMenu('click-menu1');\n clickMenu1.init();\n"; echo javascript_tag($menu_js); }
function renderHtml() { echo stylesheet_tag('sfToolbar/dhtmlXToolbar.css'); echo javascript_include_tag('sfToolbar/dhtmlXProtobar.js'); echo javascript_include_tag('sfToolbar/dhtmlXToolbar.js'); echo javascript_include_tag('sfToolbar/dhtmlXCommon.js'); echo $this->renderTable(); echo javascript_tag($this->buildData()); }
/** * Returns <link> tags for all stylesheets smartphone pages added to the response object. * * You can use this helper to decide the location of stylesheets in pages. * By default, if you don't call this helper, openpne will automatically include stylesheets before </head>. * Calling this helper disables this behavior. * * @return string <link> tags * * @see get_stylesheets() */ function op_smt_get_stylesheets() { $response = sfContext::getInstance()->getResponse(); sfConfig::set('symfony.asset.stylesheets_included', true); $html = ''; foreach ($response->getSmtStylesheets() as $file => $options) { $html .= stylesheet_tag($file, $options); } return $html; }
function renderMenu() { echo stylesheet_tag('sfTreeMenu/DynamicTree.css'); echo javascript_include_tag('sfTreeMenu/ie5.js'); echo javascript_include_tag('sfTreeMenu/DynamicTree.js'); echo $this->renderMenuData(); $append_js = <<<EOD \t\t var tree = new DynamicTree("tree"); tree.init(); \t\t EOD; echo javascript_tag($append_js); }
function printAssetPaths($assets, $plugin = '') { if (count($assets) > 0) { foreach ($assets as $key => $asset) { $assetType = substr($asset, strrpos($asset, '.') + 1); if ($plugin == '') { echo javascript_include_tag($asset); } elseif ($assetType == 'js') { echo javascript_include_tag(plugin_web_path($plugin, 'js/' . $asset)); } elseif ($assetType == 'css') { echo stylesheet_tag(plugin_web_path($plugin, 'css/' . $asset)); } else { echo $assetType; } } } }
/** * Renders the widget. * * @param string $name The element name * @param string $value The value displayed in this widget * @param array $attributes An array of HTML attributes to be merged with the default HTML attributes * @param array $errors An array of errors for the field * * @return string An HTML tag string * @see sfWidgetForm */ public function render($name, $value = null, $attributes = array(), $errors = array()) { if (!$this->getAttribute('size')) { $this->setAttribute('size', $this->getOption('with_time') ? 15 : 9); } $this->default_picker_options['timeFormat'] = $this->getOption('time_format'); $this->default_picker_options['dateFormat'] = $this->getOption('date_format'); $this->default_picker_options['showSecond'] = strstr($this->getOption('time_format'), 'ss') !== false; if ($timestamp = strtotime($value)) { $value = strtr($this->getOption('date_format'), array('yy' => date('Y', $timestamp), 'mm' => date('m', $timestamp), 'dd' => date('d', $timestamp), 'y' => date('y', $timestamp), 'm' => date('n', $timestamp), 'd' => date('j', $timestamp))); if ($this->getOption('with_time')) { $value .= ' ' . strtr($this->getOption('time_format'), array('hh' => date('H', $timestamp), 'mm' => date('i', $timestamp), 'ss' => date('s', $timestamp), 'h' => date('G', $timestamp), 'm' => intval(date('i', $timestamp)), 's' => intval(date('s', $timestamp)))); } } // Generate the datePicker javascript code $jq_picker_options = array_merge($this->default_picker_options, $this->getOption('jq_picker_options')); if (version_compare(PHP_VERSION, '5.3.0') >= 0) { $jq_picker_options = json_encode($jq_picker_options, JSON_FORCE_OBJECT); } else { $jq_picker_options = json_encode($jq_picker_options); } $jq_picker_options = str_replace('\\/', '/', $jq_picker_options); // Fix for: http://bugs.php.net/bug.php?id=49366 $pickerClass = $this->getOption('with_time') ? 'datetimepicker' : 'datepicker'; $id = $this->generateId($name); $attributes['class'] = 'sfDateTimePicker' . (isset($attributes['class']) ? ' ' . $attributes['class'] : ''); $html = parent::render($name, $value, $attributes, $errors); foreach ($this->getStylesheets() as $file => $options) { $html .= stylesheet_tag($file, $options); } foreach ($this->getJavaScripts() as $file) { $html .= javascript_include_tag($file); } $html .= <<<EOHTML <script type="text/javascript"> jQueryPicker(function(){ jQueryPicker("#{$id}").{$pickerClass}({$jq_picker_options}); // jQueryPicker(".ui-datepicker").draggable(); }); </script> EOHTML; return $html; }
function sw_get_stylesheets() { $params = sfConfig::get('app_swToolbox_swCombine', array('version' => false)); $version = $params['version']; $response = sfContext::getInstance()->getResponse(); $included_files = $response->getCombinedAssets(); sfConfig::set('symfony.asset.stylesheets_included', true); $html = ''; foreach ($response->getStylesheets() as $file => $options) { // avoid loading combined files if (in_array($file, $included_files)) { continue; } $file = $version ? $file . '?v=' . $version : $file; $html .= stylesheet_tag($file, $options); } return $html; }
function renderMenu() { echo $this->display_mode == "vertical" ? stylesheet_tag('sfDropDownMenu/vertical.css') : stylesheet_tag('sfDropDownMenu/horizontal.css'); echo javascript_include_tag('sfDropDownMenu/ie5.js'); echo javascript_include_tag('sfDropDownMenu/XulMenu.js'); $image_arrow1 = image_path('sfDropDownMenu/arrow1.gif'); $image_arrow2 = image_path('sfDropDownMenu/arrow2.gif'); $preload_image_js = <<<EOD \t\t /* preload images */ var arrow1 = new Image(4, 7); arrow1.src = "{$image_arrow1}"; var arrow2 = new Image(4, 7); arrow2.src = "{$image_arrow2}"; \t\t EOD; echo javascript_tag($preload_image_js); echo $this->renderMenuData(); }
/** * Returns <link> tags with the url toward all stylesheets configured in view.yml or added to the response object. * * You can use this helper to decide the location of stylesheets in pages. * By default, if you don't call this helper, symfony will automatically include stylesheets before </head>. * Calling this helper disables this behavior. * * @return string <link> tags */ function get_combined_stylesheets() { if (!sfConfig::get('app_sfCombinePlugin_enabled', false)) { return get_stylesheets(); } sfConfig::set('symfony.asset.stylesheets_included', true); $html = ''; $cssFiles = array(); $response = sfContext::getInstance()->getResponse(); foreach ($response->getStylesheets() as $files => $options) { if (!is_array($files)) { $files = array($files); } $cssFiles = array_merge($cssFiles, $files); } if (!empty($cssFiles)) { $html .= str_replace(array('.css', '.pcss'), '', stylesheet_tag(url_for('sfCombine/css?key=' . _get_key($cssFiles)))); } return $html; }
<?php include_http_metas(); include_metas(); include_title(); use_stylesheet('/sf/sf_default/css/screen.css', 'last'); include_stylesheets(); include_javascripts(); ?> <?php //<link rel="shortcut icon" href="/favicon.ico" /> ?> <!--[if lt IE 7.]> <?php echo stylesheet_tag('/sf/sf_default/css/ie.css'); ?> <![endif]--> </head> <body> <div class="sfTContainer"> <?php echo link_to(image_tag('/sf/sf_default/images/sfTLogo.png', array('alt' => 'symfony PHP Framework', 'class' => 'sfTLogo', 'size' => '186x39')), 'http://www.symfony-project.org/'); ?> <?php echo $sf_content; ?> </div> </body> </html>
/** * Returns <link> tags for all stylesheets configured in view.yml or added to the response object. * * You can use this helper to decide the location of stylesheets in pages. * By default, if you don't call this helper, symfony will automatically include stylesheets before </head>. * Calling this helper disables this behavior. * * @return string <link> tags */ function get_stylesheets() { $response = sfContext::getInstance()->getResponse(); $response->setParameter('stylesheets_included', true, 'symfony/view/asset'); $already_seen = array(); $html = ''; foreach (array('first', '', 'last') as $position) { foreach ($response->getStylesheets($position) as $files => $options) { if (!is_array($files)) { $files = array($files); } foreach ($files as $file) { $file = stylesheet_path($file); if (isset($already_seen[$file])) { continue; } $already_seen[$file] = 1; $html .= stylesheet_tag($file, $options); } } } return $html; }
</script> <?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?> <?php echo stylesheet_tag("css/layout.css"); ?> <?php if ($_SESSION["uid"]) { $theme = get_pref("USER_CSS_THEME", $_SESSION["uid"], false); if ($theme && theme_valid("{$theme}")) { echo stylesheet_tag("themes/{$theme}"); } else { echo stylesheet_tag("themes/default.css"); } } ?> <?php print_user_stylesheet(); ?> <link rel="shortcut icon" type="image/png" href="images/favicon.png"/> <link rel="icon" type="image/png" sizes="72x72" href="images/favicon-72px.png" /> <?php foreach (array("lib/prototype.js", "lib/scriptaculous/scriptaculous.js?load=effects,controls", "lib/dojo/dojo.js", "lib/dojo/tt-rss-layer.js", "errors.php?mode=js") as $jsfile) { echo javascript_tag($jsfile); }
function _a_get_assets_body($type, $assets) { $gzip = sfConfig::get('app_a_minify_gzip', false); sfConfig::set('symfony.asset.' . $type . '_included', true); $html = ''; // We need our own copy of the trivial case here because we rewrote the asset list // for stylesheets after LESS compilation, and there is no way to // reset the list in the response object if (!sfConfig::get('app_a_minify', false)) { // This branch is seen only for CSS, because javascript calls the original Symfony // functionality when minify is off foreach ($assets as $file => $options) { $html .= stylesheet_tag($file, $options); } return $html; } $sets = array(); foreach ($assets as $file => $options) { if (preg_match('/^http(s)?:/', $file) || isset($options['data-minify']) && $options['data-minify'] === 0) { // Nonlocal URL or minify was explicitly shut off. // Don't get cute with it, otherwise things // like Addthis and ckeditor don't work if ($type === 'stylesheets') { $html .= stylesheet_tag($file, $options); } else { $html .= javascript_include_tag($file, $options); } continue; } /* * * Guts borrowed from stylesheet_tag and javascript_tag. We still do a tag if it's * a conditional stylesheet * */ $absolute = false; if (isset($options['absolute']) && $options['absolute']) { unset($options['absolute']); $absolute = true; } $condition = null; if (isset($options['condition'])) { $condition = $options['condition']; unset($options['condition']); } if (!isset($options['raw_name'])) { if ($type === 'stylesheets') { $file = stylesheet_path($file, $absolute); } else { $file = javascript_path($file, $absolute); } } else { unset($options['raw_name']); } if (is_null($options)) { $options = array(); } if ($type === 'stylesheets') { $options = array_merge(array('rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen', 'href' => $file), $options); } else { $options = array_merge(array('type' => 'text/javascript', 'src' => $file), $options); } if (null !== $condition) { $tag = tag('link', $options); $tag = comment_as_conditional($condition, $tag); $html .= $tag . "\n"; } else { unset($options['href'], $options['src']); $optionGroupKey = json_encode($options); $set[$optionGroupKey][] = $file; } // echo($file); // $html .= "<style>\n"; // $html .= file_get_contents(sfConfig::get('sf_web_dir') . '/' . $file); // $html .= "</style>\n"; } // CSS files with the same options grouped together to be loaded together foreach ($set as $optionsJson => $files) { $groupFilename = aAssets::getGroupFilename($files); $groupFilename .= $type === 'stylesheets' ? '.css' : '.js'; if ($gzip) { $groupFilename .= 'gz'; } $dir = aFiles::getUploadFolder(array('asset-cache')); if (!file_exists($dir . '/' . $groupFilename)) { $content = ''; foreach ($files as $file) { $path = null; if (sfConfig::get('app_a_stylesheet_cache_http', false)) { $url = sfContext::getRequest()->getUriPrefix() . $file; $fileContent = file_get_contents($url); } else { $path = sfConfig::get('sf_web_dir') . $file; $fileContent = file_get_contents($path); } if ($type === 'stylesheets') { $options = array(); if (!is_null($path)) { // Rewrite relative URLs in CSS files. // This trick is available only when we don't insist on // pulling our CSS files via http rather than the filesystem // dirname would resolve symbolic links, we don't want that $fdir = preg_replace('/\\/[^\\/]*$/', '', $path); $options['currentDir'] = $fdir; $options['docRoot'] = sfConfig::get('sf_web_dir'); } if (sfConfig::get('app_a_minify', false)) { $fileContent = Minify_CSS::minify($fileContent, $options); } } else { // Trailing carriage return makes behavior more consistent with // JavaScript's behavior when loading separate files. For instance, // a missing trailing semicolon should be tolerated to the same // degree it would be with separate files. The minifier is not // a lint tool and should not surprise you with breakage $fileContent = JSMin::minify($fileContent) . "\n"; } $content .= $fileContent; } if ($gzip) { _gz_file_put_contents($dir . '/' . $groupFilename . '.tmp', $content); } else { file_put_contents($dir . '/' . $groupFilename . '.tmp', $content); } @rename($dir . '/' . $groupFilename . '.tmp', $dir . '/' . $groupFilename); } $options = json_decode($optionsJson, true); // Use stylesheet_path and javascript_path so we can respect relative_root_dir if ($type === 'stylesheets') { $options['href'] = stylesheet_path(sfConfig::get('app_a_assetCacheUrl', '/uploads/asset-cache') . '/' . $groupFilename); $html .= tag('link', $options); } else { $options['src'] = javascript_path(sfConfig::get('app_a_assetCacheUrl', '/uploads/asset-cache') . '/' . $groupFilename); $html .= content_tag('script', '', $options); } } return $html; }
$result = db_query("SELECT id FROM ttrss_users WHERE\n\t\t\tLOWER(login) = LOWER('{$login}')"); $is_registered = db_num_rows($result) > 0; print "<result>"; printf("%d", $is_registered); print "</result>"; return; } ?> <html> <head> <title>Create new account</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <?php echo stylesheet_tag("css/utility.css"); echo stylesheet_tag("css/dijit.css"); echo javascript_tag("js/functions.js"); echo javascript_tag("lib/prototype.js"); echo javascript_tag("lib/scriptaculous/scriptaculous.js?load=effects,controls"); ?> </head> <script type="text/javascript"> function checkUsername() { try { var f = document.forms['register_form']; var login = f.login.value; if (login == "") {
* if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA */ ?> <script type="text/javascript" src="<?php echo public_path('../../scripts/jquery/jquery.js'); ?> "></script> <link href="<?php echo public_path('../../themes/orange/css/jquery/jquery.autocomplete.css'); ?> " rel="stylesheet" type="text/css"/> <?php echo stylesheet_tag('../orangehrmCoreLeavePlugin/css/viewLeaveSummarySuccess'); ?> <!-- 9706 <script type="text/javascript" src="<?php echo public_path('../../scripts/jquery/jquery.validate.js'); ?> "></script>--> <!--[if IE]> <style type="text/css"> #leaveSummary_txtEmpName { width: 195px; } </style> <![endif]--> <style type="text/css">
/** * Alters the response upon an event replacing the temp css tag and temp js tag * with the actual stylesheets and javascripts items read from the response. * @param sfEvent $event * @param string $response * @return string the altered response content */ public static function alterResponse(sfEvent $event, $response) { $self = self::getInstance(); $self->getContext()->getConfiguration()->loadHelpers('Asset'); $subject = $event->getSubject(); // Stylesheets $css = ''; foreach ($subject->getStylesheets() as $file => $options) { $css .= stylesheet_tag($file, $options); } $tmpCssTag = sfConfig::get('app_sf_assets_manager_plugin_alter_response_tempcsstag'); // Javascripts $js = ''; foreach ($subject->getJavascripts() as $file => $options) { $js .= javascript_include_tag($file, $options); } $tmpJsTag = sfConfig::get('app_sf_assets_manager_plugin_alter_response_tempjstag'); $altered = preg_replace(sprintf('`%s`', $tmpCssTag), $css, $response); return preg_replace(sprintf('`%s`', $tmpJsTag), $js, $altered); }
/** * Returns <link> tags for all stylesheets associated with the given form. * @return string <link> tags */ function dm_get_stylesheets_for_form(sfForm $form) { $html = ''; foreach ($form->getStylesheets() as $file => $media) { if (is_numeric($file) && is_string($media)) { $file = $media; $media = 'all'; } $file = sfContext::getInstance()->getResponse()->calculateAssetPath('css', $file); $html .= stylesheet_tag($file, array('media' => $media)); } return $html; }
$_SESSION['day'] = $day; $user_filter = $userPreferences['user_filter']; $status_filter = $userPreferences['status_filter']; $task_filter = $userPreferences['task_filter']; $user = Contacts::findById(array('id' => $user_filter)); if ($user == null) { $user = logged_user(); } $use_24_hours = user_config_option('time_format_use_24'); $date_format = user_config_option('date_format'); if ($use_24_hours) { $timeformat = 'G:i'; } else { $timeformat = 'g:i A'; } echo stylesheet_tag('event/day.css'); //today in gmt 0 $today = DateTimeValueLib::now(); //user today // $today->add('h', logged_user()->getTimezone()); $currentday = $today->format("j"); $currentmonth = $today->format("n"); $currentyear = $today->format("Y"); $drawHourLine = $day == $currentday && $month == $currentmonth && $year == $currentyear; $dtv = DateTimeValueLib::make(0, 0, 0, $month, $day, $year); $result = ProjectEvents::getDayProjectEvents($dtv, active_context(), $user_filter, $status_filter); if (!$result) { $result = array(); } $alldayevents = array(); $milestones = ProjectMilestones::getRangeMilestones($dtv, $dtv);
?> "></script> <script type="text/javascript" src="<?php echo public_path('../../scripts/jquery/ui/ui.datepicker.js'); ?> "></script> <?php echo stylesheet_tag('orangehrm.datepicker.css'); echo javascript_include_tag('orangehrm.datepicker.js'); ?> <?php $noOfColumns = sizeof($sf_data->getRaw('rowDates')); $width = 350 + $noOfColumns * 75; echo stylesheet_tag('../orangehrmTimePlugin/css/viewTimesheetSuccess'); echo javascript_include_tag('../orangehrmTimePlugin/js/viewTimesheet'); use_stylesheet('../../../themes/orange/css/style.css'); use_stylesheet('../../../themes/orange/css/ui-lightness/jquery-ui-1.7.2.custom.css'); use_javascript('../../../scripts/jquery/ui/ui.core.js'); use_javascript('../../../scripts/jquery/ui/ui.dialog.js'); ?> <script type="text/javascript" src="<?php echo public_path('../../scripts/jquery/ui/ui.draggable.js'); ?> "></script> <script type="text/javascript" src="<?php echo public_path('../../scripts/jquery/ui/ui.resizable.js'); ?> "></script>
?> <?php echo link_tag(ROOT_URL . 'favicon.ico', 'rel', 'icon', array("type" => "image/x-icon")); ?> <?php echo render_page_links(); ?> <?php echo stylesheet_tag('project_website.css'); ?> <?php echo stylesheet_tag('colorbox/colorbox.css'); ?> <?php echo render_page_inline_css(); ?> <?php echo javascript_tag('pp.js'); ?> <?php echo javascript_tag('jquery.min.js'); ?> <?php
<?php include_metas(); ?> <?php include_javascripts(); ?> <?php include_stylesheets(); ?> <title><?php include_slot('title'); ?> </title> <!--[if IE]> <?php echo stylesheet_tag('ie.css'); ?> <![endif]--> <link rel="shortcut icon" href="/favicon.ico" /> </head> <body> <div class="page blue_line"> <table> <tr> <td class="blue_line_left"> <ul class="lang_picker"> <li><?php echo link_to('En', 'board/lang?lang=en'); ?> </li> <li class="sep">|</li>
margin: 15px 0; } th { border-bottom:2px solid #333; } .body { margin-left: 20px; padding: 10px; } table { border-collapse:collapse; border-spacing:0; } </style> <?php echo stylesheet_tag('og/reporting.css'); ?> <div class="print" style="padding:7px"> <div class="printHeader report-print-header"> <div class="title-container"><h1 align="center"><?php echo $title; ?> </h1></div> <?php if (isset($pdf_export) && $pdf_export) { ?> <div class="company-info"> <?php if (owner_company()->getPictureFile() != '') { ?>
/** * Returns <link> tags for all stylesheets associated with the given form. * * The stylesheets are set by implementing the getStyleSheets() method in the * corresponding widget. * * <code> * class MyWidget extends sfWidgetForm * { * public function getStyleSheets() * { * return array('/path/to/a/file.css'); * } * } * </code> * * @return string <link> tags */ function get_stylesheets_for_form(sfForm $form) { $html = ''; foreach ($form->getStylesheets() as $file => $media) { $html .= stylesheet_tag($file, array('media' => $media)); } return $html; }
<?php $browser = $_SERVER['HTTP_USER_AGENT']; ?> <?php if (strstr($browser, "MSIE 8.0")) { ?> <link href="<?php echo public_path('../../themes/orange/IE_style.css'); ?> " rel="stylesheet" type="text/css"/> <?php } else { ?> <?php echo stylesheet_tag('../orangehrmPimPlugin/css/viewUsTaxExemptionsSuccess'); ?> <?php } echo javascript_include_tag('../orangehrmPimPlugin/js/viewUsTaxExemptionsSuccess'); ?> <script type="text/javascript"> //<![CDATA[ //we write javascript related stuff here, but if the logic gets lengthy should use a seperate js file var lang_edit = "<?php echo __("Edit"); ?> "; var lang_save = "<?php echo __("Save");
?> <link href="<?php echo public_path('../../themes/orange/css/ui-lightness/jquery-ui-1.7.2.custom.css'); ?> " rel="stylesheet" type="text/css"/> <script type="text/javascript" src="<?php echo public_path('../../scripts/jquery/ui/ui.core.js'); ?> "></script> <script type="text/javascript" src="<?php echo public_path('../../scripts/jquery/ui/ui.datepicker.js'); ?> "></script> <?php echo stylesheet_tag('orangehrm.datepicker.css'); echo javascript_include_tag('orangehrm.datepicker.js'); ?> <script type="text/javascript" src="<?php echo public_path('../../scripts/jquery/ui/ui.draggable.js'); ?> "></script> <script type="text/javascript" src="<?php echo public_path('../../scripts/jquery/ui/ui.resizable.js'); ?> "></script> <?php use_stylesheet('../../../themes/orange/css/jquery/jquery.autocomplete.css'); use_stylesheet('../../../themes/orange/css/ui-lightness/jquery-ui-1.7.2.custom.css'); use_javascript('../../../scripts/jquery/ui/ui.core.js');
$_SESSION['day'] = $day; $user_filter = $userPreferences['user_filter']; $status_filter = $userPreferences['status_filter']; $task_filter = $userPreferences['task_filter']; $user = Contacts::findById(array('id' => $user_filter)); if ($user == null) { $user = logged_user(); } $use_24_hours = user_config_option('time_format_use_24'); $date_format = user_config_option('date_format'); if ($use_24_hours) { $timeformat = 'G:i'; } else { $timeformat = 'g:i A'; } echo stylesheet_tag('event/week.css'); $startday = $day - date("N", mktime(0, 0, 0, $month, $day, $year)) + 1; // beginning of the week, monday $endday = $startday + 7; // end of week $today = DateTimeValueLib::now(); $today->add('h', logged_user()->getTimezone()); $currentday = $today->format("j"); $currentmonth = $today->format("n"); $currentyear = $today->format("Y"); $drawHourLine = false; $lastday = date("t", mktime(0, 0, 0, $month, 1, $year)); // # of days in the month $date_start = new DateTimeValue(mktime(0, 0, 0, $month, $startday, $year)); $date_end = new DateTimeValue(mktime(0, 0, 0, $month, $endday, $year)); // $date_start->add('h', logged_user()->getTimezone());
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 } ?> </div> </div>
<td style="padding-left: 15px;"><?php include_component('ganttChart', 'filters'); ?> </td> </tr> </table> </div> <div><?php include_component('ganttChart', 'filtersPreview'); ?> </div> <?php echo javascript_include_tag('/js/jsgantt/jsgantt.js'); echo stylesheet_tag('/js/jsgantt/jsgantt.css'); $pOpen = 0; if ($sf_request->getParameter('projects_id') > 0) { $pOpen = 1; } elseif (isset($filter_by['Projects'])) { if (count(explode(',', $filter_by['Projects'])) == 1) { $pOpen = 1; } } ?> <div id="page_width"></div> <div class="gantt" id="GanttChartDIV"></div> <script type="text/javascript">