[Vtigercrm-commits] [vtiger-commits] r7302 - /vtigercrm/trunk/Smarty/templates/RelatedLists.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Tue Jun 20 10:05:34 EDT 2006


Author: saraj
Date: Tue Jun 20 08:05:30 2006
New Revision: 7302

Log:
related list buttons moved to RelatedListContents.tpl as it is creating problem while ajaxedit

Modified:
    vtigercrm/trunk/Smarty/templates/RelatedLists.tpl

Modified: vtigercrm/trunk/Smarty/templates/RelatedLists.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/RelatedLists.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/RelatedLists.tpl Tue Jun 20 08:05:30 2006
@@ -61,175 +61,67 @@
 		<div class="small" style="padding:20px">
 		
 		
-		 <span class="lvtHeaderText"><font color="purple">[ {$ID} ] </font>{$NAME} -  {$SINGLE_MOD} {$APP.LBL_MORE} {$APP.LBL_INFORMATION}</span> <br>
-		 {$UPDATEINFO}
-		 <hr noshade size=1>
-		 <br> 
+			 <span class="lvtHeaderText"><font color="purple">[ {$ID} ] </font>{$NAME} -  {$SINGLE_MOD} {$APP.LBL_MORE} {$APP.LBL_INFORMATION}</span> <br>
+			 {$UPDATEINFO}
+			 <hr noshade size=1>
+			 <br> 
 		
