[Vtigercrm-commits] [vtiger-commits] r6768 - in /vtigercrm/trunk/modules/Calendar: Appointment.php addEventUI.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 30 12:21:03 EDT 2006
Author: saraj
Date: Tue May 30 10:20:56 2006
New Revision: 6768
Log:
changes made to fix the issue
Modified:
vtigercrm/trunk/modules/Calendar/Appointment.php
vtigercrm/trunk/modules/Calendar/addEventUI.php
Modified: vtigercrm/trunk/modules/Calendar/Appointment.php
==============================================================================
--- vtigercrm/trunk/modules/Calendar/Appointment.php (original)
+++ vtigercrm/trunk/modules/Calendar/Appointment.php Tue May 30 10:20:56 2006
@@ -58,7 +58,7 @@
$q.=" ((activity.date_start < '". $to_datetime->get_formatted_date() ."' AND activity.date_start >= '". $from_datetime->get_formatted_date()."')";
if(!is_admin($current_user))
{
- $q .= " ) AND ((crmentity.smownerid ='".$current_user->id."' and salesmanactivityrel.smid = '".$current_user->id."') or (crmentity.smownerid in ($shared_ids) and salesmanactivityrel.smid in ($shared_ids) and activity.visibility='Public'))";
+ $q .= " ) AND ((crmentity.smownerid ='".$current_user->id."' and salesmanactivityrel.smid = '".$current_user->id."') or (crmentity.smownerid in (".$shared_ids.") and salesmanactivityrel.smid in (".$shared_ids.") and activity.visibility='Public'))";
}
$q .= " AND crmentity.deleted = 0) AND recurringevents.activityid is NULL ";
$q .= " ORDER by activity.date_start,activity.time_start";
@@ -86,7 +86,7 @@
$q .= " (recurringdate < '".$to_datetime->get_formatted_date()."' AND recurringdate >= '".$from_datetime->get_formatted_date(). "') ";
if(!is_admin($current_user))
{
- $q .= " ) AND ((crmentity.smownerid ='".$current_user->id."' and salesmanactivityrel.smid = '".$current_user->id."' ) or (crmentity.smownerid in ($shared_ids) and salesmanactivityrel.smid in ($shared_ids) and activity.visibility='Public'))";
+ $q .= " ) AND ((crmentity.smownerid ='".$current_user->id."' and salesmanactivityrel.smid = '".$current_user->id."' ) or (crmentity.smownerid in (".$shared_ids.") and salesmanactivityrel.smid in (".$shared_ids.") and activity.visibility='Public'))";
}
$q .= " AND crmentity.deleted = 0 )" ;
Modified: vtigercrm/trunk/modules/Calendar/addEventUI.php
==============================================================================
--- vtigercrm/trunk/modules/Calendar/addEventUI.php (original)
+++ vtigercrm/trunk/modules/Calendar/addEventUI.php Tue May 30 10:20:56 2006
@@ -442,16 +442,16 @@
<!-- Add Activity DIV stops-->
-<div id="calAction" style="width:125px;" onMouseout="fninvsh('calAction')" onMouseover="fnvshNrm('calAction')">
+<div id="eventcalAction" class="calAction" style="width:125px;" onMouseout="fninvsh('eventcalAction')" onMouseover="fnvshNrm('eventcalAction')">
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF">
<tr>
<td>
- <a href="" id="complete" class="calMnu">- <?php echo $mod_strings['LBL_COMPLETED']?></a>
- <a href="" id="pending" class="calMnu">- <?php echo $mod_strings['LBL_EPENDING']?></a>
+ <a href="" id="complete" onClick="fninvsh('eventcalAction')" class="calMnu">- <?php echo $mod_strings['LBL_HELD']?></a>
+ <a href="" id="pending" onClick="fninvsh('eventcalAction')" class="calMnu">- <?php echo $mod_strings['LBL_NOTHELD']?></a>
<span style="border-top:1px dashed #CCCCCC;width:99%;display:block;"></span>
- <a href="" id="postpone" class="calMnu">- <?php echo $mod_strings['LBL_POSTPONE']?></a>
- <a href="" id="changeowner" class="calMnu">- <?php echo $mod_strings['LBL_CHANGEOWNER']?></a>
- <a href="" id="actdelete" onclick ="alert('Are you sure?')" class="calMnu">- <?php echo $mod_strings['LBL_DEL']?></a>
+ <a href="" id="postpone" onClick="fninvsh('eventcalAction')" class="calMnu">- <?php echo $mod_strings['LBL_POSTPONE']?></a>
+ <a href="" id="changeowner" onClick="fninvsh('eventcalAction')" class="calMnu">- <?php echo $mod_strings['LBL_CHANGEOWNER']?></a>
+ <a href="" id="actdelete" onclick ="fninvsh('eventcalAction');return confirm('Are you sure?');" class="calMnu">- <?php echo $mod_strings['LBL_DEL']?></a>
</td>
</tr>
</table>
@@ -616,7 +616,14 @@
</div>
-<div id="act_changeowner" class="statechange">
+<div id="act_changeowner" class="statechange" style="left:250px;top:200px;z-index:5000">
+ <form name="change_owner">
+ <input type="hidden" value="" name="idlist" id="idlist">
+ <input type="hidden" value="" name="action">
+ <input type="hidden" value="" name="module">
+ <input type="hidden" value="" name="user_id">
+ <input type="hidden" value="" name="return_module">
+ <input type="hidden" value="" name="return_action">
<table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td class="genHeaderSmall" align="left" style="border-bottom:1px solid #CCCCCC;" width="60%">Change Owner</td>
@@ -639,10 +646,27 @@
<tr>
<td colspan="3" align="center">
- <input type="button" name="button" class="small" value="Update Owner" onClick="ajaxChangeStatus('owner')">
+ <input type="button" name="button" class="small" value="Update Owner" onClick="calendarChangeOwner()">
<input type="button" name="button" class="small" value="Cancel" onClick="fninvsh('act_changeowner')">
</td>
</tr>
</table>
+ </form>
</div>
+
+<div id="taskcalAction" class="calAction" style="width:125px;" onMouseout="fninvsh('taskcalAction')" onMouseover="fnvshNrm('taskcalAction')">
+ <table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF">
+ <tr>
+ <td>
+ <a href="" id="taskcomplete" onClick="fninvsh('taskcalAction');" class="calMnu">- <?php echo $mod_strings['LBL_COMPLETED']?></a>
+ <a href="" id="taskpending" onClick="fninvsh('taskcalAction');" class="calMnu">- <?php echo $mod_strings['LBL_DEFERRED']?></a>
+ <span style="border-top:1px dashed #CCCCCC;width:99%;display:block;"></span>
+ <a href="" id="taskpostpone" onClick="fninvsh('taskcalAction');" class="calMnu">- <?php echo $mod_strings['LBL_POSTPONE']?></a>
+ <a href="" id="taskchangeowner" onClick="fninvsh('taskcalAction');" class="calMnu">- <?php echo $mod_strings['LBL_CHANGEOWNER']?></a>
+ <a href="" id="taskactdelete" onClick ="fninvsh('taskcalAction');return confirm('Are you sure?');" class="calMnu">- <?php echo $mod_strings['LBL_DEL']?></a>
+ </td>
+ </tr>
+ </table>
+</div>
+
More information about the vtigercrm-commits
mailing list