[Vtigercrm-commits] [vtiger-commits] r7878 - in /branches/VTIGERCRM-5.0.2-MMBRICH: Smarty/templates/ modules/CommSystem/ modules/CommSystem/language/ schema/
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Jul 6 16:22:45 EDT 2006
Author: mmbrich
Date: Thu Jul 6 14:22:43 2006
New Revision: 7878
Log:
init CommSystem checkin, mostly just basic classes and db schema
Added:
branches/VTIGERCRM-5.0.2-MMBRICH/modules/CommSystem/
branches/VTIGERCRM-5.0.2-MMBRICH/modules/CommSystem/CommSystem.php
branches/VTIGERCRM-5.0.2-MMBRICH/modules/CommSystem/CommSystemAjax.php
branches/VTIGERCRM-5.0.2-MMBRICH/modules/CommSystem/language/
branches/VTIGERCRM-5.0.2-MMBRICH/modules/CommSystem/language/en_us.lang.php
Modified:
branches/VTIGERCRM-5.0.2-MMBRICH/Smarty/templates/Buttons_List.tpl
branches/VTIGERCRM-5.0.2-MMBRICH/Smarty/templates/Buttons_List1.tpl
branches/VTIGERCRM-5.0.2-MMBRICH/Smarty/templates/Header.tpl
branches/VTIGERCRM-5.0.2-MMBRICH/schema/DatabaseSchema.xml
Modified: branches/VTIGERCRM-5.0.2-MMBRICH/Smarty/templates/Buttons_List.tpl
==============================================================================
--- branches/VTIGERCRM-5.0.2-MMBRICH/Smarty/templates/Buttons_List.tpl (original)
+++ branches/VTIGERCRM-5.0.2-MMBRICH/Smarty/templates/Buttons_List.tpl Thu Jul 6 14:22:43 2006
@@ -73,7 +73,12 @@
<td style="padding-right:0px;padding-left:10px;"><a href="javascript:;" onClick='fnvshobj(this,"miniCal");getMiniCal();'><img src="{$IMAGE_PATH}btnL3Calendar.gif" alt="{$APP.LBL_CALENDAR_ALT}" title="{$APP.LBL_CALENDAR_TITLE}" border=0></a></a></td>
<td style="padding-right:0px"><a href="javascript:;"><img src="{$IMAGE_PATH}btnL3Clock.gif" alt="{$APP.LBL_CLOCK_ALT}" title="{$APP.LBL_CLOCK_TITLE}" border=0 onClick="fnvshobj(this,'wclock');"></a></a></td>
<td style="padding-right:0px"><a href="#"><img src="{$IMAGE_PATH}btnL3Calc.gif" alt="{$APP.LBL_CALCULATOR_ALT}" title="{$APP.LBL_CALCULATOR_TITLE}" border=0 onClick="fnvshobj(this,'calculator_cont');fetch_calc();"></a></td>
- <td style="padding-right:10px"><a href="javascript:;" onClick='return window.open("index.php?module=Contacts&action=vtchat","Chat","width=450,height=400,resizable=1,scrollbars=1");'><img src="{$IMAGE_PATH}tbarChat.gif" alt="{$APP.LBL_CHAT_ALT}" title="{$APP.LBL_CHAT_TITLE}" border=0></a>
+ <td style="padding-right:10px">
+ <a href="javascript:;" onClick='openCommSystem();'>
+ <img src="{$IMAGE_PATH}tbarChat.gif" alt="{$APP.LBL_CHAT_ALT}" title="{$APP.LBL_CHAT_TITLE}" border=0>
+ </a>
+ </td>
+ <!-- <td style="padding-right:10px"><a href="javascript:;" onClick='return window.open("index.php?module=Contacts&action=vtchat","Chat","width=450,height=400,resizable=1,scrollbars=1");'><img src="{$IMAGE_PATH}tbarChat.gif" alt="{$APP.LBL_CHAT_ALT}" title="{$APP.LBL_CHAT_TITLE}" border=0></a> -->
</td>
<td style="padding-right:10px"><img src="{$IMAGE_PATH}btnL3Tracker.gif" alt="{$APP.LBL_LAST_VIEWED}" title="{$APP.LBL_LAST_VIEWED}" border=0 onClick="fnvshobj(this,'tracker');">
</td>
Modified: branches/VTIGERCRM-5.0.2-MMBRICH/Smarty/templates/Buttons_List1.tpl
==============================================================================
--- branches/VTIGERCRM-5.0.2-MMBRICH/Smarty/templates/Buttons_List1.tpl (original)
+++ branches/VTIGERCRM-5.0.2-MMBRICH/Smarty/templates/Buttons_List1.tpl Thu Jul 6 14:22:43 2006
@@ -69,7 +69,12 @@
<td style="padding-right:0px;padding-left:10px;"><a href="javascript:;" onClick='fnvshobj(this,"miniCal");getMiniCal();'><img src="{$IMAGE_PATH}btnL3Calendar.gif" alt="{$APP.LBL_CALENDAR_ALT}" title="{$APP.LBL_CALENDAR_TITLE}" border=0></a></a></td>
<td style="padding-right:0px"><a href="javascript:;"><img src="{$IMAGE_PATH}btnL3Clock.gif" alt="{$APP.LBL_CLOCK_ALT}" title="{$APP.LBL_CLOCK_TITLE}" border=0 onClick="fnvshobj(this,'wclock');"></a></a></td>
<td style="padding-right:0px"><a href="#"><img src="{$IMAGE_PATH}btnL3Calc.gif" alt="{$APP.LBL_CALCULATOR_ALT}" title="{$APP.LBL_CALCULATOR_TITLE}" border=0 onClick="fnvshobj(this,'calculator_cont');fetch_calc();"></a></td>
- <td style="padding-right:10px"><a href="javascript:;" onClick='return window.open("index.php?module=Contacts&action=vtchat","Chat","width=450,height=400,resizable=1,scrollbars=1");'><img src="{$IMAGE_PATH}tbarChat.gif" alt="{$APP.LBL_CHAT_ALT}" title="{$APP.LBL_CHAT_TITLE}" border=0></a>
+ <td style="padding-right:10px">
+ <a href="javascript:;" onClick='openCommSystem();'>
+ <img src="{$IMAGE_PATH}tbarChat.gif" alt="{$APP.LBL_CHAT_ALT}" title="{$APP.LBL_CHAT_TITLE}" border=0>
+ </a>
+ </td>
+ <!-- <td style="padding-right:10px"><a href="javascript:;" onClick='return window.open("index.php?module=Contacts&action=vtchat","Chat","width=450,height=400,resizable=1,scrollbars=1");'><img src="{$IMAGE_PATH}tbarChat.gif" alt="{$APP.LBL_CHAT_ALT}" title="{$APP.LBL_CHAT_TITLE}" border=0></a> -->
</td>
<td style="padding-right:10px"><img src="{$IMAGE_PATH}btnL3Tracker.gif" alt="{$APP.LBL_LAST_VIEWED}" title="{$APP.LBL_LAST_VIEWED}" border=0 onClick="fnvshobj(this,'tracker');">
</td>
Modified: branches/VTIGERCRM-5.0.2-MMBRICH/Smarty/templates/Header.tpl
==============================================================================
--- branches/VTIGERCRM-5.0.2-MMBRICH/Smarty/templates/Header.tpl (original)
+++ branches/VTIGERCRM-5.0.2-MMBRICH/Smarty/templates/Header.tpl Thu Jul 6 14:22:43 2006
@@ -23,10 +23,13 @@
<!-- header-vtiger crm name & RSS -->
<script language="JavaScript" type="text/javascript" src="include/js/general.js"></script>
<script language="javascript" type="text/javascript" src="include/scriptaculous/prototype.js"></script>
+ <script language="javascript" type="text/javascript" src="include/scriptaculous/scriptaculous.js?load=effects,dragdrop"></script>
<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
<script language="JavaScript" type="text/javascript" src="include/calculator/calc.js"></script>
<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/objects/VtigerUser.js"></script>
+ <script language="javascript" type="text/javascript" src="include/js/objects/CommSystem.js"></script>
<TABLE border=0 cellspacing=0 cellpadding=0 width=100% class="hdrNameBg">
<tr>
@@ -417,6 +420,14 @@
}//end
return true;
}
+
+/* START COMMUNICATIONS SYSTEM */
+function openCommSystem() {
+ var CS = new CommSystem("CommSliderDiv");
+}
+var VtUser = {}
+new VtigerUser();
+
</SCRIPT>
{/literal}
Modified: branches/VTIGERCRM-5.0.2-MMBRICH/schema/DatabaseSchema.xml
==============================================================================
--- branches/VTIGERCRM-5.0.2-MMBRICH/schema/DatabaseSchema.xml (original)
+++ branches/VTIGERCRM-5.0.2-MMBRICH/schema/DatabaseSchema.xml Thu Jul 6 14:22:43 2006
@@ -6105,6 +6105,26 @@
<field name="recordid" type="I" size="19" />
<field name="actiondate" type="T"/>
<opt platform="mysql">Type=InnoDB</opt>
- </table>
-
+ </table>
+
+
+ <table name="vtiger_comm_system">
+ <field name="msgid" type="I" size="19">
+ <unique />
+ <key />
+ </field>
+ <field name="msg_type" type="C" size="10" />
+ <field name="recordid" type="I" size="19" />
+ <field name="sending_user" type="I" size="19">
+ <default value="0" />
+ </field>
+ <field name="receivers" type="C" size="255" />
+ <field name="viewed" type="I" size="2" />
+ <field name="msg_data" type="B" >
+ <notnull />
+ </field>
+ <field name="sentdate" type="T"/>
+ <opt platform="mysql">Type=InnoDB</opt>
+ </table>
+
</schema>
More information about the vtigercrm-commits
mailing list