-		<!-- Account details tabs -->
-		<table border=0 cellspacing=0 cellpadding=0 width=95% align=center>
-		<tr>
-			<td>
-				<table border=0 cellspacing=0 cellpadding=3 width=100% class="small">
-				<tr>
-					{if $OP_MODE eq 'edit_view'}
-                                                {assign var="action" value="EditView"}
-                                        {else}
-                                                {assign var="action" value="DetailView"}
-                                        {/if}
-					<td class="dvtTabCache" style="width:10px" nowrap>&nbsp;</td>
-					{if $MODULE eq 'Activities'}
-                                                <td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action={$action}&module={$MODULE}&record={$ID}&activity_mode={$ACTIVITY_MODE}&parenttab={$CATEGORY}">{$SINGLE_MOD} {$APP.LBL_INFORMATION}</a></td>
-                                        {else}
-                                        <td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action={$action}&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}">{$SINGLE_MOD} {$APP.LBL_INFORMATION}</a></td>
-                                        {/if}
-					<td class="dvtTabCache" style="width:10px">&nbsp;</td>
-					<td class="dvtSelectedCell" align=center nowrap>{$APP.LBL_MORE} {$APP.LBL_INFORMATION}</td>
-					<td class="dvtTabCache" style="width:100%">&nbsp;</td>
-				</tr>
-				</table>
-			</td>
-		</tr>
-		<tr>
-			<td valign=top align=left >
-                           <table border=0 cellspacing=0 cellpadding=3 width=100% class="dvtContentSpace">
-				<tr>
-
-					<td align=left>
-					<!-- content cache -->
-					
-					<table border=0 cellspacing=0 cellpadding=0 width=100%>
-			                <tr>
-					<td style="padding:10px">
-					   <!-- General details -->
-				        <table border=0 cellspacing=0 cellpadding=0 width=100%>
-
-					{include file='RelatedListsHidden.tpl'}
-
-					  {foreach key=header item=detail from=$RELATEDLISTS}
-						<table border=0 cellspacing=0 cellpadding=0 width=100% class="small" style="border-bottom:1px solid #999999;padding:5px;">
-							<tr>
-							<td  valign=bottom><b>{$APP.$header}</b></td>
-							{if $detail ne ''}
-							<td align=center>{$detail.navigation.0}</td>
-							{$detail.navigation.1}
-							{/if}
-							<td align=right>
-							{if $header eq 'Potentials'}
-						
-							<input title="{$APP.LBL_ADD_NEW} {$APP.Potential}" accessyKey="F" class="small" onclick="this.form.action.value='EditView';this.form.module.value='Potentials'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Potential}"></td>
-							{elseif $header eq 'PriceBooks'}
-							{if $MODULE eq 'Products'}
-							<input title="{$APP.LBL_ADD_TO} {$APP.PriceBook}" accessKey="" class="small" value="{$APP.LBL_ADD_TO} {$APP.PriceBook}" LANGUAGE=javascript onclick="this.form.action.value='AddProductToPriceBooks';this.form.module.value='Products'"  type="submit" name="button">
-							{/if}
-							
-							{elseif $header eq 'Products'}
-							{if $MODULE eq 'PriceBooks'}
-							<input title="{$APP.LBL_SELECT_PRODUCT_BUTTON_LABEL}" accessKey="" class="small" value="{$APP.LBL_SELECT_PRODUCT_BUTTON_LABEL}" LANGUAGE=javascript onclick="this.form.action.value='AddProductsToPriceBook';this.form.module.value='Products';this.form.return_module.value='Products';this.form.return_action.value='PriceBookDetailView'"  type="submit" name="button"></td>
-
-							{else}
-							<input title="{$APP.LBL_ADD_NEW} {$APP.Product}" accessyKey="F" class="small" onclick="this.form.action.value='EditView';this.form.module.value='Products';this.form.return_module.value='{$MODULE}';this.form.return_action.value='CallRelatedList'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Product}"></td>				
-							{/if}	
-							{elseif $header eq 'Leads'}
-							{if $MODULE eq 'Campaigns'}
-                                                        <input title="Change" accessKey="" class="small" value="{$APP.LBL_SELECT_BUTTON_LABEL} {$APP.Lead}" LANGUAGE=javascript onclick='return window.open("index.php?module=Leads&return_module={$MODULE}&action=Popup&popuptype=detailview&select=enable&form=EditView&form_submit=false&recordid={$ID}","test","width=640,height=570,resizable=0,scrollbars=0");' type="button"  name="button">
-                                                        {/if}
-                                                        <input title="{$APP.LBL_ADD_NEW} {$APP.Lead}" accessyKey="F" class="small" onclick="this.form.action.value='EditView';this.form.module.value='Leads'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Lead}"></td>
-							{elseif $header eq 'Contacts' }
-							{if $MODULE eq 'Activities' || $MODULE eq 'Potentials' || $MODULE eq 'Vendors'}
-                                                        <input title="Change" accessKey="" class="small" value="{$APP.LBL_SELECT_BUTTON_LABEL} {$APP.Contact}" 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}","test","width=640,height=570,resizable=0,scrollbars=0");' type="button"  name="button"></td>
-							{elseif $MODULE eq 'Emails'}
-							<input title="{$APP.LBL_BULK_MAILS}" accessykey="F" class="small" onclick="this.form.action.value='sendmail';this.form.return_action.value='DetailView';this.form.module.value='Emails';this.form.return_module.value='Emails';" name="button" value="{$APP.LBL_BULK_MAILS}" type="submit">&nbsp;
-                                                        <input title="Change" accessKey="" class="small" value="{$APP.LBL_SELECT_BUTTON_LABEL} {$APP.Contact}" LANGUAGE=javascript onclick='return window.open("index.php?module=Contacts&return_module=Emails&action=Popup&popuptype=detailview&form=EditView&form_submit=false&recordid={$ID}","test","width=640,height=570,resizable=0,scrollbars=0");' type="button"  name="button"></td>
-							{elseif $MODULE eq 'Campaigns'}
-                                                        <input title="Change" accessKey="" class="small" value="{$APP.LBL_SELECT_BUTTON_LABEL} {$APP.Contact}" 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}","test","width=640,height=570,resizable=0,scrollbars=0");' type="button"  name="button">
-                                                        <input title="{$APP.LBL_ADD_NEW} {$APP.Contact}" accessyKey="F" class="small" onclick="this.form.action.value='EditView';this.form.module.value='Contacts'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Contact}"></td>
-							{else}
-                                                        <input title="{$APP.LBL_ADD_NEW} {$APP.Contact}" accessyKey="F" class="small" 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 'Activities'}
-							{if $MODULE eq 'PurchaseOrder' || $MODULE eq 'Invoice' || $MODULE eq 'SalesOrder' || $MODULE eq 'Quotes' || $MODULE eq 'Campaigns'}	
-							<input type="hidden" name="activity_mode">
-							<input title="{$APP.LBL_ADD_NEW} {$APP.Task}" accessyKey="F" class="small" onclick="this.form.action.value='EditView'; this.form.return_action.value='CallRelatedList'; this.form.module.value='Activities'; this.form.return_module.value='{$MODULE}'; this.form.activity_mode.value='Task'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Task}"></td>
-							{else}
-							<input type="hidden" name="activity_mode">
-							<input title="{$APP.LBL_ADD_NEW} {$APP.Task}" accessyKey="F" class="small" onclick="this.form.action.value='EditView'; this.form.return_action.value='CallRelatedList'; this.form.module.value='Activities'; this.form.return_module.value='{$MODULE}'; this.form.activity_mode.value='Task'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Task}">&nbsp;
-							<input title="{$APP.LBL_ADD_NEW} {$APP.Event}" accessyKey="F" class="small" onclick="this.form.action.value='EditView'; this.form.return_action.value='CallRelatedList'; this.form.module.value='Activities'; this.form.return_module.value='{$MODULE}'; this.form.activity_mode.value='Events'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Event}"></td>
-							{/if}
-							{elseif $header eq 'HelpDesk'}
-							<input title="{$APP.LBL_ADD_NEW} {$APP.Ticket}" accessyKey="F" class="small" onclick="this.form.action.value='EditView';this.form.module.value='HelpDesk'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Ticket}"></td>
-							{elseif $header eq 'Attachments'}
-							<input title="{$APP.LBL_ADD_NEW} {$APP.Note}" accessyKey="F" class="small" onclick="this.form.action.value='EditView'; this.form.return_action.value='CallRelatedList'; this.form.module.value='Notes'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Note}">&nbsp;
-							<input type="hidden" name="fileid">
-							<input title="{$APP.LBL_ADD_NEW} {$APP.LBL_ATTACHMENT}" accessyKey="F" class="small" onclick="OpenWindow('index.php?module=uploads&action=uploadsAjax&file=upload&return_action=CallRelatedList&return_module={$MODULE}&return_id={$id}');" type="button" name="button" value="{$APP.LBL_ADD_NEW} {$APP.LBL_ATTACHMENT}"></td>
-							{elseif $header eq 'Quotes'}
-							<input title="{$APP.LBL_ADD_NEW} {$APP.Quote}" accessyKey="F" class="small" onclick="this.form.action.value='EditView';this.form.module.value='Quotes'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Quote}"></td>
-							
-							{elseif $header eq 'Invoice'}
-							{if $MODULE eq 'SalesOrder'}
-							<input type="hidden">
-							{else}
-							<input title="{$APP.LBL_ADD_NEW} {$APP.Invoice}" accessyKey="F" class="small" onclick="this.form.action.value='EditView';this.form.module.value='Invoice'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Invoice}"></td>
-							{/if}
-
-							{elseif $header eq 'Sales Order'}
-							{if $MODULE eq 'Quotes'}
-							<input type="hidden">
-							{else}
-							<input title="{$APP.LBL_ADD_NEW} {$APP.SalesOrder}" accessyKey="F" class="small" onclick="this.form.action.value='EditView';this.form.module.value='SalesOrder'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.SalesOrder}"></td>
-							{/if}
-
-							{elseif $header eq 'Purchase Order'}
-							<input title="{$APP.LBL_ADD_NEW} {$APP.PurchaseOrder}" accessyKey="O" class="small" onclick="this.form.action.value='EditView'; this.form.module.value='PurchaseOrder'; this.form.return_module.value='{$MODULE}'; this.form.return_action.value='CallRelatedList'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.PurchaseOrder}"></td>
-							
-							{elseif $header eq 'Emails'}
-							<input type="hidden" name="email_directing_module">
-							<input type="hidden" name="record">
-							<input title="{$APP.LBL_ADD_NEW} {$APP.Email}" accessyKey="F" class="small" onclick="fnvshobj(this,'sendmail_cont');sendmail('{$MODULE}',{$id});" type="button" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Email}"></td>
-							{elseif $header eq 'Users'}
-                                                                {if $MODULE eq 'Activities'}
-                                                                <input title="Change" accessKey="" tabindex="2" type="button" class="small" value="{$APP.LBL_SELECT_USER_BUTTON_LABEL}" name="button" LANGUAGE=javascript onclick='return window.open("index.php?module=Users&return_module=Activities&return_action=CallRelatedList&activity_mode=Events&action=Popup&popuptype=detailview&form=EditView&form_submit=true&return_id={$id}&recordid={$ID}","test","width=640,height=525,resizable=0,scrollbars=0")';>
-								{elseif $MODULE	eq 'Emails'}
-								<input title="{$APP.LBL_BULK_MAILS}" accessykey="F" class="small" onclick="this.form.action.value='sendmail';this.form.return_action.value='DetailView';this.form.module.value='Emails';this.form.return_module.value='Emails';" name="button" value="{$APP.LBL_BULK_MAILS}" type="submit">&nbsp;
-								<input title="Change" accesskey="" tabindex="2" class="small" value="{$APP.LBL_SELECT_USER_BUTTON_LABEL}" name="Button" language="javascript" onclick='return window.open("index.php?module=Users&return_module=Emails&action=Popup&popuptype=detailview&form=EditView&form_submit=true&return_id={$id}&recordid={$ID}","test","width=640,height=520,resizable=0,scrollbars=0");' type="button">&nbsp;</td>
-                                                                {/if}
-							{elseif $header eq 'Activity History'}
-                                                        &nbsp;</td>
-
-							{/if}
-							</tr>
-						</table>	
-						<div id="RLContents">
-                                                        {include file='RelatedListContents.tpl'}
-                                                </div>
-						<br><br>
-					{/foreach}
-						</form>
-				</table>			
-                    {*-- End of Blocks--*} 
-			</td>
-                </tr>
-		</table>
-		</td>
-				</tr>
-				</table>
-				
-			</td>
-		</tr>
-		</table>
-		
-			
-			
-		
+			<!-- Account details tabs -->
+			<table border=0 cellspacing=0 cellpadding=0 width=95% align=center>
+			<tr>
+				<td>
+					<table border=0 cellspacing=0 cellpadding=3 width=100% class="small">
+						<tr>
+							{if $OP_MODE eq 'edit_view'}
+		                                                {assign var="action" value="EditView"}
+                		                        {else}
+                                		                {assign var="action" value="DetailView"}
+		                                        {/if}
+							<td class="dvtTabCache" style="width:10px" nowrap>&nbsp;</td>
+							{if $MODULE eq 'Activities'}
+                                                	<td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action={$action}&module={$MODULE}&record={$ID}&activity_mode={$ACTIVITY_MODE}&parenttab={$CATEGORY}">{$SINGLE_MOD} {$APP.LBL_INFORMATION}</a></td>
+		                                        {else}
+                		                        <td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action={$action}&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}">{$SINGLE_MOD} {$APP.LBL_INFORMATION}</a></td>
+                                		        {/if}
+							<td class="dvtTabCache" style="width:10px">&nbsp;</td>
+							<td class="dvtSelectedCell" align=center nowrap>{$APP.LBL_MORE} {$APP.LBL_INFORMATION}</td>
+							<td class="dvtTabCache" style="width:100%">&nbsp;</td>
+						</tr>
+					</table>
+				</td>
+			</tr>
+			<tr>
+				<td valign=top align=left >
+		                	<table border=0 cellspacing=0 cellpadding=3 width=100% class="dvtContentSpace">
+						<tr>
+							<td align=left>
+							<!-- content cache -->
+								<table border=0 cellspacing=0 cellpadding=0 width=100%>
+									<tr>
+										<td style="padding:10px">
+										   <!-- General details -->
+												{include file='RelatedListsHidden.tpl'}
+												<div id="RLContents">
+					                                                        {include file='RelatedListContents.tpl'}
+                                        						        </div>
+												</form>
+										  {*-- End of Blocks--*} 
+										</td>
+									</tr>
+								</table>
+							</td>
+						</tr>
+					</table>
+				</td>
+			</tr>
+			</table>
 		</div>
-		<!-- PUBLIC CONTENTS STOPS-->
+	<!-- PUBLIC CONTENTS STOPS-->
 	</td>
 	<td align=right valign=top><img src="themes/blue/images/showPanelTopRight.gif"></td>
 </tr>
 </table>
 
-</td></tr></table>
 {if $MODULE eq 'Leads' or $MODULE eq 'Contacts' or $MODULE eq 'Accounts'}
 <div id="sendmail_cont" style="z-index:100001;position:absolute;width:310px;"></div>
 {/if}





More information about the vtigercrm-commits mailing list