Editing WD Calendar plugin to add columns to the Day view
<p>I am creating a common calendar for the hospital staff and using the WD Calendar plugin for it. I want to make a few columns inside the day view, like Doc1, Doc2 and so on. I tried to do it but when I create an event for one particular doctor, it gets applied to all doctors. In my previous attempt, I copy-pasted the code inside the following 'for' loop thrice, that's why it applied to all doctors.
This is the code for the day view (from jquery.calendar.js from the plugin) that had no columns.</p>

<pre><code>        for (var i = 0; i &lt; l; i++) {
            ht.push("&lt;td class=\"tg-col\" ch='qkadd' abbr='", dateFormat.call(dayarrs[i].date, i18n.xgcalendar.dateformat.fulldayvalue), "'&gt;");
            var istoday = dateFormat.call(dayarrs[i].date, "yyyyMMdd") == dateFormat.call(new Date(), "yyyyMMdd");
            // Today
            if (istoday) {
                ht.push("&lt;div style=\"margin-bottom: -1008px; height:1008px\" class=\"tg-today\"&gt;&amp;nbsp;&lt;/div&gt;");
            }
            //var eventC = $(eventWrap);
            //onclick=\"javascript:FunProxy('rowhandler',event,this);\"

            ht.push("&lt;div  style=\"margin-bottom: -1008px; height: 1008px\" id='tgCol", i, "' class=\"tg-col-eventwrapper\"&gt;");
            BuildEvents(ht, events[i], dayarrs[i]);
            ht.push("&lt;/div&gt;");

            ht.push("&lt;div class=\"tg-col-overlaywrapper\" id='tgOver", i, "'&gt;");
            if (istoday) {
                var mhh = mHg + 4;
                ht.push("&lt;div id=\"tgnowmarker\" class=\"tg-hourmarker tg-nowmarker\" style=\"left:0px;top:", mhh, "px\"&gt;&lt;/div&gt;");
            }
            ht.push("&lt;/div&gt;");
            ht.push("&lt;/td&gt;");
             }
</code></pre>

<p>Please help me edit this code to add doctors in it!</p>
