[Vtigercrm-commits] [vtiger-commits] r4262 - /vtigercrm/trunk/Smarty/templates/HomePage.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 16 21:47:06 EST 2006
Author: saraj
Date: Thu Mar 16 19:47:01 2006
New Revision: 4262
Log:
js function has been added
Modified:
vtigercrm/trunk/Smarty/templates/HomePage.tpl
Modified: vtigercrm/trunk/Smarty/templates/HomePage.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/HomePage.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/HomePage.tpl Thu Mar 16 19:47:01 2006
@@ -21,6 +21,22 @@
document.getElementById(selrow).className="mnuSel";
show (Sele);
{rdelim}
+
+ function ajaxResponse(response)
+ {ldelim}
+ document.getElementById('headlines').innerHTML = response.responseText;
+ document.getElementById('headlines').style.display="block";
+ {rdelim}
+
+ function getHeadLines(Ticker)
+ {ldelim}
+ if(Ticker!='')
+ {ldelim}
+ var ajaxObj = new Ajax(ajaxResponse);
+ var urlstring = "module=Accounts&action=HeadLines&tickersymbol="+Ticker;
+ ajaxObj.process("index.php?",urlstring);
+ {rdelim}
+ {rdelim}
</script>
@@ -147,8 +163,8 @@
{/foreach}
</table>
</td>
+ <td id ="headlines"></td>
<td class="padTab1">
-
{foreach item=tabledetail from=$HOMEDETAILS}
{if $tabledetail neq ''}
{if $tabledetail.Title.2 neq $HOMEDEFAULTVIEW}
@@ -157,6 +173,7 @@
<div id="{$tabledetail.Title.2}" style="display:block">
{/if}
<table border="0" cellpadding="3" cellspacing="0" width="100%">
+ <form name="homepage">
<tr>
<td colspan="4"><span class="genHeaderSmall">{$tabledetail.Title.1}</span> <a href="#">(Mark as Default View)</a></td>
</tr>
@@ -178,7 +195,7 @@
<!--end of entries -->
</tr>
{/foreach}
-
+ </form>
</table>
</div>
{/if}
More information about the vtigercrm-commits
mailing list