Wednesday, August 22, 2012

Show hide

<script type="text/javascript"> 

// Text to HTML 
// Feedback and questions: Christophe@PathToSharePoint.com 
// 
var theTDs = document.getElementsByTagName("TD"); 
var i=0; 
var TDContent = " "; 
while (i < theTDs.length) { 
try { 
TDContent = theTDs[i].innerText || theTDs[i].textContent; 
if ((TDContent.indexOf("<DIV") == 0) && (TDContent.indexOf("</DIV>") >= 0)) { 
theTDs[i].innerHTML = TDContent; 


catch(err){} 
i=i+1; 

 
// ExpGroupRenderData overwrites the default SharePoint function 
// This part is needed for collapsed groupings 
 
function ExpGroupRenderData(htmlToRender, groupName, isLoaded) { 
var tbody=document.getElementById("tbod"+groupName+"_"); 
var wrapDiv=document.createElement("div"); 
wrapDiv.innerHTML="<TABLE><TBODY id=\"tbod"+ groupName+"_\" isLoaded=\""+isLoaded+ "\">"+htmlToRender+"</TBODY></TABLE>"; 
var theTBODYTDs = wrapDiv.getElementsByTagName("TD"); var j=0; var TDContent = " "; 
while (j < theTBODYTDs.length) { 
try { 
TDContent = theTBODYTDs[j].innerText || theTBODYTDs[j].textContent; 
if ((TDContent.indexOf("<div") == 0) && (TDContent.indexOf("</div>") >= 0)) { 
theTBODYTDs[j].innerHTML = TDContent; 


catch(err){} 
j=j+1; 

tbody.parentNode.replaceChild(wrapDiv.firstChild.firstChild,tbody); 

</script>

Sunday, August 19, 2012

configuring a web part

here's the tip for today.... You know how when you add an out-of-the-box web part that requires configuration you get a nice little message in the web part display that you need to configure it, and a link to open up the toolpane? Add a Page Viewer web part to your site and you'll see what I mean.... Well here's how to add one of those links. This is really useful in exception handling for configuration related exceptions too....
In your RenderWebPart override check to see if your part is configured, if not output something like this:
output.Write(@"Web Part not configured: <a target=""_self"" href=""javascript:MSOTlPn_ShowToolPaneWrapper('1','129','g_" + this.StorageKey.ToString.Replace("-"c, "_"c) + @"');"" target=""_self"">click here</a> to configure<br>");

Sharepoint Allow Customization to users

A lot of people don't realize just how easy it is to create their own “Modify Page” link/button/whatever.... All you really need is something that can have an onClick event.... For example, here's a “Modify Page” button, drop this into a Content Editor web part, strip off the web part frame and you're done...
<input id="btnModifyPage" type="button" class="UserButton" onClick="javascript:MSOWebPartPage_OpenMenu(MSOMenu_SettingsMenu, this);" value="Modify Page" />
So simple, so easy, right? Now because this isn't the actually WebPartPages:SettingsLink web part it will not change text from “Modify Shared Page” and “Modify My Page” depending on the page view you're on.... For most users I don't find that a problem anyway, thus the button text here is “Modify Page” Nice and generic. The functionality is the same however, if a use has access to modify both a personal page and a shared page they can do both from this button..... The javascript command is the same in either case.

Sharepoint Tweeks and tricks

Is this even possible, some might wonder? Well it is, via querystring options on the command line:
Add Web Parts/Browse ToolPaneView=2
Add Web Parts/Search ToolPaneView=3
Edit Mode mode=edit
View Mode mode=view
Shared Mode PageView=Shared
Personal Mode PageView=Personal

So for example, say you wanted to edit the Shared view of the default page:
default.aspx?mode=edit&PageView=Shared
Say you wanted to Browse web parts and add them to your Personal view:
default.aspx?ToolPaneView=2&PageView=Personal
You can mix and match, and the order of the options do not matter....
Hope this helps
-Andy

Thursday, August 02, 2012

Show ID in Sharepoint Edit Page using javascript

multiple Javascripts from one trigger

<input name="Button1" type="button" value="Submit" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={/thanks-for-submission.aspx}')}" />



Show ID Column from CEWP

<script type="text/javascript"> 
 // Item ID in DispForm.aspx and EditForm.aspx 
// Feedback and questions: Christophe@PathToSharePoint.com 
// 
function DisplayItemID() 

var regex = new RegExp("[\\?&]"+"ID"+"=([^&#]*)"); 
var qs = regex.exec(window.location.href); 
var TD1 = document.createElement("TD"); 
TD1.className = "ms-formlabel"; 
TD1.innerHTML = "<h3 class='ms-standardheader'>Issue ID</h3>"; 
var TD2 = document.createElement("TD"); 
TD2.className = "ms-formbody"; 
TD2.innerHTML = qs[1]; 
var IdRow = document.createElement("TR"); 
IdRow.appendChild(TD1); 
IdRow.appendChild(TD2); 
var ItemBody = GetSelectedElement(document.getElementById("idAttachmentsRow"),"TABLE").getElementsByTagName("TBODY")[0]; 
ItemBody.insertBefore(IdRow,ItemBody.firstChild); 

  
_spBodyOnLoadFunctionNames.push("DisplayItemID"); 
</script>

Thursday, July 26, 2012

Date and Time Difference calculator

Look what I just found!!!


=DATEDIF([In-Progress Time],[Closed time]-(MOD([In-Progress Time],1)>MOD([Closed time],1)),"d")&" days, "&TEXT(MOD([Closed time]-[In-Progress Time],1),"hh "" hrs, "" mm "" mins""")

Wednesday, July 25, 2012

Auto Refresh Page

<script>
<!--
/*
Auto Refresh Page with Time script
*/
//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="0:5"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" seconds left until page refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
//-->
</script>

Sharepoint form redirection


<script type="text/javascript" src="SITE/Images1/jquery-1.3.2.min.js%22%3E%3C/script>
<script type="text/javascript">
fields = init_fields();
// Where to go when cancel is clicked
goToWhenCanceled = 'http://sharepoint.apps.anz/teams/BHS/UnOccupied-Thanks.aspx';
// Edit the redirect on the cancel-button's
$('.ms-ButtonHeightWidth[id$="GoBack"]').each(function(){
    $(this).click(function(){
   STSNavigate(goToWhenCanceled);
   })
});
function init_fields(){
  var res = {};
  $("td.ms-formbody").each(function(){
   if($(this).html().indexOf('FieldInternalName="')<0) return;
   var start = $(this).html().indexOf('FieldInternalName="')+19;
   var stopp = $(this).html().indexOf('FieldType="')-7;
   var nm = $(this).html().substring(start,stopp);
   res[nm] = this.parentNode;
  });
  return res;
}
</script>


Disable edit on fields on a SharePoint form


<SCRIPT language=javascript>
function DisableField(title)
{
    for(var i = 0; i < document.all.length; i++)
    {
        var el = document.all[i];
        if(el.title == title)
        {
            el.readOnly = true;
            break;
        }
    }
}
DisableField("Bay");
DisableField("Pos");
DisableField("Status");
</SCRIPT>

Hide SharePoint Field on Form

this script will hide the fields selected



<script language="javascript" type="text/javascript" src="SITE/Images1/jquery-1.3.2.min.js"></script>
<script language="javascript" type="text/javascript">
 $(document).ready(function() {
$("input[Title='Pos']").parents('tr:first').hide();
$("input[Title='Delete Item']").parents('tr:first').hide();

 });
// this script below till set default value in a edit form
jQuery("select[title$=Status] option[value='Occupied']").attr("selected", "selected");
jQuery("select[title$=Occupancy Hours] option[value='9']").attr("selected", "selected");
</script>


 

Tuesday, July 24, 2012

SharePoint Full Screen

<style type="text/css">
.ms-titlearearight { DISPLAY: none; VISIBILITY: hidden}
.ms-titlearealeft { DISPLAY: none; VISIBILITY: hidden}
.ms-titleareaframe { DISPLAY: none; VISIBILITY: hidden}
.ms-titlearea { DISPLAY: none; VISIBILITY: hidden}
.ms-titleimagearea { DISPLAY: none; VISIBILITY: hidden}
.ms-nav   {DISPLAY: none; VISIBILITY: hidden}
.ms-navframe { DISPLAY: none; VISIBILITY: hidden}
.ms-navheader zz2_QuickLaunchMenu_4 { DISPLAY: none; VISIBILITY: hidden}
.ms-quicklaunchouter { DISPLAY: none; VISIBILITY: hidden}
.ms-quickLaunch { DISPLAY: none; VISIBILITY: hidden}
.ms-quicklaunchheader { DISPLAY: none; VISIBILITY: hidden}
.ms-hidden { DISPLAY: none; VISIBILITY: hidden}
.ms-globalTitleArea { DISPLAY: none; VISIBILITY: hidden}
.ms-globalleft { DISPLAY: none; VISIBILITY: hidden}
.ms-topnav { DISPLAY: none; VISIBILITY: hidden}
.ms-topnavcontainer { DISPLAY: none; VISIBILITY: hidden}
.ms-topnavbar { DISPLAY: none; VISIBILITY: hidden}
.ms-topnavselected { DISPLAY: none; VISIBILITY: hidden}
.ms-topNavHover { DISPLAY: none; VISIBILITY: hidden}
.ms-pagetitleareaframe { DISPLAY: none; VISIBILITY: hidden}
.ms-pagetitle { DISPLAY: none; VISIBILITY: hidden}
.ms-pagemargin { DISPLAY: none; VISIBILITY: hidden}
.ms-banner { DISPLAY: none; VISIBILITY: hidden}
.ms-bannercontainer { DISPLAY: none; VISIBILITY: hidden}
hides the top blue banner
</style>

Digital World Clock

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled 2</title>
<script language="JavaScript">
<!--
function worldClock(zone,MinI, region){
var dst = 0
var time = new Date()
var gmtMS = time.getTime() + (time.getTimezoneOffset() * 60000)
var gmtTime = new Date(gmtMS)
var day = gmtTime.getDate()
var month = gmtTime.getMonth()
var year = gmtTime.getYear()
if(year < 1000){
year += 1900
}
var monthArray = new Array("January", "February", "March", "April", "May", "June", "July", "August",
    "September", "October", "November", "December")
var monthDays = new Array("31", "28", "31", "30", "31", "30", "31", "31", "30", "31", "30", "31")
if (year%4 == 0){
monthDays = new Array("31", "29", "31", "30", "31", "30", "31", "31", "30", "31", "30", "31")
}
if(year%100 == 0 && year%400 != 0){
monthDays = new Array("31", "28", "31", "30", "31", "30", "31", "31", "30", "31", "30", "31")
}
var hr = gmtTime.getHours() + zone
var min = gmtTime.getMinutes()+ MinI
var sec = gmtTime.getSeconds()

if(min>59)
 {
 var min = gmtTime.getMinutes()-"30"
 var hr = hr+1
 }
if (hr >= 24){
hr = hr-24
day -= -1
}
if (hr < 0){
hr -= -24
day -= 1
}
if (hr < 10){
hr = " " + hr
}
if (min < 10){
 min = "0" + min}
if (sec < 10)
{
sec = "0" + sec
}
if (day <= 0){
if (month == 0){
 month = 11
 year -= 1
 }
 else{
 month = month -1
 }
day = monthDays[month]
}
if(day > monthDays[month]){
 day = 1
 if(month == 11){
 month = 0
 year -= -1
 }
 else{
 month -= -1
 }
}
if (region == "NAmerica"){
 var startDST = new Date()
 var endDST = new Date()
 startDST.setMonth(3)
 startDST.setHours(2)
 startDST.setDate(1)
 var dayDST = startDST.getDay()
 if (dayDST != 0){
  startDST.setDate(8-dayDST)
  }
  else{
  startDST.setDate(1)
  }
 endDST.setMonth(9)
 endDST.setHours(1)
 endDST.setDate(31)
 dayDST = endDST.getDay()
 endDST.setDate(31-dayDST)
 var currentTime = new Date()
 currentTime.setMonth(month)
 currentTime.setYear(year)
 currentTime.setDate(day)
 currentTime.setHours(hr)
 if(currentTime >= startDST && currentTime < endDST){
  dst = 1
  }
}
if (region == "Europe"){
 var startDST = new Date()
 var endDST = new Date()
 startDST.setMonth(2)
 startDST.setHours(1)
 startDST.setDate(31)
 var dayDST = startDST.getDay()
 startDST.setDate(31-dayDST)
 endDST.setMonth(9)
 endDST.setHours(0)
 endDST.setDate(31)
 dayDST = endDST.getDay()
 endDST.setDate(31-dayDST)
 var currentTime = new Date()
 currentTime.setMonth(month)
 currentTime.setYear(year)
 currentTime.setDate(day)
 currentTime.setHours(hr)
 if(currentTime >= startDST && currentTime < endDST){
  dst = 1
  }
}
if (region == "SAmerica"){
 var startDST = new Date()
 var endDST = new Date()
 startDST.setMonth(9)
 startDST.setHours(0)
 startDST.setDate(1)
 var dayDST = startDST.getDay()
 if (dayDST != 0){
  startDST.setDate(22-dayDST)
  }
  else{
  startDST.setDate(15)
  }
 endDST.setMonth(1)
 endDST.setHours(11)
 endDST.setDate(1)
 dayDST = endDST.getDay()
 if (dayDST != 0){
  endDST.setDate(21-dayDST)
  }
  else{
  endDST.setDate(14)
  }
 var currentTime = new Date()
 currentTime.setMonth(month)
 currentTime.setYear(year)
 currentTime.setDate(day)
 currentTime.setHours(hr)
 if(currentTime >= startDST || currentTime < endDST){
  dst = 1
  }
}
if (region == "Cairo"){
 var startDST = new Date()
 var endDST = new Date()
 startDST.setMonth(3)
 startDST.setHours(0)
 startDST.setDate(30)
 var dayDST = startDST.getDay()
 if (dayDST < 5){
  startDST.setDate(28-dayDST)
  }
  else {
  startDST.setDate(35-dayDST)
  }
 endDST.setMonth(8)
 endDST.setHours(11)
 endDST.setDate(30)
 dayDST = endDST.getDay()
 if (dayDST < 4){
  endDST.setDate(27-dayDST)
  }
  else{
  endDST.setDate(34-dayDST)
  }
 var currentTime = new Date()
 currentTime.setMonth(month)
 currentTime.setYear(year)
 currentTime.setDate(day)
 currentTime.setHours(hr)
 if(currentTime >= startDST && currentTime < endDST){
  dst = 1
  }
}
if (region == "India")
{
 var startDST = new Date()
 var endDST = new Date()
 startDST.setMonth(3)
 startDST.setHours(2)
 startDST.setDate(1)
 endDST.setMonth(8)
 endDST.setHours(2)
 endDST.setDate(25)
 dayDST = endDST.getDay()
 if (dayDST != 0){
 endDST.setDate(32-dayDST)
 }
 else{
 endDST.setDate(1)
 endDST.setMonth(9)
 }
 var currentTime = new Date()
 currentTime.setMonth(month)
 currentTime.setYear(year)
 currentTime.setDate(day)
 currentTime.setHours(hr)
 if(currentTime >= startDST && currentTime < endDST){
  dst = 1
  }

}
if (region == "Beirut"){
 var startDST = new Date()
 var endDST = new Date()
 startDST.setMonth(2)
 startDST.setHours(0)
 startDST.setDate(31)
 var dayDST = startDST.getDay()
 startDST.setDate(31-dayDST)
 endDST.setMonth(9)
 endDST.setHours(11)
 endDST.setDate(31)
 dayDST = endDST.getDay()
 endDST.setDate(30-dayDST)
 var currentTime = new Date()
 currentTime.setMonth(month)
 currentTime.setYear(year)
 currentTime.setDate(day)
 currentTime.setHours(hr)
 if(currentTime >= startDST && currentTime < endDST){
  dst = 1
  }
}
if (region == "Baghdad"){
 var startDST = new Date()
 var endDST = new Date()
 startDST.setMonth(3)
 startDST.setHours(3)
 startDST.setDate(1)
 endDST.setMonth(9)
 endDST.setHours(3)
 endDST.setDate(1)
 dayDST = endDST.getDay()
  var currentTime = new Date()
 currentTime.setMonth(month)
 currentTime.setYear(year)
 currentTime.setDate(day)
 currentTime.setHours(hr)
 if(currentTime >= startDST && currentTime < endDST){
  dst = 1
  }
}
if (region == "Australia"){
 var startDST = new Date()
 var endDST = new Date()
 startDST.setMonth(9)
 startDST.setHours(2)
 startDST.setDate(31)
 var dayDST = startDST.getDay()
 startDST.setDate(31-dayDST)
 endDST.setMonth(2)
 endDST.setHours(2)
 endDST.setDate(31)
 dayDST = endDST.getDay()
 endDST.setDate(31-dayDST)
 var currentTime = new Date()
 currentTime.setMonth(month)
 currentTime.setYear(year)
 currentTime.setDate(day)
 currentTime.setHours(hr)
 if(currentTime >= startDST || currentTime < endDST){
  dst = 1
  }
}

if (dst == 1){
 hr -= -1
 if (hr >= 24){
 hr = hr-24
 day -= -1
 }
 if (hr < 10){
 hr = " " + hr
 }
 if(day > monthDays[month]){
 day = 1
 if(month == 11){
 month = 0
 year -= -1
 }
 else{
 month -= -1
 }
 }
return monthArray[month] + " " + day + ", " + year + "<br>" + hr + ":" + min + ":" + sec + " DST"
}
else{
return monthArray[month] + " " + day + ", " + year + "<br>" + hr + ":" + min + ":" + sec
}
}
function worldClockZone(){
document.getElementById("GMT").innerHTML = worldClock(0,0, "Greenwich")
document.getElementById("Melbourne").innerHTML = worldClock(10,0, "Australia")
document.getElementById("Bangalore").innerHTML = worldClock(4,30, "India")
document.getElementById("Manila").innerHTML = worldClock(8,0, "Singapore")
document.getElementById("NewYork").innerHTML = worldClock(-5,0, "NAmerica")
document.getElementById("NZ").innerHTML = worldClock(12,0, "Australia")
document.getElementById("Singapore").innerHTML = worldClock(8,0, "Singapore")
setTimeout("worldClockZone()", 1000)
}
window.onload=worldClockZone;
//-->
</script>
<style type="text/css">
.body {
color: #000;
}
.hrow {
font-weight:bold;
color: #000;
}
.hrow td{
padding-top: 20px;
width: 140px;
}
</style>
</head>
<body>
<table cellspacing="5px" align="center">
<tr class="hrow">
<td>GMT</td>
<td>Melbourne</td>
<td>Bangalore</td>
<td>Manila</td>
<td>New York</td>
<td>Auckland</td>
<td>Singapore</td>
</tr>
<tr>
<td><font color="#004165"> <span id="GMT"></span></font></td>
<td><font color="#004165"> <span id="Melbourne"></span></font></td>
<td><font color="#004165"> <span id="Bangalore"></span></font></td>
<td><font color="#004165"> <span id="Manila"></span></font></td>
<td><font color="#004165"> <span id="NewYork"></span></font></td>
<td><font color="#004165"> <span id="NZ"></span></font></td>
<td><font color="#004165"> <span id="Singapore"></span></font></td>
</tr>

</table>

</body>
</html>

Color Gantt Chart

<script type="text/javascript" src="/teams/IOBE/Canttouch%20this/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
// Set PicturesPath to the URL of the library that hosts the bar images:
var PicturesPath = "/teams/IOBE/Canttouch%20this/Images";

// Collect the priority level for each task
var barColours = new Array();
var regex = /\(\d\)\s(Amar\sNaidu|Baz\sSelwyn|Carol\sFrancis|Renjiv\sRaman|Ayesha\sSultana)/;
// Find the tasks summary list
var TasksList = $(".ms-ganttOuterTable").siblings("table").find(".ms-summarystandardbody>tbody>tr:not(.ms-viewheadertr)");
if (TasksList.length == 0) TasksList = $(".ms-ganttOuterTable").siblings("table").find(".ms-listviewtable>tbody>tr:not(.ms-viewheadertr)");

TasksList.each(function(i){
try {
barColours[i] = regex.exec($(this).text())[0].substr(1,1);
}
catch(err) {barColours[i] ="";}
});
// Modify the bar color according to priority
$(".ms-ganttTaskRow").each(function(i){
$(this).find("img").each(function(){
       var source=this.src;
       source = source.replace(/.gif/, barColours[i]+".gif");
       source = source.replace(/\/_layouts\/images/,PicturesPath);
       this.src=source;
});
});
//Optional: hide the list under the Gantt view
$(".ms-summarystandardbody").hide();
$(".ms-listviewtable").hide();
</script>

Dynamic Search

Have fun!!

<SCRIPT type="text/javascript"src="SITE/Shared%20Documents/Lib/js/jquery-1.7.1.min.js"></SCRIPT>
<SCRIPT type=text/javascript>
jQuery(document).ready(function($){
    //attach a function to the keyup event on the filter box
    $('#filterInput').keyup(function()
    {
        DynamicFilter($('#filterInput').val());
    });
})
//strip off html taqs
function stripHTML (field) {
    return field.replace(/<([^>]+)>/g,'');
}
function DynamicFilter(text)
{
    //find out list view (default class for a listview is "ms-listviewtable"
    $('table [class="ms-listviewtable"]').find('tr').each(function()
        {
            //don't filter out the header row
            if ($(this).attr("class") != "ms-viewheadertr ms-vhltr")
            {
                //get the html for the row and strip off the html tabs
                source = stripHTML($(this).html());
               
                //check to see if the filter text exists in the remaining text
                if (source.indexOf(text) < 0)
                {
                    //hide the row if it doesn't contain the text
                    $(this).hide();
                } else {
                    //otherwise show it
                    $(this).show();
                }
            }
        }
    );
}
</script>
<div id="mainDiv">
    <table>
        <tr>
            <td class='Filter' width='125px'>Search: <input type="Text" id="filterInput" ></td>
        </tr>
    </table>
</div>

Monday, June 04, 2012

He was assigned a grave with the wicked,

  1. Matthew 27:57
    [ The Burial of Jesus ] As evening approached, there came a rich man from Arimathea, named Joseph, who had himself become a disciple of Jesus.
    Matthew 27:56-58 (in Context) Matthew 27 (Whole Chapter)
  2. Mark 15:43
    Joseph of Arimathea, a prominent member of the Council, who was himself waiting for the kingdom of God, went boldly to Pilate and asked for Jesus’ body.
    Mark 15:42-44 (in Context) Mark 15 (Whole Chapter)
  3. John 19:38
    [ The Burial of Jesus ] Later, Joseph of Arimathea asked Pilate for the body of Jesus. Now Joseph was a disciple of Jesus, but secretly because he feared the Jewish leaders. With Pilate’s permission, he came and took the body away.
    John 19:37-39 (in Context) John 19 (Whole Chapter)

Overcoming Corruption: A Call to Personal Transformation

Dear brothers and sisters,

In a world tainted by corruption, we often find ourselves lamenting the state of affairs and expecting the government or authorities to eradicate this pervasive evil. However, as followers of Christ, we are called to take personal responsibility and actively work towards eliminating corruption from our society. Today, let us explore what the Bible teaches us about corruption and how we can be agents of change in this battle.

Recognize the Sin of Corruption:
Corruption, at its core, is a manifestation of greed, dishonesty, and the misuse of power. In Proverbs 15:27, we read, "Whoever is greedy for unjust gain troubles his own household." Corruption not only affects individuals but also damages families, communities, and the very fabric of society. We must acknowledge that corruption is a sin and a direct violation of God's commands to love our neighbor, seek justice, and act with integrity.

Transform Our Hearts and Minds:
True change begins within each one of us. Romans 12:2 urges us not to conform to the patterns of this world but to be transformed by the renewing of our minds. We must examine our own lives and root out any seeds of corruption. Let us cultivate integrity, honesty, and a commitment to doing what is right, even when no one is watching. Through prayer, Bible study, and the guidance of the Holy Spirit, we can develop a character that resists corruption and upholds righteousness.

Be Salt and Light in Society:
Jesus, in His Sermon on the Mount, said, "You are the salt of the earth... You are the light of the world" (Matthew 5:13-14). As Christians, we are called to be influencers and catalysts for change. We have a responsibility to expose corruption, challenge unjust systems, and advocate for righteousness. We must use our positions of influence, whether in our workplaces, communities, or even within our families, to promote transparency, fairness, and ethical practices.

Practice Social Responsibility:
Our faith in Christ compels us to actively engage in addressing societal issues. Proverbs 29:7 reminds us, "The righteous care about justice for the poor, but the wicked have no such concern." We must stand up for the oppressed, speak out against bribery and extortion, and support initiatives that promote accountability and good governance. By joining hands with like-minded individuals and organizations, we can create a collective voice against corruption.

Pray for Transformation:
Finally, we must fervently pray for the transformation of our society. Pray for our leaders, both in the government and in various institutions, that they may have wisdom, integrity, and a commitment to serving the common good. Pray for those engaged in corrupt practices, that their hearts may be convicted and turned towards righteousness. Prayer has the power to bring about supernatural change and can lead to a revival of integrity in our nation.

Personal Reflection:
I had to wait for almost 3 years to get a government document. But so be it. It decided not to pay a bribe. On another instance, I got my driving license first time by paying only fee for the form. and later I renewed it online and had to pay only Rs.40/-.

If you decide to refrain then God will support you. 

Conclusion:
Dear friends, let us remember that combating corruption requires more than just relying on the government to bring about change. As followers of Christ, we are called to be active participants in the battle against corruption. Let us start by examining our own hearts, seeking transformation through Christ, and being intentional about practicing integrity in our daily lives. By doing so, we can collectively contribute to the eradication of corruption and the establishment of a just and righteous society.

May the grace of God empower us to be courageous agents of change in the face of corruption. Amen.

Followers

No Locks without Key

🌿 Bible Verse 1 Corinthians 10:13 "No temptation has overtaken you except what is common to mankind. And God is faithful; ...

Who Am I?

My photo
What is mankind that you are mindful of them, human beings that you care for them? Psalms 8:4 But he made us a little lower than Angels and Crowned with Glory and Honor. How majestic is your name in all the Earth Oh Lord our God!