添加到 trunk
+YUCHENG HU+ git-svn-id: https://svn.code.sf.net/p/hawebs/svn@115 a2543c7e-f6e9-4f8a-8bff-1ffc34733512
This commit is contained in:
@@ -0,0 +1,174 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
|
||||
* ("License"); You may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||
* the specific language governing rights and limitations under the License.
|
||||
* The Original Code is: SugarCRM Open Source
|
||||
* The Initial Developer of the Original Code is SugarCRM, Inc.
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________.
|
||||
********************************************************************************/
|
||||
/*********************************************************************************
|
||||
* $Header$
|
||||
* Description: Contains a variety of utility functions used to display UI
|
||||
* components such as form headers and footers. Intended to be modified on a per
|
||||
* theme basis.
|
||||
********************************************************************************/
|
||||
|
||||
require_once('include/logging.php');
|
||||
global $app_strings;
|
||||
|
||||
$log = LoggerManager::getLogger('layout_utils');
|
||||
|
||||
/**
|
||||
* Create HTML to display formatted form title of a form in the left pane
|
||||
* param $left_title - the string to display as the title in the header
|
||||
*/
|
||||
function get_left_form_header ($left_title)
|
||||
{
|
||||
global $image_path;
|
||||
|
||||
$the_header = <<<EOQ
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tbody><tr>
|
||||
<td width="4" height="20"><img src="themes/images/head_start.gif"></td>
|
||||
<td class="leftFormHeader" vAlign="middle" align="left" noWrap height="20">$left_title</td>
|
||||
<td width="4" height="20"><img src="themes/images/head_end.gif"></td>
|
||||
</tr></tbody></table>
|
||||
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="formOuterBorder"><tbody><tr><td align="left">
|
||||
EOQ;
|
||||
|
||||
return $the_header;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create HTML to display formatted form footer of form in the left pane.
|
||||
*/
|
||||
function get_left_form_footer() {
|
||||
return ("</td></tr></tbody></table>\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* Create HTML to display formatted form title.
|
||||
* param $form_title - the string to display as the title in the header
|
||||
* param $other_text - the string to next to the title. Typically used for form buttons.
|
||||
* param $show_help - the boolean which determines if the print and help links are shown.
|
||||
*/
|
||||
function get_form_header ($form_title, $other_text, $show_help)
|
||||
{
|
||||
global $image_path;
|
||||
global $app_strings;
|
||||
|
||||
$the_form = <<<EOQ
|
||||
<!--table width="100%" cellpadding="0" cellspacing="0" border="0" class="formHeaderULine"><tbody><tr>
|
||||
<td valign="bottom">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tbody><tr>
|
||||
<td vAlign="middle" class="formHeader" align="left" noWrap height="15">$form_title </td>
|
||||
</tr></tbody></table></td-->
|
||||
EOQ;
|
||||
|
||||
if ($other_text) {
|
||||
$the_form .= "<td width='20'><IMG height='1' src='themes/images/blank.gif'></td>\n";
|
||||
$the_form .= "<td valign='bottom' class='formHeader' width='100%'>$other_text</td>\n";
|
||||
}
|
||||
else {
|
||||
$the_form .= "<td><IMG height='1' src='themes/images/blank.gif'></td>\n";
|
||||
}
|
||||
|
||||
if ($show_help==true) {
|
||||
$the_form .= "<td class='bodySmall' align='right'>[ <A href='phprint.php?jt=".session_id().$GLOBALS['request_string']."'>".$app_strings['LNK_PRINT']."</A> ]</td>\n";
|
||||
$the_form .= "<td class='bodySmall' align='right'>[ <A href='http://www.vtiger.com/products/crm/document.html' target='_blank'>".$app_strings['LNK_HELP']."</A> ]</td>\n";
|
||||
}
|
||||
|
||||
$the_form .= <<<EOQ
|
||||
</tr>
|
||||
</tbody></table>
|
||||
EOQ;
|
||||
|
||||
return $the_form;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create HTML to display formatted form footer
|
||||
*/
|
||||
function get_form_footer() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Create HTML to display formatted module title.
|
||||
* param $module - the string to next to the title. Typically used for form buttons.
|
||||
* param $module_title - the string to display as the module title
|
||||
* param $show_help - the boolean which determines if the print and help links are shown.
|
||||
*/
|
||||
function get_module_title ($module, $module_title, $show_help) {
|
||||
global $image_path;
|
||||
global $app_strings;
|
||||
|
||||
$the_title = "<table width='100%' cellpadding='0' cellspacing='0' border='0'><tbody><tr><td>\n";
|
||||
$the_title .= "<table cellpadding='0' cellspacing='0' border='0'><tbody><tr>\n";
|
||||
$the_title .= "<td vAlign='middle' align='center'>\n";
|
||||
|
||||
if (is_file($image_path.$module.".gif")) {
|
||||
$the_title .= "<IMG src='".$image_path.$module.".gif' border='0'>\n";
|
||||
}
|
||||
|
||||
$the_title .= "</td><td class='moduleTitle' vAlign='middle' align='left' noWrap width='100%'> ";
|
||||
$the_title .= $module_title."</td></tr></tbody></table></td>\n";
|
||||
$the_title .= "<td width='100%'><IMG height='1' src='themes/images/blank.gif'></td>";
|
||||
|
||||
if ($show_help) {
|
||||
// $the_title .= "<td class='bodySmall' nowrap align='right'> <A href='phprint.php?jt=".session_id().$GLOBALS['request_string']."'><img align=absmiddle hspace=3 border=0 src='themes/images/print.gif'>".$app_strings['LNK_PRINT']."</A> </td>\n";
|
||||
// $the_title .= "<td class='bodySmall' nowrap align='right'> <A href='http://www.vtiger.com/products/crm/document.html' target='_blank'><img align=absmiddle hspace=3 border=0 src='themes/images/help_icon.gif'>".$app_strings['LNK_HELP']."</A></td>\n";
|
||||
}
|
||||
else {
|
||||
$the_title .= "<td class='bodySmall' align='right'> </td>\n";
|
||||
$the_title .= "<td class='bodySmall' align='right'> </td>\n";
|
||||
}
|
||||
|
||||
$the_title .= "</tr><tr><td colspan='4' width='100%' class='hline'><IMG width='100%' height='1' src='themes/images/blank.gif'></td>";
|
||||
$the_title .= "</tr></tbody></table>\n";
|
||||
|
||||
return $the_title;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a header for a popup.
|
||||
* param $theme - The name of the current theme
|
||||
*/
|
||||
function insert_popup_header($theme)
|
||||
{
|
||||
global $app_strings, $default_charset;
|
||||
$charset = $default_charset;
|
||||
|
||||
if(isset($app_strings['LBL_CHARSET']))
|
||||
{
|
||||
$charset = $app_strings['LBL_CHARSET'];
|
||||
}
|
||||
|
||||
$out = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
|
||||
$out .= '<HTML><HEAD>';
|
||||
$out .= '<meta http-equiv="Content-Type" content="text/html; charset='.$charset.'">';
|
||||
$out .= '<title>'.$app_strings['LBL_BROWSER_TITLE'].'</title>';
|
||||
$out .= '<style type="text/css">@import url("themes/'.$theme.'/style.css"); </style>';
|
||||
$out .= '</HEAD><BODY leftMargin="5" topMargin="5" MARGINHEIGHT="0" MARGINWIDTH="0">';
|
||||
|
||||
echo $out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a footer for a popup.
|
||||
*/
|
||||
function insert_popup_footer()
|
||||
{
|
||||
echo <<< EOQ
|
||||
</BODY>
|
||||
</HTML>
|
||||
EOQ;
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,31 @@
|
||||
<!--
|
||||
/*********************************************************************************
|
||||
* The contents of this file are subject to the SugarCRM Public License Version 1.2
|
||||
* ("License"); You may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||
* the specific language governing rights and limitations under the License.
|
||||
* The Original Code is: SugarCRM Open Source
|
||||
* The Initial Developer of the Original Code is SugarCRM, Inc.
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________.
|
||||
********************************************************************************/
|
||||
/*********************************************************************************
|
||||
* {LBL_CURRENCY_SYM}Header: /cvsroot/sugarcrm/sugarcrm/themes/Amazon/header.html,v 1.14 2004/07/04 04:00:48 sugarclint Exp {LBL_CURRENCY_SYM}
|
||||
********************************************************************************/
|
||||
-->
|
||||
<!-- BEGIN: main -->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<link REL="SHORTCUT ICON" HREF="include/images/vtigercrm_icon.ico">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset={LBL_CHARSET}">
|
||||
<title>{APP.LBL_BROWSER_TITLE}</title>
|
||||
<style type="text/css">@import url("include/style.css");</style>
|
||||
</head>
|
||||
<body style="padding:0; margin:0;">
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
|
||||
* ("License"); You may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||
* the specific language governing rights and limitations under the License.
|
||||
* The Original Code is: SugarCRM Open Source
|
||||
* The Initial Developer of the Original Code is SugarCRM, Inc.
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________.
|
||||
********************************************************************************/
|
||||
/*********************************************************************************
|
||||
* $Header$
|
||||
* Description: Contains a variety of utility functions used to display UI
|
||||
* components such as form headers and footers. Intended to be modified on a per
|
||||
* theme basis.
|
||||
********************************************************************************/
|
||||
|
||||
require_once('Smarty_setup.php');
|
||||
require_once("data/Tracker.php");
|
||||
require_once("include/utils/utils.php");
|
||||
|
||||
|
||||
global $currentModule;
|
||||
global $moduleList;
|
||||
global $theme;
|
||||
$theme_path="themes/".$theme."/";
|
||||
$image_path=$theme_path."images/";
|
||||
|
||||
global $app_strings;
|
||||
|
||||
$smarty=new vtigerCRM_Smarty;
|
||||
$smarty->assign("APP", $app_strings);
|
||||
|
||||
|
||||
if(isset($app_strings['LBL_CHARSET']))
|
||||
{
|
||||
$smarty->assign("LBL_CHARSET", $app_strings['LBL_CHARSET']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$smarty->assign("LBL_CHARSET", $default_charset);
|
||||
}
|
||||
|
||||
$smarty->assign("THEME", $theme);
|
||||
$smarty->assign("IMAGE_PATH", $image_path);$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
|
||||
|
||||
$smarty->display('loginheader.tpl');
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,120 @@
|
||||
/*********************************************************************************
|
||||
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* The Original Code is: vtiger CRM Open Source
|
||||
* The Initial Developer of the Original Code is vtiger.
|
||||
* Portions created by vtiger are Copyright (C) vtiger.
|
||||
* All Rights Reserved.
|
||||
********************************************************************************/
|
||||
/* CSS Document */
|
||||
|
||||
|
||||
|
||||
body{
|
||||
margin:0px 0px 0px 0px;
|
||||
font-family:Arial, Helvetica, sans-serif;
|
||||
font-size:12px;
|
||||
text-decoration:none;
|
||||
}
|
||||
.settingsUI {
|
||||
text-align:left;
|
||||
background-color:#DADADA;
|
||||
border:2px solid #656565;
|
||||
}
|
||||
.detailedViewTextBox {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
border:1px solid #bababa;
|
||||
padding-left:5px;
|
||||
width:90%;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
a {
|
||||
text-decoration:none;
|
||||
color: #0000FF;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration:underline;
|
||||
|
||||
}
|
||||
.link {
|
||||
color: #4C4C4C;
|
||||
}
|
||||
.link:hover {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.link2 {
|
||||
color: #FFF;
|
||||
}
|
||||
.link2:hover {
|
||||
color: #FFF;
|
||||
}
|
||||
.MatrixLayer1{
|
||||
border:2px solid #DADADA;
|
||||
background-color:#EFEFEF;
|
||||
position:relative;
|
||||
visibility:visible;
|
||||
/*margin:9px;
|
||||
height:280px;*/
|
||||
}
|
||||
.MatrixLayer2{
|
||||
border:2px solid #9C9C9C;
|
||||
background-color:#FFF;
|
||||
width:100%;
|
||||
position:relative;
|
||||
visibility:visible;
|
||||
/*margin:9px;
|
||||
height:280px;*/
|
||||
}
|
||||
.secHeadlistview{
|
||||
height: 20px;
|
||||
padding-left: 5px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
}
|
||||
.tableHeadBg{
|
||||
background-color:#9A9A9A;
|
||||
height:25px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size:12px;
|
||||
color:#FFF;
|
||||
}
|
||||
.tableHeadBg2{
|
||||
background-color:#DADADA;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size:11px;
|
||||
color:#FFF;
|
||||
}
|
||||
.lvtColData {
|
||||
background-color:#ffffff;
|
||||
font: normal 12px Arial, Helvetica, sans-serif;
|
||||
color:#000;
|
||||
}
|
||||
.lvtColDataHover {
|
||||
background-color:#EFEFEF;
|
||||
font: normal 12px Arial, Helvetica, sans-serif;
|
||||
color:#000;
|
||||
}
|
||||
.small3{
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 12px;
|
||||
color: #000000;
|
||||
line-height:20px;
|
||||
text-align:justify;
|
||||
padding:3px;
|
||||
}
|
||||
|
||||
.buttonok {
|
||||
background-color: #646363;
|
||||
border:2px solid #979696;
|
||||
font: bold 11px Arial, Helvetica, sans-serif;
|
||||
color:#FFF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user