Welcome Guest, Not a member yet? Register   Sign In
I need some help converting this class to CI's Calendar class :( willing to pay.
#3

[eluser]Kinsbane[/eluser]
Oh shoot! My apologies!

Here's the current class as it stands:
http://www.kinsbane.net/temp/calendarclass.php.txt

And here's an extended version of initializing the class:
Code:
$cal = &new;CALENDAR();

        $cal->show_days = 7;
        $cal->set_table_tags("border=0 cellpadding=0 cellspacing=0 class=\"maincontentnopad\"");
        $cal->set_link_tags("class=\"sidelinks\"");
        $cal->set_cal_url("$my_page_url?op=calendar&month;=$lastmonth&year;=$lastyear", "$my_page_url?op=calendar&month;=$nextmonth&year;=$nextyear");


        $query = "SELECT * FROM event ORDER BY event_date";
        $result = mysql_query($query);
        $data2 = mysql_fetch_array($result, MYSQL_ASSOC);
        while($data = mysql_fetch_array($result, MYSQL_ASSOC)) {
            
        if($data['event_date'] > $month_start and $data['event_date'] < $month_end) {
            $cal->add_event($data['event_title'], $data['event_date'], $data['event_length'], "$my_page_url?op=view&id;={$data['event_id']}");
        }
        }
        $body .= $cal->display(mktime(0,0,0,$month,1,$year));
        $body .= "<br><br>\n";
        $body .= $cal->display_colors();


Messages In This Thread
I need some help converting this class to CI's Calendar class :( willing to pay. - by El Forum - 04-04-2008, 10:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB