[Vtigercrm-commits] [vtiger-commits] r3890 - /vtigercrm/branches/4.2/modules/Home/index.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Feb 22 17:16:03 EST 2006


Author: mfedyk
Date: Wed Feb 22 15:16:01 2006
New Revision: 3890

Log:
fix indenting in modules/Home/index.php, by briand. fixes #26

Modified:
    vtigercrm/branches/4.2/modules/Home/index.php

Modified: vtigercrm/branches/4.2/modules/Home/index.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Home/index.php (original)
+++ vtigercrm/branches/4.2/modules/Home/index.php Wed Feb 22 15:16:01 2006
@@ -59,24 +59,24 @@
 <?php
 
 
-	//Added to support the inclusion of the Top Accounts in the Home Page. 
-	//Fix given by Mike Crowe
-   if($tab_per_Data[2] == 0)
-           {
-                    if($permissionData[2][3] == 0)
-                    {
-                      include("modules/Accounts/ListViewTop.php");
-                    }
-	   }  
+//Added to support the inclusion of the Top Accounts in the Home Page. 
+//Fix given by Mike Crowe
+if($tab_per_Data[2] == 0)
+{
+	if($permissionData[2][3] == 0)
+	{
+		include("modules/Accounts/ListViewTop.php");
+	}
+}
 	
 if($tab_per_Data[2] == 0)
 {
 	if($permissionData[2][3] == 0)
-        {
-		 include("modules/Potentials/ListViewTop.php");
-	}
-}
- ?>
+	{
+		include("modules/Potentials/ListViewTop.php");
+	}
+}
+?>
 <br>
 <?php
 //get all the group relation tasks
@@ -88,8 +88,8 @@
 
 //$query = "select leaddetails.lastname,leadgrouprelation.groupname, 'Leads' as Type from leaddetails inner join leadgrouprelation on leaddetails.leadid=leadgrouprelation.leadid inner join crmentity on crmentity.crmid = leaddetails.leadid where  crmentity.deleted=0 union all select activity.subject,activitygrouprelation.groupname,'Activities' as Type from activity inner join activitygrouprelation on activitygrouprelation.activityid=activity.activityid inner join crmentity on crmentity.crmid = activity.activityid where  crmentity.deleted=0 union all select troubletickets.ticketid,troubletickets.groupname,'Tickets' as Type from troubletickets inner join seticketsrel on seticketsrel.ticketid = troubletickets.ticketid inner join crmentity on crmentity.crmid = seticketsrel.ticketid where troubletickets.groupname is not null and crmentity.deleted=0";
 
-  $log->info("Here is the where clause for the list view: $query");
-	$result = $adb->limitquery($query,0,5);
+$log->info("Here is the where clause for the list view: $query");
+$result = $adb->limitquery($query,0,5);
 
 //echo get_form_header($app_strings['LBL_GROUP_ALLOCATION_TITLE'], "", false);
 $list ='<table border=0 cellspacing=0 cellpadding=0 width=100%>
@@ -117,61 +117,65 @@
 }
 else
 {
-$i=1;
-while($row = $adb->fetch_array($result))
-{
-  if ($i%2==0)
-    $trowclass = 'evenListRow';
-  else
-    $trowclass = 'oddListRow';
-  $list .= '<tr class="'. $trowclass.'">';
-  $list .= '<td WIDTH="1" class="blackLine"><IMG SRC="'.$image_path.'blank.gif"></td>';
-  if($row["type"] == "Tickets")
-  {
-    $list .= '<td height="21" style="padding:0px 3px 0px 3px"><a href=index.php?module=HelpDesk';
-  }
-  elseif($row["type"] == "Activities")
-  {
-	$acti_type = getActivityType($row["id"]);
-	$list .= '<td height="21" style="padding:0px 3px 0px 3px"><a href=index.php?module='.$row["type"];
-	if($acti_type == 'Task')
-	{
-        	$list .= '&activity_mode=Task';
-	}
-        elseif($acti_type == 'Call' || $acti_type == 'Meeting')
-	{
-                $list .= '&activity_mode=Events';
-	}
-  }
-  else
-  {
-    $list .= '<td height="21" style="padding:0px 3px 0px 3px"><a href=index.php?module='.$row["type"];
-  }
-
-  $list .= '&action=DetailView&record=';
-  $list .= $row["id"] ;
-  $list .='>';
-  $list .= $row["name"];
-  $list .= '</a></td>';
-  $list .= '<td WIDTH="1" class="blackLine"><IMG SRC="'.$image_path.'blank.gif"></td>';
-  $list .= '<td height="21"  style="padding:0px 3px 0px 3px">';
-  $list .= $row["groupname"];
-  $list .= '</td>';
-  $list .= '<td WIDTH="1" class="blackLine"><IMG SRC="'.$image_path.'blank.gif"></td>';
-  $list .= '<td height="21"  style="padding:0px 3px 0px 3px">';
-  $list .= $row["type"];
-  $list .= '</td>';
-  $list .= '<td WIDTH="1" class="blackLine"><IMG SRC="'.$image_path.'blank.gif"></td>';
-  $list .= '</tr>';
-  $i++;
-}
-}
-
-        $list .= '<tr><td WIDTH="1" colspan="6" class="blackLine"><IMG SRC="'.$image_path.'blank.gif"></td></tr></table>';
-	$list .= '</div></td></tr></table>';
+	$i=1;
+	while($row = $adb->fetch_array($result))
+	{
+		if ($i%2==0)
+		{
+			$trowclass = 'evenListRow';
+		}
+		else
+		{
+			$trowclass = 'oddListRow';
+		}
+		$list .= '<tr class="'. $trowclass.'">';
+		$list .= '<td WIDTH="1" class="blackLine"><IMG SRC="'.$image_path.'blank.gif"></td>';
+		if($row["type"] == "Tickets")
+		{
+			$list .= '<td height="21" style="padding:0px 3px 0px 3px"><a href=index.php?module=HelpDesk';
+		}
+		elseif($row["type"] == "Activities")
+		{
+			$acti_type = getActivityType($row["id"]);
+			$list .= '<td height="21" style="padding:0px 3px 0px 3px"><a href=index.php?module='.$row["type"];
+			if($acti_type == 'Task')
+			{
+				$list .= '&activity_mode=Task';
+			}
+			elseif($acti_type == 'Call' || $acti_type == 'Meeting')
+			{
+				$list .= '&activity_mode=Events';
+			}
+		}
+		else
+		{
+			$list .= '<td height="21" style="padding:0px 3px 0px 3px"><a href=index.php?module='.$row["type"];
+		}
+
+		$list .= '&action=DetailView&record=';
+		$list .= $row["id"] ;
+		$list .='>';
+		$list .= $row["name"];
+		$list .= '</a></td>';
+		$list .= '<td WIDTH="1" class="blackLine"><IMG SRC="'.$image_path.'blank.gif"></td>';
+		$list .= '<td height="21"  style="padding:0px 3px 0px 3px">';
+		$list .= $row["groupname"];
+		$list .= '</td>';
+		$list .= '<td WIDTH="1" class="blackLine"><IMG SRC="'.$image_path.'blank.gif"></td>';
+		$list .= '<td height="21"  style="padding:0px 3px 0px 3px">';
+		$list .= $row["type"];
+		$list .= '</td>';
+		$list .= '<td WIDTH="1" class="blackLine"><IMG SRC="'.$image_path.'blank.gif"></td>';
+		$list .= '</tr>';
+		$i++;
+	}
+}
+
+$list .= '<tr><td WIDTH="1" colspan="6" class="blackLine"><IMG SRC="'.$image_path.'blank.gif"></td></tr></table>';
+$list .= '</div></td></tr></table>';
 $list .= '<script language=\'Javascript\'>
-        var leftpanelistarray=new Array(\'home_mygrp\');
-  setExpandCollapse_gen()</script>';
+var leftpanelistarray=new Array(\'home_mygrp\');
+setExpandCollapse_gen()</script>';
 
 echo $list;
 function getActivityType($id)
@@ -181,15 +185,14 @@
 	$res = $adb->query($quer);
 	$acti_type = $adb->query_result($res,0,"activitytype");
 	return $acti_type;
-
 }
 
 echo '<BR>';
 $list='';
 if($tab_per_Data[13] == 0)
 {
-        if($permissionData[13][3] == 0)
-        {
+	if($permissionData[13][3] == 0)
+	{
 		require_once('modules/HelpDesk/ListTickets.php');
 	}
 }
@@ -198,24 +201,24 @@
 echo '<BR>';
 if($tab_per_Data[20] == 0)
 {
-        if($permissionData[20][3] == 0)
-        {
+	if($permissionData[20][3] == 0)
+	{
 		require_once('modules/Quotes/ListTopQuotes.php');
 	}
 }
 echo '<BR>';
 if($tab_per_Data[22] == 0)
 {
-        if($permissionData[22][3] == 0)
-        {
+	if($permissionData[22][3] == 0)
+	{
 		require_once('modules/Orders/ListTopSalesOrder.php');
 	}
 }
 echo '<BR>';
 if($tab_per_Data[23] == 0)
 {
-        if($permissionData[23][3] == 0)
-        {
+	if($permissionData[23][3] == 0)
+	{
 		require_once('modules/Invoice/ListTopInvoice.php');
 	}
 }
@@ -226,16 +229,18 @@
 ?>
 </td>
 <td width="300" valign="top" align="center">
-            <?php include("modules/Calendar/minical.php"); ?>
-            <form name="minc" method="GET" action="index.php">
-                <input type="hidden" name="module" value="Calendar">
-                <input type="hidden" name="action">
-                <input type="hidden" name="t">
-                <!--<input title="<? echo $current_module_strings['LBL_DAY_BUTTON_TITLE']?>" accessKey="<? echo $current_module_strings['LBL_DAY_BUTTON_KEY']?>" onclick="this.form.action.value='calendar_day';this.form.t.value='<? echo $t?>'" type="image" src="<? echo $image_path ?>day.gif" name="button" value="  <? echo $current_module_strings['LBL_DAY']?>  " >
-                <input title="<? echo $current_module_strings['LBL_WEEK_BUTTON_TITLE']?>" accessKey="<? echo $current_module_strings['LBL_WEEK_BUTTON_KEY']?>" onclick="this.form.action.value='calendar_week';this.form.t.value='<? echo $t?>'" type="image" src="<? echo $image_path ?>week.gif" name="button" value="  <? echo $current_module_strings['LBL_WEEK']?>  " >
-                <input title="<? echo $current_module_strings['LBL_MON_BUTTON_TITLE']?>" accessKey="<? echo $current_module_strings['LBL_MON_BUTTON_KEY']?>" onclick="this.form.action.value='calendar_month';this.form.t.value='<? echo $t?>'" type="image" src="<? echo $image_path ?>month.gif" name="button" value="  <? echo $current_module_strings['LBL_MON']?>  " >-->
-            </form>
-<?php echo get_left_form_header($mod_strings['LBL_PIPELINE_FORM_TITLE']);
-	include ("modules/Dashboard/Chart_my_pipeline_by_sales_stage.php");
-	echo get_left_form_footer(); ?>
+<?php include("modules/Calendar/minical.php"); ?>
+<form name="minc" method="GET" action="index.php">
+<input type="hidden" name="module" value="Calendar">
+<input type="hidden" name="action">
+<input type="hidden" name="t">
+<!--<input title="<? echo $current_module_strings['LBL_DAY_BUTTON_TITLE']?>" accessKey="<? echo $current_module_strings['LBL_DAY_BUTTON_KEY']?>" onclick="this.form.action.value='calendar_day';this.form.t.value='<? echo $t?>'" type="image" src="<? echo $image_path ?>day.gif" name="button" value="  <? echo $current_module_strings['LBL_DAY']?>  " >
+<input title="<? echo $current_module_strings['LBL_WEEK_BUTTON_TITLE']?>" accessKey="<? echo $current_module_strings['LBL_WEEK_BUTTON_KEY']?>" onclick="this.form.action.value='calendar_week';this.form.t.value='<? echo $t?>'" type="image" src="<? echo $image_path ?>week.gif" name="button" value="  <? echo $current_module_strings['LBL_WEEK']?>  " >
+<input title="<? echo $current_module_strings['LBL_MON_BUTTON_TITLE']?>" accessKey="<? echo $current_module_strings['LBL_MON_BUTTON_KEY']?>" onclick="this.form.action.value='calendar_month';this.form.t.value='<? echo $t?>'" type="image" src="<? echo $image_path ?>month.gif" name="button" value="  <? echo $current_module_strings['LBL_MON']?>  " >-->
+</form>
+<?php
+echo get_left_form_header($mod_strings['LBL_PIPELINE_FORM_TITLE']);
+include ("modules/Dashboard/Chart_my_pipeline_by_sales_stage.php");
+echo get_left_form_footer();
+?>
 </td></tr></table><br>





More information about the vtigercrm-commits mailing list