git-svn-id: https://svn.code.sf.net/p/hawebs/svn@531 a2543c7e-f6e9-4f8a-8bff-1ffc34733512

This commit is contained in:
YuCheng Hu
2010-08-18 01:17:28 +00:00
parent 01c6f3c290
commit a265a44ee0
163 changed files with 6032 additions and 1914 deletions
+458 -458
View File
@@ -1,458 +1,458 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
@@ -1,6 +1,6 @@
Feel free to put the smarty icon on your site.
You can cut-and-paste the following code, be sure
to adjust the path to the image:
<a href="http://smarty.php.net/">
<img src="smarty_icon.gif" border="0" height="31" width="88" /></a>
Feel free to put the smarty icon on your site.
You can cut-and-paste the following code, be sure
to adjust the path to the image:
<a href="http://smarty.php.net/">
<img src="smarty_icon.gif" border="0" height="31" width="88" /></a>
@@ -81,7 +81,9 @@ function getListOfRecords(obj, sModule, iId,sParentTab)
}
);
}
{/literal}
function DeleteTag(id,recordid)
{ldelim}
$("vtbusy_info").style.display="inline";
@@ -156,8 +158,8 @@ function DeleteTag(id,recordid)
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign=top align=left >
<table border=0 cellspacing=0 cellpadding=3 width=100%>
<tr>
<table border=0 cellspacing=0 cellpadding=3 width=100%>
<tr valign=top>
<td align=left>
<form action="index.php" method="post" name="DetailView" id="form" onsubmit="VtigerJS_DialogBox.block();">
{include file='DetailViewHidden.tpl'}
@@ -291,7 +293,26 @@ function DeleteTag(id,recordid)
{/if}
</tr>
</table>
{/if}
{/if}
{* vtlib Customization: Embed DetailViewWidget block:// type if any *}
{if $CUSTOM_LINKS && !empty($CUSTOM_LINKS.DETAILVIEWWIDGET)}
<table border=0 cellspacing=0 cellpadding=5 width=100% >
{foreach item=CUSTOM_LINK_DETAILVIEWWIDGET from=$CUSTOM_LINKS.DETAILVIEWWIDGET}
{if preg_match("/^block:\/\/.*/", $CUSTOM_LINK_DETAILVIEWWIDGET->linkurl)}
<tr>
<td style="padding:5px;" >
{php}
echo vtlib_process_widget($this->_tpl_vars['CUSTOM_LINK_DETAILVIEWWIDGET'], $this->_tpl_vars);
{/php}
</td>
</tr>
{/if}
{/foreach}
</table>
{/if}
{* END *}
<br>
<table border=0 cellspacing=0 cellpadding=0 width=100% align=center>
<tr>
@@ -315,7 +336,7 @@ function DeleteTag(id,recordid)
</table>
</td>
</tr>
<tr>
<td width=100% valign=top align=left class="dvtContentSpace" style="padding:10px;height:120px">
<!-- Invite UI -->
@@ -561,61 +582,116 @@ function DeleteTag(id,recordid)
</td>
<td width=22% valign=top style="border-left:2px dashed #cccccc;padding:13px">
<!-- right side relevant info -->
{* vtlib customization: Custom links on the Detail view *}
{if $CUSTOM_LINKS}
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr><td align="left" class="dvtUnSelectedCell dvtCellLabel">
<a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></a>
</td></tr>
</table>
<br>
<div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_customLinksLay"
onmouseout="fninvsh('vtlib_customLinksLay')" onmouseover="fnvshNrm('vtlib_customLinksLay')">
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></td></tr>
{* vtlib customization: Custom links on the Detail view basic links *}
{if $CUSTOM_LINKS && $CUSTOM_LINKS.DETAILVIEWBASIC}
<table width="100%" border="0" cellpadding="5" cellspacing="0">
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.DETAILVIEWBASIC}
<tr>
<td>
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{assign var="customlink_module" value=$CUSTOMLINK->module()}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$customlink_module}
{/if}
<a href="{$customlink_href}" class="drop_down">{$customlink_label}</a>
{/foreach}
<td align="left" style="padding-left:10px;">
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
{if $CUSTOMLINK->linkicon}
<a class="webMnu" href="{$customlink_href}"><img hspace=5 align="absmiddle" border=0 src="{$CUSTOMLINK->linkicon}"></a>
{/if}
<a class="webMnu" href="{$customlink_href}">{$customlink_label}</a>
</td>
</tr>
</table>
</div>
{/if}
{/foreach}
</table>
{/if}
{* vtlib customization: Custom links on the Detail view *}
{if $CUSTOM_LINKS && $CUSTOM_LINKS.DETAILVIEW}
<br>
{if !empty($CUSTOM_LINKS.DETAILVIEW)}
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr><td align="left" class="dvtUnSelectedCell dvtCellLabel">
<a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></a>
</td></tr>
</table>
<br>
<div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_customLinksLay"
onmouseout="fninvsh('vtlib_customLinksLay')" onmouseover="fnvshNrm('vtlib_customLinksLay')">
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></td></tr>
<tr>
<td>
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.DETAILVIEW}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<a href="{$customlink_href}" class="drop_down">{$customlink_label}</a>
{/foreach}
</td>
</tr>
</table>
</div>
{/if}
{/if}
{* END *}
{if $TAG_CLOUD_DISPLAY eq 'true'}
<!-- Tag cloud display -->
<table border=0 cellspacing=0 cellpadding=0 width=100% class="tagCloud">
<tr>
<td class="tagCloudTopBg"><img src="{$IMAGE_PATH}tagCloudName.gif" border=0></td>
</tr>
<tr>
<td><div id="tagdiv" style="display:visible;"><form method="POST" action="javascript:void(0);" onsubmit="return tagvalidate();"><input class="textbox" type="text" id="txtbox_tagfields" name="textbox_First Name" value="" style="width:100px;margin-left:5px;"></input>&nbsp;&nbsp;<input name="button_tagfileds" type="submit" class="crmbutton small save" value="{$APP.LBL_TAG_IT}" /></form></div></td>
</tr>
<tr>
<td class="tagCloudDisplay" valign=top> <span id="tagfields">{$ALL_TAG}</span></td>
</tr>
<tr>
<td class="tagCloudTopBg"><img src="{$IMAGE_PATH}tagCloudName.gif" border=0></td>
</tr>
<tr>
<td><div id="tagdiv" style="display:visible;"><form method="POST" action="javascript:void(0);" onsubmit="return tagvalidate();"><input class="textbox" type="text" id="txtbox_tagfields" name="textbox_First Name" value="" style="width:100px;margin-left:5px;"></input>&nbsp;&nbsp;<input name="button_tagfileds" type="submit" class="crmbutton small save" value="{$APP.LBL_TAG_IT}" /></form></div></td>
</tr>
<tr>
<td class="tagCloudDisplay" valign=top> <span id="tagfields">{$ALL_TAG}</span></td>
</tr>
</table>
<!-- End Tag cloud display -->
{/if}
<br>
</td>
</tr>
</table>
{if !empty($CUSTOM_LINKS.DETAILVIEWWIDGET)}
{foreach key=CUSTOMLINK_NO item=CUSTOMLINK from=$CUSTOM_LINKS.DETAILVIEWWIDGET}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{* Ignore block:// type custom links which are handled earlier *}
{if !preg_match("/^block:\/\/.*/", $customlink_href)}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<br/>
<table border=0 cellspacing=0 cellpadding=0 width=100% class="rightMailMerge">
<tr>
<td class="rightMailMergeHeader">
<b>{$customlink_label}</b>
<img id="detailview_block_{$CUSTOMLINK_NO}_indicator" style="display:none;" src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0" align="absmiddle" />
</td>
</tr>
<tr style="height:25px">
<td class="rightMailMergeContent"><div id="detailview_block_{$CUSTOMLINK_NO}"></div></td>
</tr>
<script type="text/javascript">
vtlib_loadDetailViewWidget("{$customlink_href}", "detailview_block_{$CUSTOMLINK_NO}", "detailview_block_{$CUSTOMLINK_NO}_indicator");
</script>
</table>
{/if}
{/foreach}
{/if}
<br>
</td>
</tr>
</table>
</div>
<!-- PUBLIC CONTENTS STOPS-->
@@ -238,7 +238,7 @@ function alphabetic(module,url,dataid)
<td class="showPanelBg" valign="top" width=100% style="padding:10px;">
<!-- SIMPLE SEARCH -->
<div id="searchAcc" style="z-index:1;display:none;position:relative;">
<div id="searchAcc" style="display: block;position:relative;">
<form name="basicSearch" method="post" action="index.php" onSubmit="return callSearch('Basic');">
<table width="80%" cellpadding="5" cellspacing="0" class="searchUIBasic small" align="center" border=0>
<tr>
@@ -387,7 +387,52 @@ function alphabetic(module,url,dataid)
{/if}
{/if}
{/foreach}
{/foreach}
{* vtlib customization: Custom link buttons on the List view basic buttons *}
{if $CUSTOM_LINKS && $CUSTOM_LINKS.LISTVIEWBASIC}
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.LISTVIEWBASIC}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<input class="crmbutton small edit" type="button" value="{$customlink_label}" onclick="{$customlink_href}" />
{/foreach}
{/if}
{* vtlib customization: Custom link buttons on the List view *}
{if $CUSTOM_LINKS && !empty($CUSTOM_LINKS.LISTVIEW)}
&nbsp;
<a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');">
<b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} <img src="{'arrow_down.gif'|@vtiger_imageurl:$THEME}" border="0"></b>
</a>
<div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_customLinksLay"
onmouseout="fninvsh('vtlib_customLinksLay')" onmouseover="fnvshNrm('vtlib_customLinksLay')">
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></td></tr>
<tr>
<td>
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.LISTVIEW}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<a href="{$customlink_href}" class="drop_down">{$customlink_label}</a>
{/foreach}
</td>
</tr>
</table>
</div>
{/if}
{* END *}
</td>
<td class="small" nowrap>
{$recordListRange}
@@ -500,6 +545,51 @@ function alphabetic(module,url,dataid)
{/if}
{/foreach}
{* vtlib customization: Custom link buttons on the List view basic buttons *}
{if $CUSTOM_LINKS && $CUSTOM_LINKS.LISTVIEWBASIC}
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.LISTVIEWBASIC}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<input class="crmbutton small edit" type="button" value="{$customlink_label}" onclick="{$customlink_href}" />
{/foreach}
{/if}
{* vtlib customization: Custom link buttons on the List view *}
{if $CUSTOM_LINKS && !empty($CUSTOM_LINKS.LISTVIEW)}
&nbsp;
<a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');">
<b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} <img src="{'arrow_down.gif'|@vtiger_imageurl:$THEME}" border="0"></b>
</a>
<div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_customLinksLay"
onmouseout="fninvsh('vtlib_customLinksLay')" onmouseover="fnvshNrm('vtlib_customLinksLay')">
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></td></tr>
<tr>
<td>
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.LISTVIEW}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<a href="{$customlink_href}" class="drop_down">{$customlink_label}</a>
{/foreach}
</td>
</tr>
</table>
</div>
{/if}
{* END *}
</td>
<td class="small" nowrap>
{$recordListRange}
@@ -94,14 +94,18 @@
{* vtlib customization: Hook to enable import/export button for custom modules. Added CUSTOM_MODULE *}
{if $MODULE eq 'Vendors' || $MODULE eq 'HelpDesk' || $MODULE eq 'Contacts' || $MODULE eq 'Leads' || $MODULE eq 'Accounts' || $MODULE eq 'Potentials' || $MODULE eq 'Products' || $MODULE eq 'Documents'|| $CUSTOM_MODULE eq 'true' }
{if $CHECK.Import eq 'yes' && $MODULE neq 'Documents'}
{if $MODULE eq 'Vendors' || $MODULE eq 'HelpDesk' || $MODULE eq 'Contacts' || $MODULE eq 'Leads' || $MODULE eq 'Accounts' || $MODULE eq 'Potentials' || $MODULE eq 'Products' || $MODULE eq 'Documents'|| $CUSTOM_MODULE eq 'true' || $MODULE eq 'Calendar'}
{if $CHECK.Import eq 'yes' && $MODULE neq 'Documents' && $MODULE neq 'Calendar'}
<td style="padding-right:0px;padding-left:10px;"><a href="index.php?module={$MODULE}&action=Import&step=1&return_module={$MODULE}&return_action=index&parenttab={$CATEGORY}"><img src="{$IMAGE_PATH}tbarImport.gif" alt="{$APP.LBL_IMPORT} {$MODULE|getTranslatedString:$MODULE}" title="{$APP.LBL_IMPORT} {$MODULE|getTranslatedString:$MODULE}" border="0"></a></td>
{elseif $CHECK.Import eq 'yes' && $MODULE eq 'Calendar'}
<td style="padding-right:10px"><a name='export_link' href="javascript:void(0);" onclick="fnvshobj(this,'CalImport');" ><img src="{$IMAGE_PATH}tbarImport.gif" alt="{$APP.LBL_EXPORT} {$MODULE|getTranslatedString:$MODULE}" title="{$APP.LBL_EXPORT} {$MODULE|getTranslatedString:$MODULE}" border="0"></a></td>
{else}
<td style="padding-right:0px;padding-left:10px;"><img src="{'tbarImport-Faded.gif'|@vtiger_imageurl:$THEME}" border="0"></td>
{/if}
{if $CHECK.Export eq 'yes'}
<td style="padding-right:10px"><a name='export_link' href="javascript:void(0)" onclick="return selectedRecords('{$MODULE}','{$CATEGORY}')"><img src="{$IMAGE_PATH}tbarExport.gif" alt="{$APP.LBL_EXPORT} {$MODULE|getTranslatedString:$MODULE}" title="{$APP.LBL_EXPORT} {$MODULE|getTranslatedString:$MODULE}" border="0"></a></td>
{if $CHECK.Export eq 'yes' && $MODULE neq 'Calendar'}
<td style="padding-right:10px"><a name='export_link' href="javascript:void(0)" onclick="return selectedRecords('{$MODULE}','{$CATEGORY}')"><img src="{$IMAGE_PATH}tbarExport.gif" alt="{$APP.LBL_EXPORT} {$MODULE|getTranslatedString:$MODULE}" title="{$APP.LBL_EXPORT} {$MODULE|getTranslatedString:$MODULE}" border="0"></a></td>
{elseif $CHECK.Export eq 'yes' && $MODULE eq 'Calendar'}
<td style="padding-right:10px"><a name='export_link' href="javascript:void(0);" onclick="fnvshobj(this,'CalExport');" ><img src="{$IMAGE_PATH}tbarExport.gif" alt="{$APP.LBL_EXPORT} {$MODULE|getTranslatedString:$MODULE}" title="{$APP.LBL_EXPORT} {$MODULE|getTranslatedString:$MODULE}" border="0"></a></td>
{else}
<td style="padding-right:10px"><img src="{'tbarExport-Faded.gif'|@vtiger_imageurl:$THEME}" border="0"></td>
{/if}
@@ -23,7 +23,7 @@
<script src="include/scriptaculous/scriptaculous.js" type="text/javascript"></script>
<script src="include/js/general.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript" src="include/js/{php} echo $_SESSION['authenticated_user_language'];{/php}.lang.js?{php} echo $_SESSION['vtiger_version'];{/php}"></script>
<script type="text/javascript" src="include/fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="include/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="modules/Products/multifile.js"></script>
</head>
<body marginheight="0" marginwidth="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
@@ -69,12 +69,12 @@
<td class="cellText" style="padding: 5px;" align="left" nowrap>
<select name="parent_type">
{foreach key=labelval item=selectval from=$elements.1.0}
{if $select_module eq $APP[$labelval]}
{assign var=selectval value="selected"}
{if $selectval eq selected}
{assign var=selectmodule value="selected"}
{else}
{assign var=selectval value=""}
{assign var=selectmodule value=""}
{/if}
<option value="{$labelval}" {$selectval}>{$APP[$labelval]}</option>
<option value="{$labelval}" {$selectmodule}>{$APP[$labelval]}</option>
{/foreach}
</select>
&nbsp;
@@ -343,9 +343,11 @@ function delAttachments(id)
{/literal}
</script>
<script type="text/javascript" defer="1">
var oFCKeditor = null;
oFCKeditor = new FCKeditor( "description" ,"100%","370") ;
oFCKeditor.BasePath = "include/fckeditor/" ;
oFCKeditor.ReplaceTextarea();
var textAreaName = 'description';
CKEDITOR.replace( textAreaName, {ldelim}
extraPlugins : 'uicolor',
uiColor: '#dfdff1'
{rdelim} ) ;
var oCKeditor = CKEDITOR.instances[textAreaName];
</script>
</html>
@@ -265,17 +265,15 @@ x;color: #000000;border:1px solid #bababa;padding-left:5px;background-color:#fff
</tbody>
</table>
<script type="text/javascript" src="include/fckeditor/fckeditor.js"></script>
<script type="text/javascript" defer="1">
var oFCKeditor = null;
oFCKeditor = new FCKeditor( "body" ) ;
oFCKeditor.BasePath = "include/fckeditor/" ;
oFCKeditor.ReplaceTextarea() ;
</script>
<script type="text/javascript" src="include/ckeditor/ckeditor.js"></script>
<script type="text/javascript" defer="1">var textAreaName = null;
var textAreaName = 'body';
CKEDITOR.replace( textAreaName, {ldelim}
extraPlugins : 'uicolor',
uiColor: '#dfdff1'
{rdelim} ) ;
var oCKeditor = CKEDITOR.instances[textAreaName];
</script>
<script>
@@ -71,7 +71,7 @@ function sensex_info()
{if $APP.$SINGLE_MOD} {assign var="SINGLE_MOD_LABEL" value=$APP.SINGLE_MOD} {/if}
{if $OP_MODE eq 'edit_view'}
<span class="lvtHeaderText"><font color="purple">[ {$ID} ] </font>{$NAME} - {$APP.LBL_EDITING} {$SINGLE_MOD_LABEL} {$APP.LBL_INFORMATION}</span> <br>
<span class="lvtHeaderText"><font color="purple">[ {$ID} ] </font>{$NAME} - {$APP.LBL_EDITING} {$SINGLE_MOD|@getTranslatedString:$MODULE} {$APP.LBL_INFORMATION}</span> <br>
{$UPDATEINFO}
{/if}
@@ -83,7 +83,7 @@ function sensex_info()
{if $create_newlabel neq ''}
<span class="lvtHeaderText">{$create_newlabel}</span> <br>
{else}
<span class="lvtHeaderText">{$APP.LBL_CREATING} {$APP.LBL_NEW} {$SINGLE_MOD}</span> <br>
<span class="lvtHeaderText">{$APP.LBL_CREATING} {$APP.LBL_NEW} {$SINGLE_MOD|@getTranslatedString:$MODULE}</span> <br>
{/if}
{else}
@@ -280,20 +280,21 @@ function sensex_info()
</table>
</form>
{if ($MODULE eq 'Emails' || 'Documents') and ($FCKEDITOR_DISPLAY eq 'true')}
<script type="text/javascript" src="include/fckeditor/fckeditor.js"></script>
<script type="text/javascript" defer="1">
var oFCKeditor = null;
{if $MODULE eq 'Documents'}
oFCKeditor = new FCKeditor( "notecontent" ) ;
{/if}
oFCKeditor.BasePath = "include/fckeditor/" ;
oFCKeditor.ReplaceTextarea() ;
</script>
{if ($MODULE eq 'Emails' || 'Documents') and ($USE_RTE eq 'true')}
<script type="text/javascript" src="include/ckeditor/ckeditor.js"></script>
<script type="text/javascript" defer="1">
var textAreaName = null;
{if $MODULE eq 'Documents'}
textAreaName = "notecontent";
{else}
textAreaName = 'description';
{/if}
CKEDITOR.replace( textAreaName, {ldelim}
extraPlugins : 'uicolor',
uiColor: '#dfdff1'
{rdelim} ) ;
var oCKeditor = CKEDITOR.instances[textAreaName];
</script>
{/if}
{if $MODULE eq 'Accounts'}
<script>
@@ -109,7 +109,6 @@ function getListOfRecords(obj, sModule, iId,sParentTab)
}
);
}
<!-- End of code added by SAKTI on 16th Jun, 2008 -->
{/literal}
function tagvalidate()
{ldelim}
@@ -214,8 +213,18 @@ function sendfile_email()
<td class="dvtSelectedCell" align=center nowrap>{$SINGLE_MOD|@getTranslatedString:$MODULE} {$APP.LBL_INFORMATION}</td>
<td class="dvtTabCache" style="width:10px">&nbsp;</td>
{if $SinglePane_View eq 'false'}
<td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action=CallRelatedList&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}">{$APP.LBL_MORE} {$APP.LBL_INFORMATION}</a></td>
{if $SinglePane_View eq 'false' && $IS_REL_LIST neq false && $IS_REL_LIST|@count > 0}
<td class="dvtUnSelectedCell" onmouseout="fnHideDrop('More_Information_Modules_List');" onmouseover="fnDropDown(this,'More_Information_Modules_List');" align="center" nowrap>
<a href="index.php?action=CallRelatedList&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}">{$APP.LBL_MORE} {$APP.LBL_INFORMATION}</a>
<div onmouseover="fnShowDrop('More_Information_Modules_List')" onmouseout="fnHideDrop('More_Information_Modules_List')"
id="More_Information_Modules_List" class="drop_mnu" style="left: 502px; top: 76px; display: none;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
{foreach key=_RELATION_ID item=_RELATED_MODULE from=$IS_REL_LIST}
<tr><td><a class="drop_down" href="index.php?action=CallRelatedList&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}&selected_header={$_RELATED_MODULE}&relation_id={$_RELATION_ID}">{$_RELATED_MODULE|@getTranslatedString:$MODULE}</a></td></tr>
{/foreach}
</table>
</div>
</td>
{/if}
<td class="dvtTabCache" align="right" style="width:100%">
{if $EDIT_DUPLICATE eq 'permitted'}
@@ -249,14 +258,14 @@ function sendfile_email()
<tr>
<td valign=top align=left >
<table border=0 cellspacing=0 cellpadding=3 width=100% class="dvtContentSpace" style="border-bottom:0;">
<tr>
<tr valign=top>
<td align=left>
<!-- content cache -->
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr>
<tr valign=top>
<td style="padding:5px">
<!-- Command Buttons -->
<table border=0 cellspacing=0 cellpadding=0 width=100%>
@@ -374,9 +383,26 @@ function sendfile_email()
{/if}
</td>
</tr>
<tr> <td style="padding:10px">
<tr><td style="padding:5px">
{/foreach}
{*-- End of Blocks--*}
{*-- End of Blocks--*}
{* vtlib Customization: Embed DetailViewWidget block:// type if any *}
{if $CUSTOM_LINKS && !empty($CUSTOM_LINKS.DETAILVIEWWIDGET)}
{foreach item=CUSTOM_LINK_DETAILVIEWWIDGET from=$CUSTOM_LINKS.DETAILVIEWWIDGET}
{if preg_match("/^block:\/\/.*/", $CUSTOM_LINK_DETAILVIEWWIDGET->linkurl)}
<tr>
<td style="padding:5px;" >
{php}
echo vtlib_process_widget($this->_tpl_vars['CUSTOM_LINK_DETAILVIEWWIDGET'], $this->_tpl_vars);
{/php}
</td>
</tr>
{/if}
{/foreach}
{/if}
{* END *}
</td>
</tr>
<!-- Inventory - Product Details informations -->
@@ -387,7 +413,7 @@ function sendfile_email()
</form>
<!-- End the form related to detail view -->
{if $SinglePane_View eq 'true' && $IS_REL_LIST eq 'true'}
{if $SinglePane_View eq 'true' && $IS_REL_LIST|@count > 0}
{include file= 'RelatedListNew.tpl'}
{/if}
</table>
@@ -549,12 +575,9 @@ function sendfile_email()
{/if}
{* vtlib customization: Custom links on the Detail view *}
{if $CUSTOM_LINKS}
{if $CUSTOM_LINKS && $CUSTOM_LINKS.DETAILVIEW}
<br>
{if isset($CUSTOM_LINKS.DETAILVIEW)}
{assign var="CUSTOM_LINKS" value=$CUSTOM_LINKS.DETAILVIEW}
{/if}
{if !empty($CUSTOM_LINKS)}
{if !empty($CUSTOM_LINKS.DETAILVIEW)}
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr><td align="left" class="dvtUnSelectedCell dvtCellLabel">
<a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></a>
@@ -567,7 +590,7 @@ function sendfile_email()
<tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></td></tr>
<tr>
<td>
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS}
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.DETAILVIEW}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
@@ -594,8 +617,8 @@ function sendfile_email()
<td class="tagCloudTopBg"><img src="{$IMAGE_PATH}tagCloudName.gif" border=0></td>
</tr>
<tr>
<td><div id="tagdiv" style="display:visible;"><form method="POST" action="javascript:void(0);" onsubmit="return tagvalidate();"><input class="textbox" type="text" id="txtbox_tagfields" name="textbox_First Name" value="" style="width:100px;margin-left:5px;"></input>&nbsp;&nbsp;<input name="button_tagfileds" type="submit" class="crmbutton small save" value="{$APP.LBL_TAG_IT}" /></form></div></td>
</tr>
<td><div id="tagdiv" style="display:visible;"><form method="POST" action="javascript:void(0);" onsubmit="return tagvalidate();"><input class="textbox" type="text" id="txtbox_tagfields" name="textbox_First Name" value="" style="width:100px;margin-left:5px;"></input>&nbsp;&nbsp;<input name="button_tagfileds" type="submit" class="crmbutton small save" value="{$APP.LBL_TAG_IT}" /></form></div></td>
</tr>
<tr>
<td class="tagCloudDisplay" valign=top> <span id="tagfields">{$ALL_TAG}</span></td>
</tr>
@@ -627,13 +650,41 @@ function sendfile_email()
</table>
</form>
{/if}
{if !empty($CUSTOM_LINKS.DETAILVIEWWIDGET)}
{foreach key=CUSTOMLINK_NO item=CUSTOMLINK from=$CUSTOM_LINKS.DETAILVIEWWIDGET}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{* Ignore block:// type custom links which are handled earlier *}
{if !preg_match("/^block:\/\/.*/", $customlink_href)}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<br/>
<table border=0 cellspacing=0 cellpadding=0 width=100% class="rightMailMerge">
<tr>
<td class="rightMailMergeHeader">
<b>{$customlink_label}</b>
<img id="detailview_block_{$CUSTOMLINK_NO}_indicator" style="display:none;" src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0" align="absmiddle" />
</td>
</tr>
<tr style="height:25px">
<td class="rightMailMergeContent"><div id="detailview_block_{$CUSTOMLINK_NO}"></div></td>
</tr>
<script type="text/javascript">
vtlib_loadDetailViewWidget("{$customlink_href}", "detailview_block_{$CUSTOMLINK_NO}", "detailview_block_{$CUSTOMLINK_NO}_indicator");
</script>
</table>
{/if}
{/foreach}
{/if}
</td>
</tr>
</table>
</div>
<!-- PUBLIC CONTENTS STOPS-->
</td>
@@ -646,7 +697,7 @@ function sendfile_email()
<td class="dvtSelectedCellBottom" align=center nowrap>{$SINGLE_MOD|@getTranslatedString:$MODULE} {$APP.LBL_INFORMATION}</td>
<td class="dvtTabCacheBottom" style="width:10px">&nbsp;</td>
{if $SinglePane_View eq 'false'}
{if $SinglePane_View eq 'false' && $IS_REL_LIST neq false && $IS_REL_LIST|@count > 0}
<td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action=CallRelatedList&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}">{$APP.LBL_MORE} {$APP.LBL_INFORMATION}</a></td>
{/if}
<td class="dvtTabCacheBottom" align="right" style="width:100%">
@@ -717,4 +768,4 @@ getTagCloud();
{if $MODULE eq 'Leads' or $MODULE eq 'Contacts' or $MODULE eq 'Accounts' or $MODULE eq 'Campaigns' or $MODULE eq 'Vendors'}
<form name="SendMail"><div id="sendmail_cont" style="z-index:100001;position:absolute;"></div></form>
{/if}
{/if}
@@ -25,7 +25,7 @@
{if $keyid eq 11}
{if $USE_ASTERISK eq 'true'}
&nbsp;&nbsp;<span id="dtlview_{$label}"><a href='javascript:;' onclick='startCall("{$keyval}")'>{$keyval}</a></span>
&nbsp;&nbsp;<span id="dtlview_{$label}"><a href='javascript:;' onclick='startCall("{$keyval}", "{$ID}")'>{$keyval}</a></span>
{else}
&nbsp;&nbsp;<span id="dtlview_{$label}">{$keyval}</span>
{/if}
@@ -309,13 +309,13 @@
<td width=25% class="dvtCellInfo" align="left" id="mouseArea_{$label}" onMouseOver="hndMouseOver({$keyid},'{$label}');" onmouseout="fnhide('crmspanid');">&nbsp;<span id="dtlview_{$label}">{$keyval}&nbsp;</span>
<div id="editarea_{$label}" style="display:none;">
{if $MODULE neq 'Documents'}
{if $keyval eq 'yes'}
{if $keyval eq $APP.yes}
<input id="txtbox_{$label}" name="{$keyfldname}" type="checkbox" style="border:1px solid #bababa;" checked value="1">
{else}
<input id="txtbox_{$label}" type="checkbox" name="{$keyfldname}" style="border:1px solid #bababa;" value="0">
{/if}
{else}
{if $keyval eq 'yes'}
{if $keyval eq $APP.yes}
<input id="txtbox_{$label}" name="{$keyfldname}" type="checkbox" style="border:1px solid #bababa;" checked value="0">
{else}
<input id="txtbox_{$label}" type="checkbox" name="{$keyfldname}" style="border:1px solid #bababa;" value="1">
@@ -20,26 +20,26 @@
<script language="javascript" type="text/javascript">
var typeofdata = new Array();
typeofdata['E'] = ['is','isn','bwt','ewt','cts','dcts'];
typeofdata['V'] = ['is','isn','bwt','ewt','cts','dcts'];
typeofdata['N'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['NN'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['T'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['I'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['C'] = ['is','isn'];
typeofdata['DT'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['D'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['E'] = ['e','n','s','ew','c','k'];
typeofdata['V'] = ['e','n','s','ew','c','k'];
typeofdata['N'] = ['e','n','l','g','m','h'];
typeofdata['NN'] = ['e','n','l','g','m','h'];
typeofdata['T'] = ['e','n','l','g','m','h'];
typeofdata['I'] = ['e','n','l','g','m','h'];
typeofdata['C'] = ['e','n'];
typeofdata['DT'] = ['e','n','l','g','m','h'];
typeofdata['D'] = ['e','n','l','g','m','h'];
var fLabels = new Array();
fLabels['is'] = "{$APP.is}";
fLabels['isn'] = "{$APP.is_not}";
fLabels['bwt'] = "{$APP.begins_with}";
fLabels['ewt'] = "{$APP.ends_with}";
fLabels['cts'] = "{$APP.contains}";
fLabels['dcts'] = "{$APP.does_not_contains}";
fLabels['lst'] = "{$APP.less_than}";
fLabels['grt'] = "{$APP.greater_than}";
fLabels['lsteq'] = "{$APP.less_or_equal}";
fLabels['grteq'] = "{$APP.greater_or_equal}";
fLabels['e'] = "{$APP.is}";
fLabels['n'] = "{$APP.is_not}";
fLabels['s'] = "{$APP.begins_with}";
fLabels['ew'] = "{$APP.ends_with}";
fLabels['c'] = "{$APP.contains}";
fLabels['k'] = "{$APP.does_not_contains}";
fLabels['l'] = "{$APP.less_than}";
fLabels['g'] = "{$APP.greater_than}";
fLabels['m'] = "{$APP.less_or_equal}";
fLabels['h'] = "{$APP.greater_or_equal}";
var noneLabel;
{literal}
function trimfValues(value)
@@ -232,7 +232,7 @@ function alphabetic(module,url,dataid)
<td class="showPanelBg" valign="top" width=100% style="padding:10px;">
<!-- SIMPLE SEARCH -->
<div id="searchAcc" style="z-index:1;display:none;position:relative;">
<div id="searchAcc" style="display: block;position:relative;">
<form name="basicSearch" method="post" action="index.php" onSubmit="return callSearch('Basic');">
<table width="80%" cellpadding="5" cellspacing="0" class="searchUIBasic small" align="center" border=0>
<tr>
@@ -58,7 +58,7 @@
{foreach item=option from=$fldlabel.options}
<option value="{$option}"
{if $fldlabel.selected == $option}selected{/if}>
{if $APP.$option neq ''}{$APP.$option}{else}{$option}{/if}
{$option|@getTranslatedString:$option}
</option>
{/foreach}
</select>
@@ -201,7 +201,7 @@ alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.{$fldname}.valu
{/if}
<span id="assign_user" style="{$style_user}">
<select name="assigned_user_id" class="small">
<select name="{$fldname}" class="small">
{foreach key=key_one item=arr from=$fldvalue}
{foreach key=sel_value item=value from=$arr}
<option value="{$key_one}" {$value}>{$sel_value}</option>
@@ -228,9 +228,9 @@ alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.{$fldname}.valu
</td>
<td width="30%" align=left class="dvtCellInfo">
{if $uitype eq 52}
<select name="assigned_user_id" class="small">
<select name="{$fldname}" tabindex="{$vt_tab}" class="small">
{elseif $uitype eq 77}
<select name="assigned_user_id1" tabindex="{$vt_tab}" class="small">
<select name="{$fldname}" tabindex="{$vt_tab}" class="small">
{else}
<select name="{$fldname}" tabindex="{$vt_tab}" class="small">
{/if}
@@ -733,10 +733,11 @@ alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.{$fldname}.valu
</td>
<td width="30%" align=left class="dvtCellInfo">
{if $MODE eq 'edit' && $IMAGENAME neq ''}
<input name="{$fldname}" type="file" value="{$maindata[3].0.name}" tabindex="{$vt_tab}" onchange="validateFilename(this);" />[{$IMAGENAME}]<br>{$APP.LBL_IMG_FORMATS}
<input name="{$fldname}" type="file" value="{$maindata[3].0.name}" tabindex="{$vt_tab}" onchange="validateFilename(this);" /><div id="replaceimage">[{$IMAGENAME}]&nbsp;<a href="javascript:;" onClick="delUserImage({$ID})">Del</a></div>
<br>{'LBL_IMG_FORMATS'|@getTranslatedString:$MODULE}
<input name="{$fldname}_hidden" type="hidden" value="{$maindata[3].0.name}" />
{else}
<input name="{$fldname}" type="file" value="{$maindata[3].0.name}" tabindex="{$vt_tab}" onchange="validateFilename(this);" /><br>{$APP.LBL_IMG_FORMATS}
<input name="{$fldname}" type="file" value="{$maindata[3].0.name}" tabindex="{$vt_tab}" onchange="validateFilename(this);" /><br>{'LBL_IMG_FORMATS'|@getTranslatedString:$MODULE}
<input name="{$fldname}_hidden" type="hidden" value="{$maindata[3].0.name}" />
{/if}
<input type="hidden" name="id" value=""/>
@@ -754,7 +755,9 @@ alt="Clear" title="Clear" LANGUAGE=javascript onClick="this.form.{$fldname}.valu
<font color="red">{$mandatory_field}</font>{$usefldlabel} {if $MASS_EDIT eq '1'}<input type="checkbox" name="{$fldname}_mass_edit_check" id="{$fldname}_mass_edit_check" class="small" >{/if}
</td>
<td width="30%" align=left class="dvtCellInfo">
<input readonly name='reports_to_name' class="small" type="text" value='{$fldvalue}' tabindex="{$vt_tab}" ><input name='reports_to_id' type="hidden" value='{$secondvalue}'>&nbsp;<input title="Change [Alt+C]" accessKey="C" type="button" class="small" value='{$UMOD.LBL_CHANGE}' name=btn1 LANGUAGE=javascript onclick='return window.open("index.php?module=Users&action=Popup&form=UsersEditView&form_submit=false&fromlink={$fromlink}&recordid={$ID}","test","width=640,height=603,resizable=0,scrollbars=0");'>
<input readonly name='reports_to_name' class="small" type="text" value='{$fldvalue}' tabindex="{$vt_tab}" >
<input name='reports_to_id' type="hidden" value='{$secondvalue}'>&nbsp;<input title="Change [Alt+C]" accessKey="C" type="button" class="small" value='{$UMOD.LBL_CHANGE}' name=btn1 LANGUAGE=javascript onclick='return window.open("index.php?module=Users&action=Popup&form=UsersEditView&form_submit=false&fromlink={$fromlink}&recordid={$ID}","test","width=640,height=603,resizable=0,scrollbars=0");'>
&nbsp;<input type="image" src="{'clear_field.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_CLEAR}" title="{$APP.LBL_CLEAR}" LANGUAGE=javascript onClick="this.form.reports_to_id.value=''; this.form.reports_to_name.value=''; return false;" align="absmiddle" style='cursor:hand;cursor:pointer'>
</td>
{elseif $uitype eq 116 || $uitype eq 117}<!-- for currency in users details-->
<td width="20%" class="dvtCellLabel" align=right>
@@ -59,10 +59,7 @@
<td style="padding-left:5px;" class="big">{$CMOD.LBL_SELECT_SCREEN}&nbsp;
<select name="Screen" class="detailedViewTextBox" style="width:30%;" onChange="changemodules(this)">
{foreach item=module from=$FIELD_INFO}
{assign var="MODULELABEL" value=$module}
{if $APP.$module neq ''}
{assign var="MODULELABEL" value=$APP.$module}
{/if}
{assign var="MODULELABEL" value=$module|@getTranslatedString:$module}
{if $module == $DEF_MODULE}
<option selected value='{$module}'>{$MODULELABEL}</option>
{else}
+78 -8
View File
@@ -15,6 +15,16 @@
<title>{$CURRENT_USER} - {$APP.$CATEGORY} - {$APP.$MODULE_NAME} - {$APP.LBL_BROWSER_TITLE}</title>
<link REL="SHORTCUT ICON" HREF="themes/images/vtigercrm_icon.ico">
<style type="text/css">@import url("themes/{$THEME}/style.css");</style>
<link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-win2k-cold-1.css">
{* vtlib customization: Inclusion of custom javascript and css as registered *}
{if $HEADERCSS}
<!-- Custom Header CSS -->
{foreach item=HDRCSS from=$HEADERCSS}
<link rel="stylesheet" type="text/css" href="{$HDRCSS->linkurl}"></script>
{/foreach}
<!-- END -->
{/if}
{* END *}
<!-- ActivityReminder customization for callback -->
{literal}
<style type="text/css">div.fixedLay1 { position:fixed; }</style>
@@ -28,6 +38,7 @@
<a name="top"></a>
<!-- header -->
<!-- header-vtiger crm name & RSS -->
<script language="JavaScript" type="text/javascript" src="include/js/json.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/general.js"></script>
<!-- vtlib customization: Javascript hook -->
<script language="JavaScript" type="text/javascript" src="include/js/vtlib.js"></script>
@@ -40,7 +51,6 @@
<script language="JavaScript" type="text/javascript" src="modules/Calendar/script.js"></script>
<script language="javascript" type="text/javascript" src="include/scriptaculous/dom-drag.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/notificationPopup.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-win2k-cold-1.css">
<script type="text/javascript" src="jscalendar/calendar.js"></script>
<script type="text/javascript" src="jscalendar/calendar-setup.js"></script>
<script type="text/javascript" src="jscalendar/lang/calendar-{$APP.LBL_JSCALENDAR_LANG}.js"></script>
@@ -62,13 +72,6 @@
{/foreach}
<!-- END -->
{/if}
{if $HEADERCSS}
<!-- Custom Header CSS -->
{foreach item=HDRCSS from=$HEADERCSS}
<link rel="stylesheet" type="text/css" href="{$HDRCSS->linkurl}"></script>
{/foreach}
<!-- END -->
{/if}
{* END *}
{* PREFECTHING IMAGE FOR BLOCKING SCREEN USING VtigerJS_DialogBox API *}
@@ -141,6 +144,73 @@
<div id='miniCal' style='width:300px; position:absolute; display:none; left:100px; top:100px; z-index:100000'>
</div>
{if $MODULE_NAME eq 'Calendar'}
<div id="CalExport" style="width:300px; position:absolute; display:none; left:500px; top:100px; z-index:100000" class="layerPopup">
<table border=0 cellspacing=0 cellpadding=5 width=100% class=layerHeadingULine>
<tr>
<td class="genHeaderSmall" nowrap align="left" width="30%" >{$APP.LBL_EXPORT} </td>
<td align="right"><a href='javascript:ghide("CalExport");'><img src="{'close.gif'|@vtiger_imageurl:$THEME}" align="right" border="0"></a></td>
</tr>
</table>
<table border=0 cellspacing=0 cellpadding=5 width=95% align=center>
<tr>
<td class="small">
<table border=0 celspacing=0 cellpadding=5 width=100% align=center bgcolor=white>
<tr>
<td align="right" nowrap class="cellLabel small">
<input class="small" type='radio' name='exportCalendar' value = 'iCal' onclick="$('ics_filename').removeAttribute('disabled');" checked /> iCal Format
</td>
<td align="left">
<input class="small" type='text' name='ics_filename' id='ics_filename' size='25' value='vtiger.calendar'/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border=0 cellspacing=0 cellpadding=5 width=100% class="layerPopupTransport">
<tr>
<td class="small" align="center">
<input type="button" onclick="return exportCalendar();" value="Export" class="crmbutton small edit" name="button"/>
</td>
</tr>
</table>
</div>
<div id='CalImport' style='width:300px; position:absolute; display:none; left:500px; top:100px; z-index:100000' class="layerPopup">
{assign var='label_filename' value='LBL_FILENAME'}
<form name='ical_import' id='ical_import' onsubmit="VtigerJS_DialogBox.block();" enctype="multipart/form-data" action="index.php" method="POST">
<input type='hidden' name='module' value=''>
<input type='hidden' name='action' value=''>
<table border=0 cellspacing=0 cellpadding=5 width=100% class=layerHeadingULine>
<tr>
<td class="genHeaderSmall" nowrap align="left" width="30%" id="editfolder_info">{$APP.LBL_IMPORT}</td>
<td align="right"><a href='javascript:ghide("CalImport");'><img src="{'close.gif'|@vtiger_imageurl:$THEME}" align="absmiddle" border="0"></a></td>
</tr>
</table>
<table border=0 cellspacing=0 cellpadding=5 width=95% align=center>
<tr>
<td class="small">
<table border=0 celspacing=0 cellpadding=5 width=100% align=center bgcolor=white>
<tr>
<td align="right" nowrap class="cellLabel small"><b>{$label_filename|@getTranslatedString} </b></td>
<td align="left">
<input class="small" type='file' name='ics_file' id='ics_file'/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border=0 cellspacing=0 cellpadding=5 width=100% class="layerPopupTransport">
<tr>
<td class="small" align="center">
<input type="button" onclick="return importCalendar();" value="Import" class="crmbutton small edit" name="button"/>
</td>
</tr>
</table>
</form>
</div>
{/if}
<!-- header - master tabs -->
<TABLE border=0 cellspacing=0 cellpadding=0 width=100% class="hdrTabBg">
<tr>
@@ -14,8 +14,8 @@
</select>&nbsp;{$MOD.LBL_HOME_ITEMS}
</td>
<td align="right" class="homePageMatrixHdr" nowrap style="height:28px;" width=60%>
<input type="button" name="save" value="Save" class="crmbutton small save" onclick="saveEntries('maxentries_{$HOME_STUFFID}')">
<input type="button" name="cancel" value="Cancel" class="crmbutton small cancel" onclick="cancelEntries('editRowmodrss_{$HOME_STUFFID}')">
<input type="button" title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " name="save" class="crmbutton small save" onclick="saveEntries('maxentries_{$HOME_STUFFID}')">
<input type="button" title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " name="cancel" class="crmbutton small cancel" onclick="cancelEntries('editRowmodrss_{$HOME_STUFFID}')">
</td>
{elseif $HOME_STUFFTYPE eq "DashBoard"}
<td valign="top" align='center' class="homePageMatrixHdr" style="height:28px;" width=60%>
@@ -26,8 +26,8 @@
</tr>
<tr>
<td valign="top" align="center" class="homePageMatrixHdr" nowrap style="height:28px;" width="40%">
<input type="button" name="save" value="Save" class="crmbutton small save" onclick="saveEditDash({$HOME_STUFFID})">
<input type="button" name="cancel" value="Cancel" class="crmbutton small cancel" onclick="cancelEntries('editRowmodrss_{$HOME_STUFFID}')">
<input type="button" name="save" title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " class="crmbutton small save" onclick="saveEditDash({$HOME_STUFFID})">
<input type="button" name="cancel" title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " class="crmbutton small cancel" onclick="cancelEntries('editRowmodrss_{$HOME_STUFFID}')">
</td>
</tr>
{/if}
@@ -51,11 +51,12 @@
</td>
{/foreach}
</tr>
{if $HOME_STUFF.Entries|@count > 0}
{foreach item=row key=crmid from=$HOME_STUFF.Entries}
<tr>
<td>
<a href="index.php?module={$HOME_STUFF.ModuleName}&action=DetailView&record={$crmid}">
<img src="{'bookMark.gif'|@vtiger_imageurl:$THEME}" align="absmiddle" border="0" alt="Details" title="Details"/>
<img src="{'bookMark.gif'|@vtiger_imageurl:$THEME}" align="absmiddle" border="0" alt="{$APP.LBL_MORE} {$APP.LBL_INFORMATION}" title="{$APP.LBL_MORE} {$APP.LBL_INFORMATION}"/>
</a>
</td>
{foreach item=element from=$row}
@@ -65,6 +66,9 @@
{/foreach}
</tr>
{/foreach}
{else}
<div class="componentName">{$APP.LBL_NO_DATA}</div>
{/if}
</table>
{elseif $HOME_STUFFTYPE eq "Default"}
@@ -75,25 +79,29 @@
{foreach item=header from=$HOME_STUFF.Details.Header}
<td align="left"><b>{$header}</b></td>
{/foreach}
</tr>
{foreach item=row key=crmid from=$HOME_STUFF.Details.Entries}
</tr>
{if $HOME_STUFF.Details.Entries|@count > 0}
{foreach item=row key=crmid from=$HOME_STUFF.Details.Entries}
<tr>
<td>
{if $HOME_STUFF.Details.Title.1 eq "My Sites"}
<img src="{'bookMark.gif'|@vtiger_imageurl:$THEME}" align="absmiddle" border="0" alt="Details" title="Details"/>
{elseif $HOME_STUFF.Details.Title.1 neq "Key Metrics" && $HOME_STUFF.Details.Title.1 neq "My Group Allocation"}
<img src="{'bookMark.gif'|@vtiger_imageurl:$THEME}" align="absmiddle" border="0" alt="Details" title="Details"/>
{elseif $HOME_STUFF.Details.Title.1 eq "Key Metrics"}
<img src="{'bookMark.gif'|@vtiger_imageurl:$THEME}" align="absmiddle" border="0" alt="Details" title="Details"/>
{elseif $HOME_STUFF.Details.Title.1 eq "My Group Allocation"}
<img src="{'bookMark.gif'|@vtiger_imageurl:$THEME}" align="absmiddle" border="0" alt="Details" title="Details"/>
{/if}
{if $HOME_STUFF.Details.Title.1 eq "My Sites"}
<img src="{'bookMark.gif'|@vtiger_imageurl:$THEME}" align="absmiddle" border="0" alt="{$APP.LBL_MORE} {$APP.LBL_INFORMATION}" title="{$APP.LBL_MORE} {$APP.LBL_INFORMATION}"/>
{elseif $HOME_STUFF.Details.Title.1 neq "Key Metrics" && $HOME_STUFF.Details.Title.1 neq "My Group Allocation"}
<img src="{'bookMark.gif'|@vtiger_imageurl:$THEME}" align="absmiddle" border="0" alt="{$APP.LBL_MORE} {$APP.LBL_INFORMATION}" title="{$APP.LBL_MORE} {$APP.LBL_INFORMATION}"/>
{elseif $HOME_STUFF.Details.Title.1 eq "Key Metrics"}
<img src="{'bookMark.gif'|@vtiger_imageurl:$THEME}" align="absmiddle" border="0" alt="{$APP.LBL_MORE} {$APP.LBL_INFORMATION}" title="{$APP.LBL_MORE} {$APP.LBL_INFORMATION} "/>
{elseif $HOME_STUFF.Details.Title.1 eq "My Group Allocation"}
<img src="{'bookMark.gif'|@vtiger_imageurl:$THEME}" align="absmiddle" border="0" alt="{$APP.LBL_MORE} {$APP.LBL_INFORMATION}" title="{$APP.LBL_MORE} {$APP.LBL_INFORMATION}"/>
{/if}
</td>
{foreach item=element from=$row}
{foreach item=element from=$row}
<td align="left"/> {$element}</td>
{/foreach}
{/foreach}
</tr>
{/foreach}
{/foreach}
{else}
<div class="componentName">{$APP.LBL_NO_DATA}</div>
{/if}
</table>
{elseif $HOME_STUFFTYPE eq "RSS"}
@@ -35,7 +35,7 @@
{*<!-- load contents for the widget-->*}
{if $tablestuff.Stufftype eq 'Default' && $tablestuff.Stufftitle eq 'Home Page Dashboard'|@getTranslatedString:'Home'}
fetch_homeDB({$tablestuff.Stuffid});
{else}
{elseif $tablestuff.Stufftype eq 'DashBoard'}
loadStuff({$tablestuff.Stuffid},'{$tablestuff.Stufftype}');
{/if}
</script>
@@ -47,6 +47,19 @@
{*<!-- Main Contents Ends Here -->*}
<script>
var Vt_homePageWidgetInfoList = [
{foreach item=tablestuff key=index from=$HOMEFRAME name="homeframe"}
{if ($tablestuff.Stufftype neq 'Default' || $tablestuff.Stufftitle neq
'Home Page Dashboard'|@getTranslatedString:'Home') && $tablestuff.Stufftype neq 'DashBoard'}
{ldelim}
'widgetId':{$tablestuff.Stuffid},
'widgetType':'{$tablestuff.Stufftype}'
{rdelim}
{if $index+1 < $HOMEFRAME|@count},{/if}
{/if}
{/foreach}
];
loadAllWidgets(Vt_homePageWidgetInfoList, {$widgetBlockSize});
{literal}
initHomePage();
@@ -16,38 +16,38 @@
{*<!-- the edit button for widgets :: don't show for key metrics and dasboard widget -->*}
{if ($tablestuff.Stufftype neq "Default" || $tablestuff.Stufftitle neq $keymetrics_title) && ($tablestuff.Stufftype neq "Default" || $tablestuff.Stufftitle neq $homepagedashboard_title) && ($tablestuff.Stufftype neq "Tag Cloud") && ($tablestuff.Stufftype neq "Notebook")}
<a id="editlink" style='cursor:pointer;' onclick="showEditrow({$tablestuff.Stuffid})">
<img src="{'windowSettings.gif'|@vtiger_imageurl:$THEME}" border="0" alt="Edit" title="Edit" hspace="2" align="absmiddle"/>
<img src="{'windowSettings.gif'|@vtiger_imageurl:$THEME}" border="0" alt="{$APP.LBL_EDIT_BUTTON}" title="{$APP.LBL_EDIT_BUTTON_TITLE}" hspace="2" align="absmiddle"/>
</a>
{else}
<img src="{'windowSettings-off.gif'|@vtiger_imageurl:$THEME}" border="0" alt="Edit" title="Edit" hspace="2" align="absmiddle"/>
<img src="{'windowSettings-off.gif'|@vtiger_imageurl:$THEME}" border="0" alt="{$APP.LBL_EDIT_BUTTON}" title="{$APP.LBL_EDIT_BUTTON_TITLE}" hspace="2" align="absmiddle"/>
{/if}
{*<!-- code for edit button ends here -->*}
{*<!-- code for refresh button -->*}
{if $tablestuff.Stufftitle eq $homepagedashboard_title}
<a style='cursor:pointer;' onclick="fetch_homeDB({$tablestuff.Stuffid});">
<img src="{'windowRefresh.gif'|@vtiger_imageurl:$THEME}" border="0" alt="Refresh" title="Refresh" hspace="2" align="absmiddle"/>
<img src="{'windowRefresh.gif'|@vtiger_imageurl:$THEME}" border="0" alt="{$APP.LBL_REFRESH}" title="{$APP.LBL_REFRESH}" hspace="2" align="absmiddle"/>
</a>
{else}
<a style='cursor:pointer;' onclick="loadStuff({$tablestuff.Stuffid},'{$tablestuff.Stufftype}');">
<img src="{'windowRefresh.gif'|@vtiger_imageurl:$THEME}" border="0" alt="Refresh" title="Refresh" hspace="2" align="absmiddle"/>
<img src="{'windowRefresh.gif'|@vtiger_imageurl:$THEME}" border="0" alt="{$APP.LBL_REFRESH}" title="{$APP.LBL_REFRESH}" hspace="2" align="absmiddle"/>
</a>
{/if}
{*<!-- code for refresh button ends here -->*}
{*<!-- hide button :: show only for default widgets -->*}
{if $tablestuff.Stufftype eq "Default" || $tablestuff.Stufftype eq "Tag Cloud"}
<a style='cursor:pointer;' onclick="HideDefault({$tablestuff.Stuffid})"><img src="{'windowMinMax.gif'|@vtiger_imageurl:$THEME}" border="0" alt="Hide" title="Hide" hspace="5" align="absmiddle"/></a>
<a style='cursor:pointer;' onclick="HideDefault({$tablestuff.Stuffid})"><img src="{'windowMinMax.gif'|@vtiger_imageurl:$THEME}" border="0" alt="{$APP.LBL_HIDE}" title="{$APP.LBL_HIDE}" hspace="5" align="absmiddle"/></a>
{else}
<img src="{'windowMinMax-off.gif'|@vtiger_imageurl:$THEME}" border="0" alt="Hide" title="Hide" hspace="5" align="absmiddle"/>
<img src="{'windowMinMax-off.gif'|@vtiger_imageurl:$THEME}" border="0" alt="{$APP.LBL_HIDE}" title="{$APP.LBL_HIDE}" hspace="5" align="absmiddle"/>
{/if}
{*<!-- code for hide button ends here -->*}
{*<!-- code for delete button :: dont show for default widgets -->*}
{if $tablestuff.Stufftype neq "Default" && $tablestuff.Stufftype neq "Tag Cloud"}
<a id="deletelink" style='cursor:pointer;' onclick="DelStuff({$tablestuff.Stuffid})"><img src="{'windowClose.gif'|@vtiger_imageurl:$THEME}" border="0" alt="Close" title="Close" hspace="5" align="absmiddle"/></a>
<a id="deletelink" style='cursor:pointer;' onclick="DelStuff({$tablestuff.Stuffid})"><img src="{'windowClose.gif'|@vtiger_imageurl:$THEME}" border="0" alt="{$APP.LBL_CLOSE}" title="{$APP.LBL_CLOSE}" hspace="5" align="absmiddle"/></a>
{else}
<img src="{'windowClose-off.gif'|@vtiger_imageurl:$THEME}" border="0" alt="Close" title="Close" hspace="5" align="absmiddle"/>
<img src="{'windowClose-off.gif'|@vtiger_imageurl:$THEME}" border="0" alt="{$APP.LBL_CLOSE}" title="{$APP.LBL_CLOSE}" hspace="5" align="absmiddle"/>
{/if}
{*<!-- code for delete button ends here -->*}
</td>
@@ -151,6 +151,97 @@
<!-- Module based actions ends -->
{* vtlib customization: Custom links on the Detail view basic links *}
{if $CUSTOM_LINKS && $CUSTOM_LINKS.DETAILVIEWBASIC}
<table width="100%" border="0" cellpadding="5" cellspacing="0">
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.DETAILVIEWBASIC}
<tr>
<td align="left" style="padding-left:10px;">
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
{if $CUSTOMLINK->linkicon}
<a class="webMnu" href="{$customlink_href}"><img hspace=5 align="absmiddle" border=0 src="{$CUSTOMLINK->linkicon}"></a>
{/if}
<a class="webMnu" href="{$customlink_href}">{$customlink_label}</a>
</td>
</tr>
{/foreach}
</table>
{/if}
{* vtlib customization: Custom links on the Detail view *}
{if $CUSTOM_LINKS}
<br>
{if !empty($CUSTOM_LINKS.DETAILVIEW)}
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr><td align="left" class="dvtUnSelectedCell dvtCellLabel">
<a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></a>
</td></tr>
</table>
<br>
<div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_customLinksLay"
onmouseout="fninvsh('vtlib_customLinksLay')" onmouseover="fnvshNrm('vtlib_customLinksLay')">
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></td></tr>
<tr>
<td>
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.DETAILVIEW}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<a href="{$customlink_href}" class="drop_down">{$customlink_label}</a>
{/foreach}
</td>
</tr>
</table>
</div>
{/if}
{if !empty($CUSTOM_LINKS.DETAILVIEWWIDGET)}
{foreach key=CUSTOMLINK_NO item=CUSTOMLINK from=$CUSTOM_LINKS.DETAILVIEWWIDGET}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{* Ignore block:// type custom links which are handled earlier *}
{if !preg_match("/^block:\/\/.*/", $customlink_href)}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<br/>
<table border=0 cellspacing=0 cellpadding=0 width=100% class="rightMailMerge">
<tr>
<td class="rightMailMergeHeader">
<b>{$customlink_label}</b>
<img id="detailview_block_{$CUSTOMLINK_NO}_indicator" style="display:none;" src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0" align="absmiddle" />
</td>
</tr>
<tr style="height:25px">
<td class="rightMailMergeContent"><div id="detailview_block_{$CUSTOMLINK_NO}"></div></td>
</tr>
<script type="text/javascript">
vtlib_loadDetailViewWidget("{$customlink_href}", "detailview_block_{$CUSTOMLINK_NO}", "detailview_block_{$CUSTOMLINK_NO}_indicator");
</script>
</table>
{/if}
{/foreach}
{/if}
{/if}
{* END *}
<!-- Action links END -->
@@ -154,8 +154,18 @@ function getListOfRecords(obj, sModule, iId,sParentTab)
<td class="dvtSelectedCell" align=center nowrap>{$SINGLE_MOD|@getTranslatedString:$MODULE} {$APP.LBL_INFORMATION}</td>
<td class="dvtTabCache" style="width:10px">&nbsp;</td>
{if $SinglePane_View eq 'false'}
<td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action=CallRelatedList&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}">{$APP.LBL_MORE} {$APP.LBL_INFORMATION}</a></td>
{if $SinglePane_View eq 'false' && $IS_REL_LIST neq false}
<td class="dvtUnSelectedCell" onmouseout="fnHideDrop('More_Information_Modules_List');" onmouseover="fnDropDown(this,'More_Information_Modules_List');" align="center" nowrap>
<a href="index.php?action=CallRelatedList&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}">{$APP.LBL_MORE} {$APP.LBL_INFORMATION}</a>
<div onmouseover="fnShowDrop('More_Information_Modules_List')" onmouseout="fnHideDrop('More_Information_Modules_List')"
id="More_Information_Modules_List" class="drop_mnu" style="left: 502px; top: 76px; display: none;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
{foreach key=_RELATION_ID item=_RELATED_MODULE from=$IS_REL_LIST}
<tr><td><a class="drop_down" href="index.php?action=CallRelatedList&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}&selected_header={$_RELATED_MODULE}&relation_id={$_RELATION_ID}">{$_RELATED_MODULE|@getTranslatedString:$MODULE}</a></td></tr>
{/foreach}
</table>
</div>
</td>
{/if}
<td class="dvtTabCache" align="right" style="width:100%">
{if $EDIT_DUPLICATE eq 'permitted'}
@@ -189,7 +199,7 @@ function getListOfRecords(obj, sModule, iId,sParentTab)
<tr>
<td valign=top align=left >
<table border=0 cellspacing=0 cellpadding=3 width=100% class="dvtContentSpace" style="border-bottom:0px;">
<tr>
<tr valign=top>
<td align=left style="padding:10px;">
<!-- content cache -->
@@ -289,6 +299,18 @@ function getListOfRecords(obj, sModule, iId,sParentTab)
{*-- End of Blocks--*}
<!-- Entity information(blocks) display - ends -->
{* vtlib Customization: Embed DetailViewWidget block:// type if any *}
{if $CUSTOM_LINKS && !empty($CUSTOM_LINKS.DETAILVIEWWIDGET)}
{foreach item=CUSTOM_LINK_DETAILVIEWWIDGET from=$CUSTOM_LINKS.DETAILVIEWWIDGET}
{if preg_match("/^block:\/\/.*/", $CUSTOM_LINK_DETAILVIEWWIDGET->linkurl)}
<br>
{php}
echo vtlib_process_widget($this->_tpl_vars['CUSTOM_LINK_DETAILVIEWWIDGET'], $this->_tpl_vars);
{/php}
{/if}
{/foreach}
{/if}
{* END *}
<br>
<!-- Product Details informations -->
+20 -40
View File
@@ -19,26 +19,26 @@
<script language="JavaScript" type="text/javascript" src="include/js/dtlviewajax.js"></script>
<script language="javascript" type="text/javascript">
var typeofdata = new Array();
typeofdata['E'] = ['is','isn','bwt','ewt','cts','dcts'];
typeofdata['V'] = ['is','isn','bwt','ewt','cts','dcts'];
typeofdata['N'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['NN'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['T'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['I'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['C'] = ['is','isn'];
typeofdata['DT'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['D'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['E'] = ['e','n','s','ew','c','k'];
typeofdata['V'] = ['e','n','s','ew','c','k'];
typeofdata['N'] = ['e','n','l','g','m','h'];
typeofdata['NN'] = ['e','n','l','g','m','h'];
typeofdata['T'] = ['e','n','l','g','m','h'];
typeofdata['I'] = ['e','n','l','g','m','h'];
typeofdata['C'] = ['e','n'];
typeofdata['DT'] = ['e','n','l','g','m','h'];
typeofdata['D'] = ['e','n','l','g','m','h'];
var fLabels = new Array();
fLabels['is'] = "{$APP.is}";
fLabels['isn'] = "{$APP.is_not}";
fLabels['bwt'] = "{$APP.begins_with}";
fLabels['ewt'] = "{$APP.ends_with}";
fLabels['cts'] = "{$APP.contains}";
fLabels['dcts'] = "{$APP.does_not_contains}";
fLabels['lst'] = "{$APP.less_than}";
fLabels['grt'] = "{$APP.greater_than}";
fLabels['lsteq'] = "{$APP.less_or_equal}";
fLabels['grteq'] = "{$APP.greater_or_equal}";
fLabels['e'] = "{$APP.is}";
fLabels['n'] = "{$APP.is_not}";
fLabels['s'] = "{$APP.begins_with}";
fLabels['ew'] = "{$APP.ends_with}";
fLabels['c'] = "{$APP.contains}";
fLabels['k'] = "{$APP.does_not_contains}";
fLabels['l'] = "{$APP.less_than}";
fLabels['g'] = "{$APP.greater_than}";
fLabels['m'] = "{$APP.less_or_equal}";
fLabels['h'] = "{$APP.greater_or_equal}";
var noneLabel;
{literal}
function trimfValues(value)
@@ -57,22 +57,6 @@ function updatefOptions(sel, opSelName) {
var fld = currField.value.split(":");
var tod = fld[4];
/* if(fld[4] == 'D' || (fld[4] == 'T' && fld[1] != 'time_start' && fld[1] != 'time_end') || fld[4] == 'DT')
{
$("and"+sel.id).innerHTML = "";
if(sel.id != "fcol5")
$("and"+sel.id).innerHTML = "<em old='(yyyy-mm-dd)'>("+$("user_dateformat").value+")</em>&nbsp;"+alert_arr.LBL_AND;
else
$("and"+sel.id).innerHTML = "<em old='(yyyy-mm-dd)'>("+$("user_dateformat").value+")</em>&nbsp;";
}
else {
$("and"+sel.id).innerHTML = "";
if(sel.id != "fcol5")
$("and"+sel.id).innerHTML = "&nbsp;"+alert_arr.LBL_AND;
else
$("and"+sel.id).innerHTML = "&nbsp;";
}
*/
if(currField.value != null && currField.value.length != 0)
{
fieldtype = trimfValues(currField.value);
@@ -87,10 +71,6 @@ function updatefOptions(sel, opSelName) {
{
selObj.remove(0);
}
/* selObj.options[0] = new Option ('None', '');
if (currField.value == '') {
selObj.options[0].selected = true;
}*/
for (var i = 0; i < ops.length; i++)
{
var label = fLabels[ops[i]];
@@ -245,7 +225,7 @@ function alphabetic(module,url,dataid)
<td class="showPanelBg" valign="top" width=100% style="padding:10px;">
<!-- SIMPLE SEARCH -->
<div id="searchAcc" style="z-index:1;display:none;position:relative;">
<div id="searchAcc" style="display: block;position:relative;">
<form name="basicSearch" method="post" action="index.php" onSubmit="return callSearch('Basic');">
<table width="80%" cellpadding="5" cellspacing="0" class="searchUIBasic small" align="center" border=0>
<tr>
@@ -51,6 +51,52 @@
<input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return change(this,'changeowner')"/>
{/if}
{/foreach}
{* vtlib customization: Custom link buttons on the List view basic buttons *}
{if $CUSTOM_LINKS && $CUSTOM_LINKS.LISTVIEWBASIC}
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.LISTVIEWBASIC}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<input class="crmbutton small edit" type="button" value="{$customlink_label}" onclick="{$customlink_href}" />
{/foreach}
{/if}
{* vtlib customization: Custom link buttons on the List view *}
{if $CUSTOM_LINKS && !empty($CUSTOM_LINKS.LISTVIEW)}
&nbsp;
<a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');">
<b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} <img src="{'arrow_down.gif'|@vtiger_imageurl:$THEME}" border="0"></b>
</a>
<div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_customLinksLay"
onmouseout="fninvsh('vtlib_customLinksLay')" onmouseover="fnvshNrm('vtlib_customLinksLay')">
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></td></tr>
<tr>
<td>
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.LISTVIEW}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<a href="{$customlink_href}" class="drop_down">{$customlink_label}</a>
{/foreach}
</td>
</tr>
</table>
</div>
{/if}
{* END *}
</td>
<td class="small" nowrap>
{$recordListRange}
@@ -229,8 +275,52 @@
{elseif $button_check eq 'c_owner' && $MODULE eq 'Calendar'}
<input class="crmbutton small edit" type="button" value="{$button_label}" onclick="return change(this,'changeowner')"/>
{/if}
{/foreach}
{/foreach}
{* vtlib customization: Custom link buttons on the List view basic buttons *}
{if $CUSTOM_LINKS && $CUSTOM_LINKS.LISTVIEWBASIC}
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.LISTVIEWBASIC}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<input class="crmbutton small edit" type="button" value="{$customlink_label}" onclick="{$customlink_href}" />
{/foreach}
{/if}
{* vtlib customization: Custom link buttons on the List view *}
{if $CUSTOM_LINKS && !empty($CUSTOM_LINKS.LISTVIEW)}
&nbsp;
<a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');">
<b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} <img src="{'arrow_down.gif'|@vtiger_imageurl:$THEME}" border="0"></b>
</a>
<div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_customLinksLay"
onmouseout="fninvsh('vtlib_customLinksLay')" onmouseover="fnvshNrm('vtlib_customLinksLay')">
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></td></tr>
<tr>
<td>
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.LISTVIEW}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<a href="{$customlink_href}" class="drop_down">{$customlink_label}</a>
{/foreach}
</td>
</tr>
</table>
</div>
{/if}
{* END *}
</td>
<td class="small" nowrap>
{$recordListRange}
@@ -65,15 +65,18 @@
<tr>
<td class="small" valign=top ><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="20%" nowrap class="small cellLabel"><strong>{$MOD.LBL_SCANNER} {$MOD.LBL_NAME}</strong></td>
<td width="80%"><input type="text" name="mailboxinfo_scannername" class="small" value="DEFAULT" size=50 readonly></td>
<td width="20%" nowrap class="small cellLabel"><strong>{$MOD.LBL_SCANNER} {$MOD.LBL_NAME}</strong> <font color="red">*</font></td>
<td width="80%">
<input type="hidden" name="hidden_scannername" class="small" value="{$SCANNERINFO.scannername}" readonly>
<input type="text" name="mailboxinfo_scannername" class="small" value="{$SCANNERINFO.scannername}" size=50>
</td>
</tr>
<tr>
<td width="20%" nowrap class="small cellLabel"><strong>{$MOD.LBL_SERVER} {$MOD.LBL_NAME}</strong></td>
<td width="20%" nowrap class="small cellLabel"><strong>{$MOD.LBL_SERVER} {$MOD.LBL_NAME}</strong> <font color="red">*</font></td>
<td width="80%"><input type="text" name="mailboxinfo_server" class="small" value="{$SCANNERINFO.server}" size=50></td>
</tr>
<tr>
<td width="20%" nowrap class="small cellLabel"><strong>{$MOD.LBL_PROTOCOL}</strong></td>
<td width="20%" nowrap class="small cellLabel"><strong>{$MOD.LBL_PROTOCOL}</strong> <font color="red">*</font></td>
<td width="80%">
{assign var="imapused" value=""}
{assign var="imap4used" value=""}
@@ -89,11 +92,11 @@
</td>
</tr>
<tr>
<td width="20%" nowrap class="small cellLabel"><strong>{$MOD.LBL_USERNAME}</strong></td>
<td width="20%" nowrap class="small cellLabel"><strong>{$MOD.LBL_USERNAME}</strong> <font color="red">*</font></td>
<td width="80%"><input type="text" name="mailboxinfo_username" class="small" value="{$SCANNERINFO.username}" size=50></td>
</tr>
<tr>
<td width="20%" nowrap class="small cellLabel"><strong>{$MOD.LBL_PASSWORD}</strong></td>
<td width="20%" nowrap class="small cellLabel"><strong>{$MOD.LBL_PASSWORD}</strong> <font color="red">*</font></td>
<td width="80%"><input type="password" name="mailboxinfo_password" class="small" value="{$SCANNERINFO.password}" size=50></td>
</tr>
<tr>
@@ -197,8 +200,8 @@
<tr>
<td colspan=2 nowrap align="center">
<input type="submit" class="crmbutton small save" value="{$APP.LBL_SAVE_LABEL}" />
<input type="button" class="crmbutton small cancel" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" onclick="history.go(-1)"/>
<input type="submit" class="crmbutton small save" value="{$APP.LBL_SAVE_LABEL}" onclick="return mailscaneredit_validateform(this.form);" />
<input type="button" class="crmbutton small cancel" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" onclick="window.location.href='index.php?module=Settings&action=MailScanner&parenttab=Settings'"/>
</td>
</tr>
</table>
@@ -228,3 +231,15 @@
</tr>
</table>
{literal}
<script type="text/javascript">
function mailscaneredit_validateform(form) {
var scannername = form.mailboxinfo_scannername;
if(scannername.value == '') {
scannername.focus();
return false;
}
return true;
}
</script>
{/literal}
@@ -36,16 +36,7 @@ function performScanNow(app_key, scannername) {
<td valign="top"><img src="{'showPanelTopLeft.gif'|@vtiger_imageurl:$THEME}"></td>
<td class="showPanelBg" style="padding: 10px;" valign="top" width="100%">
<form action="index.php" method="post" id="form" onsubmit="VtigerJS_DialogBox.block();">
<input type='hidden' name='module' value='Settings'>
<input type='hidden' name='action' value='MailScanner'>
<input type='hidden' name='mode' value='edit'>
<input type='hidden' name='scannername' value='{$SCANNERINFO.scannername}'>
<input type='hidden' name='return_action' value='MailScanner'>
<input type='hidden' name='return_module' value='Settings'>
<input type='hidden' name='parenttab' value='Settings'>
<br>
<br>
<div align=center>
{include file='SetMenu.tpl'}
@@ -62,24 +53,56 @@ function performScanNow(app_key, scannername) {
<br>
<table border=0 cellspacing=0 cellpadding=10 width=100% >
<tr>
<td>
<table border=0 cellspacing=0 cellpadding=2 width=100% class="tableHeading">
<tr>
<td class="big" width="70%"><strong>{$MOD.LBL_MAILBOX}</strong></td>
<td width="30%" nowrap align="right">
<a href="index.php?module=Settings&action=MailScanner&parenttab=Settings&mode=edit&scannername="><img src="{'btnL3Add.gif'|@vtiger_imageurl:$THEME}" border="0" /></a>
</td>
</tr>
</table>
</td>
</tr>
{foreach item=SCANNER from=$SCANNERS}
{assign var="SCANNERINFO" value=$SCANNER->getAsMap()}
<tr>
<td>
<form action="index.php" method="post" id="form" onsubmit="VtigerJS_DialogBox.block();">
<input type='hidden' name='module' value='Settings'>
<input type='hidden' name='action' value='MailScanner'>
<input type='hidden' name='mode' value='edit'>
<input type='hidden' name='scannername' value='{$SCANNERINFO.scannername}'>
<input type='hidden' name='return_action' value='MailScanner'>
<input type='hidden' name='return_module' value='Settings'>
<input type='hidden' name='parenttab' value='Settings'>
{* When mode is Ajax, xmode will be set *}
<input type='hidden' name='xmode' value=''>
<input type='hidden' name='file' value=''>
<table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
<tr>
<td class="big" width="70%"><strong>{$MOD.LBL_MAILBOX} {$MOD.LBL_INFORMATION}</strong></td>
<td class="big" width="70%"><strong>{$SCANNERINFO.scannername} {$MOD.LBL_INFORMATION}</strong></td>
<td width="30%" nowrap align="right">
{if $SCANNERINFO.isvalid eq true}
{if $SCANNERINFO.rules neq false}
<input type="button" class="crmbutton small delete" value="{$MOD.LBL_SCAN_NOW}"
onclick="performScanNow('{$APP_KEY}','{$SCANNERINFO.scannername}')" />
onclick="performScanNow('{$APP_KEY}','{$SCANNERINFO.scannername|@decode_html|@addslashes|@to_html}')" />
{/if}
<input type="submit" class="crmbutton small cancel" onclick="this.form.mode.value='folder'" value="{$MOD.LBL_SELECT} {$MOD.LBL_FOLDERS}" />
<input type="submit" class="crmbutton small create" onclick="this.form.mode.value='rule'" value="{$MOD.LBL_SETUP} {$MOD.LBL_RULE}" />
{/if}
<input type="submit" class="crmbutton small edit" value="{$APP.LBL_EDIT}" />
<input type="submit" class="crmbutton small delete" onclick="if(confirm(alert_arr.ARE_YOU_SURE)){ldelim}with(this.form) {ldelim}action.value='SettingsAjax';file.value='MailScanner';mode.value='Ajax';xmode.value='remove';{rdelim}{rdelim}else return false;" value="{$MOD.LBL_DELETE}" />
</td>
</tr>
</table>
@@ -121,10 +144,11 @@ function performScanNow(app_key, scannername) {
{if $SCANNERINFO.isvalid eq true}<font color=green><b>{$MOD.LBL_ENABLED}</b></font>
{elseif $SCANNERINFO.isvalid eq false}<font color=red><b>{$MOD.LBL_DISABLED}</b></font>{/if}
</td>
</tr>
</tr></table>
</td>
</tr>
</table>
{if $SCANNERINFO.isvalid}
<table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
<tr>
@@ -151,12 +175,17 @@ function performScanNow(app_key, scannername) {
{if $SCANNERINFO.markas eq 'SEEN'}{$MOD.LBL_MARK_MESSAGE_AS} {$MOD.LBL_READ}{/if}
</td>
</tr>
</td>
</td></table>
</tr>
</table>
{/if}
</form>
</td>
</tr>
{/foreach}
</table>
</td>
@@ -108,10 +108,7 @@ DIV.fixedLay {
</table>
<!-- Start of Module Display -->
{foreach key=modulename item=details from=$MODSHARING}
{assign var="MODULELABEL" value=$modulename}
{if $APP.$modulename neq ''}
{assign var="MODULELABEL" value=$APP.$modulename}
{/if}
{assign var="MODULELABEL" value=$modulename|@getTranslatedString:$modulename}
{assign var="mod_display" value=$MODULELABEL}
{if $mod_display eq $APP.Accounts}
{assign var="xx" value=$APP.Contacts}
@@ -1,99 +1,162 @@
{*<!--
/*********************************************************************************
** 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.
*
********************************************************************************/
/*+*******************************************************************************
* 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.
*********************************************************************************/
-->*}
<script type='text/javascript' src='include/js/Mail.js'></script>
{if $SinglePane_View eq 'true'}
{assign var = return_modname value='DetailView'}
{else}
{assign var = return_modname value='CallRelatedList'}
{/if}
<script type='text/javascript'>
{literal}
function isRelatedListBlockLoaded(id,urldata){
var elem = document.getElementById(id);
if(elem == null || typeof elem == 'undefined' || urldata.indexOf('order_by') != -1 ||
urldata.indexOf('start') != -1 || urldata.indexOf('withCount') != -1){
return false;
}
var tables = elem.getElementsByTagName('table');
return tables.length > 0;
}
function loadRelatedListBlock(urldata,target,imagesuffix) {
var showdata = 'show_'+imagesuffix;
var showdata_element = $(showdata);
var hidedata = 'hide_'+imagesuffix;
var hidedata_element = $(hidedata);
if(isRelatedListBlockLoaded(target,urldata) == true){
$(target).show();
showdata_element.hide();
hidedata_element.show();
$('delete_'+imagesuffix).show();
return;
}
var indicator = 'indicator_'+imagesuffix;
var indicator_element = $(indicator);
indicator_element.show();
$('delete_'+imagesuffix).show();
var target_element = $(target);
new Ajax.Request(
'index.php',
{queue: {position: 'end', scope: 'command'},
method: 'post',
postBody: urldata,
onComplete: function(response) {
var responseData = trim(response.responseText);
target_element.innerHTML = responseData;
target_element.show();
showdata_element.hide();
hidedata_element.show();
indicator_element.hide();
}
}
);
}
function hideRelatedListBlock(target, imagesuffix) {
var showdata = 'show_'+imagesuffix;
var showdata_element = $(showdata);
var hidedata = 'hide_'+imagesuffix;
var hidedata_element = $(hidedata);
var target_element = $(target);
if(target_element){
target_element.hide();
}
hidedata_element.hide();
showdata_element.show();
$('delete_'+imagesuffix).hide();
}
function disableRelatedListBlock(urldata,target,imagesuffix){
var showdata = 'show_'+imagesuffix;
var showdata_element = $(showdata);
var hidedata = 'hide_'+imagesuffix;
var hidedata_element = $(hidedata);
var indicator = 'indicator_'+imagesuffix;
var indicator_element = $(indicator);
indicator_element.show();
var target_element = $(target);
new Ajax.Request(
'index.php',
{queue: {position: 'end', scope: 'command'},
method: 'post',
postBody: urldata,
onComplete: function(response) {
var responseData = trim(response.responseText);
target_element.hide();
$('delete_'+imagesuffix).hide();
hidedata_element.hide();
showdata_element.show();
indicator_element.hide();
}
}
);
}
{/literal}
</script>
{foreach key=header item=detail from=$RELATEDLISTS}
{assign var=rel_mod value=$header}
{assign var="HEADERLABEL" value=$header|@getTranslatedString:$rel_mod}
<table border=0 cellspacing=0 cellpadding=0 width=100% class="small" style="border-bottom:1px solid #999999;padding:5px;">
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="small lvt">
<tr>
<td valign=bottom><b>{$HEADERLABEL}</b>
{if $MODULE eq 'Campaigns' && ($rel_mod eq 'Contacts' || $rel_mod eq 'Leads')}
<br><br>{$APP.LBL_SELECT_BUTTON_LABEL}: <a href="javascript:;" onclick="clear_checked_all('{$rel_mod}');">{$APP.LBL_NONE_NO_LINE}</a>
{/if}
<td class="dvInnerHeader">
<div style="font-weight: bold;height: 1.75em;">
<span>
<a href="javascript:loadRelatedListBlock(
'module={$MODULE}&action={$MODULE}Ajax&file=DetailViewAjax&record={$ID}&ajxaction=LOADRELATEDLIST&header={$header}&relation_id={$detail.relationId}&actions={$detail.actions}',
'tbl_{$MODULE}_{$header|replace:' ':''}','{$MODULE}_{$header|replace:' ':''}');">
<img id="show_{$MODULE}_{$header|replace:' ':''}" src="{'inactivate.gif'|@vtiger_imageurl:$THEME}" style="border: 0px solid #000000;" alt="Display" title="Display"/>
</a>
<a href="javascript:hideRelatedListBlock('tbl_{$MODULE}_{$header|replace:' ':''}','{$MODULE}_{$header|replace:' ':''}');">
<img id="hide_{$MODULE}_{$header|replace:' ':''}" src="{'activate.gif'|@vtiger_imageurl:$THEME}" style="border: 0px solid #000000;display:none;" alt="Display" title="Display"/>
</a>
</span>
&nbsp;{$HEADERLABEL}&nbsp;
<img id="indicator_{$MODULE}_{$header|replace:' ':''}" style="display:none;" src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0" align="absmiddle" />
<div style="float: right;width: 2em;">
<a href="javascript:disableRelatedListBlock(
'module={$MODULE}&action={$MODULE}Ajax&file=DetailViewAjax&ajxaction=DISABLEMODULE&relation_id={$detail.relationId}&header={$header}',
'tbl_{$MODULE}_{$header|replace:' ':''}','{$MODULE}_{$header|replace:' ':''}');">
<img id="delete_{$MODULE}_{$header|replace:' ':''}" style="display:none;" src="{'windowMinMax.gif'|@vtiger_imageurl:$THEME}" border="0" align="absmiddle" />
</a>
</div>
</div>
</td>
{if $detail ne ''}
<td align=center>{$detail.navigation.0}</td>
{$detail.navigation.1}
{/if}
<td align=right>
{$detail.CUSTOM_BUTTON}
</tr>
<tr>
<td>
<div id="tbl_{$MODULE}_{$header|replace:' ':''}"></div>
</td>
{if $header eq 'Contacts' && $MODULE neq 'Campaigns' && $MODULE neq 'Accounts' && $MODULE neq 'Potentials' && $MODULE neq 'Products' && $MODULE neq 'Vendors'}
{if $MODULE eq 'Calendar'}
<input alt="{$APP.LBL_SELECT_CONTACT_BUTTON_LABEL}" title="{$APP.LBL_SELECT_CONTACT_BUTTON_LABEL}" accessKey="" class="crmbutton small edit" value="{$APP.LBL_SELECT_BUTTON_LABEL} {$APP.Contacts}" LANGUAGE=javascript onclick='return window.open("index.php?module=Contacts&return_module={$MODULE}&action=Popup&popuptype=detailview&select=enable&form=EditView&form_submit=false&recordid={$ID}{$search_string}","test","width=640,height=602,resizable=0,scrollbars=0");' type="button" name="button"></td>
{elseif $MODULE neq 'Services'}
<input title="{$APP.LBL_ADD_NEW} {$APP.Contact}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView';this.form.module.value='Contacts'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Contact}"></td>
{/if}
{elseif $header eq 'Users'}
{if $MODULE eq 'Calendar'}
<input title="Change" accessKey="" tabindex="2" type="button" class="crmbutton small edit" value="{$APP.LBL_SELECT_USER_BUTTON_LABEL}" name="button" LANGUAGE=javascript onclick='return window.open("index.php?module=Users&return_module=Calendar&return_action={$return_modname}&activity_mode=Events&action=Popup&popuptype=detailview&form=EditView&form_submit=true&select=enable&return_id={$ID}&recordid={$ID}","test","width=640,height=525,resizable=0,scrollbars=0")';>
{/if}
{elseif $header eq 'Activity History'}
&nbsp;</td>
{/if}
</tr>
</table>
{assign var=check_status value=$detail}
{if $detail ne '' && $detail.header neq ''}
{foreach key=header item=detail from=$detail}
{if $header eq 'header'}
<table border=0 cellspacing=1 cellpadding=3 width=100% style="background-color:#eaeaea;" class="small">
<tr style="height:25px" bgcolor=white>
{if $MODULE eq 'Campaigns' && ($rel_mod eq 'Contacts' || $rel_mod eq 'Leads')}
<td class="lvtCol"><input name ="{$rel_mod}_selectall" onclick="rel_toggleSelect(this.checked,'{$rel_mod}_selected_id','{$rel_mod}');" type="checkbox"></td>
{/if}
{foreach key=header item=headerfields from=$detail}
<td class="lvtCol">{$headerfields}</td>
{/foreach}
</tr>
{elseif $header eq 'entries'}
{foreach key=header item=detail from=$detail}
<tr bgcolor=white>
{if $MODULE eq 'Campaigns' && ($rel_mod eq 'Contacts' || $rel_mod eq 'Leads')}
<td><input name="{$rel_mod}_selected_id" id="{$header}" value="{$header}" onclick="rel_check_object(this,'{$rel_mod}');" toggleselectall(this.name,="" selectall="" )="" type="checkbox" {$check_status.checked.$header}></td>
{/if}
{foreach key=header item=listfields from=$detail}
{* vtlib customization: Trigger events on listview cell *}
<td onmouseover="vtlib_listview.trigger('cell.onmouseover', $(this))" onmouseout="vtlib_listview.trigger('cell.onmouseout', $(this))">{$listfields}</td>
{* END *}
{/foreach}
</tr>
{/foreach}
</table>
{/if}
{/foreach}
<br />
{if $SELECTEDHEADERS neq '' && $header|in_array:$SELECTEDHEADERS}
<script type='text/javascript'>
if(typeof('Event') != 'undefined') {ldelim}
{if $smarty.request.ajax neq 'true'}
Event.observe(window, 'load', function(){ldelim}
loadRelatedListBlock('module={$MODULE}&action={$MODULE}Ajax&file=DetailViewAjax&record={$ID}&ajxaction=LOADRELATEDLIST&header={$header}&relation_id={$detail.relationId}&actions={$detail.actions}','tbl_{$MODULE}_{$header|replace:' ':''}','{$MODULE}_{$header|replace:' ':''}');
{rdelim});
{else}
<table style="background-color:#eaeaea;color:#000000" border="0" cellpadding="3" cellspacing="1" width="100%" class="small">
<tr style="height: 25px;" bgcolor="white">
<td><i>{$APP.LBL_NONE_INCLUDED}</i></td>
</tr>
</table>
loadRelatedListBlock('module={$MODULE}&action={$MODULE}Ajax&file=DetailViewAjax&record={$ID}&ajxaction=LOADRELATEDLIST&header={$header}&relation_id={$detail.relationId}&actions={$detail.actions}','tbl_{$MODULE}_{$header|replace:' ':''}','{$MODULE}_{$header|replace:' ':''}');
{/if}
<br><br>
{ if $MODULE eq 'Campaigns' && ($rel_mod eq 'Contacts' || $rel_mod eq 'Leads')}
<script>
rel_default_togglestate('{$rel_mod}');
{rdelim}
</script>
{/if}
{/foreach}
{/foreach}
@@ -0,0 +1,66 @@
{*<!--
/*+********************************************************************************
* 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.
*********************************************************************************/
-->*}
<table border=0 cellspacing=0 cellpadding=0 width=100% class="small"
style="border-bottom:1px solid #999999;padding:5px; background-color: #eeeeff;">
<tr>
<td align="left">
{$RELATEDLISTDATA.navigation.0}
{if $MODULE eq 'Campaigns' && ($RELATED_MODULE eq 'Contacts' || $RELATED_MODULE eq
'Leads' || $RELATED_MODULE eq 'Accounts') && $RELATEDLISTDATA.entries|@count > 0}
<br>{$APP.LBL_SELECT_BUTTON_LABEL}: <a href="javascript:void(0);"
onclick="clear_checked_all('{$RELATED_MODULE}');">{$APP.LBL_NONE_NO_LINE}</a>
{/if}
</td>
<td align="center">{$RELATEDLISTDATA.navigation.1} </td>
<td align="right">
{$RELATEDLISTDATA.CUSTOM_BUTTON}
{if $HEADER eq 'Contacts' && $MODULE neq 'Campaigns' && $MODULE neq 'Accounts' && $MODULE neq 'Potentials' && $MODULE neq 'Products' && $MODULE neq 'Vendors'}
{if $MODULE eq 'Calendar'}
<input alt="{$APP.LBL_SELECT_CONTACT_BUTTON_LABEL}" title="{$APP.LBL_SELECT_CONTACT_BUTTON_LABEL}" accessKey="" class="crmbutton small edit" value="{$APP.LBL_SELECT_BUTTON_LABEL} {$APP.Contacts}" LANGUAGE=javascript onclick='return window.open("index.php?module=Contacts&return_module={$MODULE}&action=Popup&popuptype=detailview&select=enable&form=EditView&form_submit=false&recordid={$ID}{$search_string}","test","width=640,height=602,resizable=0,scrollbars=0");' type="button" name="button"></td>
{elseif $MODULE neq 'Services'}
<input title="{$APP.LBL_ADD_NEW} {$APP.Contact}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView';this.form.module.value='Contacts'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Contact}"></td>
{/if}
{elseif $HEADER eq 'Users' && $MODULE eq 'Calendar'}
<input title="Change" accessKey="" tabindex="2" type="button" class="crmbutton small edit" value="{$APP.LBL_SELECT_USER_BUTTON_LABEL}" name="button" LANGUAGE=javascript onclick='return window.open("index.php?module=Users&return_module=Calendar&return_action={$return_modname}&activity_mode=Events&action=Popup&popuptype=detailview&form=EditView&form_submit=true&select=enable&return_id={$ID}&recordid={$ID}","test","width=640,height=525,resizable=0,scrollbars=0")';>
{/if}
</td>
</tr>
</table>
<table border=0 cellspacing=1 cellpadding=3 width=100% style="background-color:#eaeaea;" class="small">
<tr style="height:25px" bgcolor=white>
{if $MODULE eq 'Campaigns' && ($RELATED_MODULE eq 'Contacts' || $RELATED_MODULE eq 'Leads' || $RELATED_MODULE eq 'Accounts')
&& $RELATEDLISTDATA.entries|@count > 0}
<td class="lvtCol">
<input name ="{$RELATED_MODULE}_selectall" onclick="rel_toggleSelect(this.checked,'{$RELATED_MODULE}_selected_id','{$RELATED_MODULE}');" type="checkbox">
</td>
{/if}
{foreach key=index item=_HEADER_FIELD from=$RELATEDLISTDATA.header}
<td class="lvtCol">{$_HEADER_FIELD}</td>
{/foreach}
</tr>
{foreach key=_RECORD_ID item=_RECORD from=$RELATEDLISTDATA.entries}
<tr bgcolor=white>
{if $MODULE eq 'Campaigns' && ($RELATED_MODULE eq 'Contacts' || $RELATED_MODULE eq 'Leads' || $RELATED_MODULE eq 'Accounts')}
<td><input name="{$RELATED_MODULE}_selected_id" id="{$_RECORD_ID}" value="{$_RECORD_ID}" onclick="rel_check_object(this,'{$RELATED_MODULE}');" type="checkbox" {$RELATEDLISTDATA.checked.$_RECORD_ID}></td>
{/if}
{foreach key=index item=_RECORD_DATA from=$_RECORD}
{* vtlib customization: Trigger events on listview cell *}
<td onmouseover="vtlib_listview.trigger('cell.onmouseover', $(this))" onmouseout="vtlib_listview.trigger('cell.onmouseout', $(this))">{$_RECORD_DATA}</td>
{* END *}
{/foreach}
</tr>
{foreachelse}
<tr style="height: 25px;" bgcolor="white"><td><i>{$APP.LBL_NONE_INCLUDED}</i></td></tr>
{/foreach}
</table>
@@ -50,43 +50,6 @@ function gotoUpdateListPrice(id,pbid,proid)
}
{/literal}
function loadCvList(type,id)
{ldelim}
if($("lead_cv_list").value != 'None' || $("cont_cv_list").value != 'None')
{ldelim}
$("status").style.display="inline";
if(type === 'Leads')
{ldelim}
new Ajax.Request(
'index.php',
{ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
method: 'post',
postBody: 'module=Campaigns&action=CampaignsAjax&file=LoadList&ajax=true&return_action=DetailView&return_id='+id+'&list_type='+type+'&cvid='+$("lead_cv_list").value,
onComplete: function(response) {ldelim}
$("status").style.display="none";
$("RLContents").innerHTML= response.responseText;
{rdelim}
{rdelim}
);
{rdelim}
if(type === 'Contacts')
{ldelim}
new Ajax.Request(
'index.php',
{ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
method: 'post',
postBody: 'module=Campaigns&action=CampaignsAjax&file=LoadList&ajax=true&return_action=DetailView&return_id='+id+'&list_type='+type+'&cvid='+$("cont_cv_list").value,
onComplete: function(response) {ldelim}
$("status").style.display="none";
$("RLContents").innerHTML= response.responseText;
{rdelim}
{rdelim}
);
{rdelim}
{rdelim}
{rdelim}
</script>
<!-- Contents -->
@@ -15,6 +15,7 @@
<script language="JavaScript" type="text/javascript" src="include/js/ListView.js"></script>
{literal}
<script>
function editProductListPrice(id,pbid,price)
{
$("status").style.display="inline";
@@ -43,49 +44,12 @@ function gotoUpdateListPrice(id,pbid,proid)
postBody: 'module=Products&action=ProductsAjax&file=UpdateListPrice&ajax=true&return_action=CallRelatedList&return_module=PriceBooks&record='+id+'&pricebook_id='+pbid+'&product_id='+proid+'&list_price='+listprice,
onComplete: function(response) {
$("status").style.display="none";
$("RLContents").innerHTML= response.responseText;
$("RLContents").update(response.responseText);
}
}
);
}
{/literal}
function loadCvList(type,id)
{ldelim}
if($("lead_cv_list").value != 'None' || $("cont_cv_list").value != 'None')
{ldelim}
$("status").style.display="inline";
if(type === 'Leads')
{ldelim}
new Ajax.Request(
'index.php',
{ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
method: 'post',
postBody: 'module=Campaigns&action=CampaignsAjax&file=LoadList&ajax=true&return_action=DetailView&return_id='+id+'&list_type='+type+'&cvid='+$("lead_cv_list").value,
onComplete: function(response) {ldelim}
$("status").style.display="none";
$("RLContents").innerHTML= response.responseText;
{rdelim}
{rdelim}
);
{rdelim}
if(type === 'Contacts')
{ldelim}
new Ajax.Request(
'index.php',
{ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
method: 'post',
postBody: 'module=Campaigns&action=CampaignsAjax&file=LoadList&ajax=true&return_action=DetailView&return_id='+id+'&list_type='+type+'&cvid='+$("cont_cv_list").value,
onComplete: function(response) {ldelim}
$("status").style.display="none";
$("RLContents").innerHTML= response.responseText;
{rdelim}
{rdelim}
);
{rdelim}
{rdelim}
{rdelim}
</script>
{include file='Buttons_List1.tpl'}
<!-- Contents -->
@@ -99,6 +63,8 @@ function loadCvList(type,id)
{* Module Record numbering, used MOD_SEQ_ID instead of ID *}
<span class="lvtHeaderText"><font color="purple">[ {$MOD_SEQ_ID} ] </font>{$NAME} - {$SINGLE_MOD} {$APP.LBL_MORE} {$APP.LBL_INFORMATION}</span> <br>
{$UPDATEINFO}
</span>&nbsp;&nbsp;<span id="vtbusy_info" style="display:none;" valign="bottom"><img src="{$IMAGE_PATH}vtbusy.gif" border="0"></span><span id="vtbusy_info" style="visibility:hidden;" valign="bottom"><img src="{$IMAGE_PATH}vtbusy.gif" border="0"></span>
<hr noshade size=1>
<br>
@@ -19,7 +19,7 @@
</tr>
<tr><td colspan="2">
<div style="overflow:auto;height:448px">
<table style="background-color: rgb(204, 204, 204);" class="small" border="0" cellpadding="5" cellspacing="1" width="100%">
<table style="background-color: rgb(204, 204, 204);" class="small" border="0" cellpadding="5" cellspacing="1" width="100%" valign="top">
<tbody>
<tr>
<td class="lvtCol" nowrap width="40%">{$MOD.LBL_COLUMNS}</td>
@@ -14,458 +14,497 @@
<script type="text/javascript" src="jscalendar/lang/calendar-{$APP.LBL_JSCALENDAR_LANG}.js"></script>
<script type="text/javascript" src="jscalendar/calendar-setup.js"></script>
<script language="JavaScript" type="text/javascript" src="include/calculator/calc.js"></script>
{$BLOCKJS_STD}
<table class="small" bgcolor="#ffffff" border="0" cellpadding="5" cellspacing="0" height="530" width="100%">
<tbody><tr>
<td colspan="2">
<span class="genHeaderGray">{$MOD.LBL_FILTERS}</span><br>
{$MOD.LBL_SELECT_FILTERS_TO_STREAMLINE_REPORT_DATA}
<hr>
</td>
</tr>
<tr><td colspan="2">
<div id='adv_filter_div' name='adv_filter_div'>
<table class="small" border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody>
<tr>
<td class="detailedViewHeader" colspan="2" width="60%">
<b>{$MOD.LBL_STANDARD_FILTER}</b>
</td>
<td class="detailedViewHeader" width="20%">&nbsp;</td>
<td class="detailedViewHeader" width="20%">&nbsp;</td>
</tr>
<tr>
<td class="dvtCellLabel">{$MOD.LBL_SF_COLUMNS}:</td>
<td class="dvtCellLabel">&nbsp;</td>
<td class="dvtCellLabel">{$MOD.LBL_SF_STARTDATE}:</td>
<td class="dvtCellLabel">{$MOD.LBL_SF_ENDDATE}:</td>
</tr>
<tr>
<td class="dvtCellInfo" width="60%">
<select name="stdDateFilterField" class="detailedViewTextBox" onchange='standardFilterDisplay();'>
{$BLOCK1_STD}
</select>
</td>
<td class="dvtCellInfo" width="25%">
<select name="stdDateFilter" id="stdDateFilter" onchange='showDateRange( this.options[ this.selectedIndex ].value )' class="repBox">
{$BLOCKCRITERIA_STD}
</select>
</td>
<td class="dvtCellInfo">
<input name="startdate" id="jscal_field_date_start" style="border: 1px solid rgb(186, 186, 186);" size="10" maxlength="10" value="{$STARTDATE_STD}" type="text" ><br>
<img src="{$IMAGE_PATH}btnL3Calendar.gif" id="jscal_trigger_date_start" >
<font size="1"><em old="(yyyy-mm-dd)">({$DATEFORMAT})</em></font>
<script type="text/javascript">
Calendar.setup ({ldelim}
inputField : "jscal_field_date_start", ifFormat : "{$JS_DATEFORMAT}", showsTime : false, button : "jscal_trigger_date_start", singleClick : true, step : 1
{rdelim})
</script>
</td>
<td class="dvtCellInfo">
<input name="enddate" id="jscal_field_date_end" style="border: 1px solid rgb(186, 186, 186);" size="10" maxlength="10" value="{$ENDDATE_STD}" type="text"><br>
<img src="{$IMAGE_PATH}btnL3Calendar.gif" id="jscal_trigger_date_end" >
<font size="1"><em old="(yyyy-mm-dd)">({$DATEFORMAT})</em></font>
<script type="text/javascript">
Calendar.setup ({ldelim}
inputField : "jscal_field_date_end", ifFormat : "{$JS_DATEFORMAT}", showsTime : false, button : "jscal_trigger_date_end", singleClick : true, step : 1
{rdelim})
</script>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr><td colspan="2" class="detailedViewHeader"><b>{$MOD.LBL_ADVANCED_FILTER}</b>
</td>
<td class="detailedViewHeader">&nbsp;</td>
<td class="detailedViewHeader">&nbsp;</td>
</tr>
<tr>
<td colspan="4">
<ul>
<li>{$MOD.LBL_AF_HDR2}</li>
<li>{$MOD.LBL_AF_HDR3}</li>
</ul>
</td>
</tr>
<tr>
<td class="dvtCellLabel">
<select name="fcol1" id="fcol1" onchange="updatefOptions(this, 'fop1');updateRelFieldOptions(this, 'fval_1');" class="detailedViewTextBox">
<option value="">{$MOD.LBL_NONE}</option>
{$BLOCK1}
</select>
</td>
<td class="dvtCellLabel">
<select name="fop1" id="fop1" class="repBox" style="width:100px;">
<option value="">{$MOD.LBL_NONE}</option>
{$FOPTION1}
</select>
</td>
<td class="dvtCellLabel"><input name="fval1" id="fval1" class="repBox" type="text" value="{$VALUE1}">
<img height=20 width=20 style="cursor: pointer;" title="{$APP.LBL_FIELD_FOR_COMPARISION}" alt="{$APP.LBL_FIELD_FOR_COMPARISION}" src='themes/images/terms.gif' onClick="placeAtCenterOfDiv(adv_filter_div,show_val1);showHideSelectDiv('show_val1');"/>
<input type="image" align="absmiddle" style="cursor: pointer;" onclick="$('fval1').value='';return false;" language="javascript" title="{$APP.LBL_CLEAR}" alt="{$APP.LBL_CLEAR}" src="themes/images/clear_field.gif"/>
</td>
<td class="dvtCellLabel">{$MOD.LBL_AND}</td>
</tr>
<tr>
<td class="dvtCellInfo">
<select name="fcol2" id="fcol2" onchange="updatefOptions(this, 'fop2');updateRelFieldOptions(this, 'fval_2');" class="detailedViewTextBox">
<option value="">{$MOD.LBL_NONE}</option>
{$BLOCK2}
</select>
</td>
<td class="dvtCellInfo">
<select name="fop2" id="fop2" class="repBox" style="width:100px;">
<option value="">{$MOD.LBL_NONE}</option>
{$FOPTION2}
</select>
</td>
<td class="dvtCellInfo"><input name="fval2" id="fval2" class="repBox" type="text" value="{$VALUE2}">
<img height=20 width=20 style="cursor: pointer;" title="{$APP.LBL_FIELD_FOR_COMPARISION}" alt="{$APP.LBL_FIELD_FOR_COMPARISION}" src='themes/images/terms.gif' onClick="placeAtCenterOfDiv(adv_filter_div,show_val2);showHideSelectDiv('show_val2');"/>
<input type="image" align="absmiddle" style="cursor: pointer;" onclick="$('fval2').value='';return false;" language="javascript" title="{$APP.LBL_CLEAR}" alt="{$APP.LBL_CLEAR}" src="themes/images/clear_field.gif"/>
</td>
<td class="dvtCellInfo">{$MOD.LBL_AND}</td>
</tr>
<tr>
<td class="dvtCellLabel">
<select name="fcol3" id="fcol3" onchange="updatefOptions(this, 'fop3');updateRelFieldOptions(this, 'fval_3');" class="detailedViewTextBox">
<option value="">{$MOD.LBL_NONE}</option>
{$BLOCK3}
</select>
</td>
<td class="dvtCellLabel">
<select name="fop3" id="fop3" class="repBox" style="width:100px;">
<option value="">{$MOD.LBL_NONE}</option>
{$FOPTION3}
</select>
</td>
<td class="dvtCellLabel"><input name="fval3" id="fval3" class="repBox" type="text" value="{$VALUE3}">
<img height=20 width=20 style="cursor: pointer;" title="{$APP.LBL_FIELD_FOR_COMPARISION}" alt="{$APP.LBL_FIELD_FOR_COMPARISION}" src='themes/images/terms.gif' onClick="placeAtCenterOfDiv(adv_filter_div,show_val3);showHideSelectDiv('show_val3');"/>
<input type="image" align="absmiddle" style="cursor: pointer;" onclick="$('fval3').value='';return false;" language="javascript" title="{$APP.LBL_CLEAR}" alt="{$APP.LBL_CLEAR}" src="themes/images/clear_field.gif"/>
</td>
<td class="dvtCellLabel">{$MOD.LBL_AND}</td>
</tr>
<tr>
<td class="dvtCellInfo">
<select name="fcol4" id="fcol4" onchange="updatefOptions(this, 'fop4');updateRelFieldOptions(this, 'fval_4');" class="detailedViewTextBox">
<option value="">{$MOD.LBL_NONE}</option>
{$BLOCK4}
</select>
</td>
<td class="dvtCellInfo">
<select name="fop4" id="fop4" class="repBox" style="width:100px;">
<option value="">{$MOD.LBL_NONE}</option>
{$FOPTION4}
</select>
</td>
<td class="dvtCellInfo"><input name="fval4" id="fval4" class="repBox" type="text" value="{$VALUE4}">
<img height=20 width=20 style="cursor: pointer;" title="{$APP.LBL_FIELD_FOR_COMPARISION}" alt="{$APP.LBL_FIELD_FOR_COMPARISION}" src='themes/images/terms.gif' onClick="placeAtCenterOfDiv(adv_filter_div,show_val4);showHideSelectDiv('show_val4');"/>
<input type="image" align="absmiddle" style="cursor: pointer;" onclick="$('fval4').value='';return false;" language="javascript" title="{$APP.LBL_CLEAR}" alt="{$APP.LBL_CLEAR}" src="themes/images/clear_field.gif"/>
</td>
<td class="dvtCellInfo">{$MOD.LBL_AND}</td>
</tr>
<tr>
<td class="dvtCellLabel">
<select name="fcol5" id="fcol5" onchange="updatefOptions(this, 'fop5');updateRelFieldOptions(this, 'fval_5');" class="detailedViewTextBox">
<option value="">{$MOD.LBL_NONE}</option>
{$BLOCK5}
</select>
</td>
<td class="dvtCellLabel">
<select name="fop5" id="fop5" class="repBox" style="width:100px;">
<option value="">{$MOD.LBL_NONE}</option>
{$FOPTION5}
</select>
</td>
<td class="dvtCellLabel"><input name="fval5" id="fval5" class="repBox" type="text" value="{$VALUE5}">
<img height=20 width=20 style="cursor: pointer;" title="Fields for Comparision" alt="Fields for Comparision" src='themes/images//terms.gif' onClick="placeAtCenterOfDiv(adv_filter_div,show_val5);showHideSelectDiv('show_val5');"/>
<input type="image" align="absmiddle" style="cursor: pointer;" onclick="$('fval5').value='';return false;" language="javascript" title="{$APP.LBL_CLEAR}" alt="{$APP.LBL_CLEAR}" src="themes/images/clear_field.gif"/</td>
<td class="dvtCellLabel">&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</td></tr>
</tbody>
</table>
<div class="layerPopup" id='show_val1'style="border:0; position: absolute; width:300px; z-index: 50; display: none;">
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" class="mailClient mailClientBg">
<tbody><tr>
<td>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="layerHeadingULine">
<tbody><tr background="themes/images/qcBg.gif" class="mailSubHeader">
<td width=90% class="genHeaderSmall"><b>{$MOD.LBL_SELECT_FIELDS}</b></td>
<td align=right> <img border="0" align="absmiddle" src="themes/images/close.gif" style="cursor: pointer;" alt="{$APP.LBL_CLOSE}" title="{$APP.LBL_CLOSE}" onclick="showHideSelectDiv('show_val1');"/></td
</tbody></table>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="small">
<tbody><tr>
<td>
<table width="100%" cellspacing="0" cellpadding="5" border="0" bgcolor="white" class="small">
<tbody><tr>
<td width="30%" align="left" class="cellLabel small">{$MOD.LBL_RELATED_FIELDS}</td>
<td width="30%" align="left" class="cellText">
<select name="fval_1" id="fval_1" onChange='AddFieldToFilter(1,this);' class="detailedViewTextBox">
<option value="">{$MOD.LBL_NONE}</option>
{$REL_FIELDS1}
</select>
</td>
</tr>
</tbody></table>
<!-- save cancel buttons -->
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="layerPopupTransport">
<tbody><tr>
<td width="50%" align="center">
<input type="button" style="width: 70px;" value="{$APP.LBL_DONE}" name="button" onclick="showHideSelectDiv('show_val1');" class="crmbutton small create" accesskey="X" title="{$APP.LBL_DONE}"/>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</div>
<div class="layerPopup" id='show_val2'style="border:0; position: absolute; width:300px; z-index: 50; display: none;">
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" class="mailClient mailClientBg">
<tbody><tr>
<td>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="layerHeadingULine">
<tbody><tr background="themes/images/qcBg.gif" class="mailSubHeader">
<td width=90% class="genHeaderSmall"><b>{$MOD.LBL_SELECT_FIELDS}</b></td>
<td align=right> <img border="0" align="absmiddle" src="themes/images/close.gif" style="cursor: pointer;" alt="{$APP.LBL_CLOSE}" title="{$APP.LBL_CLOSE}" onclick="showHideSelectDiv('show_val2');"/></td
</tbody></table>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="small">
<tbody><tr>
<td>
<table width="100%" cellspacing="0" cellpadding="5" border="0" bgcolor="white" class="small">
<tbody><tr>
<td width="30%" align="left" class="cellLabel small">{$MOD.LBL_RELATED_FIELDS}</td>
<td width="30%" align="left" class="cellText">
<select name="fval_2" id="fval_2" onChange='AddFieldToFilter(2,this);' class="detailedViewTextBox">
<option value="">{$MOD.LBL_NONE}</option>
{$REL_FIELDS2}
</select>
</td>
</tr>
</tbody></table>
<!-- save cancel buttons -->
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="layerPopupTransport">
<tbody><tr>
<td width="50%" align="center">
<input type="button" style="width: 70px;" value="{$APP.LBL_DONE}" name="button" onclick="showHideSelectDiv('show_val2');" class="crmbutton small create" accesskey="X" title="{$APP.LBL_DONE}"/>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</div>
<div class="layerPopup" id='show_val3'style="border:0; position: absolute; width:300px; z-index: 50; display: none;">
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" class="mailClient mailClientBg">
<tbody><tr>
<td>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="layerHeadingULine">
<tbody><tr background="themes/images/qcBg.gif" class="mailSubHeader">
<td width=90% class="genHeaderSmall"><b>{$MOD.LBL_SELECT_FIELDS}</b></td>
<td align=right> <img border="0" align="absmiddle" src="themes/images/close.gif" style="cursor: pointer;" alt="{$APP.LBL_CLOSE}" title="{$APP.LBL_CLOSE}" onclick="showHideSelectDiv('show_val3');"/></td
</tbody></table>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="small">
<tbody><tr>
<td>
<table width="100%" cellspacing="0" cellpadding="5" border="0" bgcolor="white" class="small">
<tbody><tr>
<td width="30%" align="left" class="cellLabel small">{$MOD.LBL_RELATED_FIELDS}</td>
<td width="30%" align="left" class="cellText">
<select name="fval_3" id="fval_3" onChange='AddFieldToFilter(3,this);' class="detailedViewTextBox">
<option value="">{$MOD.LBL_NONE}</option>
{$REL_FIELDS3}
</select>
</td>
</tr>
</tbody></table>
<!-- save cancel buttons -->
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="layerPopupTransport">
<tbody><tr>
<td width="50%" align="center">
<input type="button" style="width: 70px;" value="{$APP.LBL_DONE}" name="button" onclick="showHideSelectDiv('show_val3');" class="crmbutton small create" accesskey="X" title="{$APP.LBL_DONE}"/>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</div>
<div class="layerPopup" id='show_val4'style="border:0; position: absolute; width:300px; z-index: 50; display: none;">
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" class="mailClient mailClientBg">
<tbody><tr>
<td>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="layerHeadingULine">
<tbody><tr background="themes/images/qcBg.gif" class="mailSubHeader">
<td width=90% class="genHeaderSmall"><b>{$MOD.LBL_SELECT_FIELDS}</b></td>
<td align=right> <img border="0" align="absmiddle" src="themes/images/close.gif" style="cursor: pointer;" alt="{$APP.LBL_CLOSE}" title="{$APP.LBL_CLOSE}" onclick="showHideSelectDiv('show_val4');"/></td
</tbody></table>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="small">
<tbody><tr>
<td>
<table width="100%" cellspacing="0" cellpadding="5" border="0" bgcolor="white" class="small">
<tbody><tr>
<td width="30%" align="left" class="cellLabel small">{$MOD.LBL_RELATED_FIELDS}</td>
<td width="30%" align="left" class="cellText">
<select name="fval_4" id="fval_4" onChange='AddFieldToFilter(4,this);' class="detailedViewTextBox">
<option value="">{$MOD.LBL_NONE}</option>
{$REL_FIELDS4}
</select>
</td>
</tr>
</tbody></table>
<!-- save cancel buttons -->
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="layerPopupTransport">
<tbody><tr>
<td width="50%" align="center">
<input type="button" style="width: 70px;" value="{$APP.LBL_DONE}" name="button" onclick="showHideSelectDiv('show_val4');" class="crmbutton small create" accesskey="X" title="{$APP.LBL_DONE}"/>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</div>
<div class="layerPopup" id='show_val5'style="border:0; position: absolute; width:300px;z-index: 50; display: none;">
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" class="mailClient mailClientBg">
<tbody><tr>
<td>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="layerHeadingULine">
<tbody><tr background="themes/images/qcBg.gif" class="mailSubHeader">
<td width=90% class="genHeaderSmall"><b>{$MOD.LBL_SELECT_FIELDS}</b></td>
<td align=right> <img border="0" align="absmiddle" src="themes/images/close.gif" style="cursor: pointer;" alt="{$APP.LBL_CLOSE}" title="{$APP.LBL_CLOSE}" onclick="showHideSelectDiv('show_val5');"/></td
</tbody></table>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="small">
<tbody><tr>
<td>
<table width="100%" cellspacing="0" cellpadding="5" border="0" bgcolor="white" class="small">
<tbody><tr>
<td width="30%" align="left" class="cellLabel small">{$MOD.LBL_RELATED_FIELDS}</td>
<td width="30%" align="left" class="cellText">
<select name="fval_5" id="fval_5" onChange='AddFieldToFilter(5,this);' class="detailedViewTextBox">
<option value="">{$MOD.LBL_NONE}</option>
{$REL_FIELDS5}
</select>
</td>
</tr>
</tbody></table>
<!-- save cancel buttons -->
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="layerPopupTransport">
<tbody><tr>
<td width="50%" align="center">
<input type="button" style="width: 70px;" value="{$APP.LBL_DONE}" name="button" onclick="showHideSelectDiv('show_val5');" class="crmbutton small create" accesskey="X" title="{$APP.LBL_DONE}"/>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</div>
<script>
var rel_fields = {$REL_FIELDS};
var constructedOptionValue;
var constructedOptionName;
</script>
{literal}
<script>
function showHideSelectDiv(id){
for(var i=1;i<=5;i++){
if(id=='show_val'+i){
if(document.getElementById(id).style.display=='block')
document.getElementById(id).style.display='none';
else
document.getElementById(id).style.display='block';
}
else
document.getElementById('show_val'+i).style.display='none';
}
<script type="text/javascript">
var advft_column_index_count = -1;
var advft_group_index_count = 0;
var column_index_array = [];
var group_index_array = [];
var rel_fields = {$REL_FIELDS};
</script>
<script language="JavaScript" type="text/JavaScript">
function addColumnConditionGlue(columnIndex) {ldelim}
var columnConditionGlueElement = document.getElementById('columnconditionglue_'+columnIndex);
if(columnConditionGlueElement) {ldelim}
columnConditionGlueElement.innerHTML = "<select name='fcon"+columnIndex+"' id='fcon"+columnIndex+"' class='detailedViewTextBox'>"+
"<option value='and'>{$MOD.LBL_AND}</option>"+
"<option value='or'>{$MOD.LBL_OR}</option>"+
"</select>";
{rdelim}
{rdelim}
function addConditionRow(groupIndex) {ldelim}
var groupColumns = column_index_array[groupIndex];
if(typeof(groupColumns) != 'undefined') {ldelim}
for(var i=groupColumns.length - 1; i>=0; --i) {ldelim}
var prevColumnIndex = groupColumns[i];
if(document.getElementById('conditioncolumn_'+groupIndex+'_'+prevColumnIndex)) {ldelim}
addColumnConditionGlue(prevColumnIndex);
break;
{rdelim}
{rdelim}
{rdelim}
var columnIndex = advft_column_index_count+1;
var nextNode = document.getElementById('groupfooter_'+groupIndex);
var newNode = document.createElement('tr');
newNodeId = 'conditioncolumn_'+groupIndex+'_'+columnIndex;
newNode.setAttribute('id',newNodeId);
newNode.setAttribute('name','conditionColumn');
nextNode.parentNode.insertBefore(newNode, nextNode);
node1 = document.createElement('td');
node1.setAttribute('class', 'dvtCellLabel');
node1.setAttribute('width', '25%');
newNode.appendChild(node1);
node1.innerHTML = '<select name="fcol'+columnIndex+'" id="fcol'+columnIndex+'" onchange="updatefOptions(this, \'fop'+columnIndex+'\');addRequiredElements('+columnIndex+');updateRelFieldOptions(this, \'fval_'+columnIndex+'\');" class="detailedViewTextBox">'+
'<option value="">{$MOD.LBL_NONE}</option>'+
'{$COLUMNS_BLOCK}'+
'</select>';
node2 = document.createElement('td');
node2.setAttribute('class', 'dvtCellLabel');
node2.setAttribute('width', '25%');
newNode.appendChild(node2);
node2.innerHTML = '<select name="fop'+columnIndex+'" id="fop'+columnIndex+'" class="repBox" style="width:100px;" onchange="addRequiredElements('+columnIndex+');">'+
'<option value="">{$MOD.LBL_NONE}</option>'+
'{$FOPTION}'+
'</select>';
node3 = document.createElement('td');
node3.setAttribute('class', 'dvtCellLabel');
newNode.appendChild(node3);
node3.innerHTML = '<input name="fval'+columnIndex+'" id="fval'+columnIndex+'" class="repBox" type="text" value="">'+
'<img height=20 width=20 align="absmiddle" style="cursor: pointer;" title="{$APP.LBL_FIELD_FOR_COMPARISION}" alt="{$APP.LBL_FIELD_FOR_COMPARISION}" src="themes/images/terms.gif" onClick="hideAllElementsByName(\'relFieldsPopupDiv\'); fnvshobj(this,\'show_val'+columnIndex+'\');"/>'+
'<input type="image" align="absmiddle" style="cursor: pointer;" onclick="document.getElementById(\'fval'+columnIndex+'\').value=\'\';return false;" language="javascript" title="{$APP.LBL_CLEAR}" alt="{$APP.LBL_CLEAR}" src="themes/images/clear_field.gif"/>'+
'<div class="layerPopup" id="show_val'+columnIndex+'" name="relFieldsPopupDiv" style="border:0; position: absolute; width:300px; z-index: 50; display: none;">'+
'<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center" class="mailClient mailClientBg">'+
'<tr>'+
'<td>'+
'<table width="100%" cellspacing="0" cellpadding="0" border="0" class="layerHeadingULine">'+
'<tr background="themes/images/qcBg.gif" class="mailSubHeader">'+
'<td width=90% class="genHeaderSmall"><b>{$MOD.LBL_SELECT_FIELDS}</b></td>'+
'<td align=right>'+
'<img border="0" align="absmiddle" src="themes/images/close.gif" style="cursor: pointer;" alt="{$APP.LBL_CLOSE}" title="{$APP.LBL_CLOSE}" onclick="hideAllElementsByName(\'relFieldsPopupDiv\');"/>'+
'</td>'+
'</tr>'+
'</table>'+
'<table width="100%" cellspacing="0" cellpadding="0" border="0" class="small">'+
'<tr>'+
'<td>'+
'<table width="100%" cellspacing="0" cellpadding="5" border="0" bgcolor="white" class="small">'+
'<tr>'+
'<td width="30%" align="left" class="cellLabel small">{$MOD.LBL_RELATED_FIELDS}</td>'+
'<td width="30%" align="left" class="cellText">'+
'<select name="fval_'+columnIndex+'" id="fval_'+columnIndex+'" onChange="AddFieldToFilter('+columnIndex+',this);" class="detailedViewTextBox">'+
'<option value="">{$MOD.LBL_NONE}</option>'+
'{$REL_FIELDS}'+
'</select>'+
'</td>'+
'</tr>'+
'</table>'+
'<!-- save cancel buttons -->'+
'<table width="100%" cellspacing="0" cellpadding="5" border="0" class="layerPopupTransport">'+
'<tr>'+
'<td width="50%" align="center">'+
'<input type="button" style="width: 70px;" value="{$APP.LBL_DONE}" name="button" onclick="hideAllElementsByName(\'relFieldsPopupDiv\');" class="crmbutton small create" accesskey="X" title="{$APP.LBL_DONE}"/>'+
'</td>'+
'</tr>'+
'</table>'+
'</td>'+
'</tr>'+
'</table>'+
'</td>'+
'</tr>'+
'</table>'+
'</div>';
node4 = document.createElement('td');
node4.setAttribute('class', 'dvtCellLabel');
node4.setAttribute('id', 'columnconditionglue_'+columnIndex);
node4.setAttribute('width', '60px');
newNode.appendChild(node4);
node5 = document.createElement('td');
node5.setAttribute('class', 'dvtCellLabel');
node5.setAttribute('width', '30px');
newNode.appendChild(node5);
node5.innerHTML = '<a onclick="deleteColumnRow('+groupIndex+','+columnIndex+');" href="javascript:;">'+
'<img src="themes/images/delete.gif" align="absmiddle" title="{$MOD.LBL_DELETE}..." border="0">'+
'</a>';
if(typeof(column_index_array[groupIndex]) == 'undefined') column_index_array[groupIndex] = [];
column_index_array[groupIndex].push(columnIndex);
advft_column_index_count++;
{rdelim}
function addGroupConditionGlue(groupIndex) {ldelim}
var groupConditionGlueElement = document.getElementById('groupconditionglue_'+groupIndex);
if(groupConditionGlueElement) {ldelim}
groupConditionGlueElement.innerHTML = "<select name='gpcon"+groupIndex+"' id='gpcon"+groupIndex+"' class='small'>"+
"<option value='and'>{$MOD.LBL_AND}</option>"+
"<option value='or'>{$MOD.LBL_OR}</option>"+
"</select>";
{rdelim}
{rdelim}
function addConditionGroup(parentNodeId) {ldelim}
for(var i=group_index_array.length - 1; i>=0; --i) {ldelim}
var prevGroupIndex = group_index_array[i];
if(document.getElementById('conditiongroup_'+prevGroupIndex)) {ldelim}
addGroupConditionGlue(prevGroupIndex);
break;
{rdelim}
{rdelim}
var groupIndex = advft_group_index_count+1;
var parentNode = document.getElementById(parentNodeId);
var newNode = document.createElement('div');
newNodeId = 'conditiongroup_'+groupIndex;
newNode.setAttribute('id',newNodeId);
newNode.setAttribute('name','conditionGroup');
newNode.innerHTML = "<table class='small crmTable' border='0' cellpadding='5' cellspacing='1' width='100%' valign='top' id='conditiongrouptable_"+groupIndex+"'>"+
"<tr id='groupheader_"+groupIndex+"'>"+
"<td colspan='5' align='right'>"+
"<a href='javascript:void(0);' onclick='deleteGroup(\""+groupIndex+"\");'><img border=0 src={'close.gif'|@vtiger_imageurl:$THEME} alt='{$MOD.LBL_DELETE_GROUP}' title='{$MOD.LBL_DELETE_GROUP}'/></a>"+
"</td>"+
"</tr>"+
"<tr id='groupfooter_"+groupIndex+"'>"+
"<td colspan='5' align='left'>"+
"<input type='button' class='crmbutton edit small' value='{$MOD.LBL_NEW_CONDITION}' onclick='addConditionRow(\""+groupIndex+"\")' />"+
"</td>"+
"</tr>"+
"</table>"+
"<table class='small' border='0' cellpadding='5' cellspacing='1' width='100%' valign='top'>"+
"<tr><td align='center' id='groupconditionglue_"+groupIndex+"'>"+
"</td></tr>"+
"</table>";
parentNode.appendChild(newNode);
group_index_array.push(groupIndex);
advft_group_index_count++;
{rdelim}
function addNewConditionGroup(parentNodeId) {ldelim}
addConditionGroup(parentNodeId);
addConditionRow(advft_group_index_count);
{rdelim}
function deleteColumnRow(groupIndex, columnIndex) {ldelim}
removeElement('conditioncolumn_'+groupIndex+'_'+columnIndex);
var groupColumns = column_index_array[groupIndex];
var keyOfTheColumn = groupColumns.indexOf(columnIndex);
var isLastElement = true;
for(var i=keyOfTheColumn; i<groupColumns.length; ++i) {ldelim}
var nextColumnIndex = groupColumns[i];
var nextColumnRowId = 'conditioncolumn_'+groupIndex+'_'+nextColumnIndex;
if(document.getElementById(nextColumnRowId)) {ldelim}
isLastElement = false;
break;
{rdelim}
{rdelim}
if(isLastElement) {ldelim}
for(var i=keyOfTheColumn-1; i>=0; --i) {ldelim}
var prevColumnIndex = groupColumns[i];
var prevColumnGlueId = "fcon"+prevColumnIndex;
if(document.getElementById(prevColumnGlueId)) {ldelim}
removeElement(prevColumnGlueId);
break;
{rdelim}
{rdelim}
{rdelim}
{rdelim}
function deleteGroup(groupIndex) {ldelim}
removeElement('conditiongroup_'+groupIndex);
var keyOfTheGroup = group_index_array.indexOf(groupIndex);
var isLastElement = true;
for(var i=keyOfTheGroup; i<group_index_array.length; ++i) {ldelim}
var nextGroupIndex = group_index_array[i];
var nextGroupBlockId = "conditiongroup_"+nextGroupIndex;
if(document.getElementById(nextGroupBlockId)) {ldelim}
isLastElement = false;
break;
{rdelim}
{rdelim}
if(isLastElement) {ldelim}
for(var i=keyOfTheGroup-1; i>=0; --i) {ldelim}
var prevGroupIndex = group_index_array[i];
var prevGroupGlueId = "gpcon"+prevGroupIndex;
if(document.getElementById(prevGroupGlueId)) {ldelim}
removeElement(prevGroupGlueId);
break;
{rdelim}
{rdelim}
{rdelim}
{rdelim}
function removeElement(elementId) {ldelim}
var element = document.getElementById(elementId);
if(element) {ldelim}
var parent = element.parentNode;
if(parent) {ldelim}
parent.removeChild(element);
{rdelim} else {ldelim}
element.remove();
{rdelim}
{rdelim}
{rdelim}
function hideAllElementsByName(name) {ldelim}
var allElements = document.getElementsByTagName('div');
for(var i=0; i<allElements.length; ++i) {ldelim}
var element = allElements[i];
if (element.getAttribute('name') == name)
element.style.display='none';
{rdelim}
return true;
}
{rdelim}
function addRequiredElements(columnindex) {ldelim}
var colObj = document.getElementById('fcol'+columnindex);
var opObj = document.getElementById('fop'+columnindex);
var valObj = document.getElementById('fval'+columnindex);
var currField = colObj.options[colObj.selectedIndex];
var currOp = opObj.options[opObj.selectedIndex];
var fieldtype = null ;
if(currField.value != null && currField.value.length != 0) {ldelim}
fieldtype = trimfValues(currField.value);
switch(fieldtype) {ldelim}
case 'D':
case 'T': var dateformat = "{$JS_DATEFORMAT}";
var timeformat = "%H:%M:%S";
var showtime = true;
if(fieldtype == 'D') {ldelim}
timeformat = '';
showtime = false;
{rdelim}
if(!document.getElementById('jscal_trigger_fval'+columnindex)) {ldelim}
var node = document.createElement('img');
node.setAttribute('src','{$IMAGE_PATH}btnL3Calendar.gif');
node.setAttribute('id','jscal_trigger_fval'+columnindex);
node.setAttribute('align','absmiddle');
node.setAttribute('width','20');
node.setAttribute('height','20');
var parentObj = valObj.parentNode;
var nextObj = valObj.nextSibling;
parentObj.insertBefore(node, nextObj);
{rdelim}
Calendar.setup ({ldelim}
inputField : 'fval'+columnindex, ifFormat : dateformat+' '+timeformat, showsTime : showtime, button : "jscal_trigger_fval"+columnindex, singleClick : true, step : 1
{rdelim});
if(currOp.value == 'bw') {ldelim}
if(!document.getElementById('fval_ext'+columnindex)) {ldelim}
var fillernode = document.createElement('br');
var node1 = document.createElement('input');
node1.setAttribute('class', 'repBox');
node1.setAttribute('type', 'text');
node1.setAttribute('id','fval_ext'+columnindex);
node1.setAttribute('name','fval_ext'+columnindex);
var parentObj = valObj.parentNode;
parentObj.appendChild(fillernode);
parentObj.appendChild(node1);
{rdelim}
if(!document.getElementById('jscal_trigger_fval_ext'+columnindex)) {ldelim}
var node2 = document.createElement('img');
node2.setAttribute('src','{$IMAGE_PATH}btnL3Calendar.gif');
node2.setAttribute('id','jscal_trigger_fval_ext'+columnindex);
node2.setAttribute('align','absmiddle');
node2.setAttribute('width','20');
node2.setAttribute('height','20');
var parentObj = valObj.parentNode;
parentObj.appendChild(node2);
{rdelim}
Calendar.setup ({ldelim}
inputField : 'fval_ext'+columnindex, ifFormat : dateformat+' '+timeformat, showsTime : showtime, button : "jscal_trigger_fval_ext"+columnindex, singleClick : true, step : 1
{rdelim});
{rdelim} else {ldelim}
if(document.getElementById('fval_ext'+columnindex)) document.getElementById('fval_ext'+columnindex).remove();
if(document.getElementById('jscal_trigger_fval_ext'+columnindex)) document.getElementById('jscal_trigger_fval_ext'+columnindex).remove();
{rdelim}
break;
default : if(document.getElementById('jscal_trigger_fval'+columnindex)) document.getElementById('jscal_trigger_fval'+columnindex).remove();
if(document.getElementById('fval_ext'+columnindex)) document.getElementById('fval_ext'+columnindex).remove();
if(document.getElementById('jscal_trigger_fval_ext'+columnindex)) document.getElementById('jscal_trigger_fval_ext'+columnindex).remove();
{rdelim}
{rdelim}
{rdelim}
function showHideDivs(showdiv, hidediv) {ldelim}
if(document.getElementById(showdiv)) document.getElementById(showdiv).style.display = "block";
if(document.getElementById(hidediv)) document.getElementById(hidediv).style.display = "none";
{rdelim}
</script>
<script>
var filter = document.NewReport.stdDateFilter.options[document.NewReport.stdDateFilter.selectedIndex].value
if( filter != "custom" )
{
showDateRange( filter );
}
</script>
<script>
for(var i=1;i<=5;i++)
{
var obj=document.getElementById("fcol"+i);
if(obj.selectedIndex != 0)
updatefOptions(obj, 'fop'+i);
}
</script>
{$BLOCKJS_STD}
<script>
// If current user has no access to date fields, we should disable selection
standardFilterDisplay();
</script>
<input type="hidden" name="advft_criteria" id="advft_criteria" value="" />
<input type="hidden" name="advft_criteria_groups" id="advft_criteria_groups" value="" />
<script language="JavaScript" type="text/JavaScript">
function placeAtCenterOfDiv(node1, node2){
var centerPixel = getDimension(node1);
node2.style.position = "absolute";
var point = getDimension(node2);
var x = findPosX(node1);
var y = findPosY(node1);
var ua=navigator.userAgent.toLowerCase();
if(ua.indexOf('msie')!=-1){
node2.style.top = centerPixel.y - (centerPixel.y/2+point.y)-30 +"px";
node2.style.left = centerPixel.x - (centerPixel.x/2+point.x/2) + "px";
} else {
node2.style.top = y+centerPixel.y - (centerPixel.y/2+point.y)-30 +"px";
node2.style.left = x+centerPixel.x - (centerPixel.x/2+point.x/2) + "px";
}
}
function getDimension(node){
var ht = node.offsetHeight;
var wdth = node.offsetWidth;
var nodeChildren = node.getElementsByTagName("*");
var noOfChildren = nodeChildren.length;
for(var index =0;index<noOfChildren;++index){
ht = Math.max(nodeChildren[index].offsetHeight, ht);
wdth = Math.max(nodeChildren[index].offsetWidth,wdth);
}
return {x: wdth,y: ht};
}
</script>
{/literal}
<table class="small" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" height="532" width="100%" valign="top">
<tr>
<td colspan="2">
<span class="genHeaderGray">{$MOD.LBL_FILTERS}</span><br>
{$MOD.LBL_SELECT_FILTERS_TO_STREAMLINE_REPORT_DATA}
<hr>
</td>
</tr>
<tr>
<td colspan="2" align="left">
<span id='std_filter_div_show' name='std_filter_div_show'>
<img border="0" align="absmiddle" src={'inactivate.gif'|@vtiger_imageurl:$THEME} onclick="showHideDivs('std_filter_div','std_filter_div_show');" style="cursor:pointer;" />
<b>{$MOD.LBL_SHOW_STANDARD_FILTERS}</b>
</span>
</td>
</tr>
<tr>
<td colspan="2">
<div id='std_filter_div' name='std_filter_div' style="display:none;">
<table class="small" border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td class="detailedViewHeader" colspan="4">
<img border="0" align="absmiddle" src={'activate.gif'|@vtiger_imageurl:$THEME} onclick="showHideDivs('std_filter_div_show','std_filter_div');" style="cursor:pointer;" />
<b>{$MOD.LBL_STANDARD_FILTER}</b>
</td>
</tr>
<tr>
<td class="dvtCellLabel" width="30%">{$MOD.LBL_SF_COLUMNS}:</td>
<td class="dvtCellLabel" width="30%">&nbsp;</td>
<td class="dvtCellLabel" width="20%">{$MOD.LBL_SF_STARTDATE}:</td>
<td class="dvtCellLabel" width="20%">{$MOD.LBL_SF_ENDDATE}:</td>
</tr>
<tr>
<td class="dvtCellInfo" width="60%">
<select name="stdDateFilterField" class="detailedViewTextBox" onchange='standardFilterDisplay();'>
{$BLOCK1_STD}
</select>
</td>
<td class="dvtCellInfo" width="25%">
<select name="stdDateFilter" id="stdDateFilter" onchange='showDateRange( this.options[ this.selectedIndex ].value )' class="repBox">
{$BLOCKCRITERIA_STD}
</select>
</td>
<td class="dvtCellInfo">
<input name="startdate" id="jscal_field_date_start" style="border: 1px solid rgb(186, 186, 186);" size="10" maxlength="10" value="{$STARTDATE_STD}" type="text"><br>
<img src="{$IMAGE_PATH}btnL3Calendar.gif" id="jscal_trigger_date_start" >
<font size="1"><em old="(yyyy-mm-dd)">({$DATEFORMAT})</em></font>
<script type="text/javascript">
Calendar.setup ({ldelim}
inputField : "jscal_field_date_start", ifFormat : "{$JS_DATEFORMAT}", showsTime : false, button : "jscal_trigger_date_start", singleClick : true, step : 1
{rdelim})
</script>
</td>
<td class="dvtCellInfo">
<input name="enddate" id="jscal_field_date_end" style="border: 1px solid rgb(186, 186, 186);" size="10" maxlength="10" value="{$ENDDATE_STD}" type="text"><br>
<img src="{$IMAGE_PATH}btnL3Calendar.gif" id="jscal_trigger_date_end" >
<font size="1"><em old="(yyyy-mm-dd)">({$DATEFORMAT})</em></font>
<script type="text/javascript">
Calendar.setup ({ldelim}
inputField : "jscal_field_date_end", ifFormat : "{$JS_DATEFORMAT}", showsTime : false, button : "jscal_trigger_date_end", singleClick : true, step : 1
{rdelim})
</script>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div style="overflow:auto;height:448px" id='adv_filter_div' name='adv_filter_div'>
<table class="small" border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td class="detailedViewHeader"><b>{$MOD.LBL_ADVANCED_FILTER}</b></td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="button" class="crmbutton create small" value="{$MOD.LBL_NEW_GROUP}" onclick="addNewConditionGroup('adv_filter_div')" />
</td>
</tr>
</table>
{foreach key=GROUP_ID item=GROUP_CRITERIA from=$CRITERIA_GROUPS}
{assign var=GROUP_COLUMNS value=$GROUP_CRITERIA.columns}
<script type="text/javascript">
addConditionGroup('adv_filter_div');
</script>
{foreach key=COLUMN_INDEX item=COLUMN_CRITERIA from=$GROUP_COLUMNS}
<script type="text/javascript">
addConditionRow('{$GROUP_ID}');
document.getElementById('fop'+advft_column_index_count).value = '{$COLUMN_CRITERIA.comparator}';
var conditionColumnRowElement = document.getElementById('fcol'+advft_column_index_count);
conditionColumnRowElement.value = '{$COLUMN_CRITERIA.columnname}';
updatefOptions(conditionColumnRowElement, 'fop'+advft_column_index_count);
addRequiredElements(advft_column_index_count);
updateRelFieldOptions(conditionColumnRowElement, 'fval_'+advft_column_index_count);
var columnvalue = '{$COLUMN_CRITERIA.value}';
if('{$COLUMN_CRITERIA.comparator}' == 'bw' && columnvalue != '') {ldelim}
var values = columnvalue.split(",");
document.getElementById('fval'+advft_column_index_count).value = values[0];
if(values.length == 2 && document.getElementById('fval_ext'+advft_column_index_count))
document.getElementById('fval_ext'+advft_column_index_count).value = values[1];
{rdelim} else {ldelim}
document.getElementById('fval'+advft_column_index_count).value = columnvalue;
{rdelim}
</script>
{/foreach}
{foreach key=COLUMN_INDEX item=COLUMN_CRITERIA from=$GROUP_COLUMNS}
<script type="text/javascript">
if(document.getElementById('fcon{$COLUMN_INDEX}')) document.getElementById('fcon{$COLUMN_INDEX}').value = '{$COLUMN_CRITERIA.column_condition}';
</script>
{/foreach}
{foreachelse}
<script type="text/javascript">
addNewConditionGroup('adv_filter_div');
</script>
{/foreach}
{foreach key=GROUP_ID item=GROUP_CRITERIA from=$CRITERIA_GROUPS}
<script type="text/javascript">
if(document.getElementById('gpcon{$GROUP_ID}')) document.getElementById('gpcon{$GROUP_ID}').value = '{$GROUP_CRITERIA.condition}';
</script>
{/foreach}
</div>
</td>
</tr>
</table>
@@ -16,31 +16,34 @@
<script language="JavaScript" type="text/javascript" src="include/calculator/calc.js"></script>
{$BLOCKJS_STD}
<table class="small" bgcolor="#ffffff" border="0" cellpadding="5" cellspacing="0" height='530' width="100%">
<tbody><tr valign='top'>
<td colspan="2">
<span class="genHeaderGray">{$MOD.LBL_FILTERS}</span><br>
{$MOD.LBL_SELECT_FILTERS_TO_STREAMLINE_REPORT_DATA}
<hr>
</td>
<tbody>
<tr valign='top'>
<td colspan="2">
<span class="genHeaderGray">{$MOD.LBL_SHARING_TYPE}</span><br>
{$MOD.LBL_SELECT_REPORT_TYPE_TO_CONTROL_ACCESS}
<hr>
</td>
</tr>
<tr><td colspan="2">
<table class="small" border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td colspan="2">
<table class="small" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr><td colspan="4">
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="small">
<tbody>
<tr>
<td nowrap="" align="center" id="mi" style="width: 100px;" colspan="2" class="detailedViewHeader"><!--onclick="fnLoadRepValues('mi','pi','mnuTab2','mnuTab')"-->
<b>{$MOD.LBL_SHARING}</b>
</td>
</tr>
</tbody>
</table>
</td>
<tr>
<td colspan="4">
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="small">
<tbody>
<tr>
<td nowrap="" align="center" id="mi" style="width: 100px;" colspan="2" class="detailedViewHeader"><!--onclick="fnLoadRepValues('mi','pi','mnuTab2','mnuTab')"-->
<b>{$MOD.LBL_SHARING}</b>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan=4>
<td colspan=4>
<table width="100%" cellspacing="0" cellpadding="0" class="small" height="190px">
<tr valign=top><td colspan="2">
<table width="100%" border="0" cellpadding="5" class="small" cellspacing="0" align="center">
@@ -14,6 +14,7 @@
<meta http-equiv="Content-Type" content="text/html; charset={$APP.LBL_CHARSET}">
<title>{$MOD.TITLE_VTIGERCRM_CREATE_REPORT}</title>
<link href="{$THEME_PATH}style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/javascript" src="include/js/json.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/general.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/{php} echo $_SESSION['authenticated_user_language'];{/php}.lang.js?{php} echo $_SESSION['vtiger_version'];{/php}"></script>
<script language="javascript" type="text/javascript" src="include/scriptaculous/prototype.js"></script>
@@ -25,6 +25,21 @@
<b><font color="red">*</font>{$CMOD.LBL_NOTE_DO_NOT_REMOVE_INFO}</b>
</td>
</tr>
<tr>
<td align="right" class="cellLabel small" width="40%"><b>{$MOD.LBL_STATUS} :</b></td>
<td align="left" class="cellText small" width="60%">
<select class="small" id="notify_status" name="notify_status">
{if $NOTIFY_DETAILS.status eq 1}
<option value="1" "selected">{$MOD.LBL_ACTIVE}</option>
<option value="0">{$MOD.LBL_INACTIVE}</option>
{else}
<option value="1">{$MOD.LBL_ACTIVE}</option>
<option value="0" "selected">{$MOD.LBL_INACTIVE}</option>
{/if}
</select>
</td>
</tr>
<tr>
<td align="right" class="cellLabel small"><b>{$MOD.LBL_SUBJECT} : </b></td>
<td align="left" class="cellText small"><input class="txtBox" id="notifysubject" name="notifysubject" value="{$NOTIFY_DETAILS.subject}" size="40" type="text"></td>
@@ -92,7 +92,12 @@
{/if}&nbsp;
</td>
</tr>
<tr>
<tr>
<td nowrap class="small cellLabel"><strong>{$MOD.LBL_FROM_EMAIL_FIELD}</strong></td>
<td class="small cellText">{$FROM_EMAIL_FIELD}&nbsp;</td>
</td>
</tr>
<tr>
<td nowrap class="small cellLabel"><strong>{$MOD.LBL_REQUIRES_AUTHENT}</strong></td>
<td class="small cellText">
{if $SMTP_AUTH eq 'checked'}
@@ -124,9 +129,15 @@
<td nowrap class="small cellLabel"><strong>{$MOD.LBL_PASWRD}</strong></td>
<td class="small cellText">
<input type="password" class="detailedViewTextBox small" value="{$PASSWORD}" name="server_password">
</td>
</tr>
<tr>
</td>
</tr>
<tr>
<td nowrap class="small cellLabel"><strong>{$MOD.LBL_FROM_EMAIL_FIELD}</strong></td>
<td class="small cellText">
<input type="text" class="detailedViewTextBox small" value="{$FROM_EMAIL_FIELD}" name="from_email_field"/>
</td>
</tr>
<tr>
<td nowrap class="small cellLabel"><strong>{$MOD.LBL_REQUIRES_AUTHENT}</strong></td>
<td class="small cellText">
<input type="checkbox" name="smtp_auth" {$SMTP_AUTH}/>
@@ -100,13 +100,15 @@ function fetchSaveNotify(id)
$("status").style.display="inline";
var subject = $("notifysubject").value;
var body = $("notifybody").value;
var status = $("notify_status").value;
new Ajax.Request(
'index.php',
{queue: {position: 'end', scope: 'command'},
method: 'post',
postBody: 'action=SettingsAjax&module=Settings&file=SaveInventoryNotification&notifysubject='+subject+'&notifybody='+body+'&record='+id,
postBody: 'action=SettingsAjax&module=Settings&file=SaveInventoryNotification&notifysubject='+subject+'&notifybody='+body+'&record='+id+'&status='+status,
onComplete: function(response) {
$("status").style.display="none";
$("notifycontents").innerHTML=response.responseText;
}
}
);
@@ -14,6 +14,7 @@
<td class="colHeader small" width="5%">#</td>
<td class="colHeader small" width="40%">{$CMOD.LBL_NOTIFICATION}</td>
<td class="colHeader small" width="50%">{$CMOD.LBL_DESCRIPTION}</td>
<td class="colHeader small" width="10%">{$CMOD.LBL_STATUS}</td>
<td class="colHeader small" width="5%">{$CMOD.Tools}</td>
</tr>
{foreach name=notifyfor item=elements from=$NOTIFICATION}
@@ -21,6 +22,11 @@
<td class="listTableRow small">{$smarty.foreach.notifyfor.iteration}</td>
<td class="listTableRow small">{$elements.notificationname}</td>
<td class="listTableRow small">{$elements.label}</td>
{if $elements.status eq 'Active'}
<td class="listTableRow small active">{$elements.status}</td>
{else}
<td class="listTableRow small inactive">{$elements.status}</td>
{/if}
<td class="listTableRow small" align="center" ><img onClick="fnvshobj(this,'editdiv');fetchEditNotify('{$elements.id}');" style="cursor:pointer;" src="{'editfield.gif'|@vtiger_imageurl:$THEME}" title="{$APP.LBL_EDIT}"></td>
</tr>
{/foreach}
@@ -47,8 +47,9 @@
<input type="hidden" name="return_action" value="ListView" style="margin:0px">
<input type="hidden" name="return_id" style="margin:0px">
<input type="hidden" name="forumDisplay" style="margin:0px">
<input type="hidden" name="hour_format" id="hour_format" value="{$HOUR_FORMAT}" style="margin:0px">
<input type="hidden" name="start_hour" id="start_hour" value="{$START_HOUR}" style="margin:0px">
<input type="hidden" name="hour_format" id="hour_format" value="{$HOUR_FORMAT}" style="margin:0px">
<input type="hidden" name="start_hour" id="start_hour" value="{$START_HOUR}" style="margin:0px">
<input type="hidden" name="form_token" value="{$FORM_TOKEN}">
{if $CATEGORY eq 'Settings'}
<input type="hidden" name="parenttab" value="{$PARENTTAB}" style="margin:0px">
{/if}
@@ -92,6 +92,7 @@ function check_duplicate()
<input type="hidden" name="weekstart" value="1">
<input type="hidden" name="hour_format" value="{$HOUR_FORMAT}">
<input type="hidden" name="start_hour" value="{$START_HOUR}">
<input type="hidden" name="form_token" value="{$FORM_TOKEN}">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="settingsSelUITopLine">
<tr><td align="left">
@@ -1,17 +1,14 @@
{*<!--
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
/*+*******************************************************************************
* 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.
*
********************************************************************************/
-->*}
<script language="JavaScript" type="text/javascript" src="include/js/ListView.js"></script>
<table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
<tr>
<td class="big"><strong>{$MOD.LBL_USERS_LIST}</strong></td>
@@ -21,7 +18,16 @@
<table border=0 cellspacing=0 cellpadding=5 width=100% class="listTableTopButtons">
<tr>
<td class=small align=right><input title="{$CMOD.LBL_NEW_USER_BUTTON_TITLE}" accessyKey="{$CMOD.LBL_NEW_USER_BUTTON_KEY}" type="submit" name="button" value="{$CMOD.LBL_NEW_USER_BUTTON_LABEL}" class="crmButton create small"></td>
<td class="small" nowrap align="left">
{$recordListRange}
</td>
<!-- Page Navigation -->
<td nowrap width="30%" align="center">
<table border=0 cellspacing=0 cellpadding=0 class="small">
<tr>{$NAVIGATION}</tr>
</table>
</td>
<td class=small width="30%" align="right"><input title="{$CMOD.LBL_NEW_USER_BUTTON_TITLE}" accessyKey="{$CMOD.LBL_NEW_USER_BUTTON_KEY}" type="submit" name="button" value="{$CMOD.LBL_NEW_USER_BUTTON_LABEL}" class="crmButton create small"></td>
</tr>
{if $ERROR_MSG neq ''}
@@ -44,7 +50,7 @@
{foreach name=userlist item=listvalues key=userid from=$LIST_ENTRIES}
{assign var=flag value=0}
<tr>
<td class="listTableRow small" valign=top>{$smarty.foreach.userlist.iteration}</td>
<td class="listTableRow small" valign=top>{math equation="x + y" x=$smarty.foreach.userlist.iteration y=$PAGE_START_RECORD}</td>
<td class="listTableRow small" nowrap valign=top><a href="index.php?action=EditView&return_action=ListView&return_module=Users&module=Users&parenttab=Settings&record={$userid}"><img src="{'editfield.gif'|@vtiger_imageurl:$THEME}" alt="{$APP.LBL_EDIT_BUTTON}" title="{$APP.LBL_EDIT_BUTTON}" border="0"></a>
{foreach item=name key=id from=$USERNODELETE}
{if $userid eq $id || $userid eq $CURRENT_USERID}
@@ -67,6 +73,21 @@
{/if}
</tr>
{foreachelse}
<tr>
<td colspan="7">
<table width="100%">
<tr>
<td rowspan="2" width="45%" align="right"><img src="{'empty.jpg'|@vtiger_imageurl:$THEME}" height="60" width="61"></td>
<td nowrap="nowrap" width="65%" align="left">
<span class="genHeaderSmall">
{$APP.LBL_NO} {$MOD.LBL_USERS} {$APP.LBL_FOUND} !
</span>
</td>
</tr>
</table>
</td>
</tr>
{/foreach}
</table>
<table border=0 cellspacing=0 cellpadding=5 width=100% >
@@ -195,7 +195,6 @@
<span id="reply_button_all"><input type="button" name="reply" value=" {$MOD.LBL_REPLY_ALL} " class="crmbutton small edit" /></span>&nbsp;
<span id="forward_button"><input type="button" name="forward" value=" {$MOD.LBL_FORWARD_BUTTON} " class="crmbutton small edit" /></span>&nbsp;
<span id="download_attach_button"><input type="button" name="download" value=" {$MOD.LBL_DOWNLOAD_ATTCH_BUTTON} " class="crmbutton small save" /></span>&nbsp;
<span id="print_email_button"><input type="button" name="print" value=" {$MOD.LBL_PRINT_EMAIL} "class="crmbutton small edit" /></span>
</td>
<td width="25%" align="right"><span id="delete_button"><input type="button" name="Button" value=" {$APP.LBL_DELETE_BUTTON} " class="crmbutton small delete" /></span>&nbsp;</td>
</tr>
@@ -20,7 +20,7 @@
{include file='SetMenu.tpl'}
<div id="view">
{include file='com_vtiger_workflow/ModuleTitle.tpl'}
<form name="new_task" id="new_task_form" onsubmit="VtigerJS_DialogBox.block();">
<form name="new_task" id="new_task_form" method="post" onsubmit="VtigerJS_DialogBox.block();">
<table class="tableHeading" width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
@@ -144,13 +144,17 @@
{if $workflow->executionConditionAsLabel() eq 'ON_FIRST_SAVE'}checked{/if}/></td>
<td>{$MOD.LBL_ONLY_ON_FIRST_SAVE}.</td></tr>
<tr><td><input type="radio" name="execution_condition" value="ONCE"
{if $workflow->executionConditionAsLabel() eq 'ONCE'}checked{/if} /></td>
<td>{$MOD.LBL_UNTIL_FIRST_TIME_CONDITION_TRUE}.</td></tr>
<tr><td><input type="radio" name="execution_condition" value="ON_EVERY_SAVE"
{if $workflow->executionConditionAsLabel() eq 'ONCE'}checked{/if} /></td>
<td>{$MOD.LBL_UNTIL_FIRST_TIME_CONDITION_TRUE}.</td></tr>
<tr><td><input type="radio" name="execution_condition" value="ON_EVERY_SAVE"
{if $workflow->executionConditionAsLabel() eq 'ON_EVERY_SAVE'}checked{/if}/></td>
<td>{$MOD.LBL_EVERYTIME_RECORD_SAVED}.</td></tr>
</table>
<tr><td><input type="radio" name="execution_condition" value="ON_MODIFY"
{if $workflow->executionConditionAsLabel() eq 'ON_MODIFY'}checked{/if}/></td>
<td>{$MOD.LBL_ON_MODIFY}.</td></tr>
<!-- Workflow Conditions -->
<table class="tableHeading" width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td class="big" nowrap="nowrap">
@@ -74,5 +74,109 @@ var eventType = '{$task->eventType}';
</select>
</td>
</tr>
<tr>
<td nowrap align=right width=20% valign=top>
<strong>{$MOD.LBL_REPEAT} </strong>
</td>
<td nowrap width=80% valign=top>
<table border=0 cellspacing=0 cellpadding=0>
<tr>
<td width=20><input type="checkbox" name="recurringcheck" onClick="showhide('repeatOptions')" {if $task->recurringcheck eq 'on'}checked{/if}></td>
<td>{$MOD.LBL_ENABLE_REPEAT}</td>
</tr>
<tr>
<td colspan=2>
<div id="repeatOptions" style="display:{if $task->recurringcheck neq 'on'}none{else}block{/if}">
<table border=0 cellspacing=0 cellpadding=2 bgcolor="#FFFFFF">
<tr>
<td>
{$MOD.LBL_REPEATEVENT}
</td>
<td><select name="repeat_frequency" class="small">
{section name="numdays" start=1 loop=15}
<option value="{$smarty.section.numdays.index}" {if $task->repeat_frequency eq $smarty.section.numdays.index}selected{/if}>{$smarty.section.numdays.index}</option>
{/section}
</select></td>
<td>
<select name="recurringtype" onChange="rptoptDisp(this)" class="small">
<option value="Daily" {if $task->recurringtype eq "Daily"}selected{/if}>{$MOD.LBL_DAYS}</option>
<option value="Weekly" {if $task->recurringtype eq "Weekly"}selected{/if}>{$MOD.LBL_WEEKS}</option>
<option value="Monthly" {if $task->recurringtype eq "Monthly"}selected{/if}>{$MOD.LBL_MONTHS}</option>
<option value="Yearly" {if $task->recurringtype eq "Yearly"}selected{/if}>{$MOD.LBL_YEAR}</option>
</select>
<!-- Limit for Repeating Event -->
<b>{$MOD.LBL_UNTIL}:</b> <input type="text" name="calendar_repeat_limit_date" id="calendar_repeat_limit_date" class="textbox" style="width:90px" value="{$task->calendar_repeat_limit_date|@getDisplayDate}"></td><td align="left"><img border=0 src="{$IMAGE_PATH}btnL3Calendar.gif" alt="{$MOD.LBL_SET_DATE}" title="{$MOD.LBL_SET_DATE}" id="jscal_trigger_calendar_repeat_limit_date">
<script type="text/javascript">
Calendar.setup ({ldelim}
inputField : "calendar_repeat_limit_date", ifFormat : "{$dateFormat}", showsTime : false, button : "jscal_trigger_calendar_repeat_limit_date", singleClick : true, step : 1
{rdelim})
</script>
<!-- END -->
</td>
</tr>
</table>
<div id="repeatWeekUI" style="display:{if $task->recurringtype neq "Weekly"}none{else}block{/if};">
<table border=0 cellspacing=0 cellpadding=2>
<tr>
<td><input name="sun_flag" value="sunday" type="checkbox" {if $task->sun_flag eq "sunday"}checked{/if}></td><td>{$MOD.LBL_SM_SUN}</td>
<td><input name="mon_flag" value="monday" type="checkbox" {if $task->mon_flag eq "monday"}checked{/if}></td><td>{$MOD.LBL_SM_MON}</td>
<td><input name="tue_flag" value="tuesday" type="checkbox" {if $task->tue_flag eq "tuesday"}checked{/if}></td><td>{$MOD.LBL_SM_TUE}</td>
<td><input name="wed_flag" value="wednesday" type="checkbox" {if $task->wed_flag eq "wednesday"}checked{/if}></td><td>{$MOD.LBL_SM_WED}</td>
<td><input name="thu_flag" value="thursday" type="checkbox" {if $task->thu_flag eq "thursday"}checked{/if}></td><td>{$MOD.LBL_SM_THU}</td>
<td><input name="fri_flag" value="friday" type="checkbox" {if $task->fri_flag eq "friday"}checked{/if}></td><td>{$MOD.LBL_SM_FRI}</td>
<td><input name="sat_flag" value="saturday" type="checkbox" {if $task->sat_flag eq "saturday"}checked{/if}></td><td>{$MOD.LBL_SM_SAT}</td>
</tr>
</table>
</div>
<div id="repeatMonthUI" style="display:{if $task->recurringtype neq "Monthly"}none{else}block{/if};">
<table border=0 cellspacing=0 cellpadding=2 bgcolor="#FFFFFF">
<tr>
<td>
<table border=0 cellspacing=0 cellpadding=2>
<tr>
<td><input type="radio" {if $task->repeatMonth eq "date"}checked{/if} name="repeatMonth" value="date"></td><td>{$MOD.on}</td><td><input type="text" class=textbox style="width:20px" value="{$task->repeatMonth_date}" name="repeatMonth_date" ></td><td>{$MOD.dayofthemonth}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border=0 cellspacing=0 cellpadding=2>
<tr>
<td>
<input type="radio" {if $task->repeatMonth eq "day"}checked{/if} name="repeatMonth" value="day"></td>
<td>{$MOD.on}</td>
<td>
<select name="repeatMonth_daytype">
<option value="first" {if $task->repeatMonth_daytype eq "first"}selected{/if}>{$MOD.First}</option>
<option value="last" {if $task->repeatMonth_daytype eq "last"}selected{/if}>{$MOD.Last}</option>
</select>
</td>
<td>
<select name="repeatMonth_day">
<option value=1 {if $task->repeatMonth_day eq 1}selected{/if}>{$MOD.LBL_DAY1}</option>
<option value=2 {if $task->repeatMonth_day eq 2}selected{/if}>{$MOD.LBL_DAY2}</option>
<option value=3 {if $task->repeatMonth_day eq 3}selected{/if}>{$MOD.LBL_DAY3}</option>
<option value=4 {if $task->repeatMonth_day eq 4}selected{/if}>{$MOD.LBL_DAY4}</option>
<option value=5 {if $task->repeatMonth_day eq 5}selected{/if}>{$MOD.LBL_DAY5}</option>
<option value=6 {if $task->repeatMonth_day eq 6}selected{/if}>{$MOD.LBL_DAY6}</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
@@ -11,6 +11,18 @@ var moduleName = '{$entityName}';
<span id="task-emailfields-busyicon"><b>{$MOD.LBL_LOADING}</b><img src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0"></span>
<select id="task-emailfields" class="small" style="display: none;"><option value=''>{$MOD.LBL_SELECT_OPTION_DOTDOTDOT}</option></select></td>
</tr>
<tr>
<td class='dvtCellLabel' align="right" width=15% nowrap="nowrap"><b> CC</b></td>
<td class='dvtCellInfo'><input type="text" name="emailcc" value="{$task->emailcc}" id="save_emailcc" class="form_input" style='width: 250px;'>
<span id="task-emailfieldscc-busyicon"><b>{$MOD.LBL_LOADING}</b><img src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0"></span>
<select id="task-emailfieldscc" class="small" style="display: none;"><option value=''>{$MOD.LBL_SELECT_OPTION_DOTDOTDOT}</option></select></td>
</tr>
<tr>
<td class='dvtCellLabel' align="right" width=15% nowrap="nowrap"><b> BCC</b></td>
<td class='dvtCellInfo'><input type="text" name="emailbcc" value="{$task->emailbcc}" id="save_emailbcc" class="form_input" style='width: 250px;'>
<span id="task-emailfieldsbcc-busyicon"><b>{$MOD.LBL_LOADING}</b><img src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0"></span>
<select id="task-emailfieldsbcc" class="small" style="display: none;"><option value=''>{$MOD.LBL_SELECT_OPTION_DOTDOTDOT}</option></select></td>
</tr>
<tr>
<td class='dvtCellLabel' align="right" width=15% nowrap="nowrap"><b><font color=red>*</font> Subject</b></td>
<td class='dvtCellInfo'><input type="text" name="subject" value="{$task->subject}" id="save_subject" class="form_input"></td>
@@ -23,13 +35,40 @@ var moduleName = '{$entityName}';
<span id="task-fieldnames-busyicon"><b>{$MOD.LBL_LOADING}</b><img src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0"></span>
<select id='task-fieldnames' class="small" style="display: none;"><option value=''>{$MOD.LBL_SELECT_OPTION_DOTDOTDOT}</option></select>
</td>
<td>&nbsp</td>
<td style='padding-top: 10px;'>
<b>{$MOD.LBL_SELECT}&nbsp</b>
</td>
<td style='padding-top: 10px;'>
<select class="small" id="task_timefields">
<option >Select date & time</option>
<option value="{$DATE}">Current Date</option>
<option value="{$TIME}">Current Time</option>
</select>
</td>
<td align="right" style='padding-top: 10px;'>
<span class="helpmessagebox" style="font-style: italic;">{$MOD.LBL_WORKFLOW_NOTE_CRON_CONFIG}</span>
</td>
</tr>
</table>
<table>
<tr>
<td>&nbsp</td>
</tr>
<tr>
<td><b>{$MOD.LBL_MESSAGE}:</b></td>
</tr>
</table>
<p>
<textarea name="content" rows="15" cols="40" id="save_content" class='detailedViewTextBox'>{$task->content}</textarea>
<script type="text/javascript" src="include/ckeditor/ckeditor.js"></script>
<p style="border:1px solid black;">
<textarea style="width:90%;height:200px;" name="content" rows="55" cols="40" id="save_content" class="detailedViewTextBox"> {$task->content} </textarea>
</p>
<script type="text/javascript" defer="1">
var textAreaName = 'save_content';
CKEDITOR.replace( textAreaName, {ldelim}
extraPlugins : 'uicolor',
uiColor: '#dfdff1'
{rdelim} ) ;
var oCKeditor = CKEDITOR.instances[textAreaName];
</script>
@@ -0,0 +1,12 @@
{*<!--
/*+*******************************************************************************
* 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.
*
*******************************************************************************/
-->*}
{include file="modules/SMSNotifier/VTSMSTask.tpl"}
@@ -0,0 +1,61 @@
{*<!--
/*********************************************************************************
** 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.
*
********************************************************************************/
-->*}
<br>
<br>
<table align="center" cellpadding="5" cellspacing="0" width="95%" class="mailClient importLeadUI small">
<tr>
<td height="50" valign="middle" align="left" class="mailClientBg genHeaderSmall">
{$MODULE|getTranslatedString:$MODULE}
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td style="padding-left:140px;">
{$MESSAGE}
<br><br><br> </td>
</tr>
<tr>
<td class="reportCreateBottom" >
<table width="100%" border="0" cellpadding="5" cellspacing="0" >
<tr>
<td align="right" width='50%' valign="top"><form enctype="multipart/form-data" name="Import" method="POST" action="index.php" onsubmit="VtigerJS_DialogBox.block();">
<input type="hidden" name="module" value="{$MODULENAME}">
<input type="hidden" name="action" id="import_action" value="">
<input type="hidden" name="step" value="1">
<input type="hidden" name="return_id" value="">
<input type="hidden" name="return_module" value="{$RETURN_MODULE}">
<input type="hidden" name="return_action" value="{$RETURN_ACTION}">
<input type="hidden" name="parenttab" id="parenttab" value="{$PARENTTAB}">
<input title="LBL_FINISHED'" accessKey="" class="crmbutton small save" type="submit" name="button" value=" {$MOD.LBL_FINISHED} " onclick="this.form.action.value=this.form.return_action.value;this.form.return_module.value=this.form.return_module.value;return true;">
</form></td>
<td align="left" width='50%'>
{if $UNDO neq 'yes'}
<form name="Import" method="POST" action="index.php">
<input type="hidden" name="module" value="{$MODULENAME}">
<input type="hidden" name="action" value="iCalImport">
<input type="hidden" name="step" value="undo">
<input type="hidden" name="return_module" value="{$RETURN_MODULE}">
<input type="hidden" name="return_id" value="{$RETURN_ID}">
<input type="hidden" name="return_action" value="{$RETURN_ACTION}">
<input type="hidden" name="parenttab" value="{$PARENTTAB}">
<input title="{$MOD.LBL_UNDO_LAST_IMPORT}" accessKey="" class="crmbutton small cancel" type="submit" name="button" value=" {$MOD.LBL_UNDO_LAST_IMPORT} ">
</form>
{/if}
</td>
</tr>
</table></td>
</tr>
</table>
@@ -87,6 +87,7 @@ ul.searchResult li a:hover {
</style>
<script type="text/javascript">
var moduleNameFields = '{$entityNameFields}';
var moduleEmailFields = '{$emailFields}';
</script>
</head>
@@ -126,7 +127,9 @@ Update your custom description ...</textarea>
</td>
<td class="dvtCellInfo" width="20%">
<span id="parentName" class="small bold">&nbsp;</span><br>
<input id="parent_id" value="" type="hidden" />
<input id="parent_id" value="" type="hidden" />
<input id="parentEmail" value="" type="hidden" />
<input id="userEmail" value="{$userEmail}" type="hidden" />
</td>
<td class="dvtCellInfo">
<input id="__searchaccount__" value="" size="30" />&nbsp;
@@ -7,7 +7,7 @@
<td width="5%">
<a class="link" href="javascript:history.back();"><img src="resources/images/iconza/royalblue/left_arrow_16x16.png" border="0"></a>
</td>
<td width="90%" align="left"><h1 class='page_title'>{$_MODULE->label}</h1></td>
<td width="90%" align="left"><h1 class='page_title'>{$_MODULE->label()}</h1></td>
<td width="5%" align="right" nowrap="nowrap">
<!-- a class="link" href="javascript:void(0);"><img src="resources/images/iconza/royalblue/edit_24x24.png" border="0"></a -->
<!-- a class="link" href="javascript:confirm('Delete Record');"><img src="resources/images/iconza/yellow/delete_24x24.png" border="0"></a -->
@@ -17,22 +17,27 @@
<td colspan="3">
<table width=100% cellpadding=5 cellspacing=0 border=0 class="table_detail">
{foreach item=_FIELDNAMES key=_BLOCKLABEL from=$_MODULE->fieldsGroup()}
{foreach item=_BLOCK key=_BLOCKLABEL from=$_RECORD->blocks()}
{if !$_RECORD->isBlockEmpty($_BLOCKLABEL)}
{assign var=_FIELDS value=$_BLOCK->fields()}
{if !empty($_FIELDS)}
<tr>
<td colspan=2 class="hdrlabel">{$_BLOCKLABEL}</td>
</tr>
{/if}
{foreach item=_FIELDNAME from=$_FIELDNAMES}
{assign var=_FIELDVALUE value=$_RECORD->fieldValue($_FIELDNAME)}
{if $_FIELDVALUE neq ''}
{foreach item=_FIELD from=$_FIELDS}
<tr>
<th class="label" nowrap="nowrap" width="10%" valign="top">{$_MODULE->fieldLabel($_FIELDNAME)}</th>
<td class="data">{$_FIELDVALUE}</td>
<th class="label" nowrap="nowrap" width="10%" valign="top">{$_FIELD->label()}</th>
<td class="data">
{if $_FIELD->isReferenceType()}
<a style="display:inline;" href="index.php?_operation=fetchRecordWithGrouping&record={$_FIELD->value()}">{$_FIELD->valueLabel()}</a>
{else}
{$_FIELD->valueLabel()}
{/if}
</td>
</tr>
{/if}
{/foreach}
{/foreach}
@@ -0,0 +1,31 @@
{include file="modules/Mobile/generic/Header.tpl"}
<body>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr>
<td>
<h1 class='page_title'>vtiger CRM</h1>
</td>
</tr>
<tr>
<td>
<form method="post" action="index.php?_operation=loginAndFetchModules">
<table width=100% cellpadding=5 cellspacing=0 border=0 class="panel_login">
<tr>
<td colspan="2">
<p class='error'>{$errormsg}</p>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
{include file="modules/Mobile/generic/Footer.tpl"}
@@ -7,13 +7,13 @@
<link href="resources/images/appicon.jpg" rel="apple-touch-icon" />
{php}if(Mobile::isSafari()) {{/php}
{if $IS_SAFARI}
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
{php}}{/php}
{/if}
<title>{if $TITLE}{$TITLE}{else}vtiger CRM Mobile{/if}</title>
<link rel="stylesheet" type="text/css" href="resources/skins/{php}echo Mobile_COre_Skin::selected(){/php}" />
<link rel="stylesheet" type="text/css" href="resources/skins/{$SKIN}" />
<script type="text/javascript" src="Mobile.js"></script>
</head>
@@ -6,7 +6,7 @@
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr class="toolbar">
<td align="left"><a class="link" href="index.php?action=Logout" target="_self"><img src="resources/images/iconza/yellow/logout_32x32.png" border="0"></a></td>
<td align="left"><a class="link" href="index.php?_operation=logout" target="_self"><img src="resources/images/iconza/yellow/logout_32x32.png" border="0"></a></td>
<td width="100%"><h1 class='page_title'>{$TITLE}</h1></td>
<td align="right"><a class="link" href="javascript:void(0);" xonclick="$fnT('__homebox__','__settingsbox__');" target="_self"><img src="resources/images/iconza/yellow/user_32x32.png" border="0"></a></td>
</tr>
@@ -17,10 +17,10 @@
{foreach item=_MODULE from=$_MODULES}
<tr>
<td width="100%">
<a href="index.php?action=List&module={$_MODULE->name}" target="_blank">{$_MODULE->label}</a>
<a href="index.php?_operation=listModuleRecords&module={$_MODULE->name()}" target="_blank">{$_MODULE->label()}</a>
</td>
<td>
<a href="index.php?action=List&module={$_MODULE->name}" target="_blank" class="link_rhook"><img src="resources/images/iconza/royalblue/right_arrow_16x16.png" border="0"></a>
<a href="index.php?_operation=listModuleRecords&module={$_MODULE->name()}" target="_blank" class="link_rhook"><img src="resources/images/iconza/royalblue/right_arrow_16x16.png" border="0"></a>
</td>
</tr>
@@ -9,16 +9,16 @@
<td width="100%">
<h1 class='page_title'>
{if $_PAGER->hasPrevious()}
<a class="link" href="?action=List&module={$_MODULE->name}&page={$_PAGER->previous()}&q={$_SEARCH_Q}"><img src="resources/images/iconza/yellow/left_arrow_24x24.png" border="0"></a>
{if $_PAGER && $_PAGER->hasPrevious()}
<a class="link" href="?_operation=listModuleRecords&module={$_MODULE->name()}&page={$_PAGER->previous()}&search={$_SEARCH}"><img src="resources/images/iconza/yellow/left_arrow_24x24.png" border="0"></a>
{else}
<a class="link" href="javascript:void(0);"><img src="resources/images/iconza/white/left_arrow_24x24.png" border="0"></a>
{/if}
{$_MODULE->label}
{$_MODULE->label()}
{if $_PAGER->hasNext(count($_RECORDS))}
<a class="link" href="?action=List&module={$_MODULE->name}&page={$_PAGER->next()}&q={$_SEARCH_Q}"><img src="resources/images/iconza/yellow/right_arrow_24x24.png" border="0"></a>
{if $_PAGER && $_PAGER->hasNext(count($_RECORDS))}
<a class="link" href="?_operation=listModuleRecords&module={$_MODULE->name()}&page={$_PAGER->next()}&search={$_SEARCH}"><img src="resources/images/iconza/yellow/right_arrow_24x24.png" border="0"></a>
{else}
<a class="link" href="javascript:void(0);"><img src="resources/images/iconza/white/right_arrow_24x24.png" border="0"></a>
{/if}
@@ -35,10 +35,10 @@
{foreach item=_RECORD from=$_RECORDS}
<tr>
<td width="100%">
<a href="?action=Detail&id={$_RECORD->id}" target="_self">{$_RECORD}</a>
<a href="?_operation=fetchRecordWithGrouping&record={$_RECORD->id()}" target="_self">{$_RECORD->label()}</a>
</td>
<td>
<a href="?action=Detail&id={$_RECORD->id}" target="_self" class="link_rhook"><img src="resources/images/iconza/royalblue/right_arrow_16x16.png" border="0"></a>
<a href="?_operation=fetchRecordWithGrouping&record={$_RECORD->id()}" target="_self" class="link_rhook"><img src="resources/images/iconza/royalblue/right_arrow_16x16.png" border="0"></a>
</td>
</tr>
@@ -68,10 +68,10 @@
<div id="__searchbox__" {if $_MODE neq 'search'}style='display:none;'{/if}>
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr class="toolbar">
<td><a class="link" href="?action=SearchConfig&module={$_MODULE->name}" target="_self"><img src="resources/images/iconza/yellow/wrench_32x32.png" border="0"></a></td>
<td><a class="link" href="?_operation=searchConfig&module={$_MODULE->name()}" target="_self"><img src="resources/images/iconza/yellow/wrench_32x32.png" border="0"></a></td>
<td width="100%">
<h1 class='page_title'>
Search {$_MODULE->label}
Search {$_MODULE->label()}
</h1>
</td>
<td align="right" style="padding-right: 5px;"><a class="link" href="javascript:void(0);" onclick="$fnT('__searchbox__','__listview__');"><img src="resources/images/iconza/yellow/zoom_out_32x32.png" border="0"></a></td>
@@ -80,10 +80,10 @@
<tr>
<td colspan=3 align="center">
<form action="index.php" method="GET" onsubmit="if(this.q.value == '') return false;">
<input type="hidden" name="action" value="List" />
<input type="hidden" name="module" value="{$_MODULE->name}" />
<input id='__searchbox__q_' type="text" name="q" class="searchbox" value="{$_SEARCH_Q}"/>
<form action="index.php" method="GET" onsubmit="if(this.search.value == '') return false;">
<input type="hidden" name="_operation" value="listModuleRecords" />
<input type="hidden" name="module" value="{$_MODULE->name()}" />
<input id='__searchbox__q_' type="text" name="search" class="searchbox" value="{$_SEARCH}"/>
</form>
</td>
@@ -11,7 +11,7 @@
<tr>
<td>
<form method="post" action="index.php?action=Login">
<form method="post" action="index.php?_operation=loginAndFetchModules">
<table width=100% cellpadding=5 cellspacing=0 border=0 class="panel_login">
<tr>
@@ -4,10 +4,10 @@
<table width=100% cellpadding=0 cellspacing=0 border=0>
<tr class="toolbar">
<td><a class="link" href="?action=List&module={$_MODULE->name}&mode=search"><img src="resources/images/iconza/royalblue/left_arrow_24x24.png" border="0"></a></td>
<td><a class="link" href="?_operation=listModuleRecords&module={$_MODULE->name()}"><img src="resources/images/iconza/royalblue/left_arrow_24x24.png" border="0"></a></td>
<td width="100%">
<h1 class='page_title'>
Search {$_MODULE->label}
Search {$_MODULE->label()}
</h1>
</td>
<td align="right" style="padding-right: 5px;"><button onclick="$('_searchconfig_form_').submit();">Save</button></td>
@@ -16,18 +16,20 @@
<tr>
<td colspan="3">
<form method="POST" action="?action=SearchConfig&mode=update&module={$_MODULE->name}" id="_searchconfig_form_">
<form method="POST" action="?_operation=searchConfig&mode=update&module={$_MODULE->name()}" id="_searchconfig_form_">
<table width=100% cellpadding=8 cellspacing=0 border=0 class="table_detail">
{foreach item=_FIELDNAMES key=_BLOCKLABEL from=$_MODULE->fieldsGroup()}
{foreach item=_BLOCK key=_BLOCKLABEL from=$_RECORD->blocks()}
<tr>
<td colspan=2 class="hdrlabel">{$_BLOCKLABEL}</td>
</tr>
{foreach item=_FIELDNAME from=$_FIELDNAMES}
{foreach item=_FIELD from=$_BLOCK->fields()}
{assign var="_FIELDNAME" value=$_FIELD->name()}
<tr>
<th align="right" class="label2" nowrap="nowrap" width="10%">{$_MODULE->fieldLabel($_FIELDNAME)}</th>
<th align="right" class="label2" nowrap="nowrap" width="10%">{$_FIELD->label()}</th>
<td width="100%">
<table cellpadding=0 cellspacing=0 border=0 class="table_checkbox">
@@ -40,7 +42,7 @@
{assign var=_checkbox_on_class value='on'}
{assign var=_checkbox_off_class value='off hide'}
{if in_array($_FIELDNAME, $_SEARCHIN) }
{if in_array($_FIELDNAME, $_SEARCHIN) || $_SEARCHIN_ALL }
{assign var=_checkbox_on_checked value='true'}
{assign var=_checkbox_off_checked value='false'}
@@ -49,11 +51,11 @@
{/if}
<div class='{$_checkbox_on_class}'>
<a href='javascript:void(0);' id='_checkbox_{$_FIELDNAME}_on' onclick="$fnCheckboxOn('_checkbox_{$_FIELDNAME}');$('include_{$_FIELDNAME}').checked=true;">ON</a>
<a href='javascript:void(0);' id='_checkbox_{$_FIELDNAME}_on' onclick="$('include_{$_FIELDNAME}').checked=true;$fnCheckboxOn('_checkbox_{$_FIELDNAME}');">ON</a>
</div>
<div class='{$_checkbox_off_class}'>
<a href='javascript:void(0);' id='_checkbox_{$_FIELDNAME}_off' onclick="$fnCheckboxOff('_checkbox_{$_FIELDNAME}');$('include_{$_FIELDNAME}').checked=false;">OFF</a>
<a href='javascript:void(0);' id='_checkbox_{$_FIELDNAME}_off' onclick="$('include_{$_FIELDNAME}').checked=false;$fnCheckboxOff('_checkbox_{$_FIELDNAME}');">OFF</a>
</div>
</td>
@@ -0,0 +1,60 @@
{*+**********************************************************************************
* 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.
************************************************************************************}
{if empty($smarty.request.ajax)}
<table class="small" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="4" class="dvInnerHeader">
<div style="float: left; font-weight: bold;">
<div style="float: left;">
<a href="javascript:showHideStatus('tbl{$UIKEY}','aid{$UIKEY}','$IMAGE_PATH');"><img id="aid{$UIKEY}" src="{'activate.gif'|@vtiger_imageurl:$THEME}" style="border: 0px solid rgb(0, 0, 0);" alt="Hide" title="Hide"></a>
</div><b>&nbsp;{$WIDGET_TITLE}</b></div>
<span style="float: right;">
<img src="themes/images/vtbusy.gif" border=0 id="indicator{$UIKEY}" style="display:none;">
{$APP.LBL_SHOW} <select class="small" onchange="ModCommentsCommon.reloadContentWithFiltering('{$WIDGET_NAME}', '{$ID}', this.value, 'tbl{$UIKEY}', 'indicator{$UIKEY}');">
<option value="All" {if $CRITERIA eq 'All'}selected{/if}>{$APP.LBL_ALL}</option>
<option value="Last5" {if $CRITERIA eq 'Last5'}selected{/if}>{$MOD.LBL_LAST5}</option>
<option value="Mine" {if $CRITERIA eq 'Mine'}selected{/if}>{$MOD.LBL_MINE}</option>
</select>
</span>
</td>
</tr>
</table>
{/if}
<div id="tbl{$UIKEY}">
<table class="small" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr style="height: 25px;">
<td colspan="4" align="left" class="dvtCellInfo" >
<div id="contentwrap_{$UIKEY}" style="overflow: auto; height: 250px; width: 100%;">
{foreach item=COMMENTMODEL from=$COMMENTS}
{include file="modules/ModComments/widgets/DetailViewBlockCommentItem.tpl" COMMENTMODEL=$COMMENTMODEL}
{/foreach}
</div>
</td>
</tr>
<tr style="height: 25px;">
<td class="dvtCellLabel" align="right">
{$MOD.LBL_ADD_COMMENT}
</td>
<td width="100%" colspan="3" class="dvtCellInfo" align="left" id="mouseArea_{$UIKEY}" onmouseover="hndMouseOver(19,'{$UIKEY}');" onmouseout="fnhide('crmspanid');">
<span id="dtlview_{$UIKEY}"></span>
<div id="editarea_{$UIKEY}" style="display:none;">
<textarea id="txtbox_{$UIKEY}" class="detailedViewTextBox" onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'" cols="90" rows="8"></textarea>
<br><input type="button" class="crmbutton small save" value="{$APP.LBL_SAVE_LABEL}" onclick="ModCommentsCommon.addComment('{$UIKEY}', '{$ID}');fnhide('crmspanid');"/> {$APP.LBL_OR}
<a href="javascript:;" onclick="hndCancel('dtlview_{$UIKEY}','editarea_{$UIKEY}','{$UIKEY}')" class="link">{$APP.LBL_CANCEL_BUTTON_LABEL}</a>
</div>
</td>
</tr>
</table>
</div>
@@ -0,0 +1,16 @@
{*+**********************************************************************************
* 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.
************************************************************************************}
<div class="dataField" style="width: 99%; padding-top: 10px;" valign="top">
{$COMMENTMODEL->content()|@nl2br}
</div>
<div class="dataLabel" style="border-bottom: 1px dotted rgb(204, 204, 204); width: 99%; padding-bottom: 5px;" valign="top">
<font color="darkred">
{$MOD.LBL_AUTHOR}: {$COMMENTMODEL->author()} {$MOD.LBL_ON} {$COMMENTMODEL->timestamp()}
</font>
</div>
@@ -96,8 +96,13 @@
<td width="20%" nowrap class="small cellLabel"><strong>{$MOD.ASTERISK_VERSION}</strong></td>
<td width="80%" class="small cellText">
<select name="asterisk_version" id="asterisk_version" title="{$MOD.ASTERISK_VERSION_TITLE}">
<option value="1.4">1.4</option>
<option value="1.6">1.6</option>
{if $ASTERISK_VERSION eq '1.4'}
<option value="1.4" selected>1.4</option>
<option value="1.6">1.6</option>
{elseif $ASTERISK_VERSION eq '1.6'}
<option value="1.6" selected>1.6</option>
<option value="1.4">1.4</option>
{/if}
</select>
</td>
</tr>
@@ -20,32 +20,20 @@
<tr>
<td rowspan=3 valign=top align=left width=250px;>
<b>{$MOD.LBL_EXISTING_PICKLIST_VALUES}</b>
<div id="add_availPickList" name="availList" style="overflow:auto; height: 150px;width:200px;border:1px solid #666666;font-family:Arial, Helvetica, sans-serif;font-size:11px;">
<table style="padding-left:5px" cellpadding="0" cellspacing="3" width="100%">
{foreach item=pick_val from=$PICKVAL}
<tr style="background-color: #ffffff;">
<td>
<span class="picklist_existing_options">{$pick_val}</span>
</td>
</tr>
{/foreach}
</table>
<div id="add_availPickList" name="availList" style="overflow:auto; height:150px;width:200px;border:1px solid #666666;font-family:Arial, Helvetica, sans-serif;font-size:11px;">
{foreach item=pick_val from=$PICKVAL}
<div class="picklist_existing_options" style="background-color: #ffffff;">{$pick_val}</div>
{/foreach}
</div>
<br>
{if is_array($NONEDITPICKLIST)}
<b>{$MOD.LBL_NON_EDITABLE_PICKLIST_ENTRIES} :</b>
<div id="nonedit_pl_values" name="availList" style="overflow:auto; height: 150px;width:200px;border:1px solid #666666;font-family:Arial, Helvetica, sans-serif;font-size:11px;">
<table style="padding-left:5px" cellspacing="3" cellpadding="0" width="100%">
{foreach item=nonedit from=$NONEDITPICKLIST}
<tr style="background-color: #ffffff;">
<td>
<span class="picklist_noneditable_options">
{$nonedit}
</span>
</td>
</tr>
{/foreach}
</table>
{foreach item=nonedit from=$NONEDITPICKLIST}
<div class="picklist_noneditable_options" style="background-color: #ffffff;">
{$nonedit}
</div>
{/foreach}
</div>
{/if}
</td>
@@ -15,7 +15,6 @@
<script language="JavaScript" type="text/javascript" src="include/js/picklist.js"></script>
<script language="JAVASCRIPT" src="include/scriptaculous/scriptaculous.js" type="text/javascript"></script>
<script language="JAVASCRIPT" src="modules/Home/Homestuff.js" type="text/javascript"></script>
<script language="JAVASCRIPT" src="include/js/json.js" type="text/javascript"></script>
<br>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
<tbody><tr>
@@ -0,0 +1,107 @@
{*<!--
/*********************************************************************************
** 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.
*
********************************************************************************/
-->*}
<script type='text/javascript' src='include/js/Mail.js'></script>
{if $SinglePane_View eq 'true'}
{assign var = return_modname value='DetailView'}
{else}
{assign var = return_modname value='CallRelatedList'}
{/if}
{foreach key=header item=detail from=$RELATEDLISTS}
{assign var=rel_mod value=$header}
{assign var="HEADERLABEL" value=$header|@getTranslatedString:$rel_mod}
<table border=0 cellspacing=0 cellpadding=0 width=100% class="small" style="border-bottom:1px solid #999999;padding:5px;">
<tr>
<td valign=bottom><b>{$HEADERLABEL}</b>
{if $MODULE eq 'Campaigns' && ($rel_mod eq 'Contacts' || $rel_mod eq 'Leads')}
<br><br>{$APP.LBL_SELECT_BUTTON_LABEL}: <a href="javascript:;" onclick="clear_checked_all('{$rel_mod}');">{$APP.LBL_NONE_NO_LINE}</a>
{/if}
</td>
{if $detail ne ''}
<td align=center>{$detail.navigation.0}</td>
{$detail.navigation.1}
{/if}
<td align=right>
{$detail.CUSTOM_BUTTON}
</td>
{if $header eq 'Contacts' && $MODULE neq 'Campaigns' && $MODULE neq 'Accounts' && $MODULE neq 'Potentials' && $MODULE neq 'Products' && $MODULE neq 'Vendors'}
{if $MODULE eq 'Calendar'}
<input alt="{$APP.LBL_SELECT_CONTACT_BUTTON_LABEL}" title="{$APP.LBL_SELECT_CONTACT_BUTTON_LABEL}" accessKey="" class="crmbutton small edit" value="{$APP.LBL_SELECT_BUTTON_LABEL} {$APP.Contacts}" LANGUAGE=javascript onclick='return window.open("index.php?module=Contacts&return_module={$MODULE}&action=Popup&popuptype=detailview&select=enable&form=EditView&form_submit=false&recordid={$ID}{$search_string}","test","width=640,height=602,resizable=0,scrollbars=0");' type="button" name="button"></td>
{elseif $MODULE neq 'Services'}
<input title="{$APP.LBL_ADD_NEW} {$APP.Contact}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView';this.form.module.value='Contacts'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Contact}"></td>
{/if}
{elseif $header eq 'Users'}
{if $MODULE eq 'Calendar'}
<input title="Change" accessKey="" tabindex="2" type="button" class="crmbutton small edit" value="{$APP.LBL_SELECT_USER_BUTTON_LABEL}" name="button" LANGUAGE=javascript onclick='return window.open("index.php?module=Users&return_module=Calendar&return_action={$return_modname}&activity_mode=Events&action=Popup&popuptype=detailview&form=EditView&form_submit=true&select=enable&return_id={$ID}&recordid={$ID}","test","width=640,height=525,resizable=0,scrollbars=0")';>
{/if}
{elseif $header eq 'Activity History'}
&nbsp;</td>
{/if}
</tr>
</table>
{assign var=check_status value=$detail}
{if $detail ne '' && $detail.header neq ''}
{foreach key=header item=detail from=$detail}
{if $header eq 'header'}
<table border=0 cellspacing=1 cellpadding=3 width=100% style="background-color:#eaeaea;" class="small">
<tr style="height:25px" bgcolor=white>
{if $MODULE eq 'Campaigns' && ($rel_mod eq 'Contacts' || $rel_mod eq 'Leads')}
<td class="lvtCol"><input name ="{$rel_mod}_selectall" onclick="rel_toggleSelect(this.checked,'{$rel_mod}_selected_id','{$rel_mod}');" type="checkbox"></td>
{/if}
{foreach key=header item=headerfields from=$detail}
<td class="lvtCol">{$headerfields}</td>
{/foreach}
</tr>
{elseif $header eq 'entries'}
{foreach key=header item=detail from=$detail}
<tr bgcolor=white>
{if $MODULE eq 'Campaigns' && ($rel_mod eq 'Contacts' || $rel_mod eq 'Leads')}
<td><input name="{$rel_mod}_selected_id" id="{$header}" value="{$header}" onclick="rel_check_object(this,'{$rel_mod}');" toggleselectall(this.name,="" selectall="" )="" type="checkbox" {$check_status.checked.$header}></td>
{/if}
{foreach key=header item=listfields from=$detail}
{* vtlib customization: Trigger events on listview cell *}
<td onmouseover="vtlib_listview.trigger('cell.onmouseover', $(this))" onmouseout="vtlib_listview.trigger('cell.onmouseout', $(this))">{$listfields}</td>
{* END *}
{/foreach}
</tr>
{/foreach}
</table>
{/if}
{/foreach}
{else}
<table style="background-color:#eaeaea;color:#000000" border="0" cellpadding="3" cellspacing="1" width="100%" class="small">
<tr style="height: 25px;" bgcolor="white">
<td><i>{$APP.LBL_NONE_INCLUDED}</i></td>
</tr>
</table>
{/if}
<br><br>
{ if $MODULE eq 'Campaigns' && ($rel_mod eq 'Contacts' || $rel_mod eq 'Leads')}
<script>
rel_default_togglestate('{$rel_mod}');
</script>
{/if}
{/foreach}
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr>
<td>
<a href="{$FULL_GANTT_CHART_IMAGE_URL}" border='0' target='_new'><img src="{$THUMB_GANTT_CHART_IMAGE_URL}" border='0'></a>
</td>
</tr>
</table>
@@ -40,7 +40,7 @@
<td class="showPanelBg" valign="top" width=100% style="padding:10px;">
<form name="basicSearch" action="index.php" onsubmit="return false;">
<div id="searchAcc" style="z-index:1;display:none;position:relative;">
<div id="searchAcc" style="display: block;position:relative;">
<table width="80%" cellpadding="5" cellspacing="0" class="searchUIBasic small" align="center" border=0>
<tr>
<td class="searchUIName small" nowrap align="left">
@@ -17,6 +17,7 @@
<tr>
<!-- Buttons -->
<td style="padding-right:20px" nowrap>
<input type="hidden" id="search_url" value="{$SEARCH_URL}">
<input type="hidden" name="idlist" id="idlist">
<input type="hidden" id="allselectedboxes" name="allselectedboxes">
<input type="hidden" name="selected_module" id="selected_module" value="{$SELECTED_MODULE}">
@@ -0,0 +1,776 @@
{*<!--
/*********************************************************************************
** 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.
*
********************************************************************************/
-->*}
<link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-win2k-cold-1.css">
<script type="text/javascript" src="jscalendar/calendar.js"></script>
<script type="text/javascript" src="jscalendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="jscalendar/calendar-setup.js"></script>
<script type="text/javascript" src="include/js/reflection.js"></script>
<script src="include/scriptaculous/scriptaculous.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript" src="include/js/dtlviewajax.js"></script>
<span id="crmspanid" style="display:none;position:absolute;" onmouseover="show('crmspanid');">
<a class="link" align="right" href="javascript:;">{$APP.LBL_EDIT_BUTTON}</a>
</span>
<div id="convertleaddiv" style="display:block;position:absolute;left:225px;top:150px;"></div>
<script>
{literal}
var gVTModule = '{$smarty.request.module|@vtlib_purify}';
function callConvertLeadDiv(id)
{
new Ajax.Request(
'index.php',
{queue: {position: 'end', scope: 'command'},
method: 'post',
postBody: 'module=Leads&action=LeadsAjax&file=ConvertLead&record='+id,
onComplete: function(response) {
$("convertleaddiv").innerHTML=response.responseText;
eval($("conv_leadcal").innerHTML);
}
}
);
}
function showHideStatus(sId,anchorImgId,sImagePath)
{
oObj = eval(document.getElementById(sId));
if(oObj.style.display == 'block')
{
oObj.style.display = 'none';
eval(document.getElementById(anchorImgId)).src = 'themes/images/inactivate.gif';
eval(document.getElementById(anchorImgId)).alt = 'Display';
eval(document.getElementById(anchorImgId)).title = 'Display';
}
else
{
oObj.style.display = 'block';
eval(document.getElementById(anchorImgId)).src = 'themes/images/activate.gif';
eval(document.getElementById(anchorImgId)).alt = 'Hide';
eval(document.getElementById(anchorImgId)).title = 'Hide';
}
}
<!-- End Of Code modified by SAKTI on 10th Apr, 2008 -->
<!-- Start of code added by SAKTI on 16th Jun, 2008 -->
function setCoOrdinate(elemId){
oBtnObj = document.getElementById(elemId);
var tagName = document.getElementById('lstRecordLayout');
leftpos = 0;
toppos = 0;
aTag = oBtnObj;
do{
leftpos += aTag.offsetLeft;
toppos += aTag.offsetTop;
} while(aTag = aTag.offsetParent);
tagName.style.top= toppos + 20 + 'px';
tagName.style.left= leftpos - 276 + 'px';
}
function getListOfRecords(obj, sModule, iId,sParentTab)
{
new Ajax.Request(
'index.php',
{queue: {position: 'end', scope: 'command'},
method: 'post',
postBody: 'module=Users&action=getListOfRecords&ajax=true&CurModule='+sModule+'&CurRecordId='+iId+'&CurParentTab='+sParentTab,
onComplete: function(response) {
sResponse = response.responseText;
$("lstRecordLayout").innerHTML = sResponse;
Lay = 'lstRecordLayout';
var tagName = document.getElementById(Lay);
var leftSide = findPosX(obj);
var topSide = findPosY(obj);
var maxW = tagName.style.width;
var widthM = maxW.substring(0,maxW.length-2);
var getVal = parseInt(leftSide) + parseInt(widthM);
if(getVal > document.body.clientWidth ){
leftSide = parseInt(leftSide) - parseInt(widthM);
tagName.style.left = leftSide + 230 + 'px';
tagName.style.top = topSide + 20 + 'px';
}else{
tagName.style.left = leftSide + 230 + 'px';
}
setCoOrdinate(obj.id);
tagName.style.display = 'block';
tagName.style.visibility = "visible";
}
}
);
}
{/literal}
function tagvalidate()
{ldelim}
if(trim(document.getElementById('txtbox_tagfields').value) != '')
SaveTag('txtbox_tagfields','{$ID}','{$MODULE}');
else
{ldelim}
alert("{$APP.PLEASE_ENTER_TAG}");
return false;
{rdelim}
{rdelim}
function DeleteTag(id,recordid)
{ldelim}
$("vtbusy_info").style.display="inline";
Effect.Fade('tag_'+id);
new Ajax.Request(
'index.php',
{ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
method: 'post',
postBody: "file=TagCloud&module={$MODULE}&action={$MODULE}Ajax&ajxaction=DELETETAG&recordid="+recordid+"&tagid=" +id,
onComplete: function(response) {ldelim}
getTagCloud();
$("vtbusy_info").style.display="none";
{rdelim}
{rdelim}
);
{rdelim}
//Added to send a file, in Documents module, as an attachment in an email
function sendfile_email()
{ldelim}
filename = $('dldfilename').value;
document.DetailView.submit();
OpenCompose(filename,'Documents');
{rdelim}
</script>
<div id="lstRecordLayout" class="layerPopup" style="display:none;width:325px;height:300px;"></div>
{if $MODULE eq 'Accounts' || $MODULE eq 'Contacts' || $MODULE eq 'Leads'}
{if $MODULE eq 'Accounts'}
{assign var=address1 value='$MOD.LBL_BILLING_ADDRESS'}
{assign var=address2 value='$MOD.LBL_SHIPPING_ADDRESS'}
{/if}
{if $MODULE eq 'Contacts'}
{assign var=address1 value='$MOD.LBL_PRIMARY_ADDRESS'}
{assign var=address2 value='$MOD.LBL_ALTERNATE_ADDRESS'}
{/if}
<div id="locateMap" onMouseOut="fninvsh('locateMap')" onMouseOver="fnvshNrm('locateMap')">
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
{if $MODULE eq 'Accounts'}
<a href="javascript:;" onClick="fninvsh('locateMap'); searchMapLocation( 'Main' );" class="calMnu">{$MOD.LBL_BILLING_ADDRESS}</a>
<a href="javascript:;" onClick="fninvsh('locateMap'); searchMapLocation( 'Other' );" class="calMnu">{$MOD.LBL_SHIPPING_ADDRESS}</a>
{/if}
{if $MODULE eq 'Contacts'}
<a href="javascript:;" onClick="fninvsh('locateMap'); searchMapLocation( 'Main' );" class="calMnu">{$MOD.LBL_PRIMARY_ADDRESS}</a>
<a href="javascript:;" onClick="fninvsh('locateMap'); searchMapLocation( 'Other' );" class="calMnu">{$MOD.LBL_ALTERNATE_ADDRESS}</a>
{/if}
</td>
</tr>
</table>
</div>
{/if}
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td>
{include file='Buttons_List1.tpl'}
<!-- Contents -->
<table border=0 cellspacing=0 cellpadding=0 width=98% align=center>
<tr>
<td valign=top><img src="{'showPanelTopLeft.gif'|@vtiger_imageurl:$THEME}"></td>
<td class="showPanelBg" valign=top width=100%>
<!-- PUBLIC CONTENTS STARTS-->
<div class="small" style="padding:10px" >
<table align="center" border="0" cellpadding="0" cellspacing="0" width="95%">
<tr><td>
{* Module Record numbering, used MOD_SEQ_ID instead of ID *}
{assign var="USE_ID_VALUE" value=$MOD_SEQ_ID}
{if $USE_ID_VALUE eq ''} {assign var="USE_ID_VALUE" value=$ID} {/if}
<span class="dvHeaderText">[ {$USE_ID_VALUE} ] {$NAME} - {$SINGLE_MOD|@getTranslatedString:$MODULE} {$APP.LBL_INFORMATION}</span>&nbsp;&nbsp;&nbsp;<span class="small">{$UPDATEINFO}</span>&nbsp;<span id="vtbusy_info" style="display:none;" valign="bottom"><img src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0"></span><span id="vtbusy_info" style="visibility:hidden;" valign="bottom"><img src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0"></span>
</td></tr>
</table>
<br>
<!-- Account details tabs -->
<table border=0 cellspacing=0 cellpadding=0 width=95% align=center>
<tr>
<td>
<table border=0 cellspacing=0 cellpadding=3 width=100% class="small">
<tr>
<td class="dvtTabCache" style="width:10px" nowrap>&nbsp;</td>
<td class="dvtSelectedCell" align=center nowrap>{$SINGLE_MOD|@getTranslatedString:$MODULE} {$APP.LBL_INFORMATION}</td>
<td class="dvtTabCache" style="width:10px">&nbsp;</td>
{if $SinglePane_View eq 'false' && $IS_REL_LIST|@count > 0}
<td class="dvtUnSelectedCell" onmouseout="fnHideDrop('More_Information_Modules_List');" onmouseover="fnDropDown(this,'More_Information_Modules_List');" align="center" nowrap>
<a href="index.php?action=CallRelatedList&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}">{$APP.LBL_MORE} {$APP.LBL_INFORMATION}</a>
<div onmouseover="fnShowDrop('More_Information_Modules_List')" onmouseout="fnHideDrop('More_Information_Modules_List')"
id="More_Information_Modules_List" class="drop_mnu" style="left: 502px; top: 76px; display: none;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
{foreach key=_RELATION_ID item=_RELATED_MODULE from=$IS_REL_LIST}
<tr><td><a class="drop_down" href="index.php?action=CallRelatedList&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}&selected_header={$_RELATED_MODULE}&relation_id={$_RELATION_ID}">{$_RELATED_MODULE|@getTranslatedString:$MODULE}</a></td></tr>
{/foreach}
</table>
</div>
</td>
{/if}
<td class="dvtTabCache" align="right" style="width:100%">
{if $EDIT_DUPLICATE eq 'permitted'}
<input title="{$APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{$APP.LBL_EDIT_BUTTON_KEY}" class="crmbutton small edit" onclick="DetailView.return_module.value='{$MODULE}'; DetailView.return_action.value='DetailView'; DetailView.return_id.value='{$ID}';DetailView.module.value='{$MODULE}';submitFormForAction('DetailView','EditView');" type="button" name="Edit" value="&nbsp;{$APP.LBL_EDIT_BUTTON_LABEL}&nbsp;">&nbsp;
{/if}
{if $EDIT_DUPLICATE eq 'permitted' && $MODULE neq 'Documents'}
<input title="{$APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{$APP.LBL_DUPLICATE_BUTTON_KEY}" class="crmbutton small create" onclick="DetailView.return_module.value='{$MODULE}'; DetailView.return_action.value='DetailView'; DetailView.isDuplicate.value='true';DetailView.module.value='{$MODULE}'; submitFormForAction('DetailView','EditView');" type="button" name="Duplicate" value="{$APP.LBL_DUPLICATE_BUTTON_LABEL}">&nbsp;
{/if}
{if $DELETE eq 'permitted'}
<input title="{$APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{$APP.LBL_DELETE_BUTTON_KEY}" class="crmbutton small delete" onclick="DetailView.return_module.value='{$MODULE}'; DetailView.return_action.value='index'; {if $MODULE eq 'Accounts'} var confirmMsg = '{$APP.NTC_ACCOUNT_DELETE_CONFIRMATION}' {else} var confirmMsg = '{$APP.NTC_DELETE_CONFIRMATION}' {/if}; submitFormForActionWithConfirmation('DetailView', 'Delete', confirmMsg);" type="button" name="Delete" value="{$APP.LBL_DELETE_BUTTON_LABEL}">&nbsp;
{/if}
{if $privrecord neq ''}
<img align="absmiddle" title="{$APP.LNK_LIST_PREVIOUS}" accessKey="{$APP.LNK_LIST_PREVIOUS}" onclick="location.href='index.php?module={$MODULE}&viewtype={$VIEWTYPE}&action=DetailView&record={$privrecord}&parenttab={$CATEGORY}&start={$privrecordstart}'" name="privrecord" value="{$APP.LNK_LIST_PREVIOUS}" src="{'rec_prev.gif'|@vtiger_imageurl:$THEME}">&nbsp;
{else}
<img align="absmiddle" title="{$APP.LNK_LIST_PREVIOUS}" src="{'rec_prev_disabled.gif'|@vtiger_imageurl:$THEME}">
{/if}
{if $privrecord neq '' || $nextrecord neq ''}
<img align="absmiddle" title="{$APP.LBL_JUMP_BTN}" accessKey="{$APP.LBL_JUMP_BTN}" onclick="var obj = this;var lhref = getListOfRecords(obj, '{$MODULE}',{$ID},'{$CATEGORY}');" name="jumpBtnIdTop" id="jumpBtnIdTop" src="{'rec_jump.gif'|@vtiger_imageurl:$THEME}">&nbsp;
{/if}
{if $nextrecord neq ''}
<img align="absmiddle" title="{$APP.LNK_LIST_NEXT}" accessKey="{$APP.LNK_LIST_NEXT}" onclick="location.href='index.php?module={$MODULE}&viewtype={$VIEWTYPE}&action=DetailView&record={$nextrecord}&parenttab={$CATEGORY}&start={$nextrecordstart}'" name="nextrecord" src="{'rec_next.gif'|@vtiger_imageurl:$THEME}">&nbsp;
{else}
<img align="absmiddle" title="{$APP.LNK_LIST_NEXT}" src="{'rec_next_disabled.gif'|@vtiger_imageurl:$THEME}">&nbsp;
{/if}
</td>
</tr>
</table>
</td>
</tr>
<tr valign=top>
<td valign=top align=left >
<table border=0 cellspacing=0 cellpadding=3 width=100% class="dvtContentSpace" style="border-bottom:0;">
<tr valign=top>
<td align=left>
<!-- content cache -->
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr valign=top>
<td style="padding:5px">
<!-- Command Buttons -->
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<!-- NOTE: We should avoid form-inside-form condition, which could happen when
Singlepane view is enabled. -->
<form action="index.php" method="post" name="DetailView" id="form">
{include file='DetailViewHidden.tpl'}
<!-- Start of File Include by SAKTI on 10th Apr, 2008 -->
{include_php file="./include/DetailViewBlockStatus.php"}
<!-- Start of File Include by SAKTI on 10th Apr, 2008 -->
{foreach key=header item=detail from=$BLOCKS}
<!-- Detailed View Code starts here-->
<table border=0 cellspacing=0 cellpadding=0 width=100% class="small">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td align=right>
{if $header eq $MOD.LBL_ADDRESS_INFORMATION && ($MODULE eq 'Accounts' || $MODULE eq 'Contacts' || $MODULE eq 'Leads') }
{if $MODULE eq 'Leads'}
<input name="mapbutton" value="{$APP.LBL_LOCATE_MAP}" class="crmbutton small create" type="button" onClick="searchMapLocation( 'Main' )" title="{$APP.LBL_LOCATE_MAP}">
{else}
<input name="mapbutton" value="{$APP.LBL_LOCATE_MAP}" class="crmbutton small create" type="button" onClick="fnvshobj(this,'locateMap');" onMouseOut="fninvsh('locateMap');" title="{$APP.LBL_LOCATE_MAP}">
{/if}
{/if}
</td>
</tr>
<!-- This is added to display the existing comments -->
{if $header eq $MOD.LBL_COMMENTS || $header eq $MOD.LBL_COMMENT_INFORMATION}
<tr>
<td colspan=4 class="dvInnerHeader">
<b>{$MOD.LBL_COMMENT_INFORMATION}</b>
</td>
</tr>
<tr>
<td colspan=4 class="dvtCellInfo">{$COMMENT_BLOCK}</td>
</tr>
<tr><td>&nbsp;</td></tr>
{/if}
{if $header neq 'Comments'}
<tr>{strip}
<td colspan=4 class="dvInnerHeader">
<div style="float:left;font-weight:bold;"><div style="float:left;"><a href="javascript:showHideStatus('tbl{$header|replace:' ':''}','aid{$header|replace:' ':''}','{$IMAGE_PATH}');">
{if $BLOCKINITIALSTATUS[$header] eq 1}
<img id="aid{$header|replace:' ':''}" src="{'activate.gif'|@vtiger_imageurl:$THEME}" style="border: 0px solid #000000;" alt="Hide" title="Hide"/>
{else}
<img id="aid{$header|replace:' ':''}" src="{'inactivate.gif'|@vtiger_imageurl:$THEME}" style="border: 0px solid #000000;" alt="Display" title="Display"/>
{/if}
</a></div><b>&nbsp;
{$header}
</b></div>
</td>{/strip}
</tr>
{/if}
</table>
{if $header neq 'Comments'}
{if $BLOCKINITIALSTATUS[$header] eq 1}
<div style="width:auto;display:block;" id="tbl{$header|replace:' ':''}" >
{else}
<div style="width:auto;display:none;" id="tbl{$header|replace:' ':''}" >
{/if}
<table border=0 cellspacing=0 cellpadding=0 width="100%" class="small">
{foreach item=detail from=$detail}
<tr style="height:25px">
{foreach key=label item=data from=$detail}
{assign var=keyid value=$data.ui}
{assign var=keyval value=$data.value}
{assign var=keytblname value=$data.tablename}
{assign var=keyfldname value=$data.fldname}
{assign var=keyfldid value=$data.fldid}
{assign var=keyoptions value=$data.options}
{assign var=keysecid value=$data.secid}
{assign var=keyseclink value=$data.link}
{assign var=keycursymb value=$data.cursymb}
{assign var=keysalut value=$data.salut}
{assign var=keyaccess value=$data.notaccess}
{assign var=keycntimage value=$data.cntimage}
{assign var=keyadmin value=$data.isadmin}
{assign var=display_type value=$data.displaytype}
{if $label ne ''}
{if $keycntimage ne ''}
<td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input>{$keycntimage}</td>
{elseif $keyid eq '71' || $keyid eq '72'}<!-- Currency symbol -->
<td class="dvtCellLabel" align=right width=25%>{$label}<input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input> ({$keycursymb})</td>
{else}
<td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input>{$label}</td>
{/if}
{if $EDIT_PERMISSION eq 'yes' && $display_type neq '2'}
{* Performance Optimization Control *}
{if !empty($DETAILVIEW_AJAX_EDIT) }
{include file="DetailViewUI.tpl"}
{else}
{include file="DetailViewFields.tpl"}
{/if}
{* END *}
{else}
{include file="DetailViewFields.tpl"}
{/if}
{/if}
{/foreach}
</tr>
{/foreach}
</table>
</div>
{/if}
</td>
</tr>
<tr><td style="padding:5px">
{/foreach}
{*-- End of Blocks--*}
{* vtlib Customization: Embed DetailViewWidget block:// type if any *}
{if $CUSTOM_LINKS && !empty($CUSTOM_LINKS.DETAILVIEWWIDGET)}
{foreach item=CUSTOM_LINK_DETAILVIEWWIDGET from=$CUSTOM_LINKS.DETAILVIEWWIDGET}
{if preg_match("/^block:\/\/.*/", $CUSTOM_LINK_DETAILVIEWWIDGET->linkurl)}
<tr>
<td style="padding:5px;" >
{php}
echo vtlib_process_widget($this->_tpl_vars['CUSTOM_LINK_DETAILVIEWWIDGET'], $this->_tpl_vars);
{/php}
</td>
</tr>
{/if}
{/foreach}
{/if}
{* END *}
</td>
</tr>
<!-- Inventory - Product Details informations -->
<tr>
{$ASSOCIATED_PRODUCTS}
</tr>
</form>
<!-- End the form related to detail view -->
{if $SinglePane_View eq 'true' && $IS_REL_LIST eq 'true'}
{include file= 'RelatedListNew.tpl'}
{/if}
</table>
</td>
<td width=22% valign=top style="border-left:1px dashed #cccccc;padding:13px">
<!-- right side relevant info -->
<!-- Action links for Event & Todo START-by Minnie -->
{if $MODULE eq 'Potentials' || $MODULE eq 'HelpDesk' || $MODULE eq 'Contacts' || $MODULE eq 'Accounts' || $MODULE eq 'Leads' || ($MODULE eq 'Documents' && ($ADMIN eq 'yes' || $FILE_STATUS eq '1') && $FILE_EXIST eq 'yes')}
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr><td>&nbsp;</td></tr>
{if $MODULE eq 'HelpDesk'}
{if $CONVERTASFAQ eq 'permitted'}
<tr><td align="left" class="genHeaderSmall">{$APP.LBL_ACTIONS}</td></tr>
<tr>
<td align="left" style="padding-left:10px;">
<a class="webMnu" href="index.php?return_module={$MODULE}&return_action=DetailView&record={$ID}&return_id={$ID}&module={$MODULE}&action=ConvertAsFAQ"><img src="{'convert.gif'|@vtiger_imageurl:$THEME}" hspace="5" align="absmiddle" border="0"/></a>
<a class="webMnu" href="index.php?return_module={$MODULE}&return_action=DetailView&record={$ID}&return_id={$ID}&module={$MODULE}&action=ConvertAsFAQ">{$MOD.LBL_CONVERT_AS_FAQ_BUTTON_LABEL}</a>
</td>
</tr>
{/if}
{elseif $MODULE eq 'Potentials'}
{if $CONVERTINVOICE eq 'permitted'}
<tr><td align="left" class="genHeaderSmall">{$APP.LBL_ACTIONS}</td></tr>
<tr>
<td align="left" style="padding-left:10px;">
<a class="webMnu" href="index.php?return_module={$MODULE}&return_action=DetailView&return_id={$ID}&convertmode={$CONVERTMODE}&module=Invoice&action=EditView&account_id={$ACCOUNTID}"><img src="{'actionGenerateInvoice.gif'|@vtiger_imageurl:$THEME}" hspace="5" align="absmiddle" border="0"/></a>
<a class="webMnu" href="index.php?return_module={$MODULE}&return_action=DetailView&return_id={$ID}&convertmode={$CONVERTMODE}&module=Invoice&action=EditView&account_id={$ACCOUNTID}">{$APP.LBL_CREATE} {$APP.Invoice}</a>
</td>
</tr>
{/if}
{elseif $TODO_PERMISSION eq 'true' || $EVENT_PERMISSION eq 'true' || $CONTACT_PERMISSION eq 'true'|| $MODULE eq 'Contacts' || ($MODULE eq 'Documents')}
<tr><td align="left" class="genHeaderSmall">{$APP.LBL_ACTIONS}</td></tr>
{if $MODULE eq 'Contacts'}
{assign var=subst value="contact_id"}
{assign var=acc value="&account_id=$accountid"}
{else}
{assign var=subst value="parent_id"}
{assign var=acc value=""}
{/if}
{if $MODULE eq 'Leads' || $MODULE eq 'Contacts' || $MODULE eq 'Accounts'}
{if $SENDMAILBUTTON eq 'permitted'}
<tr>
<td align="left" style="padding-left:10px;">
<input type="hidden" name="pri_email" value="{$EMAIL1}"/>
<input type="hidden" name="sec_email" value="{$EMAIL2}"/>
<a href="javascript:void(0);" class="webMnu" onclick="if(LTrim('{$EMAIL1}') !='' || LTrim('{$EMAIL2}') !=''){ldelim}fnvshobj(this,'sendmail_cont');sendmail('{$MODULE}',{$ID}){rdelim}else{ldelim}OpenCompose('','create'){rdelim}"><img src="{'sendmail.png'|@vtiger_imageurl:$THEME}" hspace="5" align="absmiddle" border="0"/></a>&nbsp;
<a href="javascript:void(0);" class="webMnu" onclick="if(LTrim('{$EMAIL1}') !='' || LTrim('{$EMAIL2}') !=''){ldelim}fnvshobj(this,'sendmail_cont');sendmail('{$MODULE}',{$ID}){rdelim}else{ldelim}OpenCompose('','create'){rdelim}">{$APP.LBL_SENDMAIL_BUTTON_LABEL}</a>
</td>
</tr>
{/if}
{/if}
{if $MODULE eq 'Contacts' || $EVENT_PERMISSION eq 'true'}
<tr>
<td align="left" style="padding-left:10px;">
<a href="index.php?module=Calendar&action=EditView&return_module={$MODULE}&return_action=DetailView&activity_mode=Events&return_id={$ID}&{$subst}={$ID}{$acc}&parenttab={$CATEGORY}" class="webMnu"><img src="{'AddEvent.gif'|@vtiger_imageurl:$THEME}" hspace="5" align="absmiddle" border="0"/></a>
<a href="index.php?module=Calendar&action=EditView&return_module={$MODULE}&return_action=DetailView&activity_mode=Events&return_id={$ID}&{$subst}={$ID}{$acc}&parenttab={$CATEGORY}" class="webMnu">{$APP.LBL_ADD_NEW} {$APP.Event}</a>
</td>
</tr>
{/if}
{if $TODO_PERMISSION eq 'true' && ($MODULE eq 'Accounts' || $MODULE eq 'Leads')}
<tr>
<td align="left" style="padding-left:10px;">
<a href="index.php?module=Calendar&action=EditView&return_module={$MODULE}&return_action=DetailView&activity_mode=Task&return_id={$ID}&{$subst}={$ID}{$acc}&parenttab={$CATEGORY}" class="webMnu"><img src="{'AddToDo.gif'|@vtiger_imageurl:$THEME}" hspace="5" align="absmiddle" border="0"/></a>
<a href="index.php?module=Calendar&action=EditView&return_module={$MODULE}&return_action=DetailView&activity_mode=Task&return_id={$ID}&{$subst}={$ID}{$acc}&parenttab={$CATEGORY}" class="webMnu">{$APP.LBL_ADD_NEW} {$APP.Todo}</a>
</td>
</tr>
{/if}
{if $MODULE eq 'Contacts' && $CONTACT_PERMISSION eq 'true'}
<tr>
<td align="left" style="padding-left:10px;">
<a href="index.php?module=Calendar&action=EditView&return_module={$MODULE}&return_action=DetailView&activity_mode=Task&return_id={$ID}&{$subst}={$ID}{$acc}&parenttab={$CATEGORY}" class="webMnu"><img src="{'AddToDo.gif'|@vtiger_imageurl:$THEME}" hspace="5" align="absmiddle" border="0"/></a>
<a href="index.php?module=Calendar&action=EditView&return_module={$MODULE}&return_action=DetailView&activity_mode=Task&return_id={$ID}&{$subst}={$ID}{$acc}&parenttab={$CATEGORY}" class="webMnu">{$APP.LBL_ADD_NEW} {$APP.Todo}</a>
</td>
</tr>
{/if}
{if $MODULE eq 'Leads'}
{if $CONVERTLEAD eq 'permitted'}
<tr>
<td align="left" style="padding-left:10px;">
<a href="javascript:void(0);" class="webMnu" onclick="callConvertLeadDiv('{$ID}');"><img src="{'Leads.gif'|@vtiger_imageurl:$THEME}" hspace="5" align="absmiddle" border="0"/></a>
<a href="javascript:void(0);" class="webMnu" onclick="callConvertLeadDiv('{$ID}');">{$APP.LBL_CONVERT_BUTTON_LABEL}</a>
</td>
</tr>
{/if}
{/if}
<!-- Start: Actions for Documents Module -->
{if $MODULE eq 'Documents'}
<tr><td align="left" style="padding-left:10px;">
{if $DLD_TYPE eq 'I' && $FILE_STATUS eq '1'}
<br><a href="index.php?module=uploads&action=downloadfile&fileid={$FILEID}&entityid={$NOTESID}" onclick="javascript:dldCntIncrease({$NOTESID});" class="webMnu"><img src="{'fbDownload.gif'|@vtiger_imageurl:$THEME}" hspace="5" align="absmiddle" title="{$APP.LNK_DOWNLOAD}" border="0"/></a>
<a href="index.php?module=uploads&action=downloadfile&fileid={$FILEID}&entityid={$NOTESID}" onclick="javascript:dldCntIncrease({$NOTESID});">{$MOD.LBL_DOWNLOAD_FILE}</a>
{elseif $DLD_TYPE eq 'E' && $FILE_STATUS eq '1'}
<br><a target="_blank" href="{$DLD_PATH}" onclick="javascript:dldCntIncrease({$NOTESID});"><img src="{'fbDownload.gif'|@vtiger_imageurl:$THEME}"" align="absmiddle" title="{$APP.LNK_DOWNLOAD}" border="0"></a>
<a target="_blank" href="{$DLD_PATH}" onclick="javascript:dldCntIncrease({$NOTESID});">{$MOD.LBL_DOWNLOAD_FILE}</a>
{/if}
</td></tr>
{if $CHECK_INTEGRITY_PERMISSION eq 'yes'}
<tr><td align="left" style="padding-left:10px;">
<br><a href="javascript:;" onClick="checkFileIntegrityDetailView({$NOTESID});"><img id="CheckIntegrity_img_id" src="{'yes.gif'|@vtiger_imageurl:$THEME}" alt="Check integrity of this file" title="Check integrity of this file" hspace="5" align="absmiddle" border="0"/></a>
<a href="javascript:;" onClick="checkFileIntegrityDetailView({$NOTESID});">{$MOD.LBL_CHECK_INTEGRITY}</a>&nbsp;
<input type="hidden" id="dldfilename" name="dldfilename" value="{$FILEID}-{$FILENAME}">
<span id="vtbusy_integrity_info" style="display:none;">
<img src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0"></span>
<span id="integrity_result" style="display:none"></span>
</td></tr>
{/if}
<tr><td align="left" style="padding-left:10px;">
{if $DLD_TYPE eq 'I'}
<input type="hidden" id="dldfilename" name="dldfilename" value="{$FILENAME}">
<br><a href="javascript: document.DetailView.return_module.value='Documents'; document.DetailView.return_action.value='DetailView'; document.DetailView.module.value='Documents'; document.DetailView.action.value='EmailFile'; document.DetailView.record.value={$NOTESID}; document.DetailView.return_id.value={$NOTESID}; sendfile_email();" class="webMnu"><img src="{'attachment.gif'|@vtiger_imageurl:$THEME}" hspace="5" align="absmiddle" border="0"/></a>
<a href="javascript: document.DetailView.return_module.value='Documents'; document.DetailView.return_action.value='DetailView'; document.DetailView.module.value='Documents'; document.DetailView.action.value='EmailFile'; document.DetailView.record.value={$NOTESID}; document.DetailView.return_id.value={$NOTESID}; sendfile_email();">{$MOD.LBL_EMAIL_FILE}</a>
{/if}
</td></tr>
<tr><td>&nbsp;</td></tr>
{/if}
{/if}
<!-- End: Actions for Documents Module -->
</table>
{* vtlib customization: Avoid line break if custom links are present *}
{if !isset($CUSTOM_LINKS) || empty($CUSTOM_LINKS)}
<br>
{/if}
{/if}
{* vtlib customization: Custom links on the Detail view basic links *}
{if $CUSTOM_LINKS && $CUSTOM_LINKS.DETAILVIEWBASIC}
<table width="100%" border="0" cellpadding="5" cellspacing="0">
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.DETAILVIEWBASIC}
<tr>
<td align="left" style="padding-left:10px;">
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
{if $CUSTOMLINK->linkicon}
<a class="webMnu" href="{$customlink_href}"><img hspace=5 align="absmiddle" border=0 src="{$CUSTOMLINK->linkicon}"></a>
{/if}
<a class="webMnu" href="{$customlink_href}">{$customlink_label}</a>
</td>
</tr>
{/foreach}
</table>
{/if}
{* vtlib customization: Custom links on the Detail view *}
{if $CUSTOM_LINKS && $CUSTOM_LINKS.DETAILVIEW}
<br>
{if !empty($CUSTOM_LINKS.DETAILVIEW)}
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr><td align="left" class="dvtUnSelectedCell dvtCellLabel">
<a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></a>
</td></tr>
</table>
<br>
<div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_customLinksLay"
onmouseout="fninvsh('vtlib_customLinksLay')" onmouseover="fnvshNrm('vtlib_customLinksLay')">
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b>{$APP.LBL_MORE} {$APP.LBL_ACTIONS} &#187;</b></td></tr>
<tr>
<td>
{foreach item=CUSTOMLINK from=$CUSTOM_LINKS.DETAILVIEW}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<a href="{$customlink_href}" class="drop_down">{$customlink_label}</a>
{/foreach}
</td>
</tr>
</table>
</div>
{/if}
{/if}
{* END *}
<!-- Action links END -->
{if $TAG_CLOUD_DISPLAY eq 'true'}
<!-- Tag cloud display -->
<table border=0 cellspacing=0 cellpadding=0 width=100% class="tagCloud">
<tr>
<td class="tagCloudTopBg"><img src="{$IMAGE_PATH}tagCloudName.gif" border=0></td>
</tr>
<tr>
<td><div id="tagdiv" style="display:visible;"><form method="POST" action="javascript:void(0);" onsubmit="return tagvalidate();"><input class="textbox" type="text" id="txtbox_tagfields" name="textbox_First Name" value="" style="width:100px;margin-left:5px;"></input>&nbsp;&nbsp;<input name="button_tagfileds" type="submit" class="crmbutton small save" value="{$APP.LBL_TAG_IT}" /></form></div></td>
</tr>
<tr>
<td class="tagCloudDisplay" valign=top> <span id="tagfields">{$ALL_TAG}</span></td>
</tr>
</table>
<!-- End Tag cloud display -->
{/if}
<!-- Mail Merge-->
<br>
{if $MERGEBUTTON eq 'permitted'}
<form action="index.php" method="post" name="TemplateMerge" id="form">
<input type="hidden" name="module" value="{$MODULE}">
<input type="hidden" name="parenttab" value="{$CATEGORY}">
<input type="hidden" name="record" value="{$ID}">
<input type="hidden" name="action">
<table border=0 cellspacing=0 cellpadding=0 width=100% class="rightMailMerge">
<tr>
<td class="rightMailMergeHeader"><b>{$WORDTEMPLATEOPTIONS}</b></td>
</tr>
<tr style="height:25px">
<td class="rightMailMergeContent">
{if $TEMPLATECOUNT neq 0}
<select name="mergefile">{foreach key=templid item=tempflname from=$TOPTIONS}<option value="{$templid}">{$tempflname}</option>{/foreach}</select>
<input class="crmbutton small create" value="{$APP.LBL_MERGE_BUTTON_LABEL}" onclick="this.form.action.value='Merge';" type="submit"></input>
{else}
<a href=index.php?module=Settings&action=upload&tempModule={$MODULE}&parenttab=Settings>{$APP.LBL_CREATE_MERGE_TEMPLATE}</a>
{/if}
</td>
</tr>
</table>
</form>
{/if}
{if !empty($CUSTOM_LINKS.DETAILVIEWWIDGET)}
{foreach key=CUSTOMLINK_NO item=CUSTOMLINK from=$CUSTOM_LINKS.DETAILVIEWWIDGET}
{assign var="customlink_href" value=$CUSTOMLINK->linkurl}
{assign var="customlink_label" value=$CUSTOMLINK->linklabel}
{* Ignore block:// type custom links which are handled earlier *}
{if !preg_match("/^block:\/\/.*/", $customlink_href)}
{if $customlink_label eq ''}
{assign var="customlink_label" value=$customlink_href}
{else}
{* Pickup the translated label provided by the module *}
{assign var="customlink_label" value=$customlink_label|@getTranslatedString:$CUSTOMLINK->module()}
{/if}
<br />
<table border=0 cellspacing=0 cellpadding=0 width=100% class="rightMailMerge">
<tr>
<td class="rightMailMergeHeader">
<b>{$customlink_label}</b>
<img id="detailview_block_{$CUSTOMLINK_NO}_indicator" style="display:none;" src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0" align="absmiddle" />
</td>
</tr>
<tr style="height:25px">
<td class="rightMailMergeContent"><div id="detailview_block_{$CUSTOMLINK_NO}"></div></td>
</tr>
<script type="text/javascript">
vtlib_loadDetailViewWidget("{$customlink_href}", "detailview_block_{$CUSTOMLINK_NO}", "detailview_block_{$CUSTOMLINK_NO}_indicator");
</script>
</table>
{/if}
{/foreach}
{/if}
</td>
</tr>
</table>
</div>
<!-- PUBLIC CONTENTS STOPS-->
</td>
</tr>
<tr>
<td>
<table border=0 cellspacing=0 cellpadding=3 width=100% class="small">
<tr>
<td class="dvtTabCacheBottom" style="width:10px" nowrap>&nbsp;</td>
<td class="dvtSelectedCellBottom" align=center nowrap>{$SINGLE_MOD|@getTranslatedString:$MODULE} {$APP.LBL_INFORMATION}</td>
<td class="dvtTabCacheBottom" style="width:10px">&nbsp;</td>
{if $SinglePane_View eq 'false'}
<td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action=CallRelatedList&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}">{$APP.LBL_MORE} {$APP.LBL_INFORMATION}</a></td>
{/if}
<td class="dvtTabCacheBottom" align="right" style="width:100%">
&nbsp;
{if $EDIT_DUPLICATE eq 'permitted'}
<input title="{$APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{$APP.LBL_EDIT_BUTTON_KEY}" class="crmbutton small edit" onclick="DetailView.return_module.value='{$MODULE}'; DetailView.return_action.value='DetailView'; DetailView.return_id.value='{$ID}';DetailView.module.value='{$MODULE}';submitFormForAction('DetailView','EditView');" type="submit" name="Edit" value="&nbsp;{$APP.LBL_EDIT_BUTTON_LABEL}&nbsp;">&nbsp;
{/if}
{if $EDIT_DUPLICATE eq 'permitted' && $MODULE neq 'Documents'}
<input title="{$APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{$APP.LBL_DUPLICATE_BUTTON_KEY}" class="crmbutton small create" onclick="DetailView.return_module.value='{$MODULE}'; DetailView.return_action.value='DetailView'; DetailView.isDuplicate.value='true';DetailView.module.value='{$MODULE}'; submitFormForAction('DetailView','EditView');" type="submit" name="Duplicate" value="{$APP.LBL_DUPLICATE_BUTTON_LABEL}">&nbsp;
{/if}
{if $DELETE eq 'permitted'}
<input title="{$APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{$APP.LBL_DELETE_BUTTON_KEY}" class="crmbutton small delete" onclick="DetailView.return_module.value='{$MODULE}'; DetailView.return_action.value='index'; {if $MODULE eq 'Accounts'} var confirmMsg = '{$APP.NTC_ACCOUNT_DELETE_CONFIRMATION}' {else} var confirmMsg = '{$APP.NTC_DELETE_CONFIRMATION}' {/if}; submitFormForActionWithConfirmation('DetailView', 'Delete', confirmMsg);" type="button" name="Delete" value="{$APP.LBL_DELETE_BUTTON_LABEL}">&nbsp;
{/if}
{if $privrecord neq ''}
<img align="absmiddle" title="{$APP.LNK_LIST_PREVIOUS}" accessKey="{$APP.LNK_LIST_PREVIOUS}" onclick="location.href='index.php?module={$MODULE}&viewtype={$VIEWTYPE}&action=DetailView&record={$privrecord}&parenttab={$CATEGORY}'" name="privrecord" value="{$APP.LNK_LIST_PREVIOUS}" src="{'rec_prev.gif'|@vtiger_imageurl:$THEME}">&nbsp;
{else}
<img align="absmiddle" title="{$APP.LNK_LIST_PREVIOUS}" src="{'rec_prev_disabled.gif'|@vtiger_imageurl:$THEME}">
{/if}
{if $privrecord neq '' || $nextrecord neq ''}
<img align="absmiddle" title="{$APP.LBL_JUMP_BTN}" accessKey="{$APP.LBL_JUMP_BTN}" onclick="var obj = this;var lhref = getListOfRecords(obj, '{$MODULE}',{$ID},'{$CATEGORY}');" name="jumpBtnIdBottom" id="jumpBtnIdBottom" src="{'rec_jump.gif'|@vtiger_imageurl:$THEME}">&nbsp;
{/if}
{if $nextrecord neq ''}
<img align="absmiddle" title="{$APP.LNK_LIST_NEXT}" accessKey="{$APP.LNK_LIST_NEXT}" onclick="location.href='index.php?module={$MODULE}&viewtype={$VIEWTYPE}&action=DetailView&record={$nextrecord}&parenttab={$CATEGORY}'" name="nextrecord" src="{'rec_next.gif'|@vtiger_imageurl:$THEME}">&nbsp;
{else}
<img align="absmiddle" title="{$APP.LNK_LIST_NEXT}" src="{'rec_next_disabled.gif'|@vtiger_imageurl:$THEME}">&nbsp;
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
{if $MODULE eq 'Products'}
<script language="JavaScript" type="text/javascript" src="modules/Products/Productsslide.js"></script>
<script language="JavaScript" type="text/javascript">Carousel();</script>
{/if}
<script>
function getTagCloud()
{ldelim}
new Ajax.Request(
'index.php',
{ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim},
method: 'post',
postBody: 'module={$MODULE}&action={$MODULE}Ajax&file=TagCloud&ajxaction=GETTAGCLOUD&recordid={$ID}',
onComplete: function(response) {ldelim}
$("tagfields").innerHTML=response.responseText;
$("txtbox_tagfields").value ='';
{rdelim}
{rdelim}
);
{rdelim}
getTagCloud();
</script>
<!-- added for validation -->
<script language="javascript">
var fieldname = new Array({$VALIDATION_DATA_FIELDNAME});
var fieldlabel = new Array({$VALIDATION_DATA_FIELDLABEL});
var fielddatatype = new Array({$VALIDATION_DATA_FIELDDATATYPE});
</script>
</td>
<td align=right valign=top><img src="{'showPanelTopRight.gif'|@vtiger_imageurl:$THEME}"></td>
</tr></table>
{if $MODULE eq 'Leads' or $MODULE eq 'Contacts' or $MODULE eq 'Accounts' or $MODULE eq 'Campaigns' or $MODULE eq 'Vendors'}
<form name="SendMail"><div id="sendmail_cont" style="z-index:100001;position:absolute;"></div></form>
{/if}
<!-- SMSNotifier customization -->
<script type="text/javascript">
Event.observe(window, 'load', function() {ldelim} SMSNotifier.loadstatus('{$ID}'); {rdelim});
</script>
@@ -0,0 +1,100 @@
{*<!--
/*********************************************************************************
** 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.
*
********************************************************************************/
-->*}
<div id="EditInv" class="layerPopup">
<table border=0 cellspacing=0 cellpadding=5 width=100% class=layerHeadingULine>
<tr>
<td class="layerPopupHeading" align="left">
{if $SMSSERVERINFO.id eq ''}
{$CMOD.LBL_ADDNEW}
{else}
{$CMOD.LBL_UPDATE}
<input type="hidden" name="smsserver_id" value={$SMSSERVERINFO.id}">
{/if}
</td>
<td align="right" class="small"><img onClick="hide('editdiv');" style="cursor:pointer;" src="{'close.gif'|@vtiger_imageurl:$THEME}" align="middle" border="0"></td>
</tr>
</table>
<table border=0 cellspacing=0 cellpadding=5 width=95% align=center>
<tr>
<td class="small">
<table border=0 cellspacing=0 cellpadding=5 width=100% align=center bgcolor=white>
<tr>
<td width="33%" nowrap="nowrap" align="right" class="cellLabel small"><b>{$CMOD.LBL_PROVIDER}</b></td>
<td align="left" class="cellText small">
<select name="smsserver_provider" class="small" onchange="_SMSCongiServerShowReqParams(this);">
<option value="">-- {$CMOD.LBL_SELECT_ONE} --</option>
{foreach item=SMSPROVIDER from=$SMSPROVIDERS}
<option {if $SMSSERVERINFO.providertype eq $SMSPROVIDER}selected="true"{/if} value="{$SMSPROVIDER}">{$SMSPROVIDER}</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td width="33%" nowrap="nowrap" align="right" class="cellLabel small"><b>{$APP.Active}</b></td>
<td align="left" class="cellText small">
<input type="radio" class="small" name="smsserver_isactive" value="1" {if $SMSSERVERINFO.isactive}checked=true{/if}> Yes
<input type="radio" class="small" name="smsserver_isactive" value="0" {if $SMSSERVERINFO.isactive neq 1}checked=true{/if}> No
</td>
</tr>
<tr>
<td width="33%" nowrap="nowrap" align="right" class="cellLabel small"><b>{$MOD.LBL_USERNAME}</b></td>
<td align="left" class="cellText small">
<input type="text" class="detailedViewTextBox" name="smsserver_username" value="{$SMSSERVERINFO.username}" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'">
</td>
</tr>
<tr>
<td width="33%" nowrap="nowrap" align="right" class="cellLabel small"><b>{$MOD.LBL_PASWRD}</b></td>
<td align="left" class="cellText small">
<input type="password" class="detailedViewTextBox" name="smsserver_password" value="{$SMSSERVERINFO.password}" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'">
</td>
</tr>
{foreach item=SMSPROVIDERPARAMS key=SMSPROVIDERPARAMKEY from=$SMSPROVIDERSPARAMS}
<tr>
<td colspan="2" class="cellLabel small" style="padding: 0; border-top: 0;">
<div id="paramrows_{$SMSPROVIDERPARAMKEY}" {if $SMSSERVERINFO.providertype neq $SMSPROVIDERPARAMKEY}style="display: none;"{/if}>
<table width="100%" cellpadding="5" cellspacing="0" border="0" bgcolor="white">
{foreach item=SMSPROVIDERPARAM from=$SMSPROVIDERPARAMS}
<tr>
<td width="33%" nowrap="nowrap" align="right" class="cellLabel small" style="border: none;"><b>{$SMSPROVIDERPARAM}</b></td>
<td align="left" class="cellText small" style="border: none;">
<input type="text" class="detailedViewTextBox" name="smsserverparam_{$SMSPROVIDERPARAMKEY}_{$SMSPROVIDERPARAM}" value="{$SMSSERVERPARAMS.$SMSPROVIDERPARAM}" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'">
</td>
</tr>
{/foreach}
</table>
</div>
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
<table border=0 cellspacing=0 cellpadding=5 width=100% class="layerPopupTransport">
<tr>
<td align="center" class="small">
<input value="{$APP.LBL_SAVE_BUTTON_LABEL}" class="crmButton small save" type="button" onClick="_SMSConfigServerSaveForm(this.form)">
<input value="{$APP.LBL_CANCEL_BUTTON_LABEL}" class="crmButton small cancel" type="button" onClick="hide('editdiv');">
</td>
</tr>
</table>
</div>
@@ -0,0 +1,191 @@
{*<!--
/*********************************************************************************
** 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.
*
********************************************************************************/
-->*}
<script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
{literal}
<style>
DIV.fixedLay{
border:3px solid #CCCCCC;
background-color:#FFFFFF;
width:500px;
position:fixed;
left:250px;
top:200px;
display:block;
}
</style>
{/literal}
{literal}
<!--[if lte IE 6]>
<STYLE type=text/css>
DIV.fixedLay {
POSITION: absolute;
}
</STYLE>
<![endif]-->
{/literal}
<br>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
<tr>
<td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td>
<td class="showPanelBg" style="padding: 10px;" valign="top" width="100%">
<br>
<div align=center>
{include file='SetMenu.tpl'}
<!-- DISPLAY -->
<table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine">
<tr>
<td width="50" rowspan="2" valign="top"><img src="{'proxy.gif'|@vtiger_imageurl:$THEME}" alt="{$CMOD.SERVER_CONFIGURATION}" width="48" height="48" border=0 title="{$CMOD.SERVER_CONFIGURATION}"></td>
<td colspan="2" class="heading2" valign=bottom align="left"><b><a href="index.php?module=Settings&action=ModuleManager&parenttab=Settings">{$MOD.VTLIB_LBL_MODULE_MANAGER}</a> &gt; {$MODULE_LBL} > {$CMOD.SERVER_CONFIGURATION} </b></td>
<td rowspan=2 class="small" align=right>&nbsp;</td>
</tr>
<tr>
<td valign=top class="small" align="left">{$CMOD.SERVER_CONFIGURATION_DESCRIPTION}</td>
</tr>
</table>
<br/>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="tableHeading">
<tr>
<td style="padding-left:5px;" class="big">{$MOD.SMS_SERVER_CONFIGURATION}</td>
<td valign=top class="small" align="right">
<input id="_smsserver_add_button_" type="button" class="small create" value="Add New" onclick="_SMSConfigServerFetchEdit('');fnvshobj(this,'editdiv');">
</td>
</tr>
</table>
<div id="_smsservers_">
{include file='modules/SMSNotifier/SMSConfigServerListContents.tpl'}
</div>
<table border=0 cellspacing=0 cellpadding=5 width=100% >
<tr><td class="small" nowrap align=right><a href="#top">{$MOD.LBL_SCROLL}</a></td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
<td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td>
</tr>
</tbody>
</table>
<form method="POST" action="javascript:void(0);">
<div id="editdiv" class="fixedlay" style="display:none;position:absolute;width:450px;"></div>
</form>
{literal}
<script type="text/javascript">
function _SMSCongiServerShowReqParams(selectBox)
{
var providers = selectBox.options;
for(var index = 0; index < providers.length; ++index) {
var provideropt = providers[index];
if($('paramrows_' + provideropt.value)) {
if(provideropt.selected) {
$('paramrows_' + provideropt.value).show();
} else {
$('paramrows_' + provideropt.value).hide();
}
}
}
}
function _SMSConfigServerSaveForm(form)
{
if(form.smsserver_provider.value == '') {
form.smsserver_provider.style.background = '#FFF4BF';
return false;
} else {
form.smsserver_provider.style.background = '#FFFFFF';
}
if(form.smsserver_username.value == '') {
form.smsserver_username.className = 'detailedViewTextBoxOn';
form.smsserver_username.focus();
return false;
}
if(form.smsserver_password.value == '') {
form.smsserver_password.className = 'detailedViewTextBoxOn';
form.smsserver_password.focus();
return false;
}
$("editdiv").style.display="none";
var frmvalues = Form.serialize(form);
$("status").show();
new Ajax.Request(
'index.php',
{queue: {position: 'end', scope: 'command'},
method: 'post',
postBody: 'action=SMSNotifierAjax&module=SMSNotifier&file=SMSConfigServer&mode=Save&' + frmvalues,
onComplete: function(response) {
$("status").style.display="none";
$("_smsservers_").innerHTML = response.responseText;
}
}
);
}
function _SMSConfigServerDelete(id)
{
$("editdiv").style.display="none";
$("status").style.display="inline";
new Ajax.Request(
'index.php',
{queue: {position: 'end', scope: 'command'},
method: 'post',
postBody: 'action=SMSNotifierAjax&module=SMSNotifier&file=SMSConfigServer&ajax=true&mode=Delete&record='+id,
onComplete: function(response) {
$("status").style.display="none";
$("_smsservers_").innerHTML = response.responseText;
}
}
);
}
function _SMSConfigServerFetchEdit(id)
{
$("status").style.display="inline";
new Ajax.Request(
'index.php',
{queue: {position: 'end', scope: 'command'},
method: 'post',
postBody: 'action=SMSNotifierAjax&module=SMSNotifier&file=SMSConfigServer&ajax=true&mode=Edit&record='+id,
onComplete: function(response) {
$("status").style.display="none";
$("editdiv").innerHTML=response.responseText;
$("editdiv").show();
}
}
);
}
</script>
{/literal}
@@ -0,0 +1,32 @@
{*<!--
/*********************************************************************************
** 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.
*
********************************************************************************/
-->*}
<table width="100%" cellpadding="5" cellspacing="0" class="listTable" >
<tr>
<td class="colHeader small" width="30%" nowrap="nowrap">{$CMOD.LBL_PROVIDER}</td>
<td class="colHeader small" width="25%" nowrap="nowrap">{$MOD.LBL_USERNAME}</td>
<td class="colHeader small" width="10%" nowrap="nowrap">{$APP.Active}</td>
<td class="colHeader small" width="10%">{$MOD.Tools}</td>
</tr>
{foreach item=SMSSERVER from=$SMSSERVERS}
<tr>
<td class="listTableRow small">{$SMSSERVER.providertype}</td>
<td class="listTableRow small">{$SMSSERVER.username}</td>
<td class="listTableRow small">{if $SMSSERVER.isactive}{$APP.yes}{else}{$APP.no}{/if}</td>
<td class="listTableRow small">
<img onClick="fnvshobj(this,'editdiv');_SMSConfigServerFetchEdit('{$SMSSERVER.id}');" style="cursor:pointer;" src="{'editfield.gif'|@vtiger_imageurl:$THEME}" title="{$APP.LBL_EDIT}">
<img onClick="fnvshobj(this,'editdiv');_SMSConfigServerDelete('{$SMSSERVER.id}');" style="cursor:pointer;" src="{'delete.gif'|@vtiger_imageurl:$THEME}" title="{$APP.LBL_DELETE}">
</td>
</tr>
{/foreach}
</table>
@@ -0,0 +1,48 @@
{*<!--
/*+*******************************************************************************
* 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.
*
*******************************************************************************/
-->*}
<div style="width: 400px;">
<form method="POST" action="javascript:void(0);">
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="small mailClient">
<tr>
<td colspan="2" class="mailClientWriteEmailHeader" width="90%" align="left">Compose SMS</td>
</table>
<table width="100%" cellpadding="5" cellspacing="0" border="0" align="center">
<tr>
<td>
Message:<br/>
<textarea name="message" class="small" rows="12" cols="10" onkeyup="$('__smsnotifer_compose_wordcount__').innerHTML=this.value.length"></textarea>
</td>
<tr>
<td align="right"><span id="__smsnotifer_compose_wordcount__">0</span> characters </td>
</tr>
</table>
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="layerPopupTransport">
<tr>
<td class="small" align="center">
<input type="hidden" name="idstring" value="{$IDSTRING}" />
<input type="hidden" name="phonefields" value="{$PHONEFIELDS}" />
<input type="hidden" name="sourcemodule" value="{$SOURCEMODULE}" />
<input type="button" class="small crmbutton save" onclick="SMSNotifierCommon.triggerSendSMS(this.form);" value="{$APP.LBL_SEND}"/>
<input type="button" class="small crmbutton cancel" onclick="SMSNotifierCommon.hideComposeWizard();" value="{$APP.LBL_CANCEL_BUTTON_LABEL}"/>
</td>
</tr>
</table>
</form>
</div>
@@ -0,0 +1,68 @@
{*<!--
/*+*******************************************************************************
* 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.
*
*******************************************************************************/
-->*}
<div style="width: 400px;">
<form method="POST" action="javascript:void(0);">
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="layerHeadingULine">
<tr>
<td class="genHeaderSmall" width="90%" align="left">Select Phone Numbers</td>
<td width="10%" align="right">
<a href="javascript:void(0);" onclick="SMSNotifierCommon.hideSelectWizard();"><img src="{'close.gif'|@vtiger_imageurl:$THEME}" border="0"/></a>
</td>
</table>
<table width="95%" cellpadding="5" cellspacing="0" border="0" align="center">
<tr>
<td>
<table width="100%" cellpadding="5" cellspacing="0" border="0" align="center" bgcolor="white">
<tr>
<td align="left">Please select the number types to send the SMS<br/><br/>
<div align="center" style="height: 120px; overflow-y: auto; overflow-x: hidden;">
<table width="90%" cellpadding="5" cellspacing="0" border="0" align="left">
{foreach key=_FIELDID item=_FIELDINFO from=$PHONEFIELDS}
{foreach key=_FIELDLABEL item=_FIELDNAME from=$_FIELDINFO}
<tr>
<td align="right" width="15%"><input type="checkbox" name="phonetype" value="{$_FIELDNAME}"/></td>
<td align="left"><strong>{$_FIELDLABEL}</strong> {if $FIELDVALUES.$_FIELDNAME}<br/>{$FIELDVALUES[$_FIELDNAME]}{/if}</td>
</tr>
{/foreach}
{/foreach}
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="layerPopupTransport">
<tr>
<td class="small" align="center">
<input type="hidden" name="idstring" value="{$IDSTRING}" />
<input type="hidden" name="sourcemodule" value="{$SOURCEMODULE}" />
<input type="button" class="small crmbutton create" onclick="SMSNotifierCommon.displayComposeWizard(this.form);" value="{$APP.LBL_SELECT_BUTTON_LABEL}"/>
<input type="button" class="small crmbutton cancel" onclick="SMSNotifierCommon.hideSelectWizard();" value="{$APP.LBL_CANCEL_BUTTON_LABEL}"/>
</td>
</tr>
</table>
</form>
</div>
@@ -0,0 +1,53 @@
{*<!--
/*+*******************************************************************************
* 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.
*
*******************************************************************************/
-->*}
<div style="width: 400px;">
<form method="POST" action="javascript:void(0);">
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="layerHeadingULine">
<tr>
<td class="genHeaderSmall" width="90%" align="left">Server Not Configured?</td>
<td width="10%" align="right">
<a href="javascript:void(0);" onclick="SMSNotifierCommon.hideSelectWizard();"><img src="{'close.gif'|@vtiger_imageurl:$THEME}" border="0"/></a>
</td>
</table>
<table width="95%" cellpadding="5" cellspacing="0" border="0" align="center">
<tr>
<td>
<table width="100%" cellpadding="5" cellspacing="0" border="0" align="center" bgcolor="white">
<tr>
<td align="left"><strong>We could not find any active server configuration.</strong><br/><br/>
{if $IS_ADMIN}Please review under {$MODULE} Settings.{else}Please contact your administrator.{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="layerPopupTransport">
<tr>
<td class="small" align="center">
<input type="button" class="small crmbutton cancel" onclick="SMSNotifierCommon.hideSelectWizard();" value="{$APP.LBL_CANCEL_BUTTON_LABEL}"/>
</td>
</tr>
</table>
</form>
</div>
@@ -0,0 +1,54 @@
{*<!--
/*********************************************************************************
** 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.
*
********************************************************************************/
-->*}
<div>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="lvt small">
{assign var="_TRSTARTED" value=false}
{foreach item=RESULT from=$RESULTS name=NUMBERSECTION}
{if $smarty.foreach.NUMBERSECTION.index % 4 == 0}
{* Close the tr if it was started last *}
{if $_TRSTARTED}
</tr>
{assign var="_TRSTARTED" value=false}
{/if}
<tr class="lvtColData" onmouseover="this.className='lvtColDataHover'" onmouseout="this.className='lvtColData'" >
{assign var="_TRSTARTED" value=true}
{/if}
{assign var="_TDBGCOLOR" value="#FFFFFF"}
{if $RESULT.status == 'Processing'}
{assign var="_TDBGCOLOR" value="#FFFCDF"}
{elseif $RESULT.status == 'Dispatched'}
{assign var="_TDBGCOLOR" value="#E8FFCF"}
{elseif $RESULT.status eq 'Failed'}
{assign var="_TDBGCOLOR" value="#FFE2AF"}
{/if}
<td nowrap="nowrap" bgcolor="{$_TDBGCOLOR}" width="25%">{$RESULT.tonumber}</td>
{/foreach}
{* Close the tr if it was started last *}
{if $_TRSTARTED}
</tr>
{assign var="_TRSTARTED" value=false}
{/if}
</table>
</div>
@@ -0,0 +1,42 @@
{*<!--
/*+*******************************************************************************
* 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.
*
*******************************************************************************/
-->*}
<script src="modules/com_vtiger_workflow/resources/vtigerwebservices.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
var moduleName = '{$entityName}';
</script>
<script src="modules/SMSNotifier/workflow/VTSMSTask.js" type="text/javascript" charset="utf-8"></script>
<table border="0" cellpadding="5" cellspacing="0" width="100%" class="small">
<tr>
<td class='dvtCellLabel' align="right" width=15% nowrap="nowrap"><b><font color=red>*</font> {'LBL_RECEPIENTS'|@getTranslatedString:'SMSNotifier'}</b>
</td>
<td class='dvtCellInfo'><input type="text" name="sms_recepient" value="{$task->sms_recepient}" id="save_recepient" class="form_input" style='width: 250px;'>
<span id="task-phonefields-busyicon"><b>{$MOD.LBL_LOADING}</b><img src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0"></span>
<select id="task_phonefields" class="small" style="display: none;"><option value=''>{$MOD.LBL_SELECT_OPTION_DOTDOTDOT}</option></select>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="small">
<tr>
<td style='padding-top: 10px;'>
<span id="task-fieldnames-busyicon"><b>{$MOD.LBL_LOADING}</b><img src="{'vtbusy.gif'|@vtiger_imageurl:$THEME}" border="0"></span>
<select id="sms_fieldnames" class="small" style="display: none;"><option value=''>{$MOD.LBL_SELECT_OPTION_DOTDOTDOT}</option></select>
</td>
</tr>
</table>
<p>
<textarea name="content" rows="15" cols="40" id="save_content" class='detailedViewTextBox'>{$task->content}</textarea>
</p>
@@ -75,11 +75,11 @@ function AddressSync(Addform,id)
{if $OP_MODE eq 'edit_view'}
{assign var="USE_ID_VALUE" value=$MOD_SEQ_ID}
{if $USE_ID_VALUE eq ''} {assign var="USE_ID_VALUE" value=$ID} {/if}
<span class="lvtHeaderText"><font color="purple">[ {$USE_ID_VALUE} ] </font>{$NAME} - {$APP.LBL_EDITING} {$SINGLE_MOD_LABEL} {$APP.LBL_INFORMATION}</span> <br>
<span class="lvtHeaderText"><font color="purple">[ {$USE_ID_VALUE} ] </font>{$NAME} - {$APP.LBL_EDITING} {$SINGLE_MOD|@getTranslatedString:$MODULE} {$APP.LBL_INFORMATION}</span> <br>
{$UPDATEINFO}
{/if}
{if $OP_MODE eq 'create_view'}
<span class="lvtHeaderText">{$APP.LBL_CREATING} {$SINGLE_MOD_LABEL}</span> <br>
<span class="lvtHeaderText">{$APP.LBL_CREATING} {$SINGLE_MOD|@getTranslatedString:$MODULE}</span> <br>
{/if}
<hr noshade size=1>
@@ -94,7 +94,7 @@ function AddressSync(Addform,id)
<table border=0 cellspacing=0 cellpadding=3 width=100% class="small">
<tr>
<td class="dvtTabCache" style="width:10px" nowrap>&nbsp;</td>
<td class="dvtSelectedCell" align=center nowrap>{$APP[$SINGLE_MOD]} {$APP.LBL_INFORMATION}</td>
<td class="dvtSelectedCell" align=center nowrap> {$SINGLE_MOD|@getTranslatedString:$MODULE} {$APP.LBL_INFORMATION}</td>
<td class="dvtTabCache" style="width:10px">&nbsp;</td>
<td class="dvtTabCache" style="width:100%">&nbsp;</td>
</tr>
@@ -229,16 +229,21 @@ function AddressSync(Addform,id)
</form>
{if ($MODULE eq 'Emails' || 'Documents') and ($FCKEDITOR_DISPLAY eq 'true')}
<script type="text/javascript" src="include/fckeditor/fckeditor.js"></script>
<script type="text/javascript" defer="1">
var oFCKeditor = null;
{if $MODULE eq 'Documents'}
oFCKeditor = new FCKeditor( "notecontent" ) ;
{/if}
oFCKeditor.BasePath = "include/fckeditor/" ;
oFCKeditor.ReplaceTextarea() ;
</script>
{if ($MODULE eq 'Emails' || 'Documents') and ($USE_RTE eq 'true')}
<script type="text/javascript" src="include/ckeditor/ckeditor.js"></script>
<script type="text/javascript" defer="1">
var textAreaName = null;
{if $MODULE eq 'Documents'}
textAreaName = "notecontent";
{else}
textAreaName = 'description';
{/if}
CKEDITOR.replace( textAreaName, {ldelim}
extraPlugins : 'uicolor',
uiColor: '#dfdff1'
{rdelim} ) ;
var oCKeditor = CKEDITOR.instances[textAreaName];
</script>
{/if}
{if $MODULE eq 'Accounts'}
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-02-09 19:27:42
<?php /* Smarty version 2.6.18, created on 2010-08-04 08:31:41
compiled from SetMenu.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'getTranslatedString', 'SetMenu.tpl', 30, false),array('modifier', 'vtiger_imageurl', 'SetMenu.tpl', 65, false),)), $this); ?>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-02-09 19:10:39
<?php /* Smarty version 2.6.18, created on 2010-08-04 10:22:36
compiled from Buttons_List1.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'getTranslatedString', 'Buttons_List1.tpl', 17, false),array('modifier', 'vtiger_imageurl', 'Buttons_List1.tpl', 43, false),)), $this); ?>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-06-09 23:57:43
<?php /* Smarty version 2.6.18, created on 2010-08-04 08:46:02
compiled from Settings/ModuleManager/ModuleImportStep2.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'Settings/ModuleManager/ModuleImportStep2.tpl', 5, false),)), $this); ?>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-04-22 22:49:21
<?php /* Smarty version 2.6.18, created on 2010-08-07 13:45:46
compiled from DocumentsListViewEntries.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'DocumentsListViewEntries.tpl', 62, false),array('modifier', 'count', 'DocumentsListViewEntries.tpl', 86, false),array('function', 'html_options', 'DocumentsListViewEntries.tpl', 295, false),)), $this); ?>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-02-09 19:27:27
<?php /* Smarty version 2.6.18, created on 2010-08-04 12:00:30
compiled from PopupContents.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'getTranslatedString', 'PopupContents.tpl', 17, false),array('modifier', 'vtiger_imageurl', 'PopupContents.tpl', 69, false),)), $this); ?>
@@ -1,7 +1,7 @@
<?php /* Smarty version 2.6.18, created on 2010-02-09 19:12:09
<?php /* Smarty version 2.6.18, created on 2010-08-07 13:44:53
compiled from CreateView.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtlib_purify', 'CreateView.tpl', 33, false),array('modifier', 'vtiger_imageurl', 'CreateView.tpl', 62, false),array('modifier', 'cat', 'CreateView.tpl', 80, false),)), $this); ?>
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtlib_purify', 'CreateView.tpl', 33, false),array('modifier', 'vtiger_imageurl', 'CreateView.tpl', 62, false),array('modifier', 'getTranslatedString', 'CreateView.tpl', 74, false),array('modifier', 'cat', 'CreateView.tpl', 80, false),)), $this); ?>
<link rel="stylesheet" type="text/css" media="all" href="jscalendar/calendar-win2k-cold-1.css">
@@ -70,7 +70,7 @@ unset($_smarty_tpl_vars);
<span class="lvtHeaderText"><font color="purple">[ <?php echo $this->_tpl_vars['ID']; ?>
] </font><?php echo $this->_tpl_vars['NAME']; ?>
- <?php echo $this->_tpl_vars['APP']['LBL_EDITING']; ?>
<?php echo $this->_tpl_vars['SINGLE_MOD_LABEL']; ?>
<?php echo getTranslatedString($this->_tpl_vars['SINGLE_MOD'], $this->_tpl_vars['MODULE']); ?>
<?php echo $this->_tpl_vars['APP']['LBL_INFORMATION']; ?>
</span> <br>
<?php echo $this->_tpl_vars['UPDATEINFO']; ?>
@@ -87,7 +87,7 @@ unset($_smarty_tpl_vars);
<?php else: ?>
<span class="lvtHeaderText"><?php echo $this->_tpl_vars['APP']['LBL_CREATING']; ?>
<?php echo $this->_tpl_vars['APP']['LBL_NEW']; ?>
<?php echo $this->_tpl_vars['SINGLE_MOD']; ?>
<?php echo getTranslatedString($this->_tpl_vars['SINGLE_MOD'], $this->_tpl_vars['MODULE']); ?>
</span> <br>
<?php endif; ?>
@@ -370,20 +370,21 @@ unset($_smarty_tpl_vars);
</table>
</form>
<?php if (( $this->_tpl_vars['MODULE'] == 'Emails' || 'Documents' ) && ( $this->_tpl_vars['FCKEDITOR_DISPLAY'] == 'true' )): ?>
<script type="text/javascript" src="include/fckeditor/fckeditor.js"></script>
<script type="text/javascript" defer="1">
var oFCKeditor = null;
<?php if ($this->_tpl_vars['MODULE'] == 'Documents'): ?>
oFCKeditor = new FCKeditor( "notecontent" ) ;
<?php endif; ?>
oFCKeditor.BasePath = "include/fckeditor/" ;
oFCKeditor.ReplaceTextarea() ;
</script>
<?php if (( $this->_tpl_vars['MODULE'] == 'Emails' || 'Documents' ) && ( $this->_tpl_vars['USE_RTE'] == 'true' )): ?>
<script type="text/javascript" src="include/ckeditor/ckeditor.js"></script>
<script type="text/javascript" defer="1">
var textAreaName = null;
<?php if ($this->_tpl_vars['MODULE'] == 'Documents'): ?>
textAreaName = "notecontent";
<?php else: ?>
textAreaName = 'description';
<?php endif; ?>
CKEDITOR.replace( textAreaName, {
extraPlugins : 'uicolor',
uiColor: '#dfdff1'
} ) ;
var oCKeditor = CKEDITOR.instances[textAreaName];
</script>
<?php endif; ?>
<?php if ($this->_tpl_vars['MODULE'] == 'Accounts'): ?>
<script>
@@ -1,7 +1,7 @@
<?php /* Smarty version 2.6.18, created on 2010-04-03 09:47:18
<?php /* Smarty version 2.6.18, created on 2010-08-04 11:08:20
compiled from FieldAccess.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'FieldAccess.tpl', 17, false),)), $this); ?>
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'FieldAccess.tpl', 17, false),array('modifier', 'getTranslatedString', 'FieldAccess.tpl', 62, false),)), $this); ?>
<script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
<br>
@@ -71,10 +71,7 @@ unset($_smarty_tpl_vars);
<?php $_from = $this->_tpl_vars['FIELD_INFO']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['module']):
?>
<?php $this->assign('MODULELABEL', $this->_tpl_vars['module']); ?>
<?php if ($this->_tpl_vars['APP'][$this->_tpl_vars['module']] != ''): ?>
<?php $this->assign('MODULELABEL', $this->_tpl_vars['APP'][$this->_tpl_vars['module']]); ?>
<?php endif; ?>
<?php $this->assign('MODULELABEL', getTranslatedString($this->_tpl_vars['module'], $this->_tpl_vars['module'])); ?>
<?php if ($this->_tpl_vars['module'] == $this->_tpl_vars['DEF_MODULE']): ?>
<option selected value='<?php echo $this->_tpl_vars['module']; ?>
'><?php echo $this->_tpl_vars['MODULELABEL']; ?>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-02-09 19:32:26
<?php /* Smarty version 2.6.18, created on 2010-08-09 23:38:20
compiled from RolePopup.tpl */ ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-04-03 01:41:29
<?php /* Smarty version 2.6.18, created on 2010-08-06 02:04:54
compiled from com_vtiger_workflow/Header.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'com_vtiger_workflow/Header.tpl', 16, false),)), $this); ?>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-04-22 22:49:21
<?php /* Smarty version 2.6.18, created on 2010-08-07 13:45:46
compiled from DocumentsListView.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'DocumentsListView.tpl', 215, false),array('function', 'html_options', 'DocumentsListView.tpl', 249, false),)), $this); ?>
@@ -10,35 +10,35 @@ smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imag
<script language="javascript" type="text/javascript">
var typeofdata = new Array();
typeofdata['E'] = ['is','isn','bwt','ewt','cts','dcts'];
typeofdata['V'] = ['is','isn','bwt','ewt','cts','dcts'];
typeofdata['N'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['NN'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['T'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['I'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['C'] = ['is','isn'];
typeofdata['DT'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['D'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['E'] = ['e','n','s','ew','c','k'];
typeofdata['V'] = ['e','n','s','ew','c','k'];
typeofdata['N'] = ['e','n','l','g','m','h'];
typeofdata['NN'] = ['e','n','l','g','m','h'];
typeofdata['T'] = ['e','n','l','g','m','h'];
typeofdata['I'] = ['e','n','l','g','m','h'];
typeofdata['C'] = ['e','n'];
typeofdata['DT'] = ['e','n','l','g','m','h'];
typeofdata['D'] = ['e','n','l','g','m','h'];
var fLabels = new Array();
fLabels['is'] = "<?php echo $this->_tpl_vars['APP']['is']; ?>
fLabels['e'] = "<?php echo $this->_tpl_vars['APP']['is']; ?>
";
fLabels['isn'] = "<?php echo $this->_tpl_vars['APP']['is_not']; ?>
fLabels['n'] = "<?php echo $this->_tpl_vars['APP']['is_not']; ?>
";
fLabels['bwt'] = "<?php echo $this->_tpl_vars['APP']['begins_with']; ?>
fLabels['s'] = "<?php echo $this->_tpl_vars['APP']['begins_with']; ?>
";
fLabels['ewt'] = "<?php echo $this->_tpl_vars['APP']['ends_with']; ?>
fLabels['ew'] = "<?php echo $this->_tpl_vars['APP']['ends_with']; ?>
";
fLabels['cts'] = "<?php echo $this->_tpl_vars['APP']['contains']; ?>
fLabels['c'] = "<?php echo $this->_tpl_vars['APP']['contains']; ?>
";
fLabels['dcts'] = "<?php echo $this->_tpl_vars['APP']['does_not_contains']; ?>
fLabels['k'] = "<?php echo $this->_tpl_vars['APP']['does_not_contains']; ?>
";
fLabels['lst'] = "<?php echo $this->_tpl_vars['APP']['less_than']; ?>
fLabels['l'] = "<?php echo $this->_tpl_vars['APP']['less_than']; ?>
";
fLabels['grt'] = "<?php echo $this->_tpl_vars['APP']['greater_than']; ?>
fLabels['g'] = "<?php echo $this->_tpl_vars['APP']['greater_than']; ?>
";
fLabels['lsteq'] = "<?php echo $this->_tpl_vars['APP']['less_or_equal']; ?>
fLabels['m'] = "<?php echo $this->_tpl_vars['APP']['less_or_equal']; ?>
";
fLabels['grteq'] = "<?php echo $this->_tpl_vars['APP']['greater_or_equal']; ?>
fLabels['h'] = "<?php echo $this->_tpl_vars['APP']['greater_or_equal']; ?>
";
var noneLabel;
<?php echo '
@@ -244,7 +244,7 @@ unset($_smarty_tpl_vars);
<td class="showPanelBg" valign="top" width=100% style="padding:10px;">
<!-- SIMPLE SEARCH -->
<div id="searchAcc" style="z-index:1;display:none;position:relative;">
<div id="searchAcc" style="display: block;position:relative;">
<form name="basicSearch" method="post" action="index.php" onSubmit="return callSearch('Basic');">
<table width="80%" cellpadding="5" cellspacing="0" class="searchUIBasic small" align="center" border=0>
<tr>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-04-03 09:41:31
<?php /* Smarty version 2.6.18, created on 2010-08-04 11:07:17
compiled from RoleDetailView.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'RoleDetailView.tpl', 17, false),)), $this); ?>
@@ -0,0 +1,117 @@
<?php /* Smarty version 2.6.18, created on 2010-08-04 10:22:26
compiled from Settings/ModuleManager/ModuleUpdateStep1.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'Settings/ModuleManager/ModuleUpdateStep1.tpl', 17, false),array('modifier', 'vtlib_purify', 'Settings/ModuleManager/ModuleUpdateStep1.tpl', 66, false),)), $this); ?>
<?php echo '
<script type="text/javascript">
function modulemanager_update_validate(form) {
if(form.module_zipfile.value == \'\') {
alert("Please select the zip file before proceeding.");
return false;
}
return true;
}
</script>
'; ?>
<div id="vtlib_modulemanager_update" style="display:block;position:absolute;width:500px;"></div>
<br>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
<tr>
<td valign="top"><img src="<?php echo vtiger_imageurl('showPanelTopLeft.gif', $this->_tpl_vars['THEME']); ?>
"></td>
<td class="showPanelBg" style="padding: 10px;" valign="top" width="100%">
<br>
<div align=center>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'SetMenu.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<table class="settingsSelUITopLine" border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td rowspan="2" valign="top" width="50"><img src="<?php echo vtiger_imageurl('vtlib_modmng.gif', $this->_tpl_vars['THEME']); ?>
" alt="<?php echo $this->_tpl_vars['MOD']['LBL_USERS']; ?>
" title="<?php echo $this->_tpl_vars['MOD']['LBL_USERS']; ?>
" border="0" height="48" width="48"></td>
<td class="heading2" valign="bottom"><b><a href="index.php?module=Settings&action=index&parenttab=Settings"><?php echo $this->_tpl_vars['MOD']['LBL_SETTINGS']; ?>
</a> &gt; <?php echo $this->_tpl_vars['MOD']['VTLIB_LBL_MODULE_MANAGER']; ?>
&gt; <?php echo $this->_tpl_vars['MOD']['LBL_UPGRADE']; ?>
</b></td>
</tr>
<tr>
<td class="small" valign="top"><?php echo $this->_tpl_vars['MOD']['VTLIB_LBL_MODULE_MANAGER_DESCRIPTION']; ?>
</td>
</tr>
</table>
<br>
<table border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
<td>
<div id="vtlib_modulemanager_update_div">
<form method="POST" action="index.php" enctype="multipart/form-data">
<table class='tableHeading' cellpadding=5 cellspacing=0 border=0 width=100%>
<tr>
<td class='big' colspan=2><b><?php echo $this->_tpl_vars['MOD']['VTLIB_LBL_SELECT_PACKAGE_FILE']; ?>
</b></td>
</tr>
</table>
<table cellpadding=5 cellspacing=0 border=0 width=100%>
<tr valign=top>
<td class='cellLabel small'>
<font color=red>*</font> <b><?php echo $this->_tpl_vars['MOD']['VTLIB_LBL_FILE_LOCATION']; ?>
</b>
</td>
<td class='cellText small'>
<input type="file" class="small" name="module_zipfile" size=50>
<p>
<?php echo $this->_tpl_vars['MOD']['VTLIB_LBL_PACKAGE_FILE_HELP']; ?>
</p>
</td>
</tr>
</table>
<table class='tableHeading' cellpadding=5 cellspacing=0 border=0 width=100%>
<tr valign=top>
<td class='cellText small' colspan=2 align=right>
<input type="hidden" name="module" value="Settings">
<input type="hidden" name="action" value="ModuleManager">
<input type="hidden" name="module_update" value="Step2">
<input type="hidden" name="parenttab" value="Settings">
<input type="hidden" name="target_modulename" value="<?php echo vtlib_purify($_REQUEST['src_module']); ?>
">
<input type="submit" class="crmbutton small edit" value="<?php echo $this->_tpl_vars['MOD']['LBL_UPGRADE']; ?>
" onclick="return modulemanager_update_validate(this.form)">
<input type="submit" class="crmbutton small delete" value="<?php echo $this->_tpl_vars['APP']['LBL_CANCEL_BUTTON_LABEL']; ?>
"
onclick="this.form.module_update.value='';">
</td>
</tr>
</table>
</form>
</div>
</td>
</tr>
</table>
<!-- End of Display -->
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
<td valign="top"><img src="<?php echo $this->_tpl_vars['IMAGE_PATH']; ?>
showPanelTopRight.gif"></td>
</tr>
</table>
<br>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-02-09 19:10:39
<?php /* Smarty version 2.6.18, created on 2010-08-09 22:52:35
compiled from DetailViewFields.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'DetailViewFields.tpl', 30, false),array('modifier', 'vtiger_imageurl', 'DetailViewFields.tpl', 42, false),array('modifier', 'cat', 'DetailViewFields.tpl', 91, false),array('modifier', 'replace', 'DetailViewFields.tpl', 96, false),array('modifier', 'regex_replace', 'DetailViewFields.tpl', 112, false),)), $this); ?>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-02-05 02:00:49
<?php /* Smarty version 2.6.18, created on 2010-08-04 10:17:44
compiled from Home/TagCloud.tpl */ ?>
<div id="tagcloud" style="overflow: auto; width: 100%; padding-left: 2%; padding-right: 3%; min-height: 250px;" >
<img src='<?php echo $this->_tpl_vars['IMAGE_PATH']; ?>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-02-09 19:10:39
<?php /* Smarty version 2.6.18, created on 2010-08-04 08:12:14
compiled from DetailViewUI.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'DetailViewUI.tpl', 41, false),array('modifier', 'vtiger_imageurl', 'DetailViewUI.tpl', 53, false),array('modifier', 'getTranslatedCurrencyString', 'DetailViewUI.tpl', 64, false),array('modifier', 'cat', 'DetailViewUI.tpl', 126, false),array('modifier', 'replace', 'DetailViewUI.tpl', 131, false),array('modifier', 'wordwrap', 'DetailViewUI.tpl', 133, false),array('modifier', 'regex_replace', 'DetailViewUI.tpl', 193, false),array('modifier', 'parse_calendardate', 'DetailViewUI.tpl', 361, false),)), $this); ?>
@@ -23,6 +23,7 @@ smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'De
<?php if ($this->_tpl_vars['USE_ASTERISK'] == 'true'): ?>
&nbsp;&nbsp;<span id="dtlview_<?php echo $this->_tpl_vars['label']; ?>
"><a href='javascript:;' onclick='startCall("<?php echo $this->_tpl_vars['keyval']; ?>
", "<?php echo $this->_tpl_vars['ID']; ?>
")'><?php echo $this->_tpl_vars['keyval']; ?>
</a></span>
<?php else: ?>
@@ -693,7 +694,7 @@ smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'De
<div id="editarea_<?php echo $this->_tpl_vars['label']; ?>
" style="display:none;">
<?php if ($this->_tpl_vars['MODULE'] != 'Documents'): ?>
<?php if ($this->_tpl_vars['keyval'] == 'yes'): ?>
<?php if ($this->_tpl_vars['keyval'] == $this->_tpl_vars['APP']['yes']): ?>
<input id="txtbox_<?php echo $this->_tpl_vars['label']; ?>
" name="<?php echo $this->_tpl_vars['keyfldname']; ?>
" type="checkbox" style="border:1px solid #bababa;" checked value="1">
@@ -703,7 +704,7 @@ smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'De
" style="border:1px solid #bababa;" value="0">
<?php endif; ?>
<?php else: ?>
<?php if ($this->_tpl_vars['keyval'] == 'yes'): ?>
<?php if ($this->_tpl_vars['keyval'] == $this->_tpl_vars['APP']['yes']): ?>
<input id="txtbox_<?php echo $this->_tpl_vars['label']; ?>
" name="<?php echo $this->_tpl_vars['keyfldname']; ?>
" type="checkbox" style="border:1px solid #bababa;" checked value="0">
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-04-20 13:22:37
<?php /* Smarty version 2.6.18, created on 2010-08-04 11:09:05
compiled from RoleEditView.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'RoleEditView.tpl', 62, false),)), $this); ?>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-02-09 19:12:09
<?php /* Smarty version 2.6.18, created on 2010-08-04 12:00:08
compiled from EditViewHidden.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtlib_purify', 'EditViewHidden.tpl', 87, false),)), $this); ?>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-02-05 02:00:46
<?php /* Smarty version 2.6.18, created on 2010-08-03 22:45:39
compiled from Home/HomeButtons.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'Home/HomeButtons.tpl', 27, false),array('modifier', 'getTranslatedString', 'Home/HomeButtons.tpl', 158, false),)), $this); ?>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-06-09 23:59:33
<?php /* Smarty version 2.6.18, created on 2010-08-04 10:19:25
compiled from Settings/ModuleManager/ModuleImportStep3.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'Settings/ModuleManager/ModuleImportStep3.tpl', 5, false),)), $this); ?>
@@ -1,7 +1,7 @@
<?php /* Smarty version 2.6.18, created on 2010-02-09 19:12:20
<?php /* Smarty version 2.6.18, created on 2010-08-03 22:48:54
compiled from ListViewEntries.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'ListViewEntries.tpl', 144, false),array('function', 'html_options', 'ListViewEntries.tpl', 258, false),)), $this); ?>
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'getTranslatedString', 'ListViewEntries.tpl', 64, false),array('modifier', 'vtiger_imageurl', 'ListViewEntries.tpl', 74, false),array('function', 'html_options', 'ListViewEntries.tpl', 348, false),)), $this); ?>
<?php if ($_REQUEST['ajax'] != ''): ?>
&#&#&#<?php echo $this->_tpl_vars['ERROR']; ?>
&#&#&#
@@ -62,6 +62,60 @@ smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imag
" onclick="return change(this,'changeowner')"/>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
<?php if ($this->_tpl_vars['CUSTOM_LINKS'] && $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEWBASIC']): ?>
<?php $_from = $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['CUSTOMLINK']):
?>
<?php $this->assign('customlink_href', $this->_tpl_vars['CUSTOMLINK']->linkurl); ?>
<?php $this->assign('customlink_label', $this->_tpl_vars['CUSTOMLINK']->linklabel); ?>
<?php if ($this->_tpl_vars['customlink_label'] == ''): ?>
<?php $this->assign('customlink_label', $this->_tpl_vars['customlink_href']); ?>
<?php else: ?>
<?php $this->assign('customlink_label', getTranslatedString($this->_tpl_vars['customlink_label'], $this->_tpl_vars['CUSTOMLINK']->module())); ?>
<?php endif; ?>
<input class="crmbutton small edit" type="button" value="<?php echo $this->_tpl_vars['customlink_label']; ?>
" onclick="<?php echo $this->_tpl_vars['customlink_href']; ?>
" />
<?php endforeach; endif; unset($_from); ?>
<?php endif; ?>
<?php if ($this->_tpl_vars['CUSTOM_LINKS'] && ! empty ( $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEW'] )): ?>
&nbsp;
<a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');">
<b><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
<?php echo $this->_tpl_vars['APP']['LBL_ACTIONS']; ?>
<img src="<?php echo vtiger_imageurl('arrow_down.gif', $this->_tpl_vars['THEME']); ?>
" border="0"></b>
</a>
<div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_customLinksLay"
onmouseout="fninvsh('vtlib_customLinksLay')" onmouseover="fnvshNrm('vtlib_customLinksLay')">
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
<?php echo $this->_tpl_vars['APP']['LBL_ACTIONS']; ?>
&#187;</b></td></tr>
<tr>
<td>
<?php $_from = $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['CUSTOMLINK']):
?>
<?php $this->assign('customlink_href', $this->_tpl_vars['CUSTOMLINK']->linkurl); ?>
<?php $this->assign('customlink_label', $this->_tpl_vars['CUSTOMLINK']->linklabel); ?>
<?php if ($this->_tpl_vars['customlink_label'] == ''): ?>
<?php $this->assign('customlink_label', $this->_tpl_vars['customlink_href']); ?>
<?php else: ?>
<?php $this->assign('customlink_label', getTranslatedString($this->_tpl_vars['customlink_label'], $this->_tpl_vars['CUSTOMLINK']->module())); ?>
<?php endif; ?>
<a href="<?php echo $this->_tpl_vars['customlink_href']; ?>
" class="drop_down"><?php echo $this->_tpl_vars['customlink_label']; ?>
</a>
<?php endforeach; endif; unset($_from); ?>
</td>
</tr>
</table>
</div>
<?php endif; ?>
</td>
<td class="small" nowrap>
<?php echo $this->_tpl_vars['recordListRange']; ?>
@@ -337,9 +391,61 @@ if ($this->_foreach['listviewforeach']['total'] > 0):
<input class="crmbutton small edit" type="button" value="<?php echo $this->_tpl_vars['button_label']; ?>
" onclick="return change(this,'changeowner')"/>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
</td>
<?php endforeach; endif; unset($_from); ?>
<?php if ($this->_tpl_vars['CUSTOM_LINKS'] && $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEWBASIC']): ?>
<?php $_from = $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['CUSTOMLINK']):
?>
<?php $this->assign('customlink_href', $this->_tpl_vars['CUSTOMLINK']->linkurl); ?>
<?php $this->assign('customlink_label', $this->_tpl_vars['CUSTOMLINK']->linklabel); ?>
<?php if ($this->_tpl_vars['customlink_label'] == ''): ?>
<?php $this->assign('customlink_label', $this->_tpl_vars['customlink_href']); ?>
<?php else: ?>
<?php $this->assign('customlink_label', getTranslatedString($this->_tpl_vars['customlink_label'], $this->_tpl_vars['CUSTOMLINK']->module())); ?>
<?php endif; ?>
<input class="crmbutton small edit" type="button" value="<?php echo $this->_tpl_vars['customlink_label']; ?>
" onclick="<?php echo $this->_tpl_vars['customlink_href']; ?>
" />
<?php endforeach; endif; unset($_from); ?>
<?php endif; ?>
<?php if ($this->_tpl_vars['CUSTOM_LINKS'] && ! empty ( $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEW'] )): ?>
&nbsp;
<a href="javascript:;" onmouseover="fnvshobj(this,'vtlib_customLinksLay');" onclick="fnvshobj(this,'vtlib_customLinksLay');">
<b><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
<?php echo $this->_tpl_vars['APP']['LBL_ACTIONS']; ?>
<img src="<?php echo vtiger_imageurl('arrow_down.gif', $this->_tpl_vars['THEME']); ?>
" border="0"></b>
</a>
<div style="display: none; left: 193px; top: 106px;width:155px; position:absolute;" id="vtlib_customLinksLay"
onmouseout="fninvsh('vtlib_customLinksLay')" onmouseover="fnvshNrm('vtlib_customLinksLay')">
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td style="border-bottom: 1px solid rgb(204, 204, 204); padding: 5px;"><b><?php echo $this->_tpl_vars['APP']['LBL_MORE']; ?>
<?php echo $this->_tpl_vars['APP']['LBL_ACTIONS']; ?>
&#187;</b></td></tr>
<tr>
<td>
<?php $_from = $this->_tpl_vars['CUSTOM_LINKS']['LISTVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['CUSTOMLINK']):
?>
<?php $this->assign('customlink_href', $this->_tpl_vars['CUSTOMLINK']->linkurl); ?>
<?php $this->assign('customlink_label', $this->_tpl_vars['CUSTOMLINK']->linklabel); ?>
<?php if ($this->_tpl_vars['customlink_label'] == ''): ?>
<?php $this->assign('customlink_label', $this->_tpl_vars['customlink_href']); ?>
<?php else: ?>
<?php $this->assign('customlink_label', getTranslatedString($this->_tpl_vars['customlink_label'], $this->_tpl_vars['CUSTOMLINK']->module())); ?>
<?php endif; ?>
<a href="<?php echo $this->_tpl_vars['customlink_href']; ?>
" class="drop_down"><?php echo $this->_tpl_vars['customlink_label']; ?>
</a>
<?php endforeach; endif; unset($_from); ?>
</td>
</tr>
</table>
</div>
<?php endif; ?>
</td>
<td class="small" nowrap>
<?php echo $this->_tpl_vars['recordListRange']; ?>
@@ -1,7 +1,7 @@
<?php /* Smarty version 2.6.18, created on 2010-02-09 19:12:20
<?php /* Smarty version 2.6.18, created on 2010-08-03 22:48:53
compiled from ListView.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'ListView.tpl', 228, false),array('function', 'html_options', 'ListView.tpl', 262, false),)), $this); ?>
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'ListView.tpl', 208, false),array('function', 'html_options', 'ListView.tpl', 242, false),)), $this); ?>
<script language="JavaScript" type="text/javascript" src="include/js/ListView.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/search.js"></script>
@@ -9,35 +9,35 @@ smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imag
<script language="JavaScript" type="text/javascript" src="include/js/dtlviewajax.js"></script>
<script language="javascript" type="text/javascript">
var typeofdata = new Array();
typeofdata['E'] = ['is','isn','bwt','ewt','cts','dcts'];
typeofdata['V'] = ['is','isn','bwt','ewt','cts','dcts'];
typeofdata['N'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['NN'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['T'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['I'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['C'] = ['is','isn'];
typeofdata['DT'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['D'] = ['is','isn','lst','grt','lsteq','grteq'];
typeofdata['E'] = ['e','n','s','ew','c','k'];
typeofdata['V'] = ['e','n','s','ew','c','k'];
typeofdata['N'] = ['e','n','l','g','m','h'];
typeofdata['NN'] = ['e','n','l','g','m','h'];
typeofdata['T'] = ['e','n','l','g','m','h'];
typeofdata['I'] = ['e','n','l','g','m','h'];
typeofdata['C'] = ['e','n'];
typeofdata['DT'] = ['e','n','l','g','m','h'];
typeofdata['D'] = ['e','n','l','g','m','h'];
var fLabels = new Array();
fLabels['is'] = "<?php echo $this->_tpl_vars['APP']['is']; ?>
fLabels['e'] = "<?php echo $this->_tpl_vars['APP']['is']; ?>
";
fLabels['isn'] = "<?php echo $this->_tpl_vars['APP']['is_not']; ?>
fLabels['n'] = "<?php echo $this->_tpl_vars['APP']['is_not']; ?>
";
fLabels['bwt'] = "<?php echo $this->_tpl_vars['APP']['begins_with']; ?>
fLabels['s'] = "<?php echo $this->_tpl_vars['APP']['begins_with']; ?>
";
fLabels['ewt'] = "<?php echo $this->_tpl_vars['APP']['ends_with']; ?>
fLabels['ew'] = "<?php echo $this->_tpl_vars['APP']['ends_with']; ?>
";
fLabels['cts'] = "<?php echo $this->_tpl_vars['APP']['contains']; ?>
fLabels['c'] = "<?php echo $this->_tpl_vars['APP']['contains']; ?>
";
fLabels['dcts'] = "<?php echo $this->_tpl_vars['APP']['does_not_contains']; ?>
fLabels['k'] = "<?php echo $this->_tpl_vars['APP']['does_not_contains']; ?>
";
fLabels['lst'] = "<?php echo $this->_tpl_vars['APP']['less_than']; ?>
fLabels['l'] = "<?php echo $this->_tpl_vars['APP']['less_than']; ?>
";
fLabels['grt'] = "<?php echo $this->_tpl_vars['APP']['greater_than']; ?>
fLabels['g'] = "<?php echo $this->_tpl_vars['APP']['greater_than']; ?>
";
fLabels['lsteq'] = "<?php echo $this->_tpl_vars['APP']['less_or_equal']; ?>
fLabels['m'] = "<?php echo $this->_tpl_vars['APP']['less_or_equal']; ?>
";
fLabels['grteq'] = "<?php echo $this->_tpl_vars['APP']['greater_or_equal']; ?>
fLabels['h'] = "<?php echo $this->_tpl_vars['APP']['greater_or_equal']; ?>
";
var noneLabel;
<?php echo '
@@ -57,22 +57,6 @@ function updatefOptions(sel, opSelName) {
var fld = currField.value.split(":");
var tod = fld[4];
/* if(fld[4] == \'D\' || (fld[4] == \'T\' && fld[1] != \'time_start\' && fld[1] != \'time_end\') || fld[4] == \'DT\')
{
$("and"+sel.id).innerHTML = "";
if(sel.id != "fcol5")
$("and"+sel.id).innerHTML = "<em old=\'(yyyy-mm-dd)\'>("+$("user_dateformat").value+")</em>&nbsp;"+alert_arr.LBL_AND;
else
$("and"+sel.id).innerHTML = "<em old=\'(yyyy-mm-dd)\'>("+$("user_dateformat").value+")</em>&nbsp;";
}
else {
$("and"+sel.id).innerHTML = "";
if(sel.id != "fcol5")
$("and"+sel.id).innerHTML = "&nbsp;"+alert_arr.LBL_AND;
else
$("and"+sel.id).innerHTML = "&nbsp;";
}
*/
if(currField.value != null && currField.value.length != 0)
{
fieldtype = trimfValues(currField.value);
@@ -87,10 +71,6 @@ function updatefOptions(sel, opSelName) {
{
selObj.remove(0);
}
/* selObj.options[0] = new Option (\'None\', \'\');
if (currField.value == \'\') {
selObj.options[0].selected = true;
}*/
for (var i = 0; i < ops.length; i++)
{
var label = fLabels[ops[i]];
@@ -257,7 +237,7 @@ unset($_smarty_tpl_vars);
<td class="showPanelBg" valign="top" width=100% style="padding:10px;">
<!-- SIMPLE SEARCH -->
<div id="searchAcc" style="z-index:1;display:none;position:relative;">
<div id="searchAcc" style="display: block;position:relative;">
<form name="basicSearch" method="post" action="index.php" onSubmit="return callSearch('Basic');">
<table width="80%" cellpadding="5" cellspacing="0" class="searchUIBasic small" align="center" border=0>
<tr>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-04-03 09:47:52
<?php /* Smarty version 2.6.18, created on 2010-08-04 11:07:52
compiled from OrgSharingEditView.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'OrgSharingEditView.tpl', 16, false),)), $this); ?>
@@ -0,0 +1,41 @@
<?php /* Smarty version 2.6.18, created on 2010-08-09 12:21:14
compiled from modules/SMSNotifier/SMSConfigServerListContents.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'modules/SMSNotifier/SMSConfigServerListContents.tpl', 25, false),)), $this); ?>
<table width="100%" cellpadding="5" cellspacing="0" class="listTable" >
<tr>
<td class="colHeader small" width="30%" nowrap="nowrap"><?php echo $this->_tpl_vars['CMOD']['LBL_PROVIDER']; ?>
</td>
<td class="colHeader small" width="25%" nowrap="nowrap"><?php echo $this->_tpl_vars['MOD']['LBL_USERNAME']; ?>
</td>
<td class="colHeader small" width="10%" nowrap="nowrap"><?php echo $this->_tpl_vars['APP']['Active']; ?>
</td>
<td class="colHeader small" width="10%"><?php echo $this->_tpl_vars['MOD']['Tools']; ?>
</td>
</tr>
<?php $_from = $this->_tpl_vars['SMSSERVERS']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['SMSSERVER']):
?>
<tr>
<td class="listTableRow small"><?php echo $this->_tpl_vars['SMSSERVER']['providertype']; ?>
</td>
<td class="listTableRow small"><?php echo $this->_tpl_vars['SMSSERVER']['username']; ?>
</td>
<td class="listTableRow small"><?php if ($this->_tpl_vars['SMSSERVER']['isactive']): ?><?php echo $this->_tpl_vars['APP']['yes']; ?>
<?php else: ?><?php echo $this->_tpl_vars['APP']['no']; ?>
<?php endif; ?></td>
<td class="listTableRow small">
<img onClick="fnvshobj(this,'editdiv');_SMSConfigServerFetchEdit('<?php echo $this->_tpl_vars['SMSSERVER']['id']; ?>
');" style="cursor:pointer;" src="<?php echo vtiger_imageurl('editfield.gif', $this->_tpl_vars['THEME']); ?>
" title="<?php echo $this->_tpl_vars['APP']['LBL_EDIT']; ?>
">
<img onClick="fnvshobj(this,'editdiv');_SMSConfigServerDelete('<?php echo $this->_tpl_vars['SMSSERVER']['id']; ?>
');" style="cursor:pointer;" src="<?php echo vtiger_imageurl('delete.gif', $this->_tpl_vars['THEME']); ?>
" title="<?php echo $this->_tpl_vars['APP']['LBL_DELETE']; ?>
">
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</table>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-02-05 02:00:46
<?php /* Smarty version 2.6.18, created on 2010-08-03 22:45:40
compiled from Home/MainHomeBlock.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'getTranslatedString', 'Home/MainHomeBlock.tpl', 3, false),array('modifier', 'vtiger_imageurl', 'Home/MainHomeBlock.tpl', 19, false),)), $this); ?>
@@ -25,44 +25,60 @@ smarty_core_load_plugins(array('plugins' => array(array('modifier', 'getTranslat
<a id="editlink" style='cursor:pointer;' onclick="showEditrow(<?php echo $this->_tpl_vars['tablestuff']['Stuffid']; ?>
)">
<img src="<?php echo vtiger_imageurl('windowSettings.gif', $this->_tpl_vars['THEME']); ?>
" border="0" alt="Edit" title="Edit" hspace="2" align="absmiddle"/>
" border="0" alt="<?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON']; ?>
" title="<?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON_TITLE']; ?>
" hspace="2" align="absmiddle"/>
</a>
<?php else: ?>
<img src="<?php echo vtiger_imageurl('windowSettings-off.gif', $this->_tpl_vars['THEME']); ?>
" border="0" alt="Edit" title="Edit" hspace="2" align="absmiddle"/>
" border="0" alt="<?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON']; ?>
" title="<?php echo $this->_tpl_vars['APP']['LBL_EDIT_BUTTON_TITLE']; ?>
" hspace="2" align="absmiddle"/>
<?php endif; ?>
<?php if ($this->_tpl_vars['tablestuff']['Stufftitle'] == $this->_tpl_vars['homepagedashboard_title']): ?>
<a style='cursor:pointer;' onclick="fetch_homeDB(<?php echo $this->_tpl_vars['tablestuff']['Stuffid']; ?>
);">
<img src="<?php echo vtiger_imageurl('windowRefresh.gif', $this->_tpl_vars['THEME']); ?>
" border="0" alt="Refresh" title="Refresh" hspace="2" align="absmiddle"/>
" border="0" alt="<?php echo $this->_tpl_vars['APP']['LBL_REFRESH']; ?>
" title="<?php echo $this->_tpl_vars['APP']['LBL_REFRESH']; ?>
" hspace="2" align="absmiddle"/>
</a>
<?php else: ?>
<a style='cursor:pointer;' onclick="loadStuff(<?php echo $this->_tpl_vars['tablestuff']['Stuffid']; ?>
,'<?php echo $this->_tpl_vars['tablestuff']['Stufftype']; ?>
');">
<img src="<?php echo vtiger_imageurl('windowRefresh.gif', $this->_tpl_vars['THEME']); ?>
" border="0" alt="Refresh" title="Refresh" hspace="2" align="absmiddle"/>
" border="0" alt="<?php echo $this->_tpl_vars['APP']['LBL_REFRESH']; ?>
" title="<?php echo $this->_tpl_vars['APP']['LBL_REFRESH']; ?>
" hspace="2" align="absmiddle"/>
</a>
<?php endif; ?>
<?php if ($this->_tpl_vars['tablestuff']['Stufftype'] == 'Default' || $this->_tpl_vars['tablestuff']['Stufftype'] == 'Tag Cloud'): ?>
<a style='cursor:pointer;' onclick="HideDefault(<?php echo $this->_tpl_vars['tablestuff']['Stuffid']; ?>
)"><img src="<?php echo vtiger_imageurl('windowMinMax.gif', $this->_tpl_vars['THEME']); ?>
" border="0" alt="Hide" title="Hide" hspace="5" align="absmiddle"/></a>
" border="0" alt="<?php echo $this->_tpl_vars['APP']['LBL_HIDE']; ?>
" title="<?php echo $this->_tpl_vars['APP']['LBL_HIDE']; ?>
" hspace="5" align="absmiddle"/></a>
<?php else: ?>
<img src="<?php echo vtiger_imageurl('windowMinMax-off.gif', $this->_tpl_vars['THEME']); ?>
" border="0" alt="Hide" title="Hide" hspace="5" align="absmiddle"/>
" border="0" alt="<?php echo $this->_tpl_vars['APP']['LBL_HIDE']; ?>
" title="<?php echo $this->_tpl_vars['APP']['LBL_HIDE']; ?>
" hspace="5" align="absmiddle"/>
<?php endif; ?>
<?php if ($this->_tpl_vars['tablestuff']['Stufftype'] != 'Default' && $this->_tpl_vars['tablestuff']['Stufftype'] != 'Tag Cloud'): ?>
<a id="deletelink" style='cursor:pointer;' onclick="DelStuff(<?php echo $this->_tpl_vars['tablestuff']['Stuffid']; ?>
)"><img src="<?php echo vtiger_imageurl('windowClose.gif', $this->_tpl_vars['THEME']); ?>
" border="0" alt="Close" title="Close" hspace="5" align="absmiddle"/></a>
" border="0" alt="<?php echo $this->_tpl_vars['APP']['LBL_CLOSE']; ?>
" title="<?php echo $this->_tpl_vars['APP']['LBL_CLOSE']; ?>
" hspace="5" align="absmiddle"/></a>
<?php else: ?>
<img src="<?php echo vtiger_imageurl('windowClose-off.gif', $this->_tpl_vars['THEME']); ?>
" border="0" alt="Close" title="Close" hspace="5" align="absmiddle"/>
" border="0" alt="<?php echo $this->_tpl_vars['APP']['LBL_CLOSE']; ?>
" title="<?php echo $this->_tpl_vars['APP']['LBL_CLOSE']; ?>
" hspace="5" align="absmiddle"/>
<?php endif; ?>
</td>
</tr>
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-04-03 01:25:49
<?php /* Smarty version 2.6.18, created on 2010-08-04 22:38:27
compiled from CustomView.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'CustomView.tpl', 114, false),)), $this); ?>
@@ -0,0 +1,181 @@
<?php /* Smarty version 2.6.18, created on 2010-08-04 22:33:05
compiled from ListLoginHistory.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'ListLoginHistory.tpl', 23, false),)), $this); ?>
<script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script>
<script src="include/scriptaculous/prototype.js" type="text/javascript"></script>
<script src="include/scriptaculous/scriptaculous.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="include/js/general.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/dtlviewajax.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
<br>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
<tbody><tr>
<td valign="top"><img src="<?php echo vtiger_imageurl('showPanelTopLeft.gif', $this->_tpl_vars['THEME']); ?>
"></td>
<td class="showPanelBg" style="padding: 10px;" valign="top" width="100%">
<form action="index.php" method="post" name="ListLoginHistory" id="form" onsubmit="VtigerJS_DialogBox.block();">
<input type='hidden' name='module' value='Users'>
<input type='hidden' name='action' value='ListLoginHistory'>
<input type='hidden' name='record' id='record' value="<?php echo $this->_tpl_vars['ID']; ?>
">
<input type='hidden' name='parenttab' value='Settings'>
<br>
<div align=center>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'SetMenu.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<!-- DISPLAY -->
<table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine">
<tr>
<td width=50 rowspan=2 valign=top><img src="<?php echo vtiger_imageurl('set-IcoLoginHistory.gif', $this->_tpl_vars['THEME']); ?>
" alt="<?php echo $this->_tpl_vars['MOD']['LBL_AUDIT_TRAIL']; ?>
" width="48" height="48" border=0 title="<?php echo $this->_tpl_vars['MOD']['LBL_LOGIN_HISTORY_DETAILS']; ?>
"></td>
<td class=heading2 valign=bottom><b><a href="index.php?module=Settings&action=index&parenttab=Settings"><?php echo $this->_tpl_vars['MOD']['LBL_SETTINGS']; ?>
</a> > <?php echo $this->_tpl_vars['MOD']['LBL_LOGIN_HISTORY_DETAILS']; ?>
</b></td>
</tr>
<tr>
<td valign=top class="small"><?php echo $this->_tpl_vars['MOD']['LBL_LOGIN_HISTORY_DESCRIPTION']; ?>
</td>
</tr>
</table>
<br>
<table border=0 cellspacing=0 cellpadding=10 width=100% >
<tr>
<td>
<table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
<tr>
<td class="big" height="30px;"><strong><?php echo $this->_tpl_vars['MOD']['LBL_LOGIN_HISTORY_DETAILS']; ?>
</strong></td>
<td class="small" align="left">&nbsp;</td>
</tr>
</table>
<table border=0 cellspacing=0 cellpadding=0 width=100% class="listRow">
<tr>
<td class="small" valign=top ><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr valign="top">
<td nowrap width="18%" class="small cellLabel"><strong><?php echo $this->_tpl_vars['MOD']['LBL_USER_AUDIT']; ?>
</strong></td>
<td class="small cellText">
<select name="user_list" id="user_list" onchange="fetchlogin_js(<?php echo $this->_tpl_vars['ID']; ?>
);">
<option value="none" selected="true"><?php echo $this->_tpl_vars['APP']['LBL_NONE']; ?>
</option>
<?php echo $this->_tpl_vars['USERLIST']; ?>
</select>
</td>
</tr>
</table>
</td>
</tr>
<table class="tableHeading" border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td class="big">
<strong><?php echo $this->_tpl_vars['CMOD']['LBL_LOGIN_HISTORY']; ?>
</strong>
</td>
</tr>
</table>
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr><td align="left"><div id="login_history_cont" style="display:none;"></div></td><td></td></tr>
</table>
<br>
</table>
<table border=0 cellspacing=0 cellpadding=5 width=100% >
<tr>
<td class="small" nowrap align=right><a href="#top"><?php echo $this->_tpl_vars['MOD']['LBL_SCROLL']; ?>
</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
<td valign="top"><img src="<?php echo vtiger_imageurl('showPanelTopRight.gif', $this->_tpl_vars['THEME']); ?>
"></td>
</tr>
</tbody>
</form>
</table>
<?php echo '
<script>
function fetchlogin_js(id)
{
fetchLoginHistory(id);
}
function fetchLoginHistory(id)
{
var oUser_combo = $(\'user_list\');
var id = oUser_combo.options[oUser_combo.selectedIndex].value;
if ( id == \'none\')
{
Effect.Fade(\'login_history_cont\');
}
else
{
$("status").style.display="inline";
new Ajax.Request(
\'index.php\',
{queue: {position: \'end\', scope: \'command\'},
method: \'post\',
postBody: \'module=Users&action=UsersAjax&file=ShowHistory&ajax=true&record=\'+id,
onComplete: function(response) {
$("status").style.display="none";
$("login_history_cont").innerHTML= response.responseText;
Effect.Appear(\'login_history_cont\');
}
}
);
}
}
</script>
'; ?>
<script>
function getListViewEntries_js(module,url)
{
var oUser_combo = $('user_list');
var id = oUser_combo.options[oUser_combo.selectedIndex].value;
$("status").style.display="inline";
new Ajax.Request(
'index.php',
{queue: {position: 'end', scope: 'command'},
method: 'post',
postBody:"module="+module+"&action="+module+"Ajax&file=ShowHistory&record="+id+"&ajax=true&"+url,
onComplete: function(response) {
$("status").style.display="none";
$("login_history_cont").innerHTML= response.responseText;
}
}
);
}
</script>
@@ -1,7 +1,7 @@
<?php /* Smarty version 2.6.18, created on 2010-03-24 20:18:51
<?php /* Smarty version 2.6.18, created on 2010-08-04 08:12:13
compiled from UserDetailView.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'UserDetailView.tpl', 25, false),array('modifier', 'getTranslatedString', 'UserDetailView.tpl', 160, false),array('modifier', 'vtlib_purify', 'UserDetailView.tpl', 274, false),)), $this); ?>
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'UserDetailView.tpl', 25, false),array('modifier', 'getTranslatedString', 'UserDetailView.tpl', 161, false),array('modifier', 'vtlib_purify', 'UserDetailView.tpl', 275, false),)), $this); ?>
<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/ColorPicker2.js"></script>
<script language="JavaScript" type="text/javascript" src="include/js/dtlviewajax.js"></script>
@@ -47,10 +47,12 @@ unset($_smarty_tpl_vars);
<input type="hidden" name="return_action" value="ListView" style="margin:0px">
<input type="hidden" name="return_id" style="margin:0px">
<input type="hidden" name="forumDisplay" style="margin:0px">
<input type="hidden" name="hour_format" id="hour_format" value="<?php echo $this->_tpl_vars['HOUR_FORMAT']; ?>
<input type="hidden" name="hour_format" id="hour_format" value="<?php echo $this->_tpl_vars['HOUR_FORMAT']; ?>
" style="margin:0px">
<input type="hidden" name="start_hour" id="start_hour" value="<?php echo $this->_tpl_vars['START_HOUR']; ?>
<input type="hidden" name="start_hour" id="start_hour" value="<?php echo $this->_tpl_vars['START_HOUR']; ?>
" style="margin:0px">
<input type="hidden" name="form_token" value="<?php echo $this->_tpl_vars['FORM_TOKEN']; ?>
">
<?php if ($this->_tpl_vars['CATEGORY'] == 'Settings'): ?>
<input type="hidden" name="parenttab" value="<?php echo $this->_tpl_vars['PARENTTAB']; ?>
" style="margin:0px">
@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.18, created on 2010-04-03 09:41:57
<?php /* Smarty version 2.6.18, created on 2010-08-16 14:02:44
compiled from EditProfile.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'vtiger_imageurl', 'EditProfile.tpl', 27, false),)), $this); ?>

Some files were not shown because too many files have changed in this diff Show More