git-svn-id: https://svn.code.sf.net/p/hawebs/svn@531 a2543c7e-f6e9-4f8a-8bff-1ffc34733512
This commit is contained in:
+458
-458
File diff suppressed because it is too large
Load Diff
@@ -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} »</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} »</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} »</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} »</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> <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> <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)}
|
||||
|
||||
<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} »</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)}
|
||||
|
||||
<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} »</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>
|
||||
|
||||
@@ -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"> </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} »</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} »</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> <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> <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"> </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'}
|
||||
<span id="dtlview_{$label}"><a href='javascript:;' onclick='startCall("{$keyval}")'>{$keyval}</a></span>
|
||||
<span id="dtlview_{$label}"><a href='javascript:;' onclick='startCall("{$keyval}", "{$ID}")'>{$keyval}</a></span>
|
||||
{else}
|
||||
<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');"> <span id="dtlview_{$label}">{$keyval} </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}] <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}'> <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}'> <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 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}
|
||||
<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}
|
||||
|
||||
@@ -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> {$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} »</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} »</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"> </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 -->
|
||||
|
||||
@@ -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> "+alert_arr.LBL_AND;
|
||||
else
|
||||
$("and"+sel.id).innerHTML = "<em old='(yyyy-mm-dd)'>("+$("user_dateformat").value+")</em> ";
|
||||
}
|
||||
else {
|
||||
$("and"+sel.id).innerHTML = "";
|
||||
if(sel.id != "fcol5")
|
||||
$("and"+sel.id).innerHTML = " "+alert_arr.LBL_AND;
|
||||
else
|
||||
$("and"+sel.id).innerHTML = " ";
|
||||
}
|
||||
*/
|
||||
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)}
|
||||
|
||||
<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} »</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)}
|
||||
|
||||
<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} »</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>
|
||||
{$HEADERLABEL}
|
||||
<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'}
|
||||
</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> <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>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user