[Vtigercrm-commits] [vtiger-commits] r4069 - in /vtigercrm/trunk: include/utils/DeleteUtils.php modules/Rss/Rss.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Mar 7 12:30:11 EST 2006
Author: saraj
Date: Tue Mar 7 10:30:04 2006
New Revision: 4069
Log:
CRUD operation integrated for rss
Modified:
vtigercrm/trunk/include/utils/DeleteUtils.php
vtigercrm/trunk/modules/Rss/Rss.php
Modified: vtigercrm/trunk/include/utils/DeleteUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/DeleteUtils.php (original)
+++ vtigercrm/trunk/include/utils/DeleteUtils.php Tue Mar 7 10:30:04 2006
@@ -284,12 +284,17 @@
}
break;
+ case Rss:
+ $del_query = "delete from rss where rssid=".$record;
+ $adb->query($del_query);
+ break;
endswitch;
global $current_user;
require_once('include/freetag/freetag.class.php');
$freetag=new freetag();
$freetag->delete_all_object_tags_for_user($current_user->id,$record);
- if($return_module == $module)
+
+ if($return_module == $module && $return_module !='Rss')
{
$focus->mark_deleted($record);
}
Modified: vtigercrm/trunk/modules/Rss/Rss.php
==============================================================================
--- vtigercrm/trunk/modules/Rss/Rss.php (original)
+++ vtigercrm/trunk/modules/Rss/Rss.php Tue Mar 7 10:30:04 2006
@@ -155,7 +155,7 @@
$shtml .= "<td width=\"15\">
<img src=\"".$image_path."onstar.gif\" align=\"absmiddle\" onMouseOver=\"this.style.cursor='pointer'\" id=\"star-$allrssrow[rssid]\" onclick=\"star('$allrssrow[rssid]','0')\"></td>";
$shtml .= "<td class=\"rssTitle\"><a href=\"index.php?module=Rss&action=index&record=$allrssrow[rssid]
-\" class=\"rssTitle\">".substr($allrssrow['rsstitle'],0,15)."...</a></td>";
+\" class=\"rssTitle\">".substr($allrssrow['rsstitle'],0,15)."...</a></td><td><a href=\"index.php?module=Rss&action=Delete&return_module=Rss&return_action=index&record=$allrssrow[rssid]\"><img src=\"".$image_path."del.gif\" border=\"0\" align=\"absmiddle\"></a></td>";
$shtml .= "</tr>";
}
return $shtml;
@@ -184,7 +184,7 @@
}
$shtml .= "<td class=\"rssTitle\"><a href=\"index.php?module=Rss&action=ListView&record=$allrssrow[rssid]
\" class=\"rssTitle\">".$allrssrow[rsstitle]."</a></td>";
- $shtml .= "</tr>";
+ $shtml .= "<td><a href=\"index.php?module=Rss&action=Delete&return_module=Rss&return_action=index&record=$allrssrow[rssid]\"><img src=\"".$image_path."del.gif\" border=\"0\" align=\"absmiddle\"></a></td></tr>";
}
return $shtml;
@@ -210,7 +210,7 @@
$shtml .= "<td width=\"15\">
<img src=\"".$image_path."offstar.gif\" align=\"absmiddle\" onMouseOver=\"this.style.cursor='pointer'\" id=\"star-$allrssrow[rssid]\" onclick=\"star('$allrssrow[rssid]','1')\"></td>";
}
- $shtml .= "<td class=\"rssTitle\"><a href=\"index.php?module=Rss&action=ListView&record=$allrssrow[rssid]\" class=\"rssTitle\">".$allrssrow[rsstitle]."</a></td>";
+ $shtml .= "<td class=\"rssTitle\"><a href=\"index.php?module=Rss&action=ListView&record=$allrssrow[rssid]\" class=\"rssTitle\">".$allrssrow[rsstitle]."</a></td><td><a href=\"index.php?module=Rss&action=Delete&return_module=Rss&return_action=index&record=$allrssrow[rssid]\"><img src=\"".$image_path."del.gif\" border=\"0\" align=\"absmiddle\"></a></td>";
$shtml .= "</tr>";
}
@@ -428,8 +428,7 @@
$shtml .= "<tr>";
$shtml .= "<td width=\"15\">
<img src=\"".$image_path."offstar.gif\" align=\"absmiddle\" onMouseOver=\"this.style.cursor='pointer'\" id=\"star-$allrssrow[rssid]\" onclick=\"star('$allrssrow[rssid]','1')\"></td>";
- $shtml .= "<td class=\"rssTitle\"><a href=\"index.php?module=Rss&action=index&record=$allrssrow[rssid]
-\" class=\"rssTitle\">".$allrssrow[rsstitle]."</a></td>";
+ $shtml .= "<td class=\"rssTitle\" width=\"10%\"><a href=\"index.php?module=Rss&action=index&record=$allrssrow[rssid]\" class=\"rssTitle\">".$allrssrow[rsstitle]."</a></td><td><a href=\"index.php?module=Rss&action=Delete&return_module=Rss&return_action=index&record=$allrssrow[rssid]\"><img src=\"".$image_path."del.gif\" border=\"0\" align=\"absmiddle\"></a></td>";
$shtml .= "</tr>";
}
return $shtml;
More information about the vtigercrm-commits
mailing